Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002121/0.002121, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 97.8 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.807e-05/1.817e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3534, allocations: 47.57 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.5094, allocations: 94.19 MB / 456.5 MB, free: 8.098 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.5097, allocations: 87.95 kB / 456.6 MB, free: 8.012 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6271/1.137, allocations: 83.33 MB / 0.5273 GB, free: 96.55 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.755e-06/1.137, allocations: 3.844 kB / 0.5273 GB, free: 96.55 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002434/1.137, allocations: 78.41 kB / 0.5274 GB, free: 96.54 MB / 395.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.01427/1.151, allocations: 3.838 MB / 0.5311 GB, free: 94.82 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/1.151, allocations: 7.125 kB / 0.5311 GB, free: 94.82 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0193/1.171, allocations: 2.445 MB / 0.5335 GB, free: 94.53 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01835/1.189, allocations: 5.063 MB / 0.5385 GB, free: 93.79 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003014/1.19, allocations: 136.6 kB / 0.5386 GB, free: 93.79 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002236/1.192, allocations: 244.8 kB / 0.5388 GB, free: 93.78 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01481/1.207, allocations: 5.824 MB / 0.5445 GB, free: 91.84 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02256/1.229, allocations: 8.991 MB / 0.5533 GB, free: 86.21 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002442/1.23, allocations: 67.41 kB / 0.5534 GB, free: 86.15 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001389/1.231, allocations: 35.61 kB / 0.5534 GB, free: 86.12 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002317/1.233, allocations: 1.004 MB / 0.5544 GB, free: 85.3 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06173/1.295, allocations: 44.89 MB / 0.5982 GB, free: 39.27 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003332/1.299, allocations: 1.878 MB / 0.6 GB, free: 37.24 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/1.3, allocations: 0.7575 MB / 0.6008 GB, free: 36.48 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008904/1.301, allocations: 0.7847 MB / 0.6015 GB, free: 35.57 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/1.301, allocations: 51.34 kB / 0.6016 GB, free: 35.51 MB / 395.1 MB Notification: Performance of pre-optimization done (n=137): time 5.751e-06/1.301, allocations: 0 / 0.6016 GB, free: 35.51 MB / 395.1 MB Notification: Performance of matching and sorting (n=149): time 0.02407/1.325, allocations: 7.039 MB / 0.6085 GB, free: 28.35 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/1.325, allocations: 149.2 kB / 0.6086 GB, free: 28.18 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007172/1.333, allocations: 2.999 MB / 0.6115 GB, free: 25.18 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002945/1.333, allocations: 25.7 kB / 0.6116 GB, free: 25.15 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002578/1.336, allocations: 3.127 MB / 0.6146 GB, free: 21.98 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008007/1.336, allocations: 0.5825 MB / 0.6152 GB, free: 21.39 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006303/1.337, allocations: 0 / 0.6152 GB, free: 21.39 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0004063/1.337, allocations: 0.5668 MB / 0.6157 GB, free: 20.81 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003541/1.341, allocations: 1.414 MB / 0.6171 GB, free: 19.39 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00605/1.347, allocations: 5.26 MB / 0.6223 GB, free: 12.17 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0058/1.353, allocations: 2.721 MB / 0.6249 GB, free: 9.453 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/1.353, allocations: 40 kB / 0.625 GB, free: 9.414 MB / 395.1 MB Notification: Performance of matching and sorting (n=784) (initialization): time 0.0149/1.368, allocations: 5.684 MB / 0.6305 GB, free: 3.727 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/1.368, allocations: 64 kB / 0.6306 GB, free: 3.664 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001682/1.368, allocations: 140 kB / 0.6307 GB, free: 3.527 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002277/1.369, allocations: 200 kB / 0.6309 GB, free: 3.332 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008296/1.377, allocations: 1.451 MB / 0.6323 GB, free: 1.879 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002154/1.377, allocations: 270.9 kB / 0.6326 GB, free: 1.613 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006528/1.384, allocations: 263.4 kB / 0.6328 GB, free: 1.355 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001284/1.385, allocations: 379.9 kB / 0.6332 GB, free: 0.9844 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 757 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001444/1.387, allocations: 455.8 kB / 0.6336 GB, free: 0.5312 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007236/1.387, allocations: 312 kB / 0.6339 GB, free: 228 kB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003266/1.391, allocations: 1.043 MB / 0.6349 GB, free: 15.17 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.108e-05/1.391, allocations: 16 kB / 0.6349 GB, free: 15.16 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/1.391, allocations: 4 kB / 0.6349 GB, free: 15.15 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.368e-05/1.391, allocations: 4.266 kB / 0.635 GB, free: 15.15 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01502/1.406, allocations: 4.853 MB / 0.6397 GB, free: 10.04 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.325e-05/1.406, allocations: 16.94 kB / 0.6397 GB, free: 10.02 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002069/1.408, allocations: 275.5 kB / 0.64 GB, free: 9.75 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.374e-05/1.408, allocations: 32 kB / 0.64 GB, free: 9.719 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001704/1.408, allocations: 27.98 kB / 0.64 GB, free: 9.691 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-05/1.408, allocations: 31.81 kB / 0.6401 GB, free: 9.664 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.108e-05/1.408, allocations: 31.86 kB / 0.6401 GB, free: 9.633 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006911/1.415, allocations: 4.827 MB / 0.6448 GB, free: 4.152 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/1.417, allocations: 488.8 kB / 0.6453 GB, free: 3.652 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007665/1.418, allocations: 27.98 kB / 0.6453 GB, free: 3.625 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002529/1.421, allocations: 71.53 kB / 0.6454 GB, free: 3.559 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004017/1.421, allocations: 143.5 kB / 0.6455 GB, free: 3.418 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/1.421, allocations: 60 kB / 0.6456 GB, free: 3.359 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005783/1.427, allocations: 1.982 MB / 0.6475 GB, free: 1.391 MB / 411.1 MB Notification: Performance of sort global known variables: time 6.82e-07/1.427, allocations: 0 / 0.6475 GB, free: 1.391 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.007409/1.434, allocations: 0.75 MB / 0.6482 GB, free: 0.6406 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 75 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007222/1.435, allocations: 174.7 kB / 0.6484 GB, free: 472 kB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.2908/1.726, allocations: 3.272 MB / 0.6516 GB, free: 96.97 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-05/1.726, allocations: 3.906 kB / 0.6516 GB, free: 96.97 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001529/1.728, allocations: 0.67 MB / 0.6522 GB, free: 96.96 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/1.731, allocations: 341.1 kB / 0.6526 GB, free: 96.94 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02097/1.752, allocations: 7.292 MB / 0.6597 GB, free: 94.94 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008689/1.761, allocations: 3.18 MB / 0.6628 GB, free: 94.15 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001302/1.762, allocations: 270.5 kB / 0.6631 GB, free: 94.14 MB / 411.1 MB Notification: Performance of SimCode: time 1.473e-06/1.762, allocations: 0 / 0.6631 GB, free: 94.14 MB / 411.1 MB Notification: Performance of Templates: time 0.1048/1.867, allocations: 47.93 MB / 0.7099 GB, free: 79.19 MB / 411.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches