Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000857/0.000857, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009596/0.0009596, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8759/0.8759, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.623e-05/1.822e-05, allocations: 11.2 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01132/0.01134, allocations: 13.04 MB / 337.6 MB, free: 2.805 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008568/0.01991, allocations: 4.628 MB / 342.2 MB, free: 14.15 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002601/0.02251, allocations: 111.5 kB / 342.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003385/0.02589, allocations: 3.239 MB / 345.5 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004173/0.03007, allocations: 2.675 MB / 348.2 MB, free: 8.105 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.03145, allocations: 1.103 MB / 349.3 MB, free: 7 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005954/0.0374, allocations: 7.807 MB / 357.1 MB, free: 15.18 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003756/0.04116, allocations: 4.093 MB / 361.2 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003499/0.04466, allocations: 3.375 MB / 364.6 MB, free: 7.641 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003087/0.04774, allocations: 3.577 MB / 368.2 MB, free: 4.055 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000622/0.04837, allocations: 496 kB / 368.6 MB, free: 3.57 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001791/0.05016, allocations: 1.474 MB / 370.1 MB, free: 2.094 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001809/0.05197, allocations: 3.058 MB / 373.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001472/0.05344, allocations: 1.908 MB / 375.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006914/0.06035, allocations: 10.67 MB / 385.8 MB, free: 2.406 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.06036, allocations: 4 kB / 385.8 MB, free: 2.402 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.06036, allocations: 0 / 385.8 MB, free: 2.402 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002017/0.06057, allocations: 0 / 385.8 MB, free: 2.402 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01028/0.07085, allocations: 7.611 MB / 393.4 MB, free: 10.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.07089, allocations: 11.98 kB / 393.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00106/0.07195, allocations: 1.141 MB / 394.5 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02109/0.09304, allocations: 7.977 MB / 402.5 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00801/0.1011, allocations: 4.257 MB / 406.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/0.1013, allocations: 320.4 kB / 407.1 MB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001161/0.1025, allocations: 434.5 kB / 407.5 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01666/0.1191, allocations: 15.7 MB / 423.2 MB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001185/0.1193, allocations: 59.52 kB / 423.2 MB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004296/0.1197, allocations: 207.8 kB / 423.5 MB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002958/0.1226, allocations: 3.216 MB / 426.7 MB, free: 8.371 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01673/0.1394, allocations: 13.89 MB / 440.6 MB, free: 10.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1913/0.3307, allocations: 54.78 MB / 495.3 MB, free: 69.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006798/0.3375, allocations: 5.459 MB / 0.4891 GB, free: 66.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002295/0.3398, allocations: 3.232 MB / 0.4922 GB, free: 62.87 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01102/0.3508, allocations: 12.01 MB / 0.5039 GB, free: 51.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.3508, allocations: 64.03 kB / 0.504 GB, free: 51.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 5.461e-06/0.3509, allocations: 0 / 0.504 GB, free: 51.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.07409/0.4249, allocations: 42.82 MB / 0.5458 GB, free: 8.672 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.425, allocations: 217.9 kB / 0.546 GB, free: 8.414 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005349/0.4304, allocations: 6.151 MB / 0.552 GB, free: 2.492 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000392/0.4307, allocations: 69.7 kB / 0.5521 GB, free: 2.418 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002048/0.4328, allocations: 4.552 MB / 0.5566 GB, free: 14.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001107/0.4339, allocations: 1.282 MB / 0.5578 GB, free: 12.74 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001801/0.4357, allocations: 1.764 MB / 0.5595 GB, free: 10.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.126e-05/0.4358, allocations: 305.1 kB / 0.5598 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004481/0.4403, allocations: 4.62 MB / 0.5643 GB, free: 6.035 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00769/0.448, allocations: 9.641 MB / 0.5737 GB, free: 9.926 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/0.4603, allocations: 15.26 MB / 0.5886 GB, free: 8.199 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.354e-05/0.4604, allocations: 48 kB / 0.5887 GB, free: 8.152 MB / 458.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.02558/0.4859, allocations: 18.96 MB / 0.6072 GB, free: 5.148 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.427e-05/0.486, allocations: 80 kB / 0.6073 GB, free: 5.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/0.4861, allocations: 172.9 kB / 0.6074 GB, free: 4.902 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1779/0.664, allocations: 5.775 MB / 0.6131 GB, free: 154.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004584/0.6686, allocations: 2.052 MB / 0.6151 GB, free: 154.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01851/0.6871, allocations: 25.27 MB / 0.6398 GB, free: 144.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004396/0.6915, allocations: 0.6065 MB / 0.6404 GB, free: 144 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005303/0.692, allocations: 0.502 MB / 0.6408 GB, free: 143.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003533/0.6955, allocations: 3.094 MB / 0.6439 GB, free: 141 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006812/0.6962, allocations: 0.5213 MB / 0.6444 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01547/0.7117, allocations: 12.57 MB / 0.6567 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-05/0.7117, allocations: 51.94 kB / 0.6567 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.7117, allocations: 8.875 kB / 0.6567 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.7118, allocations: 15.94 kB / 0.6567 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02494/0.7367, allocations: 23.15 MB / 0.6793 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/0.7367, allocations: 11.98 kB / 0.6793 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/0.7381, allocations: 0.5711 MB / 0.6799 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01015/0.7483, allocations: 4.804 MB / 0.6846 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003062/0.7486, allocations: 65.61 kB / 0.6847 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01586/0.7645, allocations: 20.57 MB / 0.7047 GB, free: 79.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.7645, allocations: 8 kB / 0.7047 GB, free: 79.47 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01859/0.7831, allocations: 16.97 MB / 0.7213 GB, free: 62.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/0.7843, allocations: 0.5322 MB / 0.7218 GB, free: 62.19 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005747/0.7849, allocations: 55.98 kB / 0.7219 GB, free: 62.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001671/0.7866, allocations: 307 kB / 0.7222 GB, free: 61.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004517/0.787, allocations: 201.5 kB / 0.7224 GB, free: 61.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/0.7872, allocations: 87.58 kB / 0.7225 GB, free: 61.56 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003585/0.7908, allocations: 3.697 MB / 0.7261 GB, free: 57.88 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/0.7908, allocations: 0 / 0.7261 GB, free: 57.88 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005356/0.7961, allocations: 1.823 MB / 0.7279 GB, free: 56.07 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01815/0.8143, allocations: 17.65 MB / 0.7451 GB, free: 38.25 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009633/0.8239, allocations: 10.19 MB / 0.755 GB, free: 28.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.8239, allocations: 0 / 0.755 GB, free: 28.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0034/0.8273, allocations: 3.7 MB / 0.7587 GB, free: 24.36 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003716/0.831, allocations: 0.6547 MB / 0.7593 GB, free: 23.73 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.223/1.054, allocations: 87.21 MB / 0.8445 GB, free: 124 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003155/1.057, allocations: 4.118 MB / 0.8485 GB, free: 119.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003927/1.061, allocations: 2.989 MB / 0.8514 GB, free: 117 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002154/1.063, allocations: 2.929 MB / 0.8543 GB, free: 114.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.403e-06/1.063, allocations: 0 / 0.8543 GB, free: 114.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2613/1.325, allocations: 129.5 MB / 0.9808 GB, free: 155.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/14.17, allocations: 0 / 0.9808 GB, free: 155.9 MB / 490.7 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable j1.phi in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv. Warning: Get data of variable j1.phi from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv failed! Error: Could not read variable j1.w in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv. Warning: Get data of variable j1.w from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.06358664482832]