Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009414/0.0009414, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009551/0.0009551, allocations: 144.4 kB / 24.89 MB, free: 8.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9856/0.9856, allocations: 173.3 MB / 201.5 MB, free: 9.191 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 268.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.36e-05/1.502e-05, allocations: 6.312 kB / 268.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01055/0.01056, allocations: 15.05 MB / 283.6 MB, free: 7.016 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008205/0.01877, allocations: 5.25 MB / 288.8 MB, free: 1.746 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001371/0.02014, allocations: 135.2 kB / 288.9 MB, free: 1.613 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1169/0.1371, allocations: 4.684 MB / 293.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006543/0.1436, allocations: 2.701 MB / 296.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002112/0.1457, allocations: 1.296 MB / 297.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008928/0.1547, allocations: 8.928 MB / 306.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004218/0.1589, allocations: 5.004 MB / 311.6 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005227/0.1641, allocations: 5.262 MB / 316.8 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003747/0.1679, allocations: 3.511 MB / 320.3 MB, free: 2.328 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000701/0.1686, allocations: 0.5117 MB / 320.8 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001808/0.1704, allocations: 1.496 MB / 322.3 MB, free: 388 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.1722, allocations: 3.208 MB / 325.5 MB, free: 13.28 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001889/0.1741, allocations: 2.013 MB / 327.6 MB, free: 11.35 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005252/0.1793, allocations: 6.832 MB / 334.4 MB, free: 4.941 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1794, allocations: 0 / 334.4 MB, free: 4.941 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1794, allocations: 0 / 334.4 MB, free: 4.941 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.582e-05/0.1794, allocations: 0 / 334.4 MB, free: 4.941 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.007058/0.1865, allocations: 6.997 MB / 341.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.1865, allocations: 12.92 kB / 341.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003792/0.1903, allocations: 1.574 MB / 343 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003471/0.1938, allocations: 3.276 MB / 346.3 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.1939, allocations: 340.3 kB / 346.6 MB, free: 9.484 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004841/0.1944, allocations: 468.2 kB / 347 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007041/0.2014, allocations: 7.053 MB / 354.1 MB, free: 1.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.2015, allocations: 74.41 kB / 354.2 MB, free: 1.637 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003318/0.2019, allocations: 214.8 kB / 354.4 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00174/0.2036, allocations: 2.314 MB / 356.7 MB, free: 15.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005634/0.2093, allocations: 3.629 MB / 360.3 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03108/0.2403, allocations: 43.03 MB / 403.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00574/0.2461, allocations: 2.846 MB / 406.2 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000768/0.2468, allocations: 0.6417 MB / 406.8 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007564/0.2544, allocations: 6.279 MB / 413.1 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.2544, allocations: 64.48 kB / 413.2 MB, free: 6.059 MB / 362.7 MB Notification: Performance of pre-optimization done (n=237): time 3.486e-06/0.2544, allocations: 0 / 413.2 MB, free: 6.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=347): time 0.2021/0.4565, allocations: 27.83 MB / 441 MB, free: 118.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/0.4566, allocations: 246.1 kB / 441.3 MB, free: 118.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004633/0.4612, allocations: 4.366 MB / 445.6 MB, free: 117.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004723/0.4617, allocations: 74.14 kB / 445.7 MB, free: 117.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001403/0.4631, allocations: 4.005 MB / 449.7 MB, free: 115.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008461/0.464, allocations: 1.317 MB / 451 MB, free: 114.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001749/0.4657, allocations: 1.615 MB / 452.6 MB, free: 114.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.38e-05/0.4657, allocations: 304.7 kB / 452.9 MB, free: 114.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002652/0.4684, allocations: 1.781 MB / 454.7 MB, free: 114.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003714/0.4721, allocations: 6.31 MB / 461 MB, free: 108.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006008/0.4781, allocations: 8.632 MB / 469.7 MB, free: 101.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-05/0.4782, allocations: 45.44 kB / 469.7 MB, free: 101.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=1133) (initialization): time 0.03371/0.5119, allocations: 10.63 MB / 480.3 MB, free: 94.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.47e-05/0.512, allocations: 72 kB / 480.4 MB, free: 94.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001039/0.5121, allocations: 164 kB / 480.6 MB, free: 94.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01708/0.5291, allocations: 9.495 MB / 490.1 MB, free: 84.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003435/0.5326, allocations: 1.774 MB / 491.8 MB, free: 82.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02742/0.56, allocations: 18.41 MB / 0.4983 GB, free: 64.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005022/0.565, allocations: 355.7 kB / 0.4986 GB, free: 63.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005856/0.5656, allocations: 424 kB / 0.499 GB, free: 63.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(11,77,47.9%), (5,46,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of prepare postOptimizeDAE: time 0.001933/0.5675, allocations: 0.7791 MB / 0.4998 GB, free: 62.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007932/0.5683, allocations: 379.5 kB / 0.5001 GB, free: 62.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02323/0.5916, allocations: 7.172 MB / 0.5072 GB, free: 54.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.704e-05/0.5916, allocations: 40 kB / 0.5072 GB, free: 54.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.188e-05/0.5917, allocations: 28 kB / 0.5072 GB, free: 54.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.186e-05/0.5917, allocations: 15.94 kB / 0.5072 GB, free: 54.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03524/0.627, allocations: 15.96 MB / 0.5228 GB, free: 38.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.409e-05/0.627, allocations: 8 kB / 0.5228 GB, free: 38.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/0.6284, allocations: 0.5454 MB / 0.5234 GB, free: 38.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01654/0.6449, allocations: 9.031 MB / 0.5322 GB, free: 29.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004284/0.6453, allocations: 67.98 kB / 0.5322 GB, free: 29.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02428/0.6696, allocations: 15.09 MB / 0.547 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.6696, allocations: 15.06 kB / 0.547 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0275/0.6971, allocations: 8.743 MB / 0.5555 GB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/0.6985, allocations: 492.3 kB / 0.556 GB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005699/0.6991, allocations: 67.98 kB / 0.5561 GB, free: 4.074 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001568/0.7007, allocations: 67.98 kB / 0.5561 GB, free: 4.008 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001063/0.7017, allocations: 310.9 kB / 0.5564 GB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002294/0.702, allocations: 71.98 kB / 0.5565 GB, free: 3.633 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001588/0.7035, allocations: 1.698 MB / 0.5582 GB, free: 1.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7035, allocations: 4.031 kB / 0.5582 GB, free: 1.941 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005873/0.7094, allocations: 2.461 MB / 0.5606 GB, free: 15.48 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(13,68,39.6%), (7,42,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005474/0.71, allocations: 215.8 kB / 0.5608 GB, free: 15.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.1146/0.8246, allocations: 6.399 MB / 0.567 GB, free: 116.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002294/0.8248, allocations: 113.3 kB / 0.5671 GB, free: 116.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005906/0.8307, allocations: 3.133 MB / 0.5702 GB, free: 116.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00351/0.8342, allocations: 0.9535 MB / 0.5711 GB, free: 116.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01399/0.8482, allocations: 13.22 MB / 0.584 GB, free: 111.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0016/0.8498, allocations: 1.933 MB / 0.5859 GB, free: 111.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001414/0.8512, allocations: 0.6563 MB / 0.5866 GB, free: 111.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009581/0.8522, allocations: 0.7328 MB / 0.5873 GB, free: 111.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.422e-06/0.8522, allocations: 0 / 0.5873 GB, free: 111.2 MB / 394.7 MB Notification: Performance of Templates: time 0.2214/1.074, allocations: 136.8 MB / 0.7209 GB, free: 112.4 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.228044769726694]