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/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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.926/1.926, allocations: 209.3 MB / 222.4 MB, free: 7.738 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.642e-05/2.661e-05, allocations: 0 / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08497/0.08503, allocations: 48.7 MB / 326.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3297/0.4148, allocations: 73.86 MB / 400.4 MB, free: 10.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001744/0.415, allocations: 64.22 kB / 400.5 MB, free: 10.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003366/0.4184, allocations: 0.9398 MB / 401.4 MB, free: 10.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.055e-06/0.4184, allocations: 4 kB / 401.4 MB, free: 10.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.289e-06/0.4185, allocations: 0 / 401.4 MB, free: 10.04 MB / 314.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.0003172/0.4188, allocations: 342 kB / 401.7 MB, free: 9.688 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.4188, allocations: 7.688 kB / 401.7 MB, free: 9.688 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.4189, allocations: 8.625 kB / 401.7 MB, free: 9.684 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.419, allocations: 176.5 kB / 401.9 MB, free: 9.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.4191, allocations: 9.125 kB / 401.9 MB, free: 9.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/0.4191, allocations: 0 / 401.9 MB, free: 9.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.4192, allocations: 50.2 kB / 402 MB, free: 9.445 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.4192, allocations: 0 / 402 MB, free: 9.445 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.4193, allocations: 3.938 kB / 402 MB, free: 9.441 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.114e-06/0.4193, allocations: 0 / 402 MB, free: 9.441 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.02e-05/0.4193, allocations: 17.58 kB / 402 MB, free: 9.438 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003774/0.4197, allocations: 274.3 kB / 402.3 MB, free: 9.152 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.091e-05/0.4198, allocations: 29.98 kB / 402.3 MB, free: 9.125 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.248e-05/0.4199, allocations: 13.83 kB / 402.3 MB, free: 9.117 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.4199, allocations: 3.938 kB / 402.3 MB, free: 9.117 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001351/0.42, allocations: 73.47 kB / 402.4 MB, free: 9.051 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 2.398e-06/0.4201, allocations: 0 / 402.4 MB, free: 9.051 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001668/0.4202, allocations: 56 kB / 402.4 MB, free: 9.012 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.4203, allocations: 51.41 kB / 402.5 MB, free: 8.949 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.989e-05/0.4203, allocations: 107 kB / 402.6 MB, free: 8.852 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.4204, allocations: 29.58 kB / 402.6 MB, free: 8.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.599e-05/0.4204, allocations: 151.5 kB / 402.8 MB, free: 8.672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.4205, allocations: 14.28 kB / 402.8 MB, free: 8.664 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.212e-06/0.4205, allocations: 0 / 402.8 MB, free: 8.664 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.633e-05/0.4205, allocations: 322 kB / 403.1 MB, free: 8.344 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.339e-05/0.4206, allocations: 15.66 kB / 403.1 MB, free: 8.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.492e-05/0.4206, allocations: 43.44 kB / 403.2 MB, free: 8.297 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.238e-05/0.4207, allocations: 15.11 kB / 403.2 MB, free: 8.293 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.703e-06/0.4207, allocations: 0 / 403.2 MB, free: 8.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001426/0.4209, allocations: 77.19 kB / 403.2 MB, free: 8.246 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.4209, allocations: 11.5 kB / 403.3 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.366e-06/0.4209, allocations: 0 / 403.3 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.4209, allocations: 0 / 403.3 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.421, allocations: 15.55 kB / 403.3 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.604e-06/0.421, allocations: 0 / 403.3 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.28e-05/0.4211, allocations: 3.969 kB / 403.3 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.4211, allocations: 8 kB / 403.3 MB, free: 8.234 MB / 314.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 5.483e-05/0.4212, allocations: 119.7 kB / 403.4 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.4212, allocations: 4.281 kB / 403.4 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.292e-05/0.4213, allocations: 15.19 kB / 403.4 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.03e-06/0.4213, allocations: 0 / 403.4 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.65e-06/0.4213, allocations: 3.984 kB / 403.4 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.845e-06/0.4213, allocations: 3.938 kB / 403.4 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.397e-05/0.4214, allocations: 168.4 kB / 403.6 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-06/0.4214, allocations: 0 / 403.6 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.287e-05/0.4215, allocations: 11.38 kB / 403.6 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.264e-06/0.4215, allocations: 0 / 403.6 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.4216, allocations: 3.984 kB / 403.6 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.4216, allocations: 0 / 403.6 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.74e-06/0.4216, allocations: 0 / 403.6 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.4218, allocations: 102.5 kB / 403.7 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.883e-05/0.4218, allocations: 81.09 kB / 403.8 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.4219, allocations: 3.75 kB / 403.8 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.358e-05/0.4219, allocations: 4.062 kB / 403.8 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.422, allocations: 7.891 kB / 403.8 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.422, allocations: 3.938 kB / 403.8 MB, free: 7.711 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.95e-05/0.4221, allocations: 89.53 kB / 403.9 MB, free: 7.637 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.18e-07/0.4221, allocations: 0 / 403.9 MB, free: 7.637 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002676/0.4224, allocations: 11.03 kB / 403.9 MB, free: 7.637 MB / 314.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 9.948e-05/0.4225, allocations: 98.64 kB / 404 MB, free: 7.543 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001132/0.4226, allocations: 33.69 kB / 404 MB, free: 7.535 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.74e-06/0.4226, allocations: 0 / 404 MB, free: 7.535 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.836e-05/0.4227, allocations: 14.83 kB / 404 MB, free: 7.531 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.4228, allocations: 10.83 kB / 404.1 MB, free: 7.527 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002665/0.4231, allocations: 121.9 kB / 404.2 MB, free: 7.406 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001093/0.4232, allocations: 0.6922 MB / 404.9 MB, free: 6.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.824e-05/0.4233, allocations: 11.31 kB / 404.9 MB, free: 6.691 MB / 314.7 MB Notification: Performance of SimCode: time 1.506e-06/0.4233, allocations: 4.312 kB / 404.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of Templates: time 0.002139/0.4254, allocations: 0.7346 MB / 405.6 MB, free: 6.324 MB / 314.7 MB