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.0008036/0.0008037, allocations: 94.34 kB / 17.31 MB, free: 6.535 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.0008446/0.0008446, allocations: 175.7 kB / 18.21 MB, free: 5.684 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.136/1.136, allocations: 223.3 MB / 242.3 MB, free: 14.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002046/0.0002046, allocations: 7.938 kB / 302.1 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06874/0.06896, allocations: 50.41 MB / 352.5 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1542/0.2232, allocations: 37.57 MB / 390.1 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01324/0.2365, allocations: 8.42 MB / 398.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004921/0.2414, allocations: 170.4 kB / 398.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008231/0.2423, allocations: 412.8 kB / 399.1 MB, free: 396 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003017/0.2453, allocations: 1.715 MB / 400.8 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.2464, allocations: 0.6534 MB / 401.4 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004374/0.2508, allocations: 5.86 MB / 407.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003543/0.2543, allocations: 3.699 MB / 411 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001076/0.2554, allocations: 1.155 MB / 412.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/0.2573, allocations: 2.02 MB / 414.2 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000232/0.2575, allocations: 144 kB / 414.3 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001169/0.2587, allocations: 0.8424 MB / 415.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.2598, allocations: 1.671 MB / 416.8 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001258/0.2611, allocations: 1.934 MB / 418.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003299/0.2644, allocations: 4.853 MB / 423.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.2644, allocations: 0 / 423.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2644, allocations: 0 / 423.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.293e-05/0.2644, allocations: 0 / 423.6 MB, free: 13.12 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.004884/0.2693, allocations: 3.797 MB / 427.4 MB, free: 9.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.2694, allocations: 11.97 kB / 427.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006244/0.2756, allocations: 1.972 MB / 429.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0028/0.2784, allocations: 2.25 MB / 431.6 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.2786, allocations: 229.6 kB / 431.9 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004247/0.279, allocations: 295.8 kB / 432.2 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/0.2901, allocations: 9.659 MB / 441.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-05/0.2902, allocations: 47.59 kB / 441.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.2905, allocations: 139.9 kB / 442 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002427/0.293, allocations: 1.923 MB / 443.9 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/0.3039, allocations: 7.645 MB / 451.6 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02976/0.3337, allocations: 37.75 MB / 489.3 MB, free: 9.316 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005608/0.3393, allocations: 2.894 MB / 492.2 MB, free: 6.277 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/0.3404, allocations: 0.8878 MB / 493.1 MB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004106/0.3445, allocations: 3.763 MB / 496.9 MB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.3445, allocations: 47.16 kB / 496.9 MB, free: 1.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 2.775e-06/0.3445, allocations: 0 / 496.9 MB, free: 1.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=152): time 0.01741/0.362, allocations: 9.025 MB / 0.4941 GB, free: 8.215 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/0.362, allocations: 149.5 kB / 0.4942 GB, free: 8.039 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004117/0.3661, allocations: 3.92 MB / 0.498 GB, free: 4.137 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.845e-05/0.3662, allocations: 45.7 kB / 0.4981 GB, free: 4.086 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001691/0.3679, allocations: 3.082 MB / 0.5011 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004014/0.3683, allocations: 0.6097 MB / 0.5017 GB, free: 352 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004591/0.3688, allocations: 0.4991 MB / 0.5022 GB, free: 15.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.678e-05/0.3689, allocations: 309 kB / 0.5025 GB, free: 15.53 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002115/0.371, allocations: 1.573 MB / 0.504 GB, free: 13.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004076/0.3751, allocations: 5.358 MB / 0.5092 GB, free: 6.699 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006755/0.3819, allocations: 7.541 MB / 0.5166 GB, free: 13.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.727e-05/0.3819, allocations: 40 kB / 0.5166 GB, free: 13.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008685/0.3906, allocations: 6.652 MB / 0.5231 GB, free: 6.582 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.241e-05/0.3907, allocations: 64.19 kB / 0.5232 GB, free: 6.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/0.3908, allocations: 140 kB / 0.5233 GB, free: 6.383 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001422/0.391, allocations: 176 kB / 0.5235 GB, free: 6.211 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003276/0.3943, allocations: 1.388 MB / 0.5249 GB, free: 4.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001656/0.3944, allocations: 259 kB / 0.5251 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/0.397, allocations: 283.6 kB / 0.5254 GB, free: 4.289 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003366/0.3973, allocations: 364 kB / 0.5257 GB, free: 3.934 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.001961/0.3993, allocations: 1.986 MB / 0.5277 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003457/0.3997, allocations: 335.6 kB / 0.528 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/0.4013, allocations: 1.246 MB / 0.5292 GB, free: 360 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/0.4013, allocations: 19.98 kB / 0.5292 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.4014, allocations: 7.984 kB / 0.5292 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.4014, allocations: 3.984 kB / 0.5292 GB, free: 328 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1447/0.5461, allocations: 5.741 MB / 0.5348 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.549e-05/0.5461, allocations: 20.94 kB / 0.5349 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008366/0.547, allocations: 276.5 kB / 0.5351 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.38e-05/0.547, allocations: 26.22 kB / 0.5351 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.389e-05/0.5471, allocations: 47.88 kB / 0.5352 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.446e-05/0.5471, allocations: 40.05 kB / 0.5352 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.438e-05/0.5471, allocations: 28.28 kB / 0.5353 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003063/0.5502, allocations: 3.229 MB / 0.5384 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006499/0.5509, allocations: 408.9 kB / 0.5388 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003821/0.5513, allocations: 53.67 kB / 0.5389 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.5523, allocations: 62.08 kB / 0.5389 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.5525, allocations: 152.9 kB / 0.5391 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.825e-05/0.5526, allocations: 66.33 kB / 0.5391 GB, free: 143.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003387/0.5559, allocations: 2.44 MB / 0.5415 GB, free: 142.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.556, allocations: 0 / 0.5415 GB, free: 142.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003596/0.5596, allocations: 0.8636 MB / 0.5423 GB, free: 142.6 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.0003079/0.5599, allocations: 208 kB / 0.5425 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004599/0.5645, allocations: 3.634 MB / 0.5461 GB, free: 141.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.084e-06/0.5645, allocations: 4.031 kB / 0.5461 GB, free: 141.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007245/0.5652, allocations: 0.7325 MB / 0.5468 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01001/0.5752, allocations: 444.6 kB / 0.5472 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009889/0.5851, allocations: 11 MB / 0.558 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002416/0.5876, allocations: 3.09 MB / 0.561 GB, free: 133.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004756/0.5881, allocations: 281.7 kB / 0.5613 GB, free: 133.2 MB / 446.1 MB Notification: Performance of SimCode: time 4.01e-07/0.5881, allocations: 0 / 0.5613 GB, free: 133.2 MB / 446.1 MB Notification: Performance of Templates: time 0.05049/0.6386, allocations: 50.38 MB / 0.6105 GB, free: 84.86 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/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