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.001414/0.001414, allocations: 85.39 kB / 21.44 MB, free: 296 kB / 14.72 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.001652/0.001652, allocations: 163.9 kB / 24.7 MB, free: 3.551 MB / 14.72 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 1.411/1.411, allocations: 158.6 MB / 186.5 MB, free: 6.406 MB / 174.1 MB " [Timeout remaining time 178] 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 3.116e-06/3.116e-06, allocations: 0 / 298.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.18e-05/4.491e-05, allocations: 6.281 kB / 298.9 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02121/0.02125, allocations: 16.08 MB / 315 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01774/0.03899, allocations: 5.956 MB / 321 MB, free: 2.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005363/0.04435, allocations: 171.1 kB / 321.1 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2293/0.2737, allocations: 6.418 MB / 327.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008468/0.2821, allocations: 3.039 MB / 330.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005394/0.2875, allocations: 2.456 MB / 333.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01314/0.3007, allocations: 10.13 MB / 343.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0086/0.3093, allocations: 7.272 MB / 350.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007709/0.317, allocations: 4.969 MB / 355.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006882/0.3238, allocations: 4.677 MB / 360.1 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002031/0.3259, allocations: 0.7422 MB / 360.9 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00447/0.3303, allocations: 1.88 MB / 362.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004588/0.3349, allocations: 4.112 MB / 366.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004482/0.3394, allocations: 2.593 MB / 369.4 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01795/0.3574, allocations: 13.59 MB / 383 MB, free: 8.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3574, allocations: 0 / 383 MB, free: 8.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3574, allocations: 0 / 383 MB, free: 8.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004684/0.3578, allocations: 0 / 383 MB, free: 8.809 MB / 334.1 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.02751/0.3854, allocations: 9.24 MB / 392.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.3854, allocations: 11.98 kB / 392.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05488/0.4403, allocations: 5.058 MB / 397.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01883/0.4591, allocations: 6.505 MB / 403.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004995/0.4596, allocations: 437.5 kB / 404.3 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002712/0.4623, allocations: 0.5813 MB / 404.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04081/0.5031, allocations: 17.31 MB / 422.2 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004887/0.5036, allocations: 81.84 kB / 422.2 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00244/0.5061, allocations: 263.8 kB / 422.5 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00542/0.5115, allocations: 2.658 MB / 425.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03758/0.5491, allocations: 14.76 MB / 439.9 MB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5117/1.061, allocations: 60.18 MB / 0.4884 GB, free: 101.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02624/1.087, allocations: 8.286 MB / 0.4965 GB, free: 101.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0062/1.093, allocations: 4.731 MB / 0.5011 GB, free: 100.1 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0328/1.126, allocations: 17.51 MB / 0.5182 GB, free: 92.75 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001016/1.126, allocations: 66.5 kB / 0.5182 GB, free: 92.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 1.195e-05/1.126, allocations: 0 / 0.5182 GB, free: 92.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=374): time 0.2719/1.398, allocations: 76.86 MB / 0.5933 GB, free: 20.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/1.398, allocations: 379.9 kB / 0.5937 GB, free: 19.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009525/1.408, allocations: 6.653 MB / 0.6002 GB, free: 13.24 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009635/1.409, allocations: 85.7 kB / 0.6002 GB, free: 13.15 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/1.411, allocations: 4.93 MB / 0.6051 GB, free: 8.523 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001828/1.413, allocations: 1.417 MB / 0.6064 GB, free: 7.125 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002833/1.416, allocations: 1.97 MB / 0.6084 GB, free: 5.145 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.769e-05/1.416, allocations: 301.1 kB / 0.6087 GB, free: 4.848 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007735/1.423, allocations: 5.993 MB / 0.6145 GB, free: 14.85 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01674/1.44, allocations: 11.22 MB / 0.6255 GB, free: 1.215 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02797/1.468, allocations: 17.96 MB / 0.643 GB, free: 12.98 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001675/1.468, allocations: 52 kB / 0.6431 GB, free: 12.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2559/1.724, allocations: 23.25 MB / 0.6658 GB, free: 162.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001563/1.724, allocations: 78.69 kB / 0.6658 GB, free: 162.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002957/1.725, allocations: 172.3 kB / 0.666 GB, free: 162.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0232/1.748, allocations: 7.439 MB / 0.6733 GB, free: 161.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007807/1.756, allocations: 2.188 MB / 0.6754 GB, free: 161.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0453/1.801, allocations: 37.48 MB / 0.712 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009886/1.811, allocations: 0.8794 MB / 0.7129 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001483/1.812, allocations: 0.5273 MB / 0.7134 GB, free: 135.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * 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 (1091): * Single equations (assignments): 1084 * 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,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.005183/1.817, allocations: 3.435 MB / 0.7167 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001604/1.819, allocations: 0.5581 MB / 0.7173 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03105/1.85, allocations: 16.84 MB / 0.7337 GB, free: 115.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.646e-05/1.85, allocations: 55.64 kB / 0.7338 GB, free: 115.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.749e-05/1.85, allocations: 19.94 kB / 0.7338 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.842e-05/1.85, allocations: 19.94 kB / 0.7338 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05204/1.902, allocations: 29.7 MB / 0.7628 GB, free: 85.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.442e-05/1.902, allocations: 4 kB / 0.7628 GB, free: 85.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003357/1.906, allocations: 0.6006 MB / 0.7634 GB, free: 84.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02111/1.927, allocations: 7.018 MB / 0.7703 GB, free: 77.67 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009458/1.928, allocations: 64 kB / 0.7703 GB, free: 77.61 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04105/1.969, allocations: 35.72 MB / 0.8052 GB, free: 41.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/1.969, allocations: 7.938 kB / 0.8052 GB, free: 41.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03872/2.008, allocations: 24.5 MB / 0.8291 GB, free: 17.46 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004351/2.012, allocations: 1.674 MB / 0.8308 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.1912/2.203, allocations: 64.66 kB / 0.8308 GB, free: 161.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007414/2.211, allocations: 0.5592 MB / 0.8314 GB, free: 161.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002028/2.213, allocations: 264.4 kB / 0.8316 GB, free: 161.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005835/2.213, allocations: 95.86 kB / 0.8317 GB, free: 161.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007999/2.221, allocations: 4.066 MB / 0.8357 GB, free: 161 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/2.221, allocations: 0 / 0.8357 GB, free: 161 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01397/2.235, allocations: 2.631 MB / 0.8383 GB, free: 161 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (243): * Single equations (assignments): 236 * 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,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001908/2.237, allocations: 303.7 kB / 0.8386 GB, free: 160.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02375/2.261, allocations: 14.2 MB / 0.8524 GB, free: 157.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/2.261, allocations: 0 / 0.8524 GB, free: 157.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01056/2.271, allocations: 6.156 MB / 0.8584 GB, free: 154.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008536/2.28, allocations: 0.8132 MB / 0.8592 GB, free: 154.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03632/2.316, allocations: 20.33 MB / 0.8791 GB, free: 140.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00662/2.323, allocations: 4.806 MB / 0.8838 GB, free: 137.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006796/2.33, allocations: 2.988 MB / 0.8867 GB, free: 135.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002267/2.332, allocations: 382.6 kB / 0.8871 GB, free: 135 MB / 478.1 MB Notification: Performance of SimCode: time 1.332e-06/2.332, allocations: 0 / 0.8871 GB, free: 135 MB / 478.1 MB Notification: Performance of Templates: time 0.1405/2.472, allocations: 109.2 MB / 0.9937 GB, free: 26.56 MB / 478.1 MB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.79873363301158]