Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadModel(ModelicaTest): time 1.93/1.93, allocations: 209.4 MB / 217.3 MB, free: 4.133 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.708e-05/1.72e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2544, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.3614, allocations: 73.2 MB / 393.2 MB, free: 7.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.3616, allocations: 63.97 kB / 393.3 MB, free: 7.188 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003513/0.3652, allocations: 0.9388 MB / 394.2 MB, free: 6.246 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.889e-06/0.3652, allocations: 4 kB / 394.2 MB, free: 6.242 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.426e-06/0.3652, allocations: 7.938 kB / 394.2 MB, free: 6.234 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004154/0.3657, allocations: 330.5 kB / 394.5 MB, free: 5.867 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3657, allocations: 12.03 kB / 394.6 MB, free: 5.855 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.3658, allocations: 7.891 kB / 394.6 MB, free: 5.848 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.366, allocations: 183 kB / 394.7 MB, free: 5.629 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.633e-06/0.366, allocations: 0 / 394.7 MB, free: 5.629 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.538e-05/0.366, allocations: 4 kB / 394.7 MB, free: 5.625 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.498e-05/0.3661, allocations: 11.94 kB / 394.8 MB, free: 5.613 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.083e-05/0.3662, allocations: 45.69 kB / 394.8 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3663, allocations: 0 / 394.8 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3663, allocations: 3.938 kB / 394.8 MB, free: 5.559 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.785e-06/0.3663, allocations: 0 / 394.8 MB, free: 5.559 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004438/0.3667, allocations: 257.5 kB / 395.1 MB, free: 5.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.451e-05/0.3668, allocations: 22.58 kB / 395.1 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.507e-05/0.3669, allocations: 12.86 kB / 395.1 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.3669, allocations: 0 / 395.1 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000147/0.3671, allocations: 67.33 kB / 395.2 MB, free: 5.145 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.278e-06/0.3671, allocations: 0 / 395.2 MB, free: 5.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001765/0.3673, allocations: 53.69 kB / 395.2 MB, free: 5.086 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.3673, allocations: 63.39 kB / 395.3 MB, free: 5.012 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.735e-05/0.3674, allocations: 97.19 kB / 395.4 MB, free: 4.906 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.3675, allocations: 25.7 kB / 395.4 MB, free: 4.875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.971e-05/0.3676, allocations: 158.6 kB / 395.5 MB, free: 4.719 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.218e-05/0.3676, allocations: 11.8 kB / 395.6 MB, free: 4.707 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.043e-06/0.3676, allocations: 0 / 395.6 MB, free: 4.707 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3678, allocations: 318.8 kB / 395.9 MB, free: 4.387 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.162e-05/0.3678, allocations: 8 kB / 395.9 MB, free: 4.379 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.613e-05/0.3679, allocations: 40.23 kB / 395.9 MB, free: 4.324 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.835e-05/0.3679, allocations: 16.36 kB / 395.9 MB, free: 4.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.902e-06/0.368, allocations: 0 / 395.9 MB, free: 4.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001613/0.3681, allocations: 69.69 kB / 396 MB, free: 4.234 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.3682, allocations: 8.781 kB / 396 MB, free: 4.227 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.246e-06/0.3682, allocations: 3.938 kB / 396 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.3682, allocations: 0 / 396 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.3683, allocations: 19.92 kB / 396 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.62e-06/0.3683, allocations: 160 / 396 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.734e-05/0.3684, allocations: 4 kB / 396 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.3684, allocations: 7.984 kB / 396 MB, free: 4.191 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.335e-05/0.3685, allocations: 116.1 kB / 396.2 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/0.3686, allocations: 7.906 kB / 396.2 MB, free: 4.066 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.331e-05/0.3686, allocations: 8.344 kB / 396.2 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.921e-06/0.3686, allocations: 4 kB / 396.2 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.3686, allocations: 3.984 kB / 396.2 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.902e-06/0.3686, allocations: 0 / 396.2 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.3688, allocations: 146.2 kB / 396.3 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.19e-06/0.3688, allocations: 7.984 kB / 396.3 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.508e-05/0.3689, allocations: 11.94 kB / 396.3 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.569e-06/0.3689, allocations: 0 / 396.3 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.369, allocations: 7.938 kB / 396.3 MB, free: 3.844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.113e-06/0.369, allocations: 4 kB / 396.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.223e-06/0.369, allocations: 0 / 396.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002053/0.3692, allocations: 97.02 kB / 396.4 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.344e-05/0.3693, allocations: 85.12 kB / 396.5 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.3693, allocations: 3.953 kB / 396.5 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.023e-05/0.3694, allocations: 0 / 396.5 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.966e-05/0.3694, allocations: 8.062 kB / 396.5 MB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.3695, allocations: 3.984 kB / 396.5 MB, free: 3.609 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.774e-05/0.3695, allocations: 87.28 kB / 396.6 MB, free: 3.523 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.3696, allocations: 0 / 396.6 MB, free: 3.523 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002673/0.3698, allocations: 8 kB / 396.6 MB, free: 3.516 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001303/0.37, allocations: 99.23 kB / 396.7 MB, free: 3.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001081/0.3701, allocations: 27.94 kB / 396.8 MB, free: 3.379 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.382e-06/0.3701, allocations: 320 / 396.8 MB, free: 3.379 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.223e-05/0.3702, allocations: 19.94 kB / 396.8 MB, free: 3.359 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001124/0.3703, allocations: 288 / 396.8 MB, free: 3.359 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002944/0.3706, allocations: 124.7 kB / 396.9 MB, free: 3.211 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.371, allocations: 0.6884 MB / 397.6 MB, free: 2.496 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.394e-05/0.371, allocations: 15.44 kB / 397.6 MB, free: 2.48 MB / 330.7 MB Notification: Performance of SimCode: time 1.346e-06/0.371, allocations: 0 / 397.6 MB, free: 2.48 MB / 330.7 MB Notification: Performance of Templates: time 0.002245/0.3733, allocations: 0.7134 MB / 398.3 MB, free: 1.766 MB / 330.7 MB