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.001953/0.001953, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 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.00206/0.00206, allocations: 206.1 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001665/0.001665, allocations: 47.92 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2912, allocations: 53.37 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02/0.3112, allocations: 15.6 MB / 447.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.3248, allocations: 5.846 MB / 453 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00351/0.3283, allocations: 171.1 kB / 453.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0123/0.3406, allocations: 6.071 MB / 459.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007989/0.3486, allocations: 2.903 MB / 462.2 MB, free: 8.027 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00523/0.3539, allocations: 2.242 MB / 464.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01385/0.3677, allocations: 9.72 MB / 474.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009927/0.3776, allocations: 6.227 MB / 480.4 MB, free: 5.719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007996/0.3856, allocations: 3.249 MB / 483.6 MB, free: 2.461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007458/0.3931, allocations: 4.479 MB / 488.1 MB, free: 13.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002297/0.3954, allocations: 0.7148 MB / 488.8 MB, free: 13.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004692/0.4001, allocations: 1.81 MB / 490.6 MB, free: 11.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005492/0.4056, allocations: 3.884 MB / 494.5 MB, free: 7.547 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007076/0.4126, allocations: 3.139 MB / 497.6 MB, free: 4.391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01975/0.4324, allocations: 13.29 MB / 0.4989 GB, free: 7.055 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.4324, allocations: 4 kB / 0.499 GB, free: 7.051 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4324, allocations: 0 / 0.499 GB, free: 7.051 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005269/0.4329, allocations: 0 / 0.499 GB, free: 7.051 MB / 414.1 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.02459/0.4575, allocations: 9.074 MB / 0.5078 GB, free: 13.9 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.4576, allocations: 8.031 kB / 0.5078 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04875/0.5063, allocations: 4.892 MB / 0.5126 GB, free: 8.988 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01968/0.526, allocations: 6.319 MB / 0.5188 GB, free: 2.586 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005096/0.5265, allocations: 439.6 kB / 0.5192 GB, free: 2.156 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002604/0.5291, allocations: 0.5857 MB / 0.5198 GB, free: 1.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4593/0.9884, allocations: 17.26 MB / 0.5366 GB, free: 91.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003726/0.9888, allocations: 83.25 kB / 0.5367 GB, free: 91.49 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001353/0.9902, allocations: 268 kB / 0.5369 GB, free: 91.49 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004915/0.9951, allocations: 2.663 MB / 0.5396 GB, free: 91.22 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02823/1.023, allocations: 14.74 MB / 0.5539 GB, free: 85.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07153/1.095, allocations: 59.34 MB / 0.6119 GB, free: 25.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02008/1.115, allocations: 8.044 MB / 0.6198 GB, free: 17.58 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004768/1.12, allocations: 4.731 MB / 0.6244 GB, free: 12.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0265/1.146, allocations: 16.94 MB / 0.6409 GB, free: 12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.974e-05/1.146, allocations: 68.5 kB / 0.641 GB, free: 11.92 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.563e-06/1.146, allocations: 0 / 0.641 GB, free: 11.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2721/1.418, allocations: 74.32 MB / 0.7136 GB, free: 1.977 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002527/1.419, allocations: 380.6 kB / 0.7139 GB, free: 1.523 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009437/1.428, allocations: 6.115 MB / 0.7199 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001134/1.429, allocations: 85.69 kB / 0.72 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004443/1.434, allocations: 4.968 MB / 0.7248 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002419/1.436, allocations: 1.446 MB / 0.7262 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003442/1.439, allocations: 1.984 MB / 0.7282 GB, free: 3.043 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001358/1.44, allocations: 301.1 kB / 0.7285 GB, free: 2.746 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00882/1.448, allocations: 5.992 MB / 0.7343 GB, free: 12.74 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2623/1.711, allocations: 11.22 MB / 0.7453 GB, free: 183 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02241/1.733, allocations: 17.97 MB / 0.7628 GB, free: 171.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002806/1.733, allocations: 50.09 kB / 0.7629 GB, free: 171.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04344/1.777, allocations: 23.25 MB / 0.7856 GB, free: 162.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001102/1.777, allocations: 84.06 kB / 0.7856 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001748/1.777, allocations: 172 kB / 0.7858 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02055/1.798, allocations: 7.429 MB / 0.7931 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007912/1.806, allocations: 2.191 MB / 0.7952 GB, free: 153.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04203/1.848, allocations: 37.31 MB / 0.8316 GB, free: 116.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009136/1.857, allocations: 0.7448 MB / 0.8324 GB, free: 115.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002148/1.859, allocations: 0.5271 MB / 0.8329 GB, free: 115 MB / 0.545 GB 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.006618/1.866, allocations: 3.433 MB / 0.8362 GB, free: 111.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001678/1.867, allocations: 0.5608 MB / 0.8368 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02971/1.897, allocations: 16.84 MB / 0.8532 GB, free: 94.55 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/1.897, allocations: 51.98 kB / 0.8533 GB, free: 94.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.276e-05/1.897, allocations: 20 kB / 0.8533 GB, free: 94.48 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-05/1.897, allocations: 20.67 kB / 0.8533 GB, free: 94.46 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05193/1.949, allocations: 29.4 MB / 0.882 GB, free: 64.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.289e-05/1.949, allocations: 4 kB / 0.882 GB, free: 64.83 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0033/1.952, allocations: 0.6086 MB / 0.8826 GB, free: 64.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01947/1.972, allocations: 6.998 MB / 0.8894 GB, free: 57.21 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001033/1.973, allocations: 67.5 kB / 0.8895 GB, free: 57.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03968/2.013, allocations: 35.53 MB / 0.9242 GB, free: 21.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/2.013, allocations: 4.062 kB / 0.9242 GB, free: 21.53 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03986/2.052, allocations: 24.51 MB / 0.9481 GB, free: 12.96 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2569/2.309, allocations: 0.5308 MB / 0.9487 GB, free: 191.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002031/2.311, allocations: 60.08 kB / 0.9487 GB, free: 191.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005005/2.316, allocations: 444.2 kB / 0.9491 GB, free: 191.6 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001285/2.318, allocations: 265.5 kB / 0.9494 GB, free: 191.6 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004004/2.318, allocations: 96.12 kB / 0.9495 GB, free: 191.6 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.00548/2.324, allocations: 3.66 MB / 0.9531 GB, free: 191.5 MB / 0.5607 GB Notification: Performance of sort global known variables: time 9e-08/2.324, allocations: 0 / 0.9531 GB, free: 191.5 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008612/2.332, allocations: 2.273 MB / 0.9553 GB, free: 191.5 MB / 0.5607 GB 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.001052/2.333, allocations: 283.1 kB / 0.9556 GB, free: 191.4 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01927/2.352, allocations: 14.21 MB / 0.9694 GB, free: 187.6 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/2.352, allocations: 0 / 0.9694 GB, free: 187.6 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.009597/2.362, allocations: 6.16 MB / 0.9754 GB, free: 185.1 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01047/2.373, allocations: 0.8039 MB / 0.9762 GB, free: 184.8 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04894/2.421, allocations: 20.26 MB / 0.996 GB, free: 169.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01093/2.432, allocations: 4.795 MB / 1.001 GB, free: 165.7 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01271/2.445, allocations: 2.974 MB / 1.004 GB, free: 163.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003296/2.448, allocations: 358.8 kB / 1.004 GB, free: 163.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.362e-06/2.448, allocations: 5.125 kB / 1.004 GB, free: 163.5 MB / 0.5607 GB Notification: Performance of Templates: time 0.1471/2.595, allocations: 112.7 MB / 1.114 GB, free: 52.79 MB / 0.5607 GB " [Timeout remaining time 657] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.785575042013079]