Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadModel(ModelicaTest): time 2.48/2.48, allocations: 234.9 MB / 251.1 MB, free: 9.695 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004404, allocations: 20 kB / 314.9 MB, free: 9.746 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3727, allocations: 54.86 MB / 369.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1797/0.5525, allocations: 97.4 MB / 467.2 MB, free: 11.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.5529, allocations: 83.95 kB / 467.3 MB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6791/1.232, allocations: 85.62 MB / 0.5399 GB, free: 93.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.737e-06/1.232, allocations: 0 / 0.5399 GB, free: 93.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003549/1.232, allocations: 80 kB / 0.54 GB, free: 93.56 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1500 * Number of variables: 1500 Notification: Performance of Generate backend data structure: time 0.02111/1.254, allocations: 4.134 MB / 0.5441 GB, free: 89.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/1.254, allocations: 17.62 kB / 0.5441 GB, free: 89.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03646/1.29, allocations: 2.43 MB / 0.5465 GB, free: 86.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04534/1.336, allocations: 5.149 MB / 0.5515 GB, free: 81.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006895/1.336, allocations: 324.8 kB / 0.5518 GB, free: 81.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003117/1.339, allocations: 437.8 kB / 0.5522 GB, free: 81.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04461/1.384, allocations: 10.53 MB / 0.5625 GB, free: 69.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004277/1.385, allocations: 59.5 kB / 0.5625 GB, free: 69.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002776/1.387, allocations: 215.7 kB / 0.5628 GB, free: 69.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003489/1.391, allocations: 1.006 MB / 0.5637 GB, free: 68.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03317/1.424, allocations: 8.221 MB / 0.5718 GB, free: 60.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06247/1.487, allocations: 47.45 MB / 0.6181 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01206/1.499, allocations: 3.027 MB / 0.6211 GB, free: 7.891 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01137/1.51, allocations: 5.211 MB / 0.6261 GB, free: 2.418 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.024e-05/1.51, allocations: 47.22 kB / 0.6262 GB, free: 2.363 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 5.491e-06/1.51, allocations: 0 / 0.6262 GB, free: 2.363 MB / 426.7 MB Notification: Performance of matching and sorting (n=146): time 0.03904/1.549, allocations: 9.215 MB / 0.6352 GB, free: 8.965 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001517/1.55, allocations: 197.2 kB / 0.6354 GB, free: 8.727 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01141/1.561, allocations: 4.079 MB / 0.6394 GB, free: 4.617 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003351/1.561, allocations: 49.61 kB / 0.6394 GB, free: 4.566 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003763/1.565, allocations: 3.077 MB / 0.6424 GB, free: 1.449 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/1.566, allocations: 0.5903 MB / 0.643 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006621/1.567, allocations: 120 kB / 0.6431 GB, free: 0.7344 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000539/1.568, allocations: 0.5626 MB / 0.6437 GB, free: 164 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005604/1.573, allocations: 1.624 MB / 0.6452 GB, free: 14.53 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009806/1.583, allocations: 5.447 MB / 0.6506 GB, free: 7.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008471/1.592, allocations: 2.9 MB / 0.6534 GB, free: 4.258 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001546/1.592, allocations: 40 kB / 0.6534 GB, free: 4.219 MB / 458.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02148/1.613, allocations: 6.668 MB / 0.6599 GB, free: 13.55 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/1.613, allocations: 64 kB / 0.66 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002449/1.614, allocations: 136 kB / 0.6601 GB, free: 13.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002767/1.614, allocations: 196 kB / 0.6603 GB, free: 13.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009196/1.623, allocations: 1.419 MB / 0.6617 GB, free: 11.74 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000363/1.624, allocations: 263 kB / 0.662 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007416/1.631, allocations: 378.6 kB / 0.6623 GB, free: 11.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001626/1.633, allocations: 368 kB / 0.6627 GB, free: 10.75 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006261/1.639, allocations: 2.021 MB / 0.6646 GB, free: 8.727 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009543/1.64, allocations: 343.5 kB / 0.665 GB, free: 8.387 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004217/1.644, allocations: 1.242 MB / 0.6662 GB, free: 7.137 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.106e-05/1.644, allocations: 16 kB / 0.6662 GB, free: 7.121 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/1.644, allocations: 4 kB / 0.6662 GB, free: 7.117 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.181e-05/1.644, allocations: 3.984 kB / 0.6662 GB, free: 7.113 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0177/1.662, allocations: 5.568 MB / 0.6716 GB, free: 1.258 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-05/1.662, allocations: 16.19 kB / 0.6717 GB, free: 1.242 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/1.664, allocations: 263.6 kB / 0.6719 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.304e-05/1.664, allocations: 24 kB / 0.6719 GB, free: 0.9609 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001778/1.664, allocations: 43.94 kB / 0.672 GB, free: 0.918 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-05/1.665, allocations: 31.92 kB / 0.672 GB, free: 0.8867 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.592e-05/1.665, allocations: 23.88 kB / 0.672 GB, free: 0.8633 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3529/2.017, allocations: 3.09 MB / 0.675 GB, free: 123.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002398/2.02, allocations: 0.5207 MB / 0.6756 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001401/2.021, allocations: 50.52 kB / 0.6756 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004075/2.025, allocations: 87.42 kB / 0.6757 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005124/2.026, allocations: 136.8 kB / 0.6758 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002367/2.026, allocations: 60.39 kB / 0.6759 GB, free: 123.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009597/2.036, allocations: 2.542 MB / 0.6784 GB, free: 123.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.443e-06/2.036, allocations: 0 / 0.6784 GB, free: 123.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0191/2.055, allocations: 0.8956 MB / 0.6792 GB, free: 123.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 69 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (134): * Single equations (assignments): 131 * 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.0005787/2.056, allocations: 196.1 kB / 0.6794 GB, free: 123.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03904/2.095, allocations: 3.674 MB / 0.683 GB, free: 123.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-05/2.095, allocations: 0 / 0.683 GB, free: 123.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01028/2.105, allocations: 0.7029 MB / 0.6837 GB, free: 123 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00428/2.11, allocations: 418.3 kB / 0.6841 GB, free: 123 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02587/2.136, allocations: 10.61 MB / 0.6945 GB, free: 118.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006884/2.142, allocations: 3.22 MB / 0.6976 GB, free: 117.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/2.144, allocations: 283.8 kB / 0.6979 GB, free: 117.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.212e-06/2.144, allocations: 0 / 0.6979 GB, free: 117.6 MB / 474.7 MB Notification: Performance of Templates: time 0.1027/2.246, allocations: 51.04 MB / 0.7477 GB, free: 89.07 MB / 474.7 MB