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.001425/0.001425, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.001588/0.001588, allocations: 161 kB / 24.56 MB, free: 12 kB / 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.9172/0.9172, allocations: 177.1 MB / 205 MB, free: 5.602 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.332e-06/1.332e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.827e-05/1.961e-05, allocations: 2.312 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.1356/0.1356, allocations: 17.54 MB / 290.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.1462, allocations: 5.977 MB / 296.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002835/0.1491, allocations: 172.8 kB / 296.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007221/0.1563, allocations: 6.752 MB / 303.4 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005453/0.1617, allocations: 2.996 MB / 306.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003248/0.165, allocations: 2.532 MB / 308.9 MB, free: 8.586 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007792/0.1728, allocations: 11.13 MB / 320.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006363/0.1791, allocations: 7.448 MB / 327.5 MB, free: 10.52 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007017/0.1862, allocations: 6.868 MB / 334.4 MB, free: 4.004 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004808/0.191, allocations: 4.763 MB / 339.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00119/0.1922, allocations: 0.7421 MB / 339.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00252/0.1947, allocations: 1.881 MB / 341.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002584/0.1973, allocations: 4.107 MB / 345.9 MB, free: 8.488 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00218/0.1994, allocations: 2.591 MB / 348.5 MB, free: 5.891 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007332/0.2068, allocations: 8.418 MB / 356.9 MB, free: 13.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2068, allocations: 0 / 356.9 MB, free: 13.44 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2068, allocations: 0 / 356.9 MB, free: 13.44 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.152e-05/0.2069, allocations: 0 / 356.9 MB, free: 13.44 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.01057/0.2174, allocations: 9.791 MB / 366.7 MB, free: 3.566 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2175, allocations: 8.031 kB / 366.7 MB, free: 3.559 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02141/0.2389, allocations: 5.615 MB / 372.3 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007177/0.246, allocations: 5.095 MB / 377.4 MB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/0.2463, allocations: 431.7 kB / 377.8 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006856/0.2469, allocations: 0.5898 MB / 378.4 MB, free: 7.738 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.2607, allocations: 10.52 MB / 388.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.2608, allocations: 71.41 kB / 389 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000443/0.2613, allocations: 267.8 kB / 389.3 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002185/0.2635, allocations: 2.499 MB / 391.8 MB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/0.2743, allocations: 5.683 MB / 397.4 MB, free: 3.348 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2862/0.5605, allocations: 66.12 MB / 463.6 MB, free: 63.55 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009965/0.5705, allocations: 4.431 MB / 468 MB, free: 63.39 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001544/0.572, allocations: 1.013 MB / 469 MB, free: 63.34 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01002/0.582, allocations: 7.855 MB / 476.9 MB, free: 62.03 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.5821, allocations: 60.05 kB / 476.9 MB, free: 61.99 MB / 378.8 MB Notification: Performance of pre-optimization done (n=227): time 5.019e-06/0.5821, allocations: 2.812 kB / 476.9 MB, free: 61.99 MB / 378.8 MB Notification: Performance of matching and sorting (n=276): time 0.06076/0.6428, allocations: 31.71 MB / 0.4967 GB, free: 40.55 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.6429, allocations: 372.1 kB / 0.4971 GB, free: 40.11 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0044/0.6473, allocations: 5.687 MB / 0.5026 GB, free: 34.66 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000294/0.6476, allocations: 65.7 kB / 0.5027 GB, free: 34.59 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001769/0.6494, allocations: 5.329 MB / 0.5079 GB, free: 29.66 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007225/0.6501, allocations: 1.128 MB / 0.509 GB, free: 28.55 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.6514, allocations: 1.958 MB / 0.5109 GB, free: 26.57 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.418e-05/0.6515, allocations: 483.4 kB / 0.5114 GB, free: 26.1 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.6529, allocations: 1.087 MB / 0.5124 GB, free: 25.01 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003029/0.6559, allocations: 9.108 MB / 0.5213 GB, free: 12.36 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006337/0.6622, allocations: 10.98 MB / 0.532 GB, free: 14.37 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/0.6623, allocations: 52 kB / 0.5321 GB, free: 14.32 MB / 394.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01346/0.6758, allocations: 8.97 MB / 0.5409 GB, free: 5.332 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.973e-05/0.6759, allocations: 87.94 kB / 0.5409 GB, free: 5.246 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001585/0.676, allocations: 188.2 kB / 0.5411 GB, free: 5.062 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004449/0.6805, allocations: 2.069 MB / 0.5431 GB, free: 2.984 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003897/0.6844, allocations: 2.086 MB / 0.5452 GB, free: 0.8945 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009182/0.6936, allocations: 9.276 MB / 0.5542 GB, free: 7.27 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0052/0.6988, allocations: 0.6893 MB / 0.5549 GB, free: 6.582 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007997/0.6996, allocations: 0.5234 MB / 0.5554 GB, free: 6.059 MB / 410.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.002166/0.7017, allocations: 0.8838 MB / 0.5563 GB, free: 5.16 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001214/0.7029, allocations: 0.613 MB / 0.5569 GB, free: 4.547 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005057/0.708, allocations: 3.308 MB / 0.5601 GB, free: 1.211 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.84e-05/0.708, allocations: 31.98 kB / 0.5601 GB, free: 1.18 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.708, allocations: 11.98 kB / 0.5602 GB, free: 1.168 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/0.7081, allocations: 15.89 kB / 0.5602 GB, free: 1.152 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01583/0.7239, allocations: 10.35 MB / 0.5703 GB, free: 6.457 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.117e-05/0.7239, allocations: 20 kB / 0.5703 GB, free: 6.438 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/0.7252, allocations: 455.2 kB / 0.5707 GB, free: 5.992 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003493/0.7287, allocations: 1.695 MB / 0.5724 GB, free: 4.289 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/0.7288, allocations: 64 kB / 0.5724 GB, free: 4.227 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1372/0.8661, allocations: 8.971 MB / 0.5812 GB, free: 132.4 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-05/0.8661, allocations: 33.34 kB / 0.5812 GB, free: 132.4 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007375/0.8735, allocations: 4.998 MB / 0.5861 GB, free: 130.5 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001487/0.875, allocations: 0.6091 MB / 0.5867 GB, free: 130.5 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006583/0.8756, allocations: 68.89 kB / 0.5868 GB, free: 130.5 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/0.8772, allocations: 287.1 kB / 0.5871 GB, free: 130.5 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00045/0.8776, allocations: 253.2 kB / 0.5873 GB, free: 130.5 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/0.8778, allocations: 94.22 kB / 0.5874 GB, free: 130.5 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.00347/0.8812, allocations: 2.578 MB / 0.5899 GB, free: 130.2 MB / 426.8 MB Notification: Performance of sort global known variables: time 2.5e-07/0.8812, allocations: 0 / 0.5899 GB, free: 130.2 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.00596/0.8872, allocations: 1.879 MB / 0.5917 GB, free: 130.2 MB / 426.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.0006804/0.8879, allocations: 330.7 kB / 0.592 GB, free: 130.2 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.006639/0.8945, allocations: 5.215 MB / 0.5971 GB, free: 129.4 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/0.8945, allocations: 7.359 kB / 0.5971 GB, free: 129.4 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/0.8964, allocations: 1.822 MB / 0.5989 GB, free: 128.7 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003318/0.8998, allocations: 0.8446 MB / 0.5998 GB, free: 128.7 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/0.9151, allocations: 13.28 MB / 0.6127 GB, free: 122.9 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001812/0.9169, allocations: 2.136 MB / 0.6148 GB, free: 121.9 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003792/0.9207, allocations: 2.26 MB / 0.617 GB, free: 120.6 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008168/0.9216, allocations: 362.7 kB / 0.6174 GB, free: 120.3 MB / 426.8 MB Notification: Performance of SimCode: time 2.304e-06/0.9216, allocations: 0 / 0.6174 GB, free: 120.3 MB / 426.8 MB Notification: Performance of Templates: time 0.07486/0.9964, allocations: 66.35 MB / 0.6822 GB, free: 57.03 MB / 426.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.970713657792658]