Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.112/2.112, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.938e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2753, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.4257, allocations: 96.65 MB / 454.7 MB, free: 14.15 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.426, allocations: 71.97 kB / 454.8 MB, free: 14.08 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5292/0.9552, allocations: 83.03 MB / 0.5252 GB, free: 43.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.688e-06/0.9552, allocations: 0 / 0.5252 GB, free: 43.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000195/0.9554, allocations: 84 kB / 0.5253 GB, free: 43.14 MB / 394.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.0102/0.9657, allocations: 3.897 MB / 0.5291 GB, free: 39.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.9657, allocations: 12.03 kB / 0.5291 GB, free: 39.17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01304/0.9788, allocations: 2.436 MB / 0.5315 GB, free: 36.72 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/0.9922, allocations: 5.122 MB / 0.5365 GB, free: 31.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002581/0.9925, allocations: 136.7 kB / 0.5366 GB, free: 31.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001639/0.9942, allocations: 251.9 kB / 0.5368 GB, free: 31.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01229/1.007, allocations: 6.01 MB / 0.5427 GB, free: 25.14 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01739/1.024, allocations: 9.261 MB / 0.5517 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001823/1.024, allocations: 71.34 kB / 0.5518 GB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007916/1.025, allocations: 32 kB / 0.5518 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001527/1.027, allocations: 1.01 MB / 0.5528 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05977/1.086, allocations: 46.62 MB / 0.5984 GB, free: 13.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003569/1.09, allocations: 1.975 MB / 0.6003 GB, free: 11.29 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002191/1.092, allocations: 0.8708 MB / 0.6011 GB, free: 10.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007571/1.093, allocations: 0.5644 MB / 0.6017 GB, free: 9.738 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.98e-05/1.093, allocations: 47.34 kB / 0.6017 GB, free: 9.684 MB / 442.7 MB Notification: Performance of pre-optimization done (n=144): time 1.138e-05/1.093, allocations: 0 / 0.6017 GB, free: 9.684 MB / 442.7 MB Notification: Performance of matching and sorting (n=156): time 0.02376/1.117, allocations: 8.748 MB / 0.6103 GB, free: 0.7891 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/1.117, allocations: 248.1 kB / 0.6105 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006457/1.123, allocations: 3.031 MB / 0.6135 GB, free: 13.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002377/1.124, allocations: 29.7 kB / 0.6135 GB, free: 13.43 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003266/1.127, allocations: 3.154 MB / 0.6166 GB, free: 10.23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008942/1.128, allocations: 0.6056 MB / 0.6172 GB, free: 9.617 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004061/1.128, allocations: 4 kB / 0.6172 GB, free: 9.613 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005784/1.129, allocations: 0.5671 MB / 0.6177 GB, free: 9.035 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003259/1.132, allocations: 1.468 MB / 0.6192 GB, free: 7.562 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007411/1.14, allocations: 5.369 MB / 0.6244 GB, free: 212 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2772/1.417, allocations: 2.819 MB / 0.6272 GB, free: 105.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000121/1.417, allocations: 41 kB / 0.6272 GB, free: 105.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01398/1.431, allocations: 5.846 MB / 0.6329 GB, free: 105.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/1.431, allocations: 64.47 kB / 0.633 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000151/1.431, allocations: 142.1 kB / 0.6331 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002204/1.432, allocations: 204.9 kB / 0.6333 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005562/1.437, allocations: 1.471 MB / 0.6347 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002259/1.438, allocations: 274.5 kB / 0.635 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005797/1.443, allocations: 274.3 kB / 0.6353 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001091/1.444, allocations: 382 kB / 0.6356 GB, free: 105.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (776): * Single equations (assignments): 773 * 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.0009763/1.445, allocations: 457.6 kB / 0.6361 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006743/1.446, allocations: 320.4 kB / 0.6364 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002327/1.448, allocations: 1.161 MB / 0.6375 GB, free: 105.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.664e-05/1.449, allocations: 20.72 kB / 0.6375 GB, free: 105.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.922e-06/1.449, allocations: 0 / 0.6375 GB, free: 105.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/1.449, allocations: 7.578 kB / 0.6375 GB, free: 105.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/1.459, allocations: 5.025 MB / 0.6424 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.671e-05/1.459, allocations: 14.78 kB / 0.6425 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/1.461, allocations: 276.9 kB / 0.6427 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.154e-05/1.461, allocations: 24.59 kB / 0.6427 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/1.461, allocations: 25.94 kB / 0.6428 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.627e-05/1.461, allocations: 32.84 kB / 0.6428 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.932e-05/1.461, allocations: 31.05 kB / 0.6428 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004276/1.465, allocations: 4.761 MB / 0.6475 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001285/1.467, allocations: 0.4924 MB / 0.648 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005747/1.467, allocations: 26.17 kB / 0.648 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001834/1.469, allocations: 72.44 kB / 0.648 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/1.469, allocations: 131 kB / 0.6482 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/1.469, allocations: 67.61 kB / 0.6482 GB, free: 100.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003852/1.473, allocations: 2.002 MB / 0.6502 GB, free: 100.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.025e-06/1.473, allocations: 2.406 kB / 0.6502 GB, free: 100.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006418/1.48, allocations: 0.756 MB / 0.6509 GB, free: 100.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 71 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete 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 (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.0005299/1.48, allocations: 174 kB / 0.6511 GB, free: 100.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006033/1.486, allocations: 3.368 MB / 0.6544 GB, free: 100 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.497e-05/1.486, allocations: 3.188 kB / 0.6544 GB, free: 100 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/1.488, allocations: 0.6812 MB / 0.6551 GB, free: 99.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002301/1.49, allocations: 360.6 kB / 0.6554 GB, free: 99.97 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01574/1.506, allocations: 7.399 MB / 0.6626 GB, free: 97.88 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005472/1.511, allocations: 3.225 MB / 0.6658 GB, free: 96.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009306/1.512, allocations: 274.6 kB / 0.666 GB, free: 96.88 MB / 458.7 MB Notification: Performance of SimCode: time 2.041e-06/1.512, allocations: 0 / 0.666 GB, free: 96.88 MB / 458.7 MB Notification: Performance of Templates: time 0.07261/1.585, allocations: 48.95 MB / 0.7138 GB, free: 63.38 MB / 458.7 MB