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.001328/0.001328, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.001543/0.001543, allocations: 210.5 kB / 23.73 MB, free: 4.406 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.484/1.484, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.002807/0.002807, allocations: 44.06 kB / 378.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3461, allocations: 53.38 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02002/0.3661, allocations: 15.59 MB / 447.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01325/0.3794, allocations: 5.85 MB / 453 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003258/0.3826, allocations: 167.1 kB / 453.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01228/0.3949, allocations: 6.075 MB / 459.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008098/0.403, allocations: 2.903 MB / 462.2 MB, free: 8.023 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005258/0.4082, allocations: 2.238 MB / 464.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01428/0.4225, allocations: 9.728 MB / 474.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009824/0.4323, allocations: 6.189 MB / 480.3 MB, free: 5.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005758/0.4381, allocations: 3.249 MB / 483.6 MB, free: 2.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007506/0.4456, allocations: 4.167 MB / 487.7 MB, free: 14.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002134/0.4477, allocations: 0.7148 MB / 488.5 MB, free: 13.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004461/0.4522, allocations: 1.795 MB / 490.2 MB, free: 11.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005324/0.4575, allocations: 3.881 MB / 494.1 MB, free: 7.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007368/0.4649, allocations: 3.136 MB / 497.3 MB, free: 4.758 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01929/0.4842, allocations: 13.28 MB / 0.4986 GB, free: 7.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4842, allocations: 4 kB / 0.4986 GB, free: 7.426 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.4842, allocations: 3.984 kB / 0.4986 GB, free: 7.422 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004299/0.4846, allocations: 4 kB / 0.4986 GB, free: 7.418 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.02177/0.5064, allocations: 9.076 MB / 0.5075 GB, free: 14.26 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.5064, allocations: 8.031 kB / 0.5075 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04799/0.5544, allocations: 4.888 MB / 0.5122 GB, free: 9.352 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01809/0.5725, allocations: 6.319 MB / 0.5184 GB, free: 2.953 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004354/0.573, allocations: 431.7 kB / 0.5188 GB, free: 2.531 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002381/0.5753, allocations: 0.5874 MB / 0.5194 GB, free: 1.945 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4632/1.038, allocations: 17.27 MB / 0.5363 GB, free: 94.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003635/1.039, allocations: 76.55 kB / 0.5363 GB, free: 94.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001351/1.04, allocations: 272.2 kB / 0.5366 GB, free: 94.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005018/1.045, allocations: 2.658 MB / 0.5392 GB, free: 94.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02763/1.073, allocations: 14.74 MB / 0.5536 GB, free: 86.12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06527/1.138, allocations: 59.35 MB / 0.6115 GB, free: 26.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02033/1.158, allocations: 8.04 MB / 0.6194 GB, free: 18.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00478/1.163, allocations: 4.733 MB / 0.624 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02368/1.187, allocations: 16.93 MB / 0.6405 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.079e-05/1.187, allocations: 72.48 kB / 0.6406 GB, free: 12.74 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.372e-06/1.187, allocations: 0 / 0.6406 GB, free: 12.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2687/1.456, allocations: 74.31 MB / 0.7132 GB, free: 2.801 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002547/1.456, allocations: 384.6 kB / 0.7136 GB, free: 2.344 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0103/1.466, allocations: 6.118 MB / 0.7195 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001316/1.468, allocations: 85.7 kB / 0.7196 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005013/1.473, allocations: 4.968 MB / 0.7245 GB, free: 7.309 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002868/1.475, allocations: 1.442 MB / 0.7259 GB, free: 5.855 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003985/1.479, allocations: 1.988 MB / 0.7278 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001346/1.48, allocations: 301.1 kB / 0.7281 GB, free: 3.559 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0093/1.489, allocations: 5.996 MB / 0.734 GB, free: 13.55 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2813/1.77, allocations: 11.23 MB / 0.7449 GB, free: 182.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01946/1.79, allocations: 17.96 MB / 0.7625 GB, free: 171.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001379/1.79, allocations: 51.97 kB / 0.7625 GB, free: 171.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04121/1.831, allocations: 23.24 MB / 0.7852 GB, free: 162.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.44e-05/1.831, allocations: 79.7 kB / 0.7853 GB, free: 162.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001511/1.831, allocations: 172 kB / 0.7854 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02114/1.852, allocations: 7.436 MB / 0.7927 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007247/1.86, allocations: 2.187 MB / 0.7948 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.042/1.902, allocations: 37.31 MB / 0.8313 GB, free: 116.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009652/1.911, allocations: 0.7453 MB / 0.832 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001729/1.913, allocations: 0.5273 MB / 0.8325 GB, free: 115.1 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.005579/1.918, allocations: 3.432 MB / 0.8359 GB, free: 111.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/1.92, allocations: 0.5601 MB / 0.8364 GB, free: 111.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0298/1.95, allocations: 16.84 MB / 0.8529 GB, free: 94.66 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.245e-05/1.95, allocations: 48 kB / 0.8529 GB, free: 94.61 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.369e-05/1.95, allocations: 23.94 kB / 0.8529 GB, free: 94.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.29e-05/1.95, allocations: 15.94 kB / 0.8529 GB, free: 94.57 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04976/2, allocations: 29.41 MB / 0.8817 GB, free: 64.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.763e-05/2, allocations: 4 kB / 0.8817 GB, free: 64.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003232/2.003, allocations: 0.6045 MB / 0.8822 GB, free: 64.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01964/2.022, allocations: 7.006 MB / 0.8891 GB, free: 57.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001033/2.023, allocations: 63.98 kB / 0.8892 GB, free: 57.24 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03995/2.063, allocations: 35.52 MB / 0.9238 GB, free: 21.63 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/2.063, allocations: 4 kB / 0.9238 GB, free: 21.63 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03937/2.103, allocations: 24.51 MB / 0.9478 GB, free: 13.04 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002514/2.105, allocations: 0.5248 MB / 0.9483 GB, free: 12.52 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002721/2.108, allocations: 60 kB / 0.9484 GB, free: 12.46 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005543/2.114, allocations: 451.3 kB / 0.9488 GB, free: 12.02 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2769/2.39, allocations: 263.9 kB / 0.949 GB, free: 191.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009982/2.391, allocations: 92.48 kB / 0.9491 GB, free: 191.1 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006355/2.398, allocations: 3.656 MB / 0.9527 GB, free: 190.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 8e-08/2.398, allocations: 0 / 0.9527 GB, free: 190.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.00927/2.407, allocations: 2.274 MB / 0.9549 GB, free: 190.9 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.001032/2.408, allocations: 285.2 kB / 0.9552 GB, free: 190.8 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01894/2.427, allocations: 14.21 MB / 0.9691 GB, free: 187.2 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/2.427, allocations: 3.719 kB / 0.9691 GB, free: 187.2 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008406/2.435, allocations: 6.164 MB / 0.9751 GB, free: 184.7 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004609/2.44, allocations: 0.8032 MB / 0.9759 GB, free: 184.3 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02784/2.468, allocations: 20.25 MB / 0.9956 GB, free: 169.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005269/2.473, allocations: 4.786 MB / 1 GB, free: 165.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005967/2.479, allocations: 2.976 MB / 1.003 GB, free: 164.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/2.481, allocations: 367.7 kB / 1.004 GB, free: 163.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.232e-06/2.481, allocations: 0 / 1.004 GB, free: 163.7 MB / 0.5607 GB Notification: Performance of Templates: time 0.1364/2.617, allocations: 112.7 MB / 1.114 GB, free: 53.4 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.880485324189067]