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.Sensors.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Sensors") Notification: Performance of loadModel(Modelica): time 1.68/1.68, allocations: 171.3 MB / 179.2 MB, free: 8.18 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.558e-05/1.564e-05, allocations: 0 / 222.5 MB, free: 8.797 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06773/0.06777, allocations: 38.77 MB / 261.3 MB, free: 1.945 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2753/0.3431, allocations: 66.78 MB / 328.1 MB, free: 5.477 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.3433, allocations: 73.14 kB / 328.1 MB, free: 5.438 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009777/0.3531, allocations: 2.482 MB / 330.6 MB, free: 3.359 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.549e-06/0.3532, allocations: 0 / 330.6 MB, free: 3.359 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.3532, allocations: 4 kB / 330.6 MB, free: 3.355 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005799/0.3538, allocations: 412.2 kB / 331 MB, free: 2.918 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3539, allocations: 8.031 kB / 331 MB, free: 2.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.395e-05/0.3539, allocations: 15.81 kB / 331 MB, free: 2.895 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.3542, allocations: 200.8 kB / 331.2 MB, free: 2.668 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.3542, allocations: 4.875 kB / 331.2 MB, free: 2.664 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.3543, allocations: 11.95 kB / 331.3 MB, free: 2.652 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002192/0.3545, allocations: 71.92 kB / 331.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/0.3548, allocations: 110 kB / 331.4 MB, free: 2.516 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.3548, allocations: 4 kB / 331.4 MB, free: 2.512 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.3548, allocations: 0 / 331.4 MB, free: 2.512 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.61e-06/0.3549, allocations: 4 kB / 331.4 MB, free: 2.508 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009749/0.3559, allocations: 0.5059 MB / 331.9 MB, free: 2.023 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.356, allocations: 61.52 kB / 332 MB, free: 1.969 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.901e-05/0.3561, allocations: 23.98 kB / 332 MB, free: 1.949 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.3561, allocations: 4 kB / 332 MB, free: 1.945 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.3562, allocations: 38.55 kB / 332.1 MB, free: 1.898 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 2.435e-06/0.3562, allocations: 4 kB / 332.1 MB, free: 1.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.001015/0.3572, allocations: 0.5222 MB / 332.6 MB, free: 1.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.3573, allocations: 55.41 kB / 332.6 MB, free: 1.254 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.3574, allocations: 123.5 kB / 332.8 MB, free: 1.133 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.3575, allocations: 25.7 kB / 332.8 MB, free: 1.102 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.3576, allocations: 192.1 kB / 333 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.3576, allocations: 47.05 kB / 333 MB, free: 0.875 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-06/0.3577, allocations: 0 / 333 MB, free: 0.875 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3578, allocations: 321.5 kB / 333.3 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.617e-05/0.3579, allocations: 24.06 kB / 333.4 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.358, allocations: 81.17 kB / 333.4 MB, free: 460 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.3581, allocations: 40.77 kB / 333.5 MB, free: 432 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3582, allocations: 0 / 333.5 MB, free: 432 kB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002782/0.3584, allocations: 127.1 kB / 333.6 MB, free: 316 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.3585, allocations: 4 kB / 333.6 MB, free: 312 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.788e-06/0.3585, allocations: 4 kB / 333.6 MB, free: 308 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.3585, allocations: 4 kB / 333.6 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.3587, allocations: 31.98 kB / 333.7 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/0.3588, allocations: 11.92 kB / 333.7 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.3589, allocations: 7.953 kB / 333.7 MB, free: 252 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.3589, allocations: 12 kB / 333.7 MB, free: 244 kB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 9.512e-05/0.359, allocations: 105 kB / 333.8 MB, free: 132 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.585e-05/0.3591, allocations: 7.906 kB / 333.8 MB, free: 124 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.728e-05/0.3591, allocations: 7.938 kB / 333.8 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.104e-06/0.3591, allocations: 0 / 333.8 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.077e-06/0.3592, allocations: 7.984 kB / 333.8 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.34e-06/0.3592, allocations: 0 / 333.8 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006693/0.3598, allocations: 396.4 kB / 334.2 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.855e-06/0.3599, allocations: 0 / 334.2 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.3601, allocations: 31.42 kB / 334.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.3601, allocations: 0 / 334.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.3601, allocations: 4 kB / 334.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.3601, allocations: 0 / 334.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.144e-06/0.3601, allocations: 3.953 kB / 334.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003503/0.3605, allocations: 254.9 kB / 334.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.892e-05/0.3606, allocations: 96.95 kB / 334.6 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.3606, allocations: 0 / 334.6 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.3608, allocations: 4 kB / 334.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.916e-05/0.3609, allocations: 15.48 kB / 334.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.061e-06/0.3609, allocations: 0 / 334.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.316e-05/0.361, allocations: 99.61 kB / 334.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.87e-07/0.361, allocations: 0 / 334.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003782/0.3614, allocations: 24 kB / 334.7 MB, free: 15.18 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001449/0.3615, allocations: 95.3 kB / 334.8 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001993/0.3617, allocations: 78.22 kB / 334.9 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3618, allocations: 4.5 kB / 334.9 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.343e-05/0.3618, allocations: 30.62 kB / 334.9 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.3621, allocations: 8.125 kB / 334.9 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007565/0.3629, allocations: 329.5 kB / 335.2 MB, free: 14.64 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.3633, allocations: 0.7119 MB / 336 MB, free: 13.9 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.708e-05/0.3634, allocations: 19.42 kB / 336 MB, free: 13.88 MB / 282.7 MB Notification: Performance of SimCode: time 1.497e-06/0.3634, allocations: 3.938 kB / 336 MB, free: 13.88 MB / 282.7 MB Notification: Performance of Templates: time 0.003585/0.367, allocations: 1.385 MB / 337.4 MB, free: 12.51 MB / 282.7 MB