Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.614/1.614, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003663, allocations: 15.98 kB / 233.2 MB, free: 2.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07256/0.07296, allocations: 38.76 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3098/0.3828, allocations: 82.49 MB / 354.5 MB, free: 7.637 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/0.3831, allocations: 86.2 kB / 354.6 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5613/0.9444, allocations: 83.58 MB / 438.2 MB, free: 72.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.879e-06/0.9445, allocations: 0 / 438.2 MB, free: 72.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002288/0.9447, allocations: 78.84 kB / 438.2 MB, free: 72.74 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.01249/0.9572, allocations: 4.034 MB / 442.3 MB, free: 71.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.9573, allocations: 11.97 kB / 442.3 MB, free: 71.03 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01388/0.9712, allocations: 2.432 MB / 444.7 MB, free: 70.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01482/0.9861, allocations: 5.055 MB / 449.8 MB, free: 70.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003867/0.9865, allocations: 311.8 kB / 450.1 MB, free: 70.19 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001761/0.9883, allocations: 414.7 kB / 450.5 MB, free: 70.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02348/1.012, allocations: 9.935 MB / 460.4 MB, free: 67.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00021/1.012, allocations: 61.94 kB / 460.5 MB, free: 67.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001225/1.013, allocations: 201.3 kB / 460.7 MB, free: 67.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001649/1.015, allocations: 0.9908 MB / 461.7 MB, free: 67.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01949/1.034, allocations: 7.786 MB / 469.4 MB, free: 67.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04998/1.084, allocations: 45.37 MB / 0.5027 GB, free: 32.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008084/1.093, allocations: 2.747 MB / 0.5054 GB, free: 31.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007564/1.1, allocations: 3.453 MB / 0.5088 GB, free: 29.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/1.1, allocations: 48.73 kB / 0.5089 GB, free: 29.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 6.272e-06/1.1, allocations: 0 / 0.5089 GB, free: 29.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.02934/1.13, allocations: 9.079 MB / 0.5177 GB, free: 22 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/1.13, allocations: 141.5 kB / 0.5179 GB, free: 21.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007301/1.137, allocations: 3.527 MB / 0.5213 GB, free: 18.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002175/1.137, allocations: 45.7 kB / 0.5213 GB, free: 18.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002035/1.139, allocations: 3.005 MB / 0.5243 GB, free: 16.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006372/1.14, allocations: 0.5872 MB / 0.5248 GB, free: 15.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004447/1.14, allocations: 116 kB / 0.525 GB, free: 15.49 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003396/1.141, allocations: 0.5532 MB / 0.5255 GB, free: 15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003918/1.145, allocations: 1.565 MB / 0.527 GB, free: 13.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005741/1.151, allocations: 5.285 MB / 0.5322 GB, free: 6.902 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005465/1.156, allocations: 2.822 MB / 0.5349 GB, free: 4.398 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/1.156, allocations: 43.84 kB / 0.535 GB, free: 4.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01553/1.172, allocations: 6.473 MB / 0.5413 GB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001335/1.172, allocations: 60 kB / 0.5414 GB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002184/1.172, allocations: 144.1 kB / 0.5415 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002741/1.172, allocations: 192 kB / 0.5417 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005891/1.178, allocations: 1.381 MB / 0.543 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003171/1.179, allocations: 268.5 kB / 0.5433 GB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006035/1.185, allocations: 369.2 kB / 0.5436 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00116/1.186, allocations: 363.5 kB / 0.544 GB, free: 12.14 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.005144/1.191, allocations: 1.959 MB / 0.5459 GB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008283/1.192, allocations: 335.6 kB / 0.5462 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003201/1.195, allocations: 1.196 MB / 0.5474 GB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.57e-05/1.195, allocations: 16 kB / 0.5474 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-05/1.195, allocations: 7.953 kB / 0.5474 GB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/1.195, allocations: 6.797 kB / 0.5474 GB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01498/1.21, allocations: 5.638 MB / 0.5529 GB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.902e-05/1.21, allocations: 20 kB / 0.5529 GB, free: 3.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001328/1.212, allocations: 272.3 kB / 0.5532 GB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.949e-05/1.212, allocations: 28 kB / 0.5532 GB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/1.212, allocations: 48 kB / 0.5533 GB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.182e-05/1.212, allocations: 35.86 kB / 0.5533 GB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.881e-05/1.212, allocations: 31.83 kB / 0.5533 GB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2186/1.431, allocations: 5.134 MB / 0.5584 GB, free: 76.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/1.432, allocations: 0.516 MB / 0.5589 GB, free: 76.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006954/1.433, allocations: 48.34 kB / 0.5589 GB, free: 76.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002233/1.435, allocations: 92.16 kB / 0.559 GB, free: 76.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003338/1.436, allocations: 140.2 kB / 0.5591 GB, free: 76.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/1.436, allocations: 66.42 kB / 0.5592 GB, free: 76.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006595/1.443, allocations: 2.463 MB / 0.5616 GB, free: 75.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.153e-06/1.443, allocations: 0 / 0.5616 GB, free: 75.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006932/1.45, allocations: 0.8664 MB / 0.5624 GB, free: 75.93 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.0005858/1.45, allocations: 206.8 kB / 0.5626 GB, free: 75.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008057/1.458, allocations: 3.581 MB / 0.5661 GB, free: 75.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.578e-05/1.458, allocations: 3.25 kB / 0.5661 GB, free: 75.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/1.46, allocations: 0.7158 MB / 0.5668 GB, free: 75.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002953/1.463, allocations: 409.1 kB / 0.5672 GB, free: 75.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01896/1.482, allocations: 10.41 MB / 0.5774 GB, free: 71.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005713/1.487, allocations: 3.166 MB / 0.5805 GB, free: 70.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009289/1.488, allocations: 273.6 kB / 0.5807 GB, free: 70.53 MB / 362.7 MB Notification: Performance of SimCode: time 1.725e-06/1.488, allocations: 0.9844 kB / 0.5807 GB, free: 70.53 MB / 362.7 MB Notification: Performance of Templates: time 0.114/1.602, allocations: 49.45 MB / 0.629 GB, free: 52.61 MB / 362.7 MB