Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.652/1.652, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003686, allocations: 12 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1199, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3753/0.4953, allocations: 82.48 MB / 355.1 MB, free: 7.105 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/0.4957, allocations: 95.56 kB / 355.2 MB, free: 7.051 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6256/1.121, allocations: 84.42 MB / 439.6 MB, free: 73.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.487e-06/1.121, allocations: 0 / 439.6 MB, free: 73.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002819/1.122, allocations: 78.53 kB / 439.7 MB, free: 73.64 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.0178/1.139, allocations: 4.039 MB / 443.7 MB, free: 71.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/1.14, allocations: 9.625 kB / 443.7 MB, free: 71.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02034/1.16, allocations: 2.426 MB / 446.2 MB, free: 71.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01882/1.179, allocations: 5.062 MB / 451.2 MB, free: 71.06 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004294/1.179, allocations: 307.9 kB / 451.5 MB, free: 71.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002397/1.182, allocations: 412.8 kB / 451.9 MB, free: 71.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.029/1.211, allocations: 9.935 MB / 461.9 MB, free: 68.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000328/1.211, allocations: 65.41 kB / 461.9 MB, free: 68.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002243/1.213, allocations: 202.4 kB / 462.1 MB, free: 68.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002335/1.216, allocations: 0.9856 MB / 463.1 MB, free: 68.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02386/1.24, allocations: 7.784 MB / 470.9 MB, free: 68.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06362/1.303, allocations: 45.37 MB / 0.5042 GB, free: 32.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01027/1.314, allocations: 2.741 MB / 0.5069 GB, free: 31.58 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008431/1.322, allocations: 3.458 MB / 0.5102 GB, free: 29.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/1.322, allocations: 47.09 kB / 0.5103 GB, free: 29.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 5.37e-06/1.322, allocations: 0 / 0.5103 GB, free: 29.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.03459/1.357, allocations: 9.08 MB / 0.5191 GB, free: 21.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/1.357, allocations: 141.5 kB / 0.5193 GB, free: 21.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008689/1.366, allocations: 3.944 MB / 0.5231 GB, free: 18.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000301/1.366, allocations: 45.7 kB / 0.5232 GB, free: 18.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002605/1.369, allocations: 3.083 MB / 0.5262 GB, free: 15.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007623/1.369, allocations: 0.5784 MB / 0.5267 GB, free: 14.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005196/1.37, allocations: 116 kB / 0.5269 GB, free: 14.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003408/1.37, allocations: 0.5527 MB / 0.5274 GB, free: 14.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004428/1.375, allocations: 1.559 MB / 0.5289 GB, free: 12.97 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007081/1.382, allocations: 5.288 MB / 0.5341 GB, free: 6.168 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006837/1.389, allocations: 2.82 MB / 0.5368 GB, free: 3.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001064/1.389, allocations: 36 kB / 0.5369 GB, free: 3.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01831/1.407, allocations: 6.594 MB / 0.5433 GB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/1.407, allocations: 64 kB / 0.5434 GB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002393/1.408, allocations: 132 kB / 0.5435 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002717/1.408, allocations: 199.8 kB / 0.5437 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008452/1.416, allocations: 1.381 MB / 0.545 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003294/1.417, allocations: 263.5 kB / 0.5453 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006812/1.424, allocations: 371.1 kB / 0.5456 GB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001419/1.425, allocations: 363.5 kB / 0.546 GB, free: 11.28 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.005695/1.431, allocations: 1.961 MB / 0.5479 GB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000917/1.432, allocations: 331.7 kB / 0.5482 GB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003924/1.436, allocations: 1.202 MB / 0.5494 GB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.014e-05/1.436, allocations: 19.95 kB / 0.5494 GB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/1.436, allocations: 0 / 0.5494 GB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-05/1.436, allocations: 11.97 kB / 0.5494 GB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01712/1.453, allocations: 5.64 MB / 0.5549 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.771e-05/1.453, allocations: 17 kB / 0.555 GB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/1.455, allocations: 275.5 kB / 0.5552 GB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.113e-05/1.455, allocations: 24 kB / 0.5552 GB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/1.455, allocations: 52 kB / 0.5553 GB, free: 1.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.755e-05/1.455, allocations: 43.75 kB / 0.5553 GB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.63e-05/1.455, allocations: 27.88 kB / 0.5554 GB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2697/1.725, allocations: 3.134 MB / 0.5584 GB, free: 77.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00301/1.728, allocations: 0.5111 MB / 0.5589 GB, free: 77.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001871/1.73, allocations: 50.48 kB / 0.559 GB, free: 77.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004564/1.735, allocations: 94.61 kB / 0.5591 GB, free: 77.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005218/1.735, allocations: 142.8 kB / 0.5592 GB, free: 77.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003074/1.736, allocations: 63.06 kB / 0.5592 GB, free: 77.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.01115/1.747, allocations: 2.465 MB / 0.5617 GB, free: 77.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.463e-06/1.747, allocations: 0 / 0.5617 GB, free: 77.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01092/1.758, allocations: 0.8653 MB / 0.5625 GB, free: 77.72 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.0009071/1.759, allocations: 203.5 kB / 0.5627 GB, free: 77.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01433/1.773, allocations: 3.581 MB / 0.5662 GB, free: 77.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.737e-05/1.773, allocations: 2.719 kB / 0.5662 GB, free: 77.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002601/1.776, allocations: 0.7179 MB / 0.5669 GB, free: 77.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00558/1.782, allocations: 417.2 kB / 0.5673 GB, free: 77.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03261/1.814, allocations: 10.03 MB / 0.5771 GB, free: 73.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01054/1.825, allocations: 3.161 MB / 0.5802 GB, free: 72.35 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.009742/1.835, allocations: 1.758 MB / 0.5819 GB, free: 72.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/1.836, allocations: 228.2 kB / 0.5821 GB, free: 72.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.232e-06/1.836, allocations: 0 / 0.5821 GB, free: 72.3 MB / 362.7 MB Notification: Performance of Templates: time 0.08472/1.921, allocations: 25.31 MB / 0.6068 GB, free: 70.98 MB / 362.7 MB