Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.783/1.783, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003542, allocations: 12 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0903/0.09068, allocations: 38.76 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3995/0.4902, allocations: 82.47 MB / 355 MB, free: 7.672 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003368/0.4906, allocations: 100.8 kB / 355.1 MB, free: 7.617 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6988/1.189, allocations: 84.42 MB / 439.5 MB, free: 73.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.348e-06/1.19, allocations: 0 / 439.5 MB, free: 73.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004065/1.19, allocations: 74.47 kB / 439.6 MB, free: 73.28 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.02689/1.217, allocations: 4.043 MB / 443.6 MB, free: 71.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/1.217, allocations: 12.19 kB / 443.7 MB, free: 71.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02844/1.245, allocations: 2.423 MB / 446.1 MB, free: 71.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02471/1.27, allocations: 5.063 MB / 451.1 MB, free: 70.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006255/1.271, allocations: 308.9 kB / 451.4 MB, free: 70.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002858/1.274, allocations: 412.9 kB / 451.8 MB, free: 70.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04973/1.324, allocations: 9.973 MB / 461.8 MB, free: 67.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003983/1.324, allocations: 55.41 kB / 461.9 MB, free: 67.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002762/1.327, allocations: 205.6 kB / 462.1 MB, free: 67.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003711/1.331, allocations: 0.9892 MB / 463.1 MB, free: 67.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03303/1.364, allocations: 7.785 MB / 470.9 MB, free: 67.74 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08872/1.452, allocations: 45.36 MB / 0.5041 GB, free: 32.76 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01619/1.469, allocations: 2.733 MB / 0.5068 GB, free: 31.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01377/1.483, allocations: 3.468 MB / 0.5102 GB, free: 29.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.32e-05/1.483, allocations: 46.97 kB / 0.5102 GB, free: 29.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 5.49e-06/1.483, allocations: 0 / 0.5102 GB, free: 29.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.04396/1.527, allocations: 9.081 MB / 0.5191 GB, free: 21.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.295e-05/1.527, allocations: 141.5 kB / 0.5192 GB, free: 21.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01237/1.539, allocations: 3.953 MB / 0.5231 GB, free: 18.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003407/1.54, allocations: 45.7 kB / 0.5231 GB, free: 18.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003354/1.543, allocations: 3.006 MB / 0.5261 GB, free: 15.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/1.544, allocations: 0.5803 MB / 0.5266 GB, free: 15.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007958/1.545, allocations: 119.7 kB / 0.5267 GB, free: 15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005484/1.545, allocations: 0.5476 MB / 0.5273 GB, free: 14.51 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006603/1.552, allocations: 1.568 MB / 0.5288 GB, free: 13.21 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009683/1.562, allocations: 5.311 MB / 0.534 GB, free: 6.387 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009308/1.571, allocations: 2.818 MB / 0.5367 GB, free: 3.883 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001657/1.571, allocations: 40 kB / 0.5368 GB, free: 3.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.02126/1.593, allocations: 6.534 MB / 0.5432 GB, free: 14.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001348/1.593, allocations: 64.19 kB / 0.5432 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002802/1.593, allocations: 139.9 kB / 0.5434 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002795/1.593, allocations: 196 kB / 0.5435 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008567/1.602, allocations: 1.378 MB / 0.5449 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003395/1.602, allocations: 271.2 kB / 0.5451 GB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006825/1.609, allocations: 370.4 kB / 0.5455 GB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001378/1.611, allocations: 356 kB / 0.5458 GB, free: 11.78 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * Number of states: 0 () * Number of discrete variables: 33 (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.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 (726): * Single equations (assignments): 723 * 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.005981/1.617, allocations: 1.958 MB / 0.5478 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009647/1.618, allocations: 335.6 kB / 0.5481 GB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004104/1.622, allocations: 1.195 MB / 0.5492 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.878e-05/1.622, allocations: 16 kB / 0.5493 GB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/1.622, allocations: 7.891 kB / 0.5493 GB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.598e-05/1.622, allocations: 7.969 kB / 0.5493 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01815/1.64, allocations: 5.642 MB / 0.5548 GB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.463e-05/1.64, allocations: 16 kB / 0.5548 GB, free: 2.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002033/1.642, allocations: 276.4 kB / 0.5551 GB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.255e-05/1.642, allocations: 24 kB / 0.5551 GB, free: 2.195 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/1.643, allocations: 55.98 kB / 0.5551 GB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.395e-05/1.643, allocations: 39.81 kB / 0.5552 GB, free: 2.102 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.971e-05/1.643, allocations: 27.88 kB / 0.5552 GB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2642/1.907, allocations: 3.142 MB / 0.5583 GB, free: 77.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002007/1.909, allocations: 0.5103 MB / 0.5588 GB, free: 77.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001241/1.91, allocations: 50.95 kB / 0.5588 GB, free: 77.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002797/1.913, allocations: 86.86 kB / 0.5589 GB, free: 77.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004609/1.914, allocations: 142.8 kB / 0.559 GB, free: 77.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/1.914, allocations: 69.36 kB / 0.5591 GB, free: 77.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.008725/1.922, allocations: 2.464 MB / 0.5615 GB, free: 77.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.164e-06/1.923, allocations: 0 / 0.5615 GB, free: 77.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007454/1.93, allocations: 0.8643 MB / 0.5623 GB, free: 77.28 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * 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 (138): * Single equations (assignments): 135 * 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.0008062/1.931, allocations: 200.2 kB / 0.5625 GB, free: 77.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01039/1.941, allocations: 3.585 MB / 0.566 GB, free: 77.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.272e-05/1.941, allocations: 2.5 kB / 0.566 GB, free: 77.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/1.943, allocations: 0.7135 MB / 0.5667 GB, free: 77.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0039/1.947, allocations: 421.4 kB / 0.5671 GB, free: 77.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02437/1.972, allocations: 10.46 MB / 0.5774 GB, free: 72.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007328/1.979, allocations: 3.158 MB / 0.5804 GB, free: 71.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0012/1.98, allocations: 277.8 kB / 0.5807 GB, free: 71.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.383e-06/1.98, allocations: 3.609 kB / 0.5807 GB, free: 71.88 MB / 362.7 MB Notification: Performance of Templates: time 0.1029/2.083, allocations: 49.45 MB / 0.629 GB, free: 54.5 MB / 362.7 MB