Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001355/0.001355, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001392/0.001392, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.478/1.478, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 51.92 kB / 370.9 MB, free: 9.359 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2675, allocations: 52.18 MB / 423.1 MB, free: 14.71 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009591/0.2771, allocations: 7.499 MB / 430.6 MB, free: 7.176 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.007234/0.2843, allocations: 3.293 MB / 433.9 MB, free: 3.871 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.2855, allocations: 43.75 kB / 434 MB, free: 3.828 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.002361/0.2879, allocations: 1.035 MB / 435 MB, free: 2.789 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.003541/0.2914, allocations: 1.412 MB / 436.4 MB, free: 1.375 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.2924, allocations: 459.1 kB / 436.8 MB, free: 0.9258 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.004827/0.2972, allocations: 2.637 MB / 439.5 MB, free: 14.29 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001751/0.299, allocations: 1.182 MB / 440.7 MB, free: 13.07 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.3001, allocations: 0.8603 MB / 441.5 MB, free: 12.21 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001668/0.3018, allocations: 1.328 MB / 442.9 MB, free: 10.88 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0003167/0.3021, allocations: 172 kB / 443 MB, free: 10.71 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001894/0.304, allocations: 1.084 MB / 444.1 MB, free: 9.625 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001085/0.3051, allocations: 1.129 MB / 445.2 MB, free: 8.492 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001288/0.3064, allocations: 1.305 MB / 446.5 MB, free: 7.18 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.004897/0.3113, allocations: 4.376 MB / 450.9 MB, free: 2.789 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3113, allocations: 0 / 450.9 MB, free: 2.789 MB / 350.1 MB
Notification: Performance of FrontEnd: time 2.816e-06/0.3113, allocations: 0 / 450.9 MB, free: 2.789 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 5.373e-05/0.3114, allocations: 0 / 450.9 MB, free: 2.789 MB / 350.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.005736/0.3171, allocations: 3.056 MB / 454 MB, free: 15.69 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.3171, allocations: 16.02 kB / 454 MB, free: 15.67 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00678/0.3239, allocations: 1.746 MB / 455.7 MB, free: 13.92 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003163/0.3271, allocations: 1.352 MB / 457.1 MB, free: 12.54 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.3272, allocations: 135.3 kB / 457.2 MB, free: 12.41 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006575/0.3279, allocations: 255.8 kB / 457.5 MB, free: 12.16 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/0.3386, allocations: 6.66 MB / 464.1 MB, free: 5.039 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 6.415e-05/0.3386, allocations: 27.75 kB / 464.2 MB, free: 5.012 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002669/0.3389, allocations: 87.89 kB / 464.2 MB, free: 4.926 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002286/0.3412, allocations: 1.359 MB / 465.6 MB, free: 3.566 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01138/0.3526, allocations: 6.04 MB / 471.6 MB, free: 13.52 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03205/0.3846, allocations: 25.5 MB / 497.1 MB, free: 3.25 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.007186/0.3918, allocations: 2.137 MB / 499.3 MB, free: 1.074 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/0.3932, allocations: 0.9886 MB / 0.4885 GB, free: 76 kB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.005776/0.399, allocations: 2.983 MB / 0.4915 GB, free: 13.07 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/0.3991, allocations: 47.06 kB / 0.4915 GB, free: 13.01 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=112): time 3.216e-06/0.3991, allocations: 0 / 0.4915 GB, free: 13.01 MB / 414.1 MB
Notification: Performance of matching and sorting (n=125): time 0.02878/0.4279, allocations: 10.1 MB / 0.5014 GB, free: 2.836 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.001586/0.4294, allocations: 1.583 MB / 0.5029 GB, free: 1.09 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004002/0.4334, allocations: 2.726 MB / 0.5056 GB, free: 14.34 MB / 430.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0002303/0.4337, allocations: 41.7 kB / 0.5056 GB, free: 14.29 MB / 430.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001661/0.4353, allocations: 2.171 MB / 0.5077 GB, free: 12.1 MB / 430.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0006065/0.4359, allocations: 0.5351 MB / 0.5083 GB, free: 11.56 MB / 430.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001236/0.4372, allocations: 0.925 MB / 0.5092 GB, free: 10.62 MB / 430.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001302/0.4373, allocations: 309 kB / 0.5095 GB, free: 10.32 MB / 430.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002592/0.4399, allocations: 1.656 MB / 0.5111 GB, free: 8.656 MB / 430.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.005054/0.445, allocations: 4.448 MB / 0.5154 GB, free: 2.801 MB / 430.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.008275/0.4532, allocations: 6.54 MB / 0.5218 GB, free: 10.88 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.985e-05/0.4533, allocations: 32 kB / 0.5218 GB, free: 10.84 MB / 446.1 MB
Notification: Performance of matching and sorting (n=595) (initialization): time 0.02118/0.4745, allocations: 7.999 MB / 0.5296 GB, free: 2.824 MB / 446.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.4746, allocations: 48 kB / 0.5297 GB, free: 2.777 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0124/0.487, allocations: 3.469 MB / 0.5331 GB, free: 15.3 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.013/0.5, allocations: 2.592 MB / 0.5356 GB, free: 12.7 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0035/0.5035, allocations: 1.002 MB / 0.5366 GB, free: 11.69 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/0.5203, allocations: 9.496 MB / 0.5459 GB, free: 1.961 MB / 462.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004721/0.525, allocations: 327.7 kB / 0.5462 GB, free: 1.641 MB / 462.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/0.526, allocations: 280 kB / 0.5464 GB, free: 1.367 MB / 462.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.2557/0.7817, allocations: 1.427 MB / 0.5478 GB, free: 119.8 MB / 462.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006457/0.7824, allocations: 244.2 kB / 0.5481 GB, free: 119.8 MB / 462.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007757/0.7901, allocations: 2.826 MB / 0.5508 GB, free: 119.7 MB / 462.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005625/0.7957, allocations: 2.499 MB / 0.5533 GB, free: 119.2 MB / 462.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.7957, allocations: 7.688 kB / 0.5533 GB, free: 119.2 MB / 462.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/0.7958, allocations: 7.734 kB / 0.5533 GB, free: 119.2 MB / 462.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01206/0.8078, allocations: 6.759 MB / 0.5599 GB, free: 116.9 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.8078, allocations: 0 / 0.5599 GB, free: 116.9 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007894/0.8086, allocations: 181 kB / 0.5601 GB, free: 116.9 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.004623/0.8132, allocations: 1.436 MB / 0.5615 GB, free: 116.7 MB / 462.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.8134, allocations: 34.98 kB / 0.5615 GB, free: 116.6 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008587/0.8219, allocations: 7.719 MB / 0.569 GB, free: 110.9 MB / 462.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007885/0.8227, allocations: 1.433 MB / 0.5704 GB, free: 109.4 MB / 462.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007752/0.8305, allocations: 4.865 MB / 0.5752 GB, free: 104.7 MB / 462.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0007236/0.8312, allocations: 224.7 kB / 0.5754 GB, free: 104.6 MB / 462.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000274/0.8315, allocations: 31.92 kB / 0.5754 GB, free: 104.5 MB / 462.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.8326, allocations: 107.8 kB / 0.5755 GB, free: 104.4 MB / 462.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002744/0.8329, allocations: 84.45 kB / 0.5756 GB, free: 104.3 MB / 462.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.569e-05/0.833, allocations: 39.98 kB / 0.5756 GB, free: 104.3 MB / 462.1 MB
Notification: Performance of sorting global known variables: time 0.002397/0.8354, allocations: 1.689 MB / 0.5773 GB, free: 102.6 MB / 462.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.8354, allocations: 0 / 0.5773 GB, free: 102.6 MB / 462.1 MB
Notification: Performance of remove unused functions: time 0.004176/0.8396, allocations: 0.7856 MB / 0.5781 GB, free: 101.8 MB / 462.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.0003714/0.8399, allocations: 162.9 kB / 0.5782 GB, free: 101.7 MB / 462.1 MB
Notification: Performance of simCode: created initialization part: time 0.006217/0.8462, allocations: 4.194 MB / 0.5823 GB, free: 97.5 MB / 462.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.8462, allocations: 0 / 0.5823 GB, free: 97.5 MB / 462.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002821/0.849, allocations: 1.593 MB / 0.5839 GB, free: 95.89 MB / 462.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.8509, allocations: 267.6 kB / 0.5841 GB, free: 95.64 MB / 462.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00854/0.8595, allocations: 6.679 MB / 0.5906 GB, free: 88.96 MB / 462.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001641/0.8611, allocations: 2.285 MB / 0.5929 GB, free: 86.64 MB / 462.1 MB
Notification: Performance of simCode: alias equations: time 0.002388/0.8635, allocations: 1.415 MB / 0.5943 GB, free: 85.22 MB / 462.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003431/0.8638, allocations: 167.4 kB / 0.5944 GB, free: 85.06 MB / 462.1 MB
Notification: Performance of SimCode: time 1.693e-06/0.8638, allocations: 0 / 0.5944 GB, free: 85.06 MB / 462.1 MB
Notification: Performance of Templates: time 0.04674/0.9106, allocations: 32.08 MB / 0.6257 GB, free: 53.14 MB / 462.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.202195326797664]