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.001487/0.001487, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001196/0.001196, allocations: 162.8 kB / 25.61 MB, free: 8.902 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.95/0.95, allocations: 177.1 MB / 206.1 MB, free: 4.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.052e-06/1.052e-06, allocations: 0 / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.816e-05/1.922e-05, allocations: 2.312 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01225/0.01227, allocations: 16.94 MB / 291.1 MB, free: 3.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009908/0.02218, allocations: 5.939 MB / 297.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002353/0.02453, allocations: 175.1 kB / 297.2 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006184/0.03071, allocations: 6.62 MB / 303.9 MB, free: 6.648 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005097/0.03581, allocations: 3.001 MB / 306.9 MB, free: 3.633 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00317/0.03898, allocations: 2.514 MB / 309.4 MB, free: 1.113 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009634/0.04862, allocations: 11.14 MB / 320.5 MB, free: 5.957 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007353/0.05597, allocations: 7.447 MB / 328 MB, free: 14.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008839/0.06481, allocations: 6.89 MB / 334.9 MB, free: 7.512 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006159/0.07097, allocations: 4.782 MB / 339.6 MB, free: 2.719 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001524/0.07249, allocations: 0.7383 MB / 340.4 MB, free: 1.98 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002996/0.07549, allocations: 1.881 MB / 342.3 MB, free: 100 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1414/0.2169, allocations: 4.098 MB / 346.3 MB, free: 36.99 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005531/0.2224, allocations: 2.582 MB / 348.9 MB, free: 36.99 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009816/0.2322, allocations: 8.421 MB / 357.4 MB, free: 36.26 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2322, allocations: 4.344 kB / 357.4 MB, free: 36.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2322, allocations: 3.375 kB / 357.4 MB, free: 36.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003511/0.2326, allocations: 0.8438 kB / 357.4 MB, free: 36.26 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.01228/0.2449, allocations: 9.129 MB / 366.5 MB, free: 32.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.2449, allocations: 9.219 kB / 366.5 MB, free: 32.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02097/0.2659, allocations: 4.671 MB / 371.2 MB, free: 31.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00679/0.2727, allocations: 4.428 MB / 375.6 MB, free: 29.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/0.2729, allocations: 434.2 kB / 376 MB, free: 29.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001135/0.274, allocations: 0.5797 MB / 376.6 MB, free: 29.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01212/0.2861, allocations: 9.163 MB / 385.8 MB, free: 21.58 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001836/0.2863, allocations: 83.86 kB / 385.8 MB, free: 21.53 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005706/0.2869, allocations: 272.8 kB / 386.1 MB, free: 21.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001601/0.2885, allocations: 2.324 MB / 388.4 MB, free: 19.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008698/0.2972, allocations: 4.168 MB / 392.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05611/0.3533, allocations: 65.09 MB / 457.7 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008737/0.362, allocations: 3.289 MB / 461 MB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.3634, allocations: 0.8491 MB / 461.8 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01099/0.3744, allocations: 7.32 MB / 469.1 MB, free: 2.871 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.1e-05/0.3744, allocations: 67.38 kB / 469.2 MB, free: 2.797 MB / 378.7 MB Notification: Performance of pre-optimization done (n=227): time 5.61e-06/0.3744, allocations: 4 kB / 469.2 MB, free: 2.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=276): time 0.1951/0.5695, allocations: 21.21 MB / 490.4 MB, free: 128 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.799e-05/0.5696, allocations: 370 kB / 490.8 MB, free: 127.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006585/0.5762, allocations: 5.612 MB / 496.4 MB, free: 126.9 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004909/0.5767, allocations: 66.73 kB / 496.5 MB, free: 126.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002897/0.5796, allocations: 5.371 MB / 0.4901 GB, free: 123.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001327/0.5809, allocations: 1.147 MB / 0.4912 GB, free: 123.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002042/0.583, allocations: 1.988 MB / 0.4931 GB, free: 123.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.936e-05/0.583, allocations: 484 kB / 0.4936 GB, free: 122.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001714/0.5847, allocations: 0.9708 MB / 0.4946 GB, free: 122.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003944/0.5887, allocations: 9.044 MB / 0.5034 GB, free: 112.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006041/0.5947, allocations: 10.65 MB / 0.5138 GB, free: 101.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001176/0.5948, allocations: 54.41 kB / 0.5138 GB, free: 101.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01041/0.6053, allocations: 7.849 MB / 0.5215 GB, free: 99.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.753e-05/0.6053, allocations: 86.34 kB / 0.5216 GB, free: 98.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/0.6055, allocations: 184.7 kB / 0.5218 GB, free: 98.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003186/0.6086, allocations: 1.457 MB / 0.5232 GB, free: 97.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003258/0.6119, allocations: 1.997 MB / 0.5251 GB, free: 95.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006533/0.6184, allocations: 8.541 MB / 0.5335 GB, free: 87.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005219/0.6237, allocations: 399.5 kB / 0.5339 GB, free: 87.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006274/0.6243, allocations: 463.8 kB / 0.5343 GB, free: 86.8 MB / 394.7 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.002463/0.6267, allocations: 0.8868 MB / 0.5352 GB, free: 85.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/0.6278, allocations: 0.6156 MB / 0.5358 GB, free: 85.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003862/0.6316, allocations: 2.571 MB / 0.5383 GB, free: 83.31 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-05/0.6317, allocations: 31.94 kB / 0.5383 GB, free: 83.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.6317, allocations: 8 kB / 0.5383 GB, free: 83.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.6317, allocations: 14.86 kB / 0.5383 GB, free: 83.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/0.6442, allocations: 9.607 MB / 0.5477 GB, free: 73.37 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.6442, allocations: 16 kB / 0.5477 GB, free: 73.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008045/0.645, allocations: 388.2 kB / 0.5481 GB, free: 72.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002623/0.6476, allocations: 1.176 MB / 0.5492 GB, free: 71.79 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001479/0.6477, allocations: 75.92 kB / 0.5493 GB, free: 71.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005492/0.6532, allocations: 8.382 MB / 0.5575 GB, free: 63 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/0.6532, allocations: 27.88 kB / 0.5575 GB, free: 62.97 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005152/0.6584, allocations: 4.372 MB / 0.5618 GB, free: 58.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.6597, allocations: 0.5782 MB / 0.5624 GB, free: 57.58 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005022/0.6602, allocations: 75.98 kB / 0.5624 GB, free: 57.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.6615, allocations: 71.98 kB / 0.5625 GB, free: 57.44 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003483/0.6618, allocations: 248.4 kB / 0.5627 GB, free: 57.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.6619, allocations: 83.98 kB / 0.5628 GB, free: 57.11 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002285/0.6642, allocations: 2.363 MB / 0.5651 GB, free: 54.78 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.6642, allocations: 0 / 0.5651 GB, free: 54.78 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006826/0.671, allocations: 1.884 MB / 0.567 GB, free: 52.89 MB / 394.7 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.0007462/0.6718, allocations: 319.5 kB / 0.5673 GB, free: 52.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005741/0.6775, allocations: 4.772 MB / 0.5719 GB, free: 47.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.515e-05/0.6775, allocations: 8.062 kB / 0.5719 GB, free: 47.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.6791, allocations: 1.63 MB / 0.5735 GB, free: 46.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00334/0.6824, allocations: 0.8583 MB / 0.5744 GB, free: 45.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01759/0.7, allocations: 13.2 MB / 0.5873 GB, free: 31.62 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001815/0.7018, allocations: 2.134 MB / 0.5893 GB, free: 29.45 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002273/0.7041, allocations: 0.7855 MB / 0.5901 GB, free: 28.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001314/0.7054, allocations: 0.9666 MB / 0.591 GB, free: 27.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.703e-06/0.7054, allocations: 4 kB / 0.5911 GB, free: 27.7 MB / 394.7 MB Notification: Performance of Templates: time 0.2079/0.9133, allocations: 70.71 MB / 0.6601 GB, free: 87.22 MB / 394.7 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: 5.641256906092167]