Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009975/0.0009975, allocations: 79.73 kB / 21.97 MB, free: 2.594 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.0009575/0.0009575, allocations: 169.4 kB / 25.33 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9093/0.9093, allocations: 158.6 MB / 187.2 MB, free: 2.488 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.492e-06/1.492e-06, allocations: 0 / 251 MB, free: 3.578 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.727e-05/2.876e-05, allocations: 2.312 kB / 251 MB, free: 3.574 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01369/0.01372, allocations: 18.06 MB / 269.1 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.02424, allocations: 6.096 MB / 275.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001656/0.0259, allocations: 171.1 kB / 275.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007992/0.03389, allocations: 6.772 MB / 282.1 MB, free: 4.359 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00845/0.04234, allocations: 3.064 MB / 285.2 MB, free: 1.281 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006162/0.0485, allocations: 2.522 MB / 287.7 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01551/0.06401, allocations: 10.13 MB / 297.9 MB, free: 4.613 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1449/0.2089, allocations: 7.471 MB / 305.3 MB, free: 19.94 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01525/0.2242, allocations: 6.187 MB / 311.5 MB, free: 19.94 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007787/0.2319, allocations: 4.789 MB / 316.3 MB, free: 19.94 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003024/0.235, allocations: 0.7477 MB / 317 MB, free: 19.93 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005295/0.2403, allocations: 1.884 MB / 318.9 MB, free: 19.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005897/0.2462, allocations: 4.144 MB / 323.1 MB, free: 19.09 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005526/0.2517, allocations: 2.613 MB / 325.7 MB, free: 17.91 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.2634, allocations: 8.479 MB / 334.2 MB, free: 14.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.2634, allocations: 3.219 kB / 334.2 MB, free: 14.84 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.607e-06/0.2634, allocations: 3 kB / 334.2 MB, free: 14.84 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000558/0.2639, allocations: 0 / 334.2 MB, free: 14.84 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.01832/0.2822, allocations: 9.82 MB / 344 MB, free: 7.562 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.2823, allocations: 11.98 kB / 344 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02263/0.3049, allocations: 5.608 MB / 349.6 MB, free: 1.977 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009435/0.3144, allocations: 5.2 MB / 354.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002909/0.3146, allocations: 436 kB / 355.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0019/0.3165, allocations: 0.5842 MB / 355.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02047/0.337, allocations: 10.53 MB / 366.4 MB, free: 444 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002519/0.3373, allocations: 73.34 kB / 366.4 MB, free: 396 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007923/0.3381, allocations: 272.5 kB / 366.7 MB, free: 168 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002526/0.3406, allocations: 2.491 MB / 369.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/0.3553, allocations: 5.684 MB / 374.9 MB, free: 8.285 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06352/0.4189, allocations: 66.33 MB / 441.2 MB, free: 4.871 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/0.429, allocations: 4.409 MB / 445.6 MB, free: 432 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1313/0.5602, allocations: 1.005 MB / 446.6 MB, free: 125.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0158/0.576, allocations: 7.897 MB / 454.5 MB, free: 124 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.251e-05/0.5761, allocations: 64.3 kB / 454.6 MB, free: 123.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=227): time 5.37e-06/0.5761, allocations: 0 / 454.6 MB, free: 123.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=276): time 0.06649/0.6426, allocations: 31.85 MB / 486.4 MB, free: 112.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.619e-05/0.6427, allocations: 364.1 kB / 486.8 MB, free: 112.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006192/0.6488, allocations: 5.764 MB / 492.5 MB, free: 107.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004926/0.6493, allocations: 68.36 kB / 492.6 MB, free: 107.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00205/0.6514, allocations: 5.328 MB / 497.9 MB, free: 101.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001035/0.6524, allocations: 1.143 MB / 499.1 MB, free: 100.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001539/0.654, allocations: 1.943 MB / 0.4893 GB, free: 98.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.098e-05/0.654, allocations: 480.8 kB / 0.4897 GB, free: 98.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.6556, allocations: 1.091 MB / 0.4908 GB, free: 97.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003452/0.6591, allocations: 9.113 MB / 0.4997 GB, free: 84.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006796/0.6659, allocations: 10.96 MB / 0.5104 GB, free: 70.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001536/0.666, allocations: 52 kB / 0.5105 GB, free: 70.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01355/0.6796, allocations: 8.989 MB / 0.5192 GB, free: 61.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.984e-05/0.6797, allocations: 84 kB / 0.5193 GB, free: 61.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001655/0.6799, allocations: 187.1 kB / 0.5195 GB, free: 61.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004254/0.6841, allocations: 2.07 MB / 0.5215 GB, free: 58.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004392/0.6885, allocations: 2.09 MB / 0.5236 GB, free: 56.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008469/0.697, allocations: 9.248 MB / 0.5326 GB, free: 47.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006203/0.7032, allocations: 0.7163 MB / 0.5333 GB, free: 46.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001307/0.7045, allocations: 0.5195 MB / 0.5338 GB, free: 46.03 MB / 378.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.003331/0.7078, allocations: 0.8895 MB / 0.5347 GB, free: 45.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001549/0.7094, allocations: 0.6214 MB / 0.5353 GB, free: 44.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005582/0.7149, allocations: 3.314 MB / 0.5385 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.437e-05/0.715, allocations: 32 kB / 0.5385 GB, free: 41.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-05/0.715, allocations: 4 kB / 0.5385 GB, free: 41.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.102e-05/0.715, allocations: 11.95 kB / 0.5386 GB, free: 41.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01994/0.735, allocations: 10.4 MB / 0.5487 GB, free: 30.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.999e-05/0.735, allocations: 16 kB / 0.5487 GB, free: 30.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.7361, allocations: 464.1 kB / 0.5492 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003386/0.7395, allocations: 1.687 MB / 0.5508 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003718/0.7398, allocations: 71.98 kB / 0.5509 GB, free: 28.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007231/0.7471, allocations: 8.982 MB / 0.5597 GB, free: 18.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.199e-05/0.7471, allocations: 27.88 kB / 0.5597 GB, free: 18.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006728/0.7538, allocations: 5.013 MB / 0.5646 GB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002276/0.7561, allocations: 0.9607 MB / 0.5655 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001137/0.7572, allocations: 75.92 kB / 0.5656 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002013/0.7592, allocations: 306.4 kB / 0.5659 GB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004068/0.7597, allocations: 240.5 kB / 0.5661 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/0.7598, allocations: 104 kB / 0.5662 GB, free: 11.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.1512/0.911, allocations: 2.625 MB / 0.5688 GB, free: 98.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.911, allocations: 1.188 kB / 0.5688 GB, free: 98.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.009578/0.9206, allocations: 1.905 MB / 0.5706 GB, free: 98.88 MB / 378.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.0009172/0.9215, allocations: 317.6 kB / 0.5709 GB, free: 98.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01078/0.9323, allocations: 5.218 MB / 0.576 GB, free: 97.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.72e-05/0.9323, allocations: 4.094 kB / 0.576 GB, free: 97.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002728/0.935, allocations: 1.825 MB / 0.5778 GB, free: 97.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0051/0.9401, allocations: 0.8453 MB / 0.5786 GB, free: 97.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02245/0.9626, allocations: 13.36 MB / 0.5917 GB, free: 91.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00286/0.9654, allocations: 2.148 MB / 0.5938 GB, free: 91.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004638/0.9701, allocations: 2.252 MB / 0.596 GB, free: 91.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001199/0.9713, allocations: 366.3 kB / 0.5963 GB, free: 91.07 MB / 378.7 MB Notification: Performance of SimCode: time 2.505e-06/0.9713, allocations: 0 / 0.5963 GB, free: 91.07 MB / 378.7 MB Notification: Performance of Templates: time 0.08034/1.052, allocations: 67.26 MB / 0.662 GB, free: 33.93 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.143589121289551]