Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001776/0.001776, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002072/0.002072, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 230.3 MB / 258 MB, free: 8.199 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 59.91 kB / 378.8 MB, free: 2.777 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3221, allocations: 53.36 MB / 432.1 MB, free: 7.086 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02153/0.3436, allocations: 18.15 MB / 450.3 MB, free: 4.859 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01566/0.3593, allocations: 6.088 MB / 456.4 MB, free: 14.75 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.004258/0.3635, allocations: 167.1 kB / 456.5 MB, free: 14.59 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.01278/0.3763, allocations: 6.355 MB / 462.9 MB, free: 8.215 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.009848/0.3862, allocations: 2.891 MB / 465.8 MB, free: 5.312 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.00619/0.3923, allocations: 2.304 MB / 468.1 MB, free: 3.004 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01625/0.4086, allocations: 9.72 MB / 477.8 MB, free: 9.273 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.008024/0.4166, allocations: 5.821 MB / 483.6 MB, free: 3.355 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.006402/0.423, allocations: 3.261 MB / 486.9 MB, free: 88 kB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.007388/0.4304, allocations: 4.468 MB / 491.3 MB, free: 11.61 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.002217/0.4326, allocations: 0.7148 MB / 492 MB, free: 10.89 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00445/0.4371, allocations: 1.947 MB / 494 MB, free: 8.941 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.004868/0.4419, allocations: 3.888 MB / 497.9 MB, free: 5.043 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.006394/0.4483, allocations: 4.127 MB / 0.4902 GB, free: 0.8945 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01684/0.4652, allocations: 13.22 MB / 0.5032 GB, free: 3.625 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.4652, allocations: 4 kB / 0.5032 GB, free: 3.621 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.573e-06/0.4652, allocations: 0 / 0.5032 GB, free: 3.621 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 0.0004464/0.4656, allocations: 0 / 0.5032 GB, free: 3.621 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.02374/0.4894, allocations: 9.072 MB / 0.512 GB, free: 10.47 MB / 430.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.4894, allocations: 12.03 kB / 0.512 GB, free: 10.46 MB / 430.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05033/0.5398, allocations: 4.892 MB / 0.5168 GB, free: 5.555 MB / 430.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01734/0.5571, allocations: 6.299 MB / 0.523 GB, free: 15.17 MB / 446.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004812/0.5576, allocations: 431.7 kB / 0.5234 GB, free: 14.75 MB / 446.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.00245/0.56, allocations: 0.5832 MB / 0.5239 GB, free: 14.17 MB / 446.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.4594/1.019, allocations: 17.04 MB / 0.5406 GB, free: 89.99 MB / 446.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0004081/1.02, allocations: 86.36 kB / 0.5407 GB, free: 89.96 MB / 446.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00175/1.022, allocations: 267.7 kB / 0.5409 GB, free: 89.81 MB / 446.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004824/1.026, allocations: 2.657 MB / 0.5435 GB, free: 89.34 MB / 446.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0296/1.056, allocations: 14.78 MB / 0.558 GB, free: 83.42 MB / 446.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0746/1.131, allocations: 64.16 MB / 0.6206 GB, free: 19.61 MB / 446.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.02125/1.152, allocations: 8.046 MB / 0.6285 GB, free: 11.52 MB / 446.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.004677/1.156, allocations: 4.731 MB / 0.6331 GB, free: 6.781 MB / 446.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.02766/1.184, allocations: 17.98 MB / 0.6507 GB, free: 4.895 MB / 462.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.28e-05/1.184, allocations: 68.55 kB / 0.6507 GB, free: 4.82 MB / 462.1 MB
Notification: Performance of pre-optimization done (n=281): time 5.941e-06/1.184, allocations: 0 / 0.6507 GB, free: 4.82 MB / 462.1 MB
Notification: Performance of matching and sorting (n=374): time 0.2938/1.478, allocations: 74.16 MB / 0.7231 GB, free: 11.03 MB / 0.5294 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000237/1.478, allocations: 376.6 kB / 0.7235 GB, free: 10.58 MB / 0.5294 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01348/1.492, allocations: 6.374 MB / 0.7297 GB, free: 4.309 MB / 0.5294 GB
Notification: Performance of collectPreVariables (initialization): time 0.001398/1.493, allocations: 85.69 kB / 0.7298 GB, free: 4.219 MB / 0.5294 GB
Notification: Performance of collectInitialEqns (initialization): time 0.00476/1.498, allocations: 4.927 MB / 0.7346 GB, free: 15.26 MB / 0.545 GB
Notification: Performance of collectInitialBindings (initialization): time 0.002699/1.501, allocations: 1.449 MB / 0.736 GB, free: 13.8 MB / 0.545 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.005547/1.506, allocations: 1.984 MB / 0.738 GB, free: 11.8 MB / 0.545 GB
Notification: Performance of setup shared object (initialization): time 0.0001314/1.506, allocations: 308.9 kB / 0.7383 GB, free: 11.5 MB / 0.545 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.01036/1.517, allocations: 5.992 MB / 0.7441 GB, free: 5.504 MB / 0.545 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.2464/1.763, allocations: 11.02 MB / 0.7549 GB, free: 182.3 MB / 0.545 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.02311/1.786, allocations: 17.96 MB / 0.7724 GB, free: 170.6 MB / 0.545 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003456/1.786, allocations: 52.47 kB / 0.7725 GB, free: 170.6 MB / 0.545 GB
Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0445/1.831, allocations: 23.29 MB / 0.7952 GB, free: 162.2 MB / 0.545 GB
Notification: Performance of prepare postOptimizeDAE: time 0.0001281/1.831, allocations: 80 kB / 0.7953 GB, free: 162.1 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/1.831, allocations: 172 kB / 0.7955 GB, free: 161.9 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.02166/1.853, allocations: 7.444 MB / 0.8027 GB, free: 155.7 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007534/1.86, allocations: 2.187 MB / 0.8049 GB, free: 153.5 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04312/1.904, allocations: 37.82 MB / 0.8418 GB, free: 115.6 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009139/1.913, allocations: 0.7494 MB / 0.8425 GB, free: 114.9 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001769/1.914, allocations: 0.5234 MB / 0.843 GB, free: 114.3 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.006063/1.921, allocations: 3.429 MB / 0.8464 GB, free: 111 MB / 0.545 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001491/1.922, allocations: 0.6074 MB / 0.847 GB, free: 110.7 MB / 0.545 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03118/1.953, allocations: 16.87 MB / 0.8634 GB, free: 93.79 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.545e-05/1.953, allocations: 51.98 kB / 0.8635 GB, free: 93.74 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.252e-05/1.953, allocations: 20 kB / 0.8635 GB, free: 93.72 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.491e-05/1.953, allocations: 15.94 kB / 0.8635 GB, free: 93.7 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04799/2.001, allocations: 31.92 MB / 0.8947 GB, free: 61.5 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-05/2.001, allocations: 4.875 kB / 0.8947 GB, free: 61.5 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003234/2.005, allocations: 0.6045 MB / 0.8953 GB, free: 60.89 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.02007/2.025, allocations: 7.018 MB / 0.9022 GB, free: 53.86 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008562/2.026, allocations: 60 kB / 0.9022 GB, free: 53.8 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0406/2.066, allocations: 36.01 MB / 0.9374 GB, free: 17.55 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/2.066, allocations: 3.938 kB / 0.9374 GB, free: 17.55 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2688/2.335, allocations: 24.55 MB / 0.9614 GB, free: 170.7 MB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001913/2.337, allocations: 0.5866 MB / 0.9619 GB, free: 170.6 MB / 0.545 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001627/2.339, allocations: 59.31 kB / 0.962 GB, free: 170.6 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004616/2.343, allocations: 445.2 kB / 0.9624 GB, free: 170.5 MB / 0.545 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001193/2.344, allocations: 270.8 kB / 0.9627 GB, free: 170.5 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003689/2.345, allocations: 94.67 kB / 0.9628 GB, free: 170.5 MB / 0.545 GB
Notification: Performance of sorting global known variables: time 0.00545/2.35, allocations: 4.042 MB / 0.9667 GB, free: 169.1 MB / 0.545 GB
Notification: Performance of sort global known variables: time 1.01e-07/2.35, allocations: 3.656 kB / 0.9667 GB, free: 169.1 MB / 0.545 GB
Notification: Performance of remove unused functions: time 0.009775/2.36, allocations: 2.285 MB / 0.9689 GB, free: 168.9 MB / 0.545 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.001165/2.361, allocations: 285 kB / 0.9692 GB, free: 168.7 MB / 0.545 GB
Notification: Performance of simCode: created initialization part: time 0.02036/2.381, allocations: 14.2 MB / 0.9831 GB, free: 163.4 MB / 0.545 GB
Notification: Performance of simCode: created event and clocks part: time 1.05e-05/2.381, allocations: 4.656 kB / 0.9831 GB, free: 163.4 MB / 0.545 GB
Notification: Performance of simCode: created simulation system equations: time 0.008665/2.39, allocations: 6.158 MB / 0.9891 GB, free: 160.8 MB / 0.545 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004754/2.395, allocations: 0.887 MB / 0.99 GB, free: 160.4 MB / 0.545 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0257/2.421, allocations: 20.3 MB / 1.01 GB, free: 144.2 MB / 0.545 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004712/2.425, allocations: 5.264 MB / 1.015 GB, free: 139.9 MB / 0.545 GB
Notification: Performance of simCode: alias equations: time 0.005712/2.431, allocations: 3.017 MB / 1.018 GB, free: 137 MB / 0.545 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001492/2.433, allocations: 383.4 kB / 1.018 GB, free: 136.6 MB / 0.545 GB
Notification: Performance of SimCode: time 1.012e-06/2.433, allocations: 4 kB / 1.018 GB, free: 136.6 MB / 0.545 GB
Notification: Performance of Templates: time 0.1449/2.577, allocations: 112.9 MB / 1.129 GB, free: 24.22 MB / 0.545 GB
"
[Timeout remaining time 657]
make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_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_trunk_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: 10.007645434699953]