Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 180.8 kB / 23.71 MB, free: 4.695 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem")
translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 44.06 kB / 370.9 MB, free: 9.328 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2482, allocations: 52.18 MB / 423.1 MB, free: 14.66 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01276/0.2609, allocations: 10.79 MB / 433.9 MB, free: 3.812 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.008437/0.2694, allocations: 3.911 MB / 437.8 MB, free: 15.89 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001603/0.271, allocations: 75.62 kB / 437.9 MB, free: 15.81 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.004599/0.2756, allocations: 2.266 MB / 440.2 MB, free: 13.54 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.005309/0.2809, allocations: 1.891 MB / 442.1 MB, free: 11.64 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.2828, allocations: 0.7097 MB / 442.8 MB, free: 10.93 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.006256/0.2891, allocations: 4.227 MB / 447 MB, free: 6.695 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.002808/0.2919, allocations: 2.235 MB / 449.2 MB, free: 4.414 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.002378/0.2942, allocations: 1.499 MB / 450.7 MB, free: 2.91 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.003542/0.2978, allocations: 2.262 MB / 453 MB, free: 0.6406 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0007175/0.2985, allocations: 292 kB / 453.3 MB, free: 364 kB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00197/0.3005, allocations: 0.9752 MB / 454.3 MB, free: 15.38 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001853/0.3023, allocations: 1.866 MB / 456.1 MB, free: 13.51 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002432/0.3048, allocations: 2.097 MB / 458.2 MB, free: 11.4 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.007805/0.3126, allocations: 6.442 MB / 464.7 MB, free: 4.93 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3126, allocations: 0 / 464.7 MB, free: 4.93 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.814e-06/0.3126, allocations: 0 / 464.7 MB, free: 4.93 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 0.0001512/0.3127, allocations: 7.984 kB / 464.7 MB, free: 4.922 MB / 366.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 1469
 * Number of variables: 1469
Notification: Performance of Generate backend data structure: time 0.009112/0.3218, allocations: 4.645 MB / 469.3 MB, free: 224 kB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3219, allocations: 8.031 kB / 469.3 MB, free: 216 kB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007785/0.3297, allocations: 1.95 MB / 471.3 MB, free: 14.25 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.004995/0.3346, allocations: 2.227 MB / 473.5 MB, free: 11.98 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002066/0.3349, allocations: 225.6 kB / 473.7 MB, free: 11.75 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006845/0.3355, allocations: 295.8 kB / 474 MB, free: 11.46 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01763/0.3532, allocations: 9.643 MB / 483.6 MB, free: 1.062 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/0.3533, allocations: 51.56 kB / 483.7 MB, free: 1.012 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00043/0.3537, allocations: 143.9 kB / 483.8 MB, free: 0.8711 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003156/0.3569, allocations: 1.915 MB / 485.8 MB, free: 14.95 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01586/0.3727, allocations: 7.633 MB / 493.4 MB, free: 7.297 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04698/0.4197, allocations: 37.54 MB / 0.5185 GB, free: 0.582 MB / 430.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.007041/0.4268, allocations: 2.338 MB / 0.5208 GB, free: 14.21 MB / 446.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.4283, allocations: 0.796 MB / 0.5215 GB, free: 13.41 MB / 446.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.006959/0.4352, allocations: 3.069 MB / 0.5245 GB, free: 10.3 MB / 446.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.627e-05/0.4353, allocations: 51.16 kB / 0.5246 GB, free: 10.25 MB / 446.1 MB
Notification: Performance of pre-optimization done (n=134): time 3.917e-06/0.4353, allocations: 4 kB / 0.5246 GB, free: 10.24 MB / 446.1 MB
Notification: Performance of matching and sorting (n=152): time 0.02385/0.4591, allocations: 9.099 MB / 0.5335 GB, free: 1.086 MB / 446.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.574e-05/0.4592, allocations: 141.5 kB / 0.5336 GB, free: 0.9141 MB / 446.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2521/0.7113, allocations: 3.917 MB / 0.5374 GB, free: 107.4 MB / 446.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0002264/0.7115, allocations: 49.17 kB / 0.5375 GB, free: 107.4 MB / 446.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001572/0.7131, allocations: 3.214 MB / 0.5406 GB, free: 105.7 MB / 446.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0004852/0.7136, allocations: 0.6334 MB / 0.5412 GB, free: 105.3 MB / 446.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001031/0.7146, allocations: 1.177 MB / 0.5424 GB, free: 104.7 MB / 446.1 MB
Notification: Performance of setup shared object (initialization): time 4.048e-05/0.7147, allocations: 304.6 kB / 0.5427 GB, free: 104.4 MB / 446.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/0.7167, allocations: 1.579 MB / 0.5442 GB, free: 104 MB / 446.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00324/0.7199, allocations: 5.358 MB / 0.5495 GB, free: 98.38 MB / 446.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.005635/0.7255, allocations: 7.535 MB / 0.5568 GB, free: 91.45 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.028e-05/0.7256, allocations: 44.31 kB / 0.5569 GB, free: 91.44 MB / 446.1 MB
Notification: Performance of matching and sorting (n=770) (initialization): time 0.00961/0.7352, allocations: 6.674 MB / 0.5634 GB, free: 86.87 MB / 446.1 MB
Notification: Performance of prepare postOptimizeDAE: time 7.014e-05/0.7353, allocations: 67.56 kB / 0.5634 GB, free: 86.81 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001107/0.7354, allocations: 132 kB / 0.5636 GB, free: 86.68 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001292/0.7355, allocations: 176 kB / 0.5637 GB, free: 86.51 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003352/0.7389, allocations: 1.378 MB / 0.5651 GB, free: 85.29 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001361/0.739, allocations: 262.5 kB / 0.5653 GB, free: 85.06 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003622/0.7426, allocations: 302.3 kB / 0.5656 GB, free: 84.79 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002983/0.7429, allocations: 363.1 kB / 0.566 GB, free: 84.44 MB / 446.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 612
 * Number of states: 0 ()
 * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (746):
 * Single equations (assignments): 743
 * Array equations: 3
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.002132/0.7451, allocations: 1.976 MB / 0.5679 GB, free: 82.71 MB / 446.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004449/0.7455, allocations: 354.2 kB / 0.5682 GB, free: 82.37 MB / 446.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.7471, allocations: 1.253 MB / 0.5695 GB, free: 81.16 MB / 446.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/0.7471, allocations: 16 kB / 0.5695 GB, free: 81.14 MB / 446.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.7471, allocations: 0 / 0.5695 GB, free: 81.14 MB / 446.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.7471, allocations: 11.97 kB / 0.5695 GB, free: 81.13 MB / 446.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006706/0.7539, allocations: 5.727 MB / 0.5751 GB, free: 75.11 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/0.7539, allocations: 20 kB / 0.5751 GB, free: 75.09 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008486/0.7547, allocations: 267.6 kB / 0.5754 GB, free: 74.83 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2e-05/0.7547, allocations: 30.62 kB / 0.5754 GB, free: 74.8 MB / 446.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-05/0.7548, allocations: 47.98 kB / 0.5754 GB, free: 74.76 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-05/0.7548, allocations: 35.86 kB / 0.5755 GB, free: 74.72 MB / 446.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-05/0.7548, allocations: 31.88 kB / 0.5755 GB, free: 74.69 MB / 446.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002791/0.7576, allocations: 3.24 MB / 0.5787 GB, free: 71.2 MB / 446.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0007281/0.7584, allocations: 349.5 kB / 0.579 GB, free: 70.85 MB / 446.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003045/0.7587, allocations: 51.98 kB / 0.579 GB, free: 70.8 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.7597, allocations: 63.52 kB / 0.5791 GB, free: 70.74 MB / 446.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.7598, allocations: 151.3 kB / 0.5792 GB, free: 70.59 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.711e-05/0.7599, allocations: 67.75 kB / 0.5793 GB, free: 70.53 MB / 446.1 MB
Notification: Performance of sorting global known variables: time 0.00277/0.7627, allocations: 2.434 MB / 0.5817 GB, free: 68.12 MB / 446.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.7627, allocations: 0 / 0.5817 GB, free: 68.12 MB / 446.1 MB
Notification: Performance of remove unused functions: time 0.003985/0.7667, allocations: 0.8749 MB / 0.5825 GB, free: 67.24 MB / 446.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 82
 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v)
 * 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 (142):
 * Single equations (assignments): 139
 * Array equations: 3
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0003039/0.767, allocations: 206.1 kB / 0.5827 GB, free: 67.04 MB / 446.1 MB
Notification: Performance of simCode: created initialization part: time 0.00427/0.7712, allocations: 3.548 MB / 0.5862 GB, free: 63.53 MB / 446.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.7712, allocations: 4 kB / 0.5862 GB, free: 63.52 MB / 446.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0006887/0.7719, allocations: 0.6868 MB / 0.5869 GB, free: 62.84 MB / 446.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/0.7742, allocations: 457.7 kB / 0.5873 GB, free: 62.4 MB / 446.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.7843, allocations: 8.636 MB / 0.5957 GB, free: 53.48 MB / 446.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002354/0.7866, allocations: 3.091 MB / 0.5988 GB, free: 50.35 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.003241/0.7899, allocations: 1.772 MB / 0.6005 GB, free: 48.57 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004068/0.7903, allocations: 231.4 kB / 0.6007 GB, free: 48.34 MB / 446.1 MB
Notification: Performance of SimCode: time 9.21e-07/0.7903, allocations: 0 / 0.6007 GB, free: 48.34 MB / 446.1 MB
Notification: Performance of Templates: time 0.05126/0.8415, allocations: 27.95 MB / 0.628 GB, free: 20.66 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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: 6.2120841620489955]