Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.00093/0.00093, allocations: 80.8 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.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.0009295/0.0009295, allocations: 170.2 kB / 24.91 MB, free: 9.199 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.9462/0.9462, allocations: 177.1 MB / 205.3 MB, free: 5.5 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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.53e-05/1.693e-05, allocations: 2.312 kB / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01239/0.0124, allocations: 16.96 MB / 290.4 MB, free: 300 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.125/0.1374, allocations: 6.202 MB / 296.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003039/0.1405, allocations: 175.2 kB / 296.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007196/0.1477, allocations: 6.715 MB / 303.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006498/0.1542, allocations: 3.064 MB / 306.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003673/0.1578, allocations: 2.526 MB / 309.1 MB, free: 8.699 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01156/0.1694, allocations: 11.09 MB / 320.2 MB, free: 1.406 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008088/0.1775, allocations: 7.599 MB / 327.8 MB, free: 10.1 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0114/0.1889, allocations: 6.812 MB / 334.6 MB, free: 3.781 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008076/0.197, allocations: 4.587 MB / 339.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002074/0.199, allocations: 0.7383 MB / 339.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00362/0.2027, allocations: 1.865 MB / 341.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004246/0.2069, allocations: 4.115 MB / 345.9 MB, free: 8.453 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004488/0.2114, allocations: 2.591 MB / 348.5 MB, free: 5.855 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.2217, allocations: 8.415 MB / 356.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2217, allocations: 0 / 356.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2217, allocations: 0 / 356.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004165/0.2221, allocations: 0 / 356.9 MB, free: 13.41 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01355/0.2356, allocations: 8.233 MB / 365.1 MB, free: 5.105 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2357, allocations: 16.03 kB / 365.1 MB, free: 5.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006507/0.2422, allocations: 2.03 MB / 367.2 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006377/0.2486, allocations: 4.16 MB / 371.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002566/0.2488, allocations: 431.7 kB / 371.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009309/0.2497, allocations: 0.586 MB / 372.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.2617, allocations: 8.289 MB / 380.6 MB, free: 4.504 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001947/0.2619, allocations: 79.39 kB / 380.7 MB, free: 4.426 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005082/0.2624, allocations: 267.8 kB / 381 MB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001981/0.2644, allocations: 2.323 MB / 383.3 MB, free: 1.832 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009155/0.2735, allocations: 4.076 MB / 387.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2882/0.5617, allocations: 47.82 MB / 435.2 MB, free: 82.23 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008056/0.5698, allocations: 3.039 MB / 438.2 MB, free: 82 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.571, allocations: 0.6769 MB / 438.9 MB, free: 81.97 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01041/0.5815, allocations: 6.784 MB / 445.7 MB, free: 81.15 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.5815, allocations: 59.88 kB / 445.7 MB, free: 81.11 MB / 378.8 MB Notification: Performance of pre-optimization done (n=227): time 4.979e-06/0.5815, allocations: 1.625 kB / 445.7 MB, free: 81.11 MB / 378.8 MB Notification: Performance of matching and sorting (n=276): time 0.04316/0.6247, allocations: 17.63 MB / 463.4 MB, free: 77.8 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.6247, allocations: 371.1 kB / 463.7 MB, free: 77.36 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004467/0.6292, allocations: 5.066 MB / 468.8 MB, free: 73.79 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003238/0.6295, allocations: 66.33 kB / 468.9 MB, free: 73.75 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001606/0.6311, allocations: 4.636 MB / 473.5 MB, free: 69.8 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000788/0.6319, allocations: 1.094 MB / 474.6 MB, free: 68.88 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001251/0.6332, allocations: 1.724 MB / 476.3 MB, free: 67.58 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.018e-05/0.6332, allocations: 301.1 kB / 476.6 MB, free: 67.28 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001796/0.635, allocations: 1.202 MB / 477.8 MB, free: 66.07 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002781/0.6378, allocations: 6.496 MB / 484.3 MB, free: 57.02 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004707/0.6425, allocations: 8.277 MB / 492.6 MB, free: 46.85 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.986e-05/0.6426, allocations: 52 kB / 492.6 MB, free: 46.8 MB / 378.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.007728/0.6503, allocations: 6.742 MB / 499.4 MB, free: 40.01 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.871e-05/0.6503, allocations: 84 kB / 499.5 MB, free: 39.93 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/0.6505, allocations: 184 kB / 499.6 MB, free: 39.75 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003013/0.6535, allocations: 1.455 MB / 0.4893 GB, free: 38.29 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003106/0.6566, allocations: 1.996 MB / 0.4913 GB, free: 36.29 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006015/0.6626, allocations: 6.731 MB / 0.4979 GB, free: 29.27 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004722/0.6673, allocations: 395.6 kB / 0.4982 GB, free: 28.88 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006351/0.668, allocations: 456 kB / 0.4987 GB, free: 28.43 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1111): * Single equations (assignments): 1104 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.001988/0.6699, allocations: 0.848 MB / 0.4995 GB, free: 27.57 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008859/0.6708, allocations: 367.6 kB / 0.4999 GB, free: 27.21 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003369/0.6742, allocations: 2.27 MB / 0.5021 GB, free: 24.92 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.368e-05/0.6742, allocations: 28 kB / 0.5021 GB, free: 24.89 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.6742, allocations: 4 kB / 0.5021 GB, free: 24.89 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.6742, allocations: 19.89 kB / 0.5021 GB, free: 24.87 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01097/0.6852, allocations: 8.293 MB / 0.5102 GB, free: 16.2 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/0.6852, allocations: 16.97 kB / 0.5102 GB, free: 16.18 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007904/0.686, allocations: 391.4 kB / 0.5106 GB, free: 15.8 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002781/0.6888, allocations: 1.418 MB / 0.512 GB, free: 14.37 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001576/0.689, allocations: 75.92 kB / 0.5121 GB, free: 14.29 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005228/0.6942, allocations: 6.593 MB / 0.5185 GB, free: 7.398 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.161e-05/0.6942, allocations: 31.88 kB / 0.5185 GB, free: 7.367 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004633/0.6988, allocations: 3.772 MB / 0.5222 GB, free: 3.18 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/0.7004, allocations: 0.5469 MB / 0.5228 GB, free: 2.629 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005769/0.701, allocations: 71.98 kB / 0.5228 GB, free: 2.559 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.7022, allocations: 75.98 kB / 0.5229 GB, free: 2.484 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003281/0.7025, allocations: 244.4 kB / 0.5231 GB, free: 2.246 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.7026, allocations: 79.98 kB / 0.5232 GB, free: 2.168 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001955/0.7046, allocations: 1.997 MB / 0.5252 GB, free: 204 kB / 378.8 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7046, allocations: 0 / 0.5252 GB, free: 204 kB / 378.8 MB Notification: Performance of remove unused functions: time 0.006043/0.7106, allocations: 1.883 MB / 0.527 GB, free: 14.32 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * Number of states: 2 (revolute1.phi,revolute1.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 (219): * Single equations (assignments): 212 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007173/0.7113, allocations: 306.4 kB / 0.5273 GB, free: 14.01 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.006123/0.7175, allocations: 4.265 MB / 0.5315 GB, free: 9.719 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0003002/0.7178, allocations: 124.2 kB / 0.5316 GB, free: 9.59 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001802/0.7196, allocations: 1.354 MB / 0.5329 GB, free: 8.199 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004652/0.7242, allocations: 1.175 MB / 0.534 GB, free: 7.051 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0188/0.743, allocations: 12.95 MB / 0.5467 GB, free: 9.738 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00269/0.7457, allocations: 2.126 MB / 0.5488 GB, free: 7.586 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.002363/0.7481, allocations: 0.7872 MB / 0.5495 GB, free: 6.797 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/0.7496, allocations: 0.9053 MB / 0.5504 GB, free: 5.887 MB / 410.8 MB Notification: Performance of SimCode: time 2.284e-06/0.7496, allocations: 0 / 0.5504 GB, free: 5.887 MB / 410.8 MB Notification: Performance of Templates: time 0.2026/0.9522, allocations: 69 MB / 0.6178 GB, free: 148.9 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.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: 4.949574418831617]