Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008813/0.0008813, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008987/0.0008987, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8977/0.8977, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.304e-06/2.304e-06, allocations: 3.984 kB / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.257e-06/1.156e-05, allocations: 2.312 kB / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.009907/0.009919, allocations: 14.96 MB / 288.4 MB, free: 2.152 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1037/0.1136, allocations: 5.237 MB / 293.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001535/0.1151, allocations: 136.2 kB / 293.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004657/0.1198, allocations: 4.756 MB / 298.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003387/0.1232, allocations: 2.697 MB / 301.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00141/0.1246, allocations: 1.295 MB / 302.5 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006065/0.1306, allocations: 9.171 MB / 311.7 MB, free: 8.309 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003474/0.1341, allocations: 5.355 MB / 317.1 MB, free: 3.875 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004381/0.1385, allocations: 5.356 MB / 322.4 MB, free: 14.95 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003402/0.1419, allocations: 3.501 MB / 325.9 MB, free: 11.67 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001045/0.1429, allocations: 0.5078 MB / 326.4 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001837/0.1448, allocations: 1.443 MB / 327.9 MB, free: 9.758 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001781/0.1466, allocations: 3.185 MB / 331.1 MB, free: 6.668 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001707/0.1483, allocations: 1.993 MB / 333 MB, free: 4.762 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004619/0.1529, allocations: 6.763 MB / 339.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1529, allocations: 0 / 339.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1529, allocations: 7.875 kB / 339.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001284/0.153, allocations: 0 / 339.8 MB, free: 14.29 MB / 298.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.007246/0.1603, allocations: 7.049 MB / 346.9 MB, free: 7.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.1603, allocations: 8.031 kB / 346.9 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003886/0.1642, allocations: 1.616 MB / 348.5 MB, free: 5.965 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003403/0.1676, allocations: 3.289 MB / 351.8 MB, free: 2.574 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.1677, allocations: 341.1 kB / 352.1 MB, free: 2.238 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005087/0.1682, allocations: 464.1 kB / 352.6 MB, free: 1.785 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006838/0.1751, allocations: 7.048 MB / 359.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.1752, allocations: 75.39 kB / 359.7 MB, free: 9.707 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003613/0.1755, allocations: 214.4 kB / 359.9 MB, free: 9.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001823/0.1774, allocations: 2.317 MB / 362.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005296/0.1827, allocations: 3.623 MB / 365.8 MB, free: 3.512 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03138/0.214, allocations: 43.02 MB / 408.9 MB, free: 6.984 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008335/0.2224, allocations: 2.778 MB / 411.6 MB, free: 4.164 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.2234, allocations: 0.6449 MB / 412.3 MB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009641/0.2331, allocations: 6.249 MB / 418.5 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.31e-05/0.2331, allocations: 56.5 kB / 418.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 5.27e-06/0.2331, allocations: 0 / 418.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.1925/0.4257, allocations: 27.63 MB / 446.2 MB, free: 114.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.4257, allocations: 244.9 kB / 446.4 MB, free: 114.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/0.4285, allocations: 4.354 MB / 450.8 MB, free: 113.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002729/0.4287, allocations: 78.3 kB / 450.9 MB, free: 113.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009555/0.4297, allocations: 4.005 MB / 454.9 MB, free: 111.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000655/0.4304, allocations: 1.324 MB / 456.2 MB, free: 110.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001482/0.4318, allocations: 1.614 MB / 457.8 MB, free: 110 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.277e-05/0.4319, allocations: 312.7 kB / 458.1 MB, free: 109.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002444/0.4343, allocations: 1.805 MB / 459.9 MB, free: 109.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003173/0.4375, allocations: 6.333 MB / 466.3 MB, free: 102.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004669/0.4421, allocations: 8.686 MB / 475 MB, free: 91.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.116e-05/0.4422, allocations: 48 kB / 475 MB, free: 91.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.02623/0.4684, allocations: 10.77 MB / 485.8 MB, free: 81.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.964e-05/0.4685, allocations: 76 kB / 485.8 MB, free: 81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.019e-05/0.4685, allocations: 163.7 kB / 486 MB, free: 80.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0166/0.4851, allocations: 9.643 MB / 495.6 MB, free: 71.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002352/0.4875, allocations: 1.684 MB / 497.3 MB, free: 69.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02826/0.5158, allocations: 18.73 MB / 0.504 GB, free: 50.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003479/0.5192, allocations: 355.7 kB / 0.5043 GB, free: 50.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004007/0.5196, allocations: 423.9 kB / 0.5047 GB, free: 49.73 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 {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001536/0.5212, allocations: 0.7791 MB / 0.5055 GB, free: 48.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006773/0.5218, allocations: 379.5 kB / 0.5058 GB, free: 48.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02334/0.5452, allocations: 7.321 MB / 0.513 GB, free: 41.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/0.5452, allocations: 35.94 kB / 0.513 GB, free: 41.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.196e-05/0.5452, allocations: 28 kB / 0.513 GB, free: 41.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/0.5452, allocations: 19.94 kB / 0.5131 GB, free: 41.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03302/0.5783, allocations: 16.27 MB / 0.529 GB, free: 24.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.5783, allocations: 12 kB / 0.529 GB, free: 24.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006041/0.5789, allocations: 291.5 kB / 0.5292 GB, free: 24.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0165/0.5954, allocations: 9.321 MB / 0.5383 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002515/0.5956, allocations: 75.92 kB / 0.5384 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02489/0.6205, allocations: 15.54 MB / 0.5536 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.6205, allocations: 15.94 kB / 0.5536 GB, free: 14.99 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1393/0.7599, allocations: 8.874 MB / 0.5623 GB, free: 106.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/0.7612, allocations: 498.9 kB / 0.5627 GB, free: 106.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007656/0.7619, allocations: 66.42 kB / 0.5628 GB, free: 106.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001687/0.7636, allocations: 74.73 kB / 0.5629 GB, free: 106.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001021/0.7646, allocations: 312.3 kB / 0.5632 GB, free: 106 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/0.7649, allocations: 73.59 kB / 0.5632 GB, free: 106 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001979/0.7669, allocations: 1.69 MB / 0.5649 GB, free: 105.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7669, allocations: 0 / 0.5649 GB, free: 105.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006077/0.7729, allocations: 2.462 MB / 0.5673 GB, free: 105.9 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 {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005435/0.7735, allocations: 216.3 kB / 0.5675 GB, free: 105.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009337/0.7828, allocations: 7.008 MB / 0.5744 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001738/0.783, allocations: 111.5 kB / 0.5745 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005665/0.7887, allocations: 3.653 MB / 0.578 GB, free: 104.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.7912, allocations: 0.9574 MB / 0.579 GB, free: 104.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.803, allocations: 13.4 MB / 0.592 GB, free: 99.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/0.8044, allocations: 1.943 MB / 0.5939 GB, free: 99.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001195/0.8056, allocations: 0.6602 MB / 0.5946 GB, free: 98.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008947/0.8065, allocations: 0.7327 MB / 0.5953 GB, free: 98.27 MB / 394.7 MB Notification: Performance of SimCode: time 7.81e-07/0.8065, allocations: 1.312 kB / 0.5953 GB, free: 98.27 MB / 394.7 MB Notification: Performance of Templates: time 0.2115/1.018, allocations: 139.8 MB / 0.7318 GB, free: 119.3 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.229088726919144]