Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.001312/0.001312, allocations: 106 kB / 21.18 MB, free: 0.7188 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.00137/0.00137, allocations: 189.3 kB / 24.47 MB, free: 4.094 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.521/1.521, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.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.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass")
translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 55.92 kB / 347.7 MB, free: 9.57 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2819, allocations: 49.16 MB / 396.8 MB, free: 9.523 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.007163/0.2891, allocations: 7.493 MB / 404.3 MB, free: 4.246 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.005355/0.2944, allocations: 3.285 MB / 407.6 MB, free: 2.102 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0007148/0.2951, allocations: 44.62 kB / 407.6 MB, free: 2.086 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001909/0.297, allocations: 1.053 MB / 408.7 MB, free: 1.621 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.002724/0.2998, allocations: 1.395 MB / 410.1 MB, free: 1.027 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.3008, allocations: 467.3 kB / 410.5 MB, free: 0.8281 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.003124/0.3039, allocations: 2.636 MB / 413.2 MB, free: 15.43 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.3054, allocations: 1.188 MB / 414.4 MB, free: 14.6 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001108/0.3065, allocations: 0.8651 MB / 415.2 MB, free: 14.12 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001789/0.3083, allocations: 1.338 MB / 416.6 MB, free: 13.32 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0003194/0.3087, allocations: 170 kB / 416.7 MB, free: 13.32 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001981/0.3106, allocations: 1.061 MB / 417.8 MB, free: 12.84 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001096/0.3117, allocations: 1.139 MB / 418.9 MB, free: 12.18 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001564/0.3133, allocations: 1.302 MB / 420.2 MB, free: 11.19 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.006052/0.3193, allocations: 4.388 MB / 424.6 MB, free: 7.559 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3194, allocations: 0 / 424.6 MB, free: 7.559 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.044e-06/0.3194, allocations: 0 / 424.6 MB, free: 7.559 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.886e-05/0.3194, allocations: 4 kB / 424.6 MB, free: 7.555 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: 968
 * Number of variables: 968
Notification: Performance of Generate backend data structure: time 0.006689/0.3261, allocations: 3.056 MB / 427.7 MB, free: 4.453 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.3262, allocations: 15.98 kB / 427.7 MB, free: 4.438 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006953/0.3331, allocations: 1.754 MB / 429.5 MB, free: 2.68 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003003/0.3361, allocations: 1.391 MB / 430.8 MB, free: 1.258 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.3363, allocations: 135.3 kB / 431 MB, free: 1.125 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006911/0.337, allocations: 255.7 kB / 431.2 MB, free: 0.875 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01344/0.3504, allocations: 6.668 MB / 437.9 MB, free: 9.746 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.078e-05/0.3505, allocations: 27.81 kB / 437.9 MB, free: 9.719 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003117/0.3508, allocations: 87.91 kB / 438 MB, free: 9.633 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002342/0.3531, allocations: 1.355 MB / 439.4 MB, free: 8.281 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0125/0.3656, allocations: 6.04 MB / 445.4 MB, free: 2.234 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03643/0.4021, allocations: 25.49 MB / 470.9 MB, free: 7.965 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.007749/0.4098, allocations: 2.136 MB / 473 MB, free: 5.789 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001845/0.4117, allocations: 0.9967 MB / 474 MB, free: 4.781 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.00666/0.4183, allocations: 2.984 MB / 477 MB, free: 1.77 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.541e-05/0.4184, allocations: 51 kB / 477.1 MB, free: 1.711 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=112): time 4.138e-06/0.4184, allocations: 0 / 477.1 MB, free: 1.711 MB / 382.1 MB
Notification: Performance of matching and sorting (n=125): time 0.02972/0.4481, allocations: 10.12 MB / 487.2 MB, free: 7.516 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.001542/0.4496, allocations: 1.575 MB / 488.8 MB, free: 5.789 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004281/0.4539, allocations: 2.734 MB / 491.5 MB, free: 3.035 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0003063/0.4542, allocations: 49.67 kB / 491.5 MB, free: 2.98 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001766/0.456, allocations: 2.175 MB / 493.7 MB, free: 0.7812 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0007526/0.4567, allocations: 0.5273 MB / 494.2 MB, free: 256 kB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001353/0.4581, allocations: 0.929 MB / 495.2 MB, free: 15.31 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001264/0.4582, allocations: 305.1 kB / 495.5 MB, free: 15.01 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/0.4609, allocations: 1.656 MB / 497.1 MB, free: 13.34 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.005049/0.4659, allocations: 4.448 MB / 0.4898 GB, free: 7.488 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.009013/0.4749, allocations: 6.542 MB / 0.4962 GB, free: 15.55 MB / 430.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.862e-05/0.475, allocations: 32.28 kB / 0.4962 GB, free: 15.52 MB / 430.1 MB
Notification: Performance of matching and sorting (n=595) (initialization): time 0.02179/0.4968, allocations: 7.988 MB / 0.504 GB, free: 7.512 MB / 430.1 MB
Notification: Performance of prepare postOptimizeDAE: time 8.827e-05/0.4969, allocations: 48.09 kB / 0.5041 GB, free: 7.465 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01232/0.5092, allocations: 3.484 MB / 0.5075 GB, free: 3.969 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.01276/0.522, allocations: 2.584 MB / 0.51 GB, free: 1.371 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003594/0.5256, allocations: 1.01 MB / 0.511 GB, free: 368 kB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/0.5419, allocations: 9.484 MB / 0.5203 GB, free: 6.641 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003896/0.5457, allocations: 331.7 kB / 0.5206 GB, free: 6.316 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006045/0.5464, allocations: 288 kB / 0.5208 GB, free: 6.035 MB / 446.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 452
 * Number of states: 0 ()
 * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (547):
 * Single equations (assignments): 539
 * Array equations: 5
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 2
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 1 system
   {(4,100.0%)}
 * Non-linear Jacobian (size): 1 system
   {4}
 * Without analytic Jacobian (size): 0 systems
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(5,10,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.002615/0.549, allocations: 1.427 MB / 0.5222 GB, free: 4.594 MB / 446.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004737/0.5494, allocations: 242.4 kB / 0.5225 GB, free: 4.355 MB / 446.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007317/0.5568, allocations: 2.827 MB / 0.5252 GB, free: 1.5 MB / 446.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006377/0.5631, allocations: 2.497 MB / 0.5277 GB, free: 14.98 MB / 462.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.5632, allocations: 7.984 kB / 0.5277 GB, free: 14.98 MB / 462.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.237e-05/0.5632, allocations: 7.984 kB / 0.5277 GB, free: 14.97 MB / 462.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01498/0.5782, allocations: 6.779 MB / 0.5343 GB, free: 8.098 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.5782, allocations: 0 / 0.5343 GB, free: 8.098 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009028/0.5791, allocations: 175.7 kB / 0.5345 GB, free: 7.926 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.005292/0.5844, allocations: 1.434 MB / 0.5359 GB, free: 6.48 MB / 462.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001796/0.5845, allocations: 31.97 kB / 0.5359 GB, free: 6.449 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01165/0.5962, allocations: 7.724 MB / 0.5434 GB, free: 14.49 MB / 478.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0012/0.5974, allocations: 1.434 MB / 0.5448 GB, free: 12.93 MB / 478.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009809/0.6072, allocations: 4.854 MB / 0.5496 GB, free: 8.031 MB / 478.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009094/0.6081, allocations: 226.2 kB / 0.5498 GB, free: 7.809 MB / 478.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003323/0.6084, allocations: 35.98 kB / 0.5498 GB, free: 7.773 MB / 478.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.6096, allocations: 107.8 kB / 0.5499 GB, free: 7.668 MB / 478.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003059/0.61, allocations: 84.42 kB / 0.55 GB, free: 7.582 MB / 478.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/0.6101, allocations: 35.98 kB / 0.5501 GB, free: 7.547 MB / 478.1 MB
Notification: Performance of sorting global known variables: time 0.002858/0.6129, allocations: 1.697 MB / 0.5517 GB, free: 5.84 MB / 478.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.6129, allocations: 0 / 0.5517 GB, free: 5.84 MB / 478.1 MB
Notification: Performance of remove unused functions: time 0.003905/0.6168, allocations: 0.7928 MB / 0.5525 GB, free: 5.047 MB / 478.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 7
 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3])
 * 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 (83):
 * Single equations (assignments): 77
 * Array equations: 3
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 2
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 1 system
   {(4,100.0%)}
 * Non-linear Jacobian (size): 1 system
   {4}
 * Without analytic Jacobian (size): 0 systems
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(5,8,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0004242/0.6173, allocations: 163 kB / 0.5526 GB, free: 4.879 MB / 478.1 MB
Notification: Performance of simCode: created initialization part: time 0.008132/0.6254, allocations: 4.192 MB / 0.5567 GB, free: 0.6836 MB / 478.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.738e-06/0.6254, allocations: 0 / 0.5567 GB, free: 0.6836 MB / 478.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.2009/0.8263, allocations: 1.576 MB / 0.5583 GB, free: 148.8 MB / 478.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/0.8283, allocations: 264.7 kB / 0.5585 GB, free: 148.7 MB / 478.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.8406, allocations: 6.686 MB / 0.5651 GB, free: 146.7 MB / 478.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00253/0.8432, allocations: 2.297 MB / 0.5673 GB, free: 145.8 MB / 478.1 MB
Notification: Performance of simCode: alias equations: time 0.00323/0.8464, allocations: 1.405 MB / 0.5687 GB, free: 145.7 MB / 478.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004636/0.8469, allocations: 171.6 kB / 0.5688 GB, free: 145.7 MB / 478.1 MB
Notification: Performance of SimCode: time 1.263e-06/0.8469, allocations: 0.5469 kB / 0.5688 GB, free: 145.7 MB / 478.1 MB
Notification: Performance of Templates: time 0.04921/0.8961, allocations: 32.11 MB / 0.6002 GB, free: 123.5 MB / 478.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.432472489774227]