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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 111.9 kB / 17.06 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 200 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2873, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01134/0.2987, allocations: 10.71 MB / 411.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007496/0.3062, allocations: 3.865 MB / 415.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001755/0.308, allocations: 63.81 kB / 415.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004246/0.3123, allocations: 2.235 MB / 417.6 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004777/0.3171, allocations: 1.878 MB / 419.5 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001612/0.3188, allocations: 0.7097 MB / 420.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005841/0.3246, allocations: 4.225 MB / 424.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004182/0.3288, allocations: 2.91 MB / 427.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002764/0.3316, allocations: 1.472 MB / 428.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003554/0.3352, allocations: 2.087 MB / 430.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001251/0.3364, allocations: 295.9 kB / 431.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002683/0.3391, allocations: 0.9441 MB / 432.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002628/0.3418, allocations: 1.827 MB / 433.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00394/0.3457, allocations: 2.101 MB / 436 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007708/0.3535, allocations: 6.411 MB / 442.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3535, allocations: 0 / 442.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3535, allocations: 0 / 442.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002136/0.3537, allocations: 0 / 442.5 MB, free: 14.95 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.009054/0.3628, allocations: 4.609 MB / 447.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.3628, allocations: 15.89 kB / 447.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007496/0.3703, allocations: 1.918 MB / 449 MB, free: 8.332 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005049/0.3754, allocations: 2.292 MB / 451.3 MB, free: 5.977 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002947/0.3757, allocations: 229.6 kB / 451.5 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008162/0.3766, allocations: 295.8 kB / 451.8 MB, free: 5.461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01813/0.3947, allocations: 9.631 MB / 461.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001257/0.3949, allocations: 51.53 kB / 461.5 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005224/0.3954, allocations: 147.8 kB / 461.6 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003122/0.3985, allocations: 1.915 MB / 463.5 MB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01709/0.4156, allocations: 7.629 MB / 471.2 MB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05899/0.4747, allocations: 37.6 MB / 0.4969 GB, free: 10.53 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009107/0.4838, allocations: 2.898 MB / 0.4997 GB, free: 7.488 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001408/0.4853, allocations: 0.8768 MB / 0.5005 GB, free: 6.598 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006345/0.4916, allocations: 3.759 MB / 0.5042 GB, free: 2.637 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.4917, allocations: 47.16 kB / 0.5043 GB, free: 2.578 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 3.577e-06/0.4917, allocations: 3.938 kB / 0.5043 GB, free: 2.574 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02245/0.5142, allocations: 9.021 MB / 0.5131 GB, free: 9.426 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.5143, allocations: 149.5 kB / 0.5132 GB, free: 9.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00794/0.5222, allocations: 3.92 MB / 0.517 GB, free: 5.348 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001591/0.5224, allocations: 45.7 kB / 0.5171 GB, free: 5.297 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002874/0.5253, allocations: 3.082 MB / 0.5201 GB, free: 2.176 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007934/0.5261, allocations: 0.6018 MB / 0.5207 GB, free: 1.566 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001845/0.5279, allocations: 1.17 MB / 0.5218 GB, free: 392 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.5281, allocations: 305.1 kB / 0.5221 GB, free: 84 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003716/0.5318, allocations: 1.581 MB / 0.5237 GB, free: 14.49 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005467/0.5373, allocations: 5.358 MB / 0.5289 GB, free: 7.238 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2504/0.7877, allocations: 7.544 MB / 0.5363 GB, free: 123.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001655/0.7879, allocations: 38.56 kB / 0.5363 GB, free: 123.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01188/0.7998, allocations: 6.649 MB / 0.5428 GB, free: 121.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.953e-05/0.8, allocations: 64.38 kB / 0.5428 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/0.8001, allocations: 136.1 kB / 0.543 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000144/0.8002, allocations: 178.3 kB / 0.5431 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00341/0.8037, allocations: 1.383 MB / 0.5445 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001449/0.8038, allocations: 266.7 kB / 0.5448 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003651/0.8075, allocations: 280.2 kB / 0.545 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003752/0.8079, allocations: 370.7 kB / 0.5454 GB, free: 121.1 MB / 462.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.002592/0.8105, allocations: 1.981 MB / 0.5473 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005081/0.811, allocations: 329.6 kB / 0.5476 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/0.8128, allocations: 1.255 MB / 0.5488 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.487e-05/0.8128, allocations: 17.53 kB / 0.5489 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.8129, allocations: 0 / 0.5489 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.8129, allocations: 18.8 kB / 0.5489 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007168/0.8201, allocations: 5.738 MB / 0.5545 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.898e-05/0.8201, allocations: 23.89 kB / 0.5545 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008639/0.821, allocations: 269.1 kB / 0.5548 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-05/0.821, allocations: 28 kB / 0.5548 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.795e-05/0.8211, allocations: 55.66 kB / 0.5548 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.859e-05/0.8211, allocations: 35.58 kB / 0.5549 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-05/0.8211, allocations: 35.5 kB / 0.5549 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.8238, allocations: 3.214 MB / 0.5581 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005619/0.8244, allocations: 409.2 kB / 0.5584 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003045/0.8247, allocations: 47.98 kB / 0.5585 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.8257, allocations: 61.14 kB / 0.5585 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.8259, allocations: 151.2 kB / 0.5587 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.493e-05/0.826, allocations: 70.56 kB / 0.5588 GB, free: 112.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002785/0.8288, allocations: 2.436 MB / 0.5611 GB, free: 110.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.8288, allocations: 3.828 kB / 0.5611 GB, free: 110.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004019/0.8328, allocations: 0.8601 MB / 0.562 GB, free: 109.7 MB / 462.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.0003482/0.8332, allocations: 205.7 kB / 0.5622 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00475/0.8379, allocations: 3.683 MB / 0.5658 GB, free: 105.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/0.8379, allocations: 4 kB / 0.5658 GB, free: 105.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008267/0.8388, allocations: 0.7385 MB / 0.5665 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/0.8414, allocations: 452.7 kB / 0.5669 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.8525, allocations: 8.502 MB / 0.5752 GB, free: 95.99 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002388/0.8549, allocations: 3.091 MB / 0.5783 GB, free: 92.87 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00323/0.8581, allocations: 1.776 MB / 0.58 GB, free: 91.08 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004001/0.8586, allocations: 235.4 kB / 0.5802 GB, free: 90.85 MB / 462.1 MB Notification: Performance of SimCode: time 1.203e-06/0.8586, allocations: 0 / 0.5802 GB, free: 90.85 MB / 462.1 MB Notification: Performance of Templates: time 0.04231/0.9009, allocations: 23.82 MB / 0.6035 GB, free: 67.25 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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) 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) Reference file matches