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.Translational.Examples.WhyArrows.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.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows") Notification: Performance of loadModel(Modelica): time 1.571/1.571, allocations: 171.1 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003625, allocations: 15.98 kB / 233.2 MB, free: 3.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07/0.07039, allocations: 38.75 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2792/0.3497, allocations: 66 MB / 338 MB, free: 7.867 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.3499, allocations: 66.78 kB / 338.1 MB, free: 7.832 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01271/0.3626, allocations: 3.35 MB / 341.4 MB, free: 4.992 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.749e-06/0.3627, allocations: 0 / 341.4 MB, free: 4.992 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.3627, allocations: 4 kB / 341.4 MB, free: 4.988 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006892/0.3634, allocations: 473.5 kB / 341.9 MB, free: 4.488 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.3635, allocations: 16.02 kB / 341.9 MB, free: 4.473 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.137e-05/0.3635, allocations: 23.72 kB / 341.9 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.3637, allocations: 186.8 kB / 342.1 MB, free: 4.227 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.3638, allocations: 23.42 kB / 342.1 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.068e-05/0.3638, allocations: 25.69 kB / 342.1 MB, free: 4.195 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004638/0.3643, allocations: 232 kB / 342.4 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3644, allocations: 0 / 342.4 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.3644, allocations: 14.62 kB / 342.4 MB, free: 4.004 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.3644, allocations: 4 kB / 342.4 MB, free: 4 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003158/0.3647, allocations: 132.3 kB / 342.5 MB, free: 3.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.3662, allocations: 0.8706 MB / 343.4 MB, free: 3.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.3665, allocations: 155.9 kB / 343.5 MB, free: 2.941 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.3665, allocations: 8.297 kB / 343.5 MB, free: 2.934 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.3666, allocations: 45.61 kB / 343.6 MB, free: 2.883 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 2.658e-06/0.3666, allocations: 0 / 343.6 MB, free: 2.883 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004777/0.3671, allocations: 161.1 kB / 343.8 MB, free: 2.754 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.441e-05/0.3672, allocations: 110.8 kB / 343.9 MB, free: 2.621 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.3674, allocations: 168.5 kB / 344 MB, free: 2.477 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.3674, allocations: 25.7 kB / 344 MB, free: 2.445 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.3676, allocations: 228.5 kB / 344.3 MB, free: 2.234 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.706e-05/0.3677, allocations: 63.47 kB / 344.3 MB, free: 2.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.466e-05/0.3677, allocations: 7.562 kB / 344.3 MB, free: 2.176 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3679, allocations: 325.3 kB / 344.7 MB, free: 1.855 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.368, allocations: 46.17 kB / 344.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.3682, allocations: 150.9 kB / 344.9 MB, free: 1.648 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.3684, allocations: 74.67 kB / 344.9 MB, free: 1.602 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.3684, allocations: 7.938 kB / 344.9 MB, free: 1.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000495/0.3689, allocations: 225.4 kB / 345.2 MB, free: 1.418 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.3689, allocations: 8 kB / 345.2 MB, free: 1.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.852e-06/0.369, allocations: 8.125 kB / 345.2 MB, free: 1.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.369, allocations: 11.94 kB / 345.2 MB, free: 1.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002746/0.3693, allocations: 59.91 kB / 345.2 MB, free: 1.332 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.3693, allocations: 8.734 kB / 345.2 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.3695, allocations: 32.17 kB / 345.3 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.3695, allocations: 15.38 kB / 345.3 MB, free: 1.285 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * 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.0001636/0.3697, allocations: 146.6 kB / 345.4 MB, free: 1.148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.3698, allocations: 23.72 kB / 345.5 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.022e-05/0.3699, allocations: 20.41 kB / 345.5 MB, free: 1.109 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.259e-06/0.3699, allocations: 4 kB / 345.5 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.216e-06/0.3699, allocations: 0 / 345.5 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.37, allocations: 7.938 kB / 345.5 MB, free: 1.098 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007135/0.3707, allocations: 413.2 kB / 345.9 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.349e-06/0.3707, allocations: 4.094 kB / 345.9 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002636/0.371, allocations: 38.36 kB / 345.9 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.264e-06/0.371, allocations: 4 kB / 345.9 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.371, allocations: 7.016 kB / 345.9 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.677e-06/0.371, allocations: 7.984 kB / 346 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.493e-06/0.3711, allocations: 3.938 kB / 346 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005332/0.3716, allocations: 416.4 kB / 346.4 MB, free: 208 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.145e-05/0.3717, allocations: 96.05 kB / 346.5 MB, free: 96 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.3718, allocations: 4 kB / 346.5 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.372, allocations: 3.812 kB / 346.5 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.372, allocations: 23.92 kB / 346.5 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.372, allocations: 15.17 kB / 346.5 MB, free: 56 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001716/0.3722, allocations: 139 kB / 346.6 MB, free: 15.94 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.93e-07/0.3722, allocations: 0 / 346.6 MB, free: 15.94 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005118/0.3728, allocations: 53.34 kB / 346.7 MB, free: 15.89 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.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 (17): * Single equations (assignments): 17 * Array equations: 0 * 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.0001484/0.3729, allocations: 106.5 kB / 346.8 MB, free: 15.78 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003282/0.3733, allocations: 141.6 kB / 346.9 MB, free: 15.67 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.061e-06/0.3733, allocations: 0 / 346.9 MB, free: 15.67 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.3734, allocations: 58.41 kB / 347 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.3738, allocations: 23.62 kB / 347 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.3752, allocations: 0.7359 MB / 347.8 MB, free: 14.86 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.3756, allocations: 0.7478 MB / 348.5 MB, free: 14.08 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.476e-05/0.3757, allocations: 23.38 kB / 348.5 MB, free: 14.06 MB / 282.7 MB Notification: Performance of SimCode: time 1.47e-06/0.3757, allocations: 0 / 348.5 MB, free: 14.06 MB / 282.7 MB Notification: Performance of Templates: time 0.00477/0.3805, allocations: 2.21 MB / 350.7 MB, free: 11.88 MB / 282.7 MB