Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Mean.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadModel(ModelicaTest): time 2.14/2.14, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.242e-05/2.263e-05, allocations: 0 / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3156, allocations: 54.85 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.4379, allocations: 82.24 MB / 446.8 MB, free: 14.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.4381, allocations: 60.48 kB / 446.8 MB, free: 14.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01821/0.4564, allocations: 4.125 MB / 451 MB, free: 10.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.038e-06/0.4564, allocations: 4 kB / 451 MB, free: 10.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.388e-05/0.4564, allocations: 8 kB / 451 MB, free: 10.07 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001022/0.4575, allocations: 0.5189 MB / 451.5 MB, free: 9.508 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.4575, allocations: 8.031 kB / 451.5 MB, free: 9.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.4576, allocations: 43.53 kB / 451.5 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005464/0.4582, allocations: 302.1 kB / 451.8 MB, free: 9.121 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-05/0.4583, allocations: 24.55 kB / 451.9 MB, free: 9.098 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.875e-05/0.4584, allocations: 24 kB / 451.9 MB, free: 9.074 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/0.4589, allocations: 236.8 kB / 452.1 MB, free: 8.836 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.459, allocations: 4 kB / 452.1 MB, free: 8.832 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.228e-05/0.459, allocations: 11.94 kB / 452.1 MB, free: 8.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.828e-06/0.459, allocations: 7.938 kB / 452.1 MB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004241/0.4595, allocations: 159.7 kB / 452.3 MB, free: 8.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.4613, allocations: 0.7837 MB / 453.1 MB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004667/0.4618, allocations: 186.9 kB / 453.3 MB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.462, allocations: 80.84 kB / 453.3 MB, free: 7.547 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.462, allocations: 7.984 kB / 453.3 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004783/0.4625, allocations: 224.4 kB / 453.6 MB, free: 7.309 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 4.396e-06/0.4626, allocations: 0 / 453.6 MB, free: 7.309 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006554/0.4632, allocations: 253.3 kB / 453.8 MB, free: 7.055 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.4633, allocations: 55.41 kB / 453.9 MB, free: 6.988 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.4636, allocations: 201.1 kB / 454.1 MB, free: 6.785 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.468e-05/0.4637, allocations: 41.7 kB / 454.1 MB, free: 6.738 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.4638, allocations: 215.8 kB / 454.3 MB, free: 6.527 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.464, allocations: 106.5 kB / 454.4 MB, free: 6.422 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.581e-05/0.464, allocations: 8 kB / 454.4 MB, free: 6.414 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.4642, allocations: 326.8 kB / 454.7 MB, free: 6.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.4644, allocations: 76.75 kB / 454.8 MB, free: 6.008 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.4647, allocations: 203 kB / 455 MB, free: 5.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/0.465, allocations: 113.4 kB / 455.1 MB, free: 5.641 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.191e-06/0.465, allocations: 4 kB / 455.1 MB, free: 5.637 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007368/0.4658, allocations: 327.5 kB / 455.4 MB, free: 5.312 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.4658, allocations: 4 kB / 455.4 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.4658, allocations: 7.938 kB / 455.5 MB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.4659, allocations: 8 kB / 455.5 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004234/0.4663, allocations: 79.89 kB / 455.5 MB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.4663, allocations: 7.938 kB / 455.6 MB, free: 5.207 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.4666, allocations: 43.72 kB / 455.6 MB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/0.4667, allocations: 16 kB / 455.6 MB, free: 5.148 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001459/0.4668, allocations: 132.9 kB / 455.7 MB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.251e-05/0.4669, allocations: 27.62 kB / 455.8 MB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007283/0.4676, allocations: 298 kB / 456.1 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.683e-06/0.4677, allocations: 4 kB / 456.1 MB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.003e-06/0.4677, allocations: 4 kB / 456.1 MB, free: 4.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.731e-06/0.4677, allocations: 3.984 kB / 456.1 MB, free: 4.676 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.4688, allocations: 0.67 MB / 456.7 MB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.035e-06/0.4689, allocations: 0 / 456.7 MB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.4692, allocations: 55.91 kB / 456.8 MB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.27e-06/0.4693, allocations: 0 / 456.8 MB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.177e-05/0.4693, allocations: 11.98 kB / 456.8 MB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.392e-06/0.4693, allocations: 0 / 456.8 MB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.661e-06/0.4694, allocations: 4 kB / 456.8 MB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009618/0.4703, allocations: 495.3 kB / 457.3 MB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.193e-05/0.4704, allocations: 100.8 kB / 457.4 MB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.406e-05/0.4705, allocations: 8.062 kB / 457.4 MB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/0.4708, allocations: 15.98 kB / 457.4 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.378e-05/0.4709, allocations: 23.97 kB / 457.4 MB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.119e-05/0.4709, allocations: 20.11 kB / 457.5 MB, free: 3.195 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002077/0.4711, allocations: 169.3 kB / 457.6 MB, free: 3.031 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.94e-07/0.4711, allocations: 0 / 457.6 MB, free: 3.031 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005189/0.4717, allocations: 71.78 kB / 457.7 MB, free: 2.961 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001975/0.4719, allocations: 124.3 kB / 457.8 MB, free: 2.832 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000577/0.4725, allocations: 240.2 kB / 458 MB, free: 2.598 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.811e-06/0.4725, allocations: 0 / 458 MB, free: 2.598 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002791/0.4728, allocations: 115.9 kB / 458.2 MB, free: 2.484 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.4731, allocations: 33.28 kB / 458.2 MB, free: 2.453 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.4742, allocations: 465.3 kB / 458.6 MB, free: 1.973 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004926/0.4747, allocations: 0.7845 MB / 459.4 MB, free: 1.156 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.4749, allocations: 35.42 kB / 459.5 MB, free: 1.121 MB / 378.7 MB Notification: Performance of SimCode: time 1.438e-06/0.4749, allocations: 0 / 459.5 MB, free: 1.121 MB / 378.7 MB Notification: Performance of Templates: time 0.007099/0.482, allocations: 3.389 MB / 462.9 MB, free: 13.74 MB / 394.7 MB