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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.205/2.205, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.378e-05/1.368e-05, allocations: 0 / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2762, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.4189, allocations: 81.56 MB / 439.6 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.4192, allocations: 63.97 kB / 439.7 MB, free: 13.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01819/0.4374, allocations: 4.104 MB / 443.8 MB, free: 9.094 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.292e-06/0.4374, allocations: 0 / 443.8 MB, free: 9.094 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.747e-05/0.4375, allocations: 4 kB / 443.8 MB, free: 9.09 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.001081/0.4386, allocations: 0.5209 MB / 444.3 MB, free: 8.527 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.4386, allocations: 16.03 kB / 444.3 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.4388, allocations: 35.56 kB / 444.3 MB, free: 8.477 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005851/0.4393, allocations: 314 kB / 444.6 MB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.4394, allocations: 8 kB / 444.6 MB, free: 8.117 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.918e-05/0.4395, allocations: 19.94 kB / 444.7 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004126/0.4399, allocations: 145 kB / 444.8 MB, free: 7.957 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005015/0.4404, allocations: 203.8 kB / 445 MB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.4405, allocations: 0 / 445 MB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.781e-05/0.4405, allocations: 3.984 kB / 445 MB, free: 7.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.4405, allocations: 8 kB / 445 MB, free: 7.742 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.4423, allocations: 0.7168 MB / 445.7 MB, free: 6.984 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004268/0.4427, allocations: 182.9 kB / 445.9 MB, free: 6.797 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001851/0.4429, allocations: 76.84 kB / 446 MB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.08e-05/0.443, allocations: 7.938 kB / 446 MB, free: 6.711 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000461/0.4435, allocations: 203.2 kB / 446.2 MB, free: 6.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 4.123e-06/0.4435, allocations: 0 / 446.2 MB, free: 6.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006481/0.4441, allocations: 241.2 kB / 446.4 MB, free: 6.258 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.4442, allocations: 55.41 kB / 446.5 MB, free: 6.191 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.4445, allocations: 192.5 kB / 446.7 MB, free: 5.996 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.732e-05/0.4446, allocations: 33.7 kB / 446.7 MB, free: 5.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.4447, allocations: 219.3 kB / 446.9 MB, free: 5.742 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.4449, allocations: 94.64 kB / 447 MB, free: 5.648 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/0.4449, allocations: 0 / 447 MB, free: 5.648 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4451, allocations: 334.7 kB / 447.3 MB, free: 5.312 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.4453, allocations: 68.67 kB / 447.4 MB, free: 5.242 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.4456, allocations: 194.3 kB / 447.6 MB, free: 4.992 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/0.4458, allocations: 97.94 kB / 447.7 MB, free: 4.898 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.884e-06/0.4459, allocations: 4 kB / 447.7 MB, free: 4.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006882/0.4466, allocations: 289 kB / 448 MB, free: 4.605 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.4466, allocations: 8 kB / 448 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.4466, allocations: 4.469 kB / 448 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.4467, allocations: 12 kB / 448 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004386/0.4471, allocations: 75.83 kB / 448.1 MB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.4471, allocations: 8 kB / 448.1 MB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.4474, allocations: 31.67 kB / 448.1 MB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.454e-05/0.4475, allocations: 23.94 kB / 448.1 MB, free: 4.445 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.0001644/0.4477, allocations: 124.8 kB / 448.3 MB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.944e-05/0.4478, allocations: 27.84 kB / 448.3 MB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006992/0.4485, allocations: 268.5 kB / 448.5 MB, free: 4.023 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.781e-06/0.4485, allocations: 4 kB / 448.6 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.302e-06/0.4485, allocations: 4 kB / 448.6 MB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.807e-06/0.4485, allocations: 0 / 448.6 MB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.4496, allocations: 0.6199 MB / 449.2 MB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.921e-06/0.4496, allocations: 3.984 kB / 449.2 MB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.45, allocations: 47.97 kB / 449.2 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.121e-06/0.4501, allocations: 3.938 kB / 449.2 MB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.854e-05/0.4501, allocations: 8 kB / 449.2 MB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.974e-06/0.4501, allocations: 0 / 449.2 MB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.909e-06/0.4501, allocations: 3.984 kB / 449.2 MB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009063/0.4511, allocations: 462.9 kB / 449.7 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.4512, allocations: 108.8 kB / 449.8 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.233e-05/0.4513, allocations: 4 kB / 449.8 MB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.4515, allocations: 11.98 kB / 449.8 MB, free: 2.676 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.21e-05/0.4516, allocations: 19.97 kB / 449.8 MB, free: 2.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/0.4517, allocations: 15.98 kB / 449.9 MB, free: 2.641 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002141/0.4519, allocations: 152.5 kB / 450 MB, free: 2.492 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.11e-07/0.4519, allocations: 0 / 450 MB, free: 2.492 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005318/0.4525, allocations: 63.78 kB / 450.1 MB, free: 2.43 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.0002008/0.4527, allocations: 115.9 kB / 450.2 MB, free: 2.309 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.4532, allocations: 208.3 kB / 450.4 MB, free: 2.105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.732e-06/0.4533, allocations: 0.9375 kB / 450.4 MB, free: 2.105 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.4535, allocations: 115.8 kB / 450.5 MB, free: 1.992 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.4539, allocations: 32.66 kB / 450.5 MB, free: 1.961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.455, allocations: 446.1 kB / 451 MB, free: 1.492 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005022/0.4556, allocations: 0.7844 MB / 451.7 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.4557, allocations: 39.36 kB / 451.8 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of SimCode: time 1.953e-06/0.4557, allocations: 0 / 451.8 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of Templates: time 0.007441/0.4632, allocations: 3.371 MB / 455.2 MB, free: 13.28 MB / 394.7 MB