Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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) 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.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 2.175/2.175, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005344/0.0005346, allocations: 8 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1231, allocations: 44.5 MB / 309.1 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4971/0.6202, allocations: 88.1 MB / 397.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/0.6206, allocations: 93.38 kB / 397.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3544/0.975, allocations: 84.43 MB / 481.7 MB, free: 6.078 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.975, allocations: 0 / 481.7 MB, free: 6.078 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003026/0.9753, allocations: 80 kB / 481.8 MB, free: 6 MB / 362.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.01656/0.9919, allocations: 4.038 MB / 485.8 MB, free: 1.922 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.992, allocations: 8.031 kB / 485.8 MB, free: 1.914 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02037/1.012, allocations: 2.44 MB / 488.2 MB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02009/1.033, allocations: 5.059 MB / 493.3 MB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005103/1.033, allocations: 309.9 kB / 493.6 MB, free: 10.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002578/1.036, allocations: 402 kB / 494 MB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03314/1.069, allocations: 9.939 MB / 0.4921 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003002/1.069, allocations: 59.41 kB / 0.4922 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002056/1.071, allocations: 207.9 kB / 0.4924 GB, free: 14.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002801/1.074, allocations: 0.9862 MB / 0.4933 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02747/1.102, allocations: 7.791 MB / 0.501 GB, free: 5.715 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3632/1.465, allocations: 45.37 MB / 0.5453 GB, free: 60.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/1.476, allocations: 2.723 MB / 0.5479 GB, free: 59.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01017/1.486, allocations: 3.459 MB / 0.5513 GB, free: 58.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/1.487, allocations: 49.91 kB / 0.5513 GB, free: 58.58 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 5.611e-06/1.487, allocations: 0 / 0.5513 GB, free: 58.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.03672/1.523, allocations: 9.072 MB / 0.5602 GB, free: 55.56 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/1.523, allocations: 145.9 kB / 0.5603 GB, free: 55.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01025/1.534, allocations: 3.942 MB / 0.5642 GB, free: 55.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003451/1.534, allocations: 50.42 kB / 0.5642 GB, free: 55.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003743/1.538, allocations: 3.078 MB / 0.5672 GB, free: 53.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009838/1.539, allocations: 0.5751 MB / 0.5678 GB, free: 53.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007523/1.54, allocations: 117.8 kB / 0.5679 GB, free: 53.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004346/1.54, allocations: 0.5524 MB / 0.5685 GB, free: 52.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004876/1.545, allocations: 1.567 MB / 0.57 GB, free: 52.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007869/1.553, allocations: 5.284 MB / 0.5751 GB, free: 47.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00758/1.561, allocations: 2.823 MB / 0.5779 GB, free: 47.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001648/1.561, allocations: 38.5 kB / 0.5779 GB, free: 47.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01971/1.581, allocations: 6.6 MB / 0.5844 GB, free: 47.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/1.581, allocations: 65.2 kB / 0.5844 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001888/1.581, allocations: 132.5 kB / 0.5846 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002324/1.581, allocations: 195.2 kB / 0.5848 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008029/1.589, allocations: 1.38 MB / 0.5861 GB, free: 47.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002652/1.59, allocations: 260.9 kB / 0.5864 GB, free: 47.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00682/1.596, allocations: 368.5 kB / 0.5867 GB, free: 47.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001375/1.598, allocations: 361.6 kB / 0.5871 GB, free: 47.25 MB / 410.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.005278/1.603, allocations: 1.957 MB / 0.589 GB, free: 46.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008617/1.604, allocations: 342.5 kB / 0.5893 GB, free: 46.67 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003627/1.608, allocations: 1.2 MB / 0.5905 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.872e-05/1.608, allocations: 17.62 kB / 0.5905 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/1.608, allocations: 0 / 0.5905 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/1.608, allocations: 6.516 kB / 0.5905 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01574/1.624, allocations: 5.635 MB / 0.596 GB, free: 43.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.982e-05/1.624, allocations: 23.33 kB / 0.596 GB, free: 43.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001823/1.625, allocations: 269.6 kB / 0.5963 GB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-05/1.625, allocations: 25.38 kB / 0.5963 GB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001375/1.626, allocations: 53 kB / 0.5963 GB, free: 43.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.893e-05/1.626, allocations: 35.08 kB / 0.5964 GB, free: 43.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.867e-05/1.626, allocations: 28.94 kB / 0.5964 GB, free: 43.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005435/1.631, allocations: 3.152 MB / 0.5995 GB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002088/1.633, allocations: 0.5161 MB / 0.6 GB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/1.634, allocations: 54.25 kB / 0.6 GB, free: 41.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002544/1.637, allocations: 82.92 kB / 0.6001 GB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003656/1.637, allocations: 140.8 kB / 0.6003 GB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001382/1.638, allocations: 68.09 kB / 0.6003 GB, free: 41.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006936/1.644, allocations: 2.466 MB / 0.6027 GB, free: 40.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.645, allocations: 0 / 0.6027 GB, free: 40.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007015/1.652, allocations: 0.8641 MB / 0.6036 GB, free: 40.25 MB / 410.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.0006625/1.652, allocations: 212.1 kB / 0.6038 GB, free: 40.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009022/1.661, allocations: 3.58 MB / 0.6073 GB, free: 38.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.986e-05/1.661, allocations: 7.219 kB / 0.6073 GB, free: 38.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/1.663, allocations: 0.7061 MB / 0.608 GB, free: 38.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/1.666, allocations: 426.1 kB / 0.6084 GB, free: 38.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02244/1.689, allocations: 10.02 MB / 0.6182 GB, free: 32.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006823/1.696, allocations: 3.164 MB / 0.6213 GB, free: 29.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.008242/1.704, allocations: 1.755 MB / 0.623 GB, free: 28.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009787/1.705, allocations: 225.8 kB / 0.6232 GB, free: 28.48 MB / 410.7 MB Notification: Performance of SimCode: time 1.583e-06/1.705, allocations: 0 / 0.6232 GB, free: 28.48 MB / 410.7 MB Notification: Performance of Templates: time 0.08309/1.788, allocations: 25.33 MB / 0.6479 GB, free: 11.31 MB / 410.7 MB