Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.265/2.265, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004356/0.0004357, allocations: 16 kB / 314.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3644, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.5218, allocations: 82.31 MB / 452.1 MB, free: 8.316 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/0.5222, allocations: 67.92 kB / 452.2 MB, free: 8.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02038/0.5426, allocations: 4.147 MB / 456.3 MB, free: 4.086 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5426, allocations: 0 / 456.3 MB, free: 4.086 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.917e-05/0.5427, allocations: 12 kB / 456.3 MB, free: 4.074 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.001476/0.5442, allocations: 0.5512 MB / 456.9 MB, free: 3.473 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.5442, allocations: 8.031 kB / 456.9 MB, free: 3.465 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.5444, allocations: 35.62 kB / 456.9 MB, free: 3.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006816/0.5451, allocations: 302.1 kB / 457.2 MB, free: 3.094 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.42e-05/0.5452, allocations: 20.56 kB / 457.2 MB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.5453, allocations: 35.89 kB / 457.3 MB, free: 3.039 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000858/0.5461, allocations: 268.7 kB / 457.5 MB, free: 2.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.5462, allocations: 0 / 457.5 MB, free: 2.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.184e-05/0.5463, allocations: 15.98 kB / 457.5 MB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.5463, allocations: 4 kB / 457.5 MB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000747/0.547, allocations: 194.1 kB / 457.7 MB, free: 2.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.5493, allocations: 0.7759 MB / 458.5 MB, free: 1.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007285/0.5501, allocations: 218.8 kB / 458.7 MB, free: 1.508 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.156e-05/0.5502, allocations: 8 kB / 458.7 MB, free: 1.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007208/0.5509, allocations: 231.2 kB / 459 MB, free: 1.262 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 3.667e-06/0.5509, allocations: 0 / 459 MB, free: 1.262 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001434/0.5524, allocations: 389.2 kB / 459.3 MB, free: 0.875 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.143e-05/0.5525, allocations: 63.41 kB / 459.4 MB, free: 0.8008 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.5529, allocations: 228.9 kB / 459.6 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.221e-05/0.553, allocations: 37.7 kB / 459.7 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.5531, allocations: 219 kB / 459.9 MB, free: 316 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.5533, allocations: 94.7 kB / 460 MB, free: 220 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.842e-05/0.5533, allocations: 8 kB / 460 MB, free: 212 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.5535, allocations: 330.8 kB / 460.3 MB, free: 15.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003979/0.5539, allocations: 100.7 kB / 460.4 MB, free: 15.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004934/0.5544, allocations: 228.7 kB / 460.6 MB, free: 15.49 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004555/0.5549, allocations: 127.8 kB / 460.7 MB, free: 15.37 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.5549, allocations: 4 kB / 460.8 MB, free: 15.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001127/0.5561, allocations: 369.2 kB / 461.1 MB, free: 15 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.5561, allocations: 10.03 kB / 461.1 MB, free: 14.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.5562, allocations: 4 kB / 461.1 MB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.32e-05/0.5562, allocations: 8 kB / 461.1 MB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000571/0.5568, allocations: 71.89 kB / 461.2 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.144e-05/0.5568, allocations: 16.12 kB / 461.2 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.5572, allocations: 39.67 kB / 461.3 MB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.261e-05/0.5572, allocations: 19.95 kB / 461.3 MB, free: 14.83 MB / 394.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 () * Number of clocked 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.0003317/0.5576, allocations: 165.6 kB / 461.4 MB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.197e-05/0.5577, allocations: 23.72 kB / 461.5 MB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.5588, allocations: 332 kB / 461.8 MB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.5589, allocations: 4 kB / 461.8 MB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.5589, allocations: 0 / 461.8 MB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.5589, allocations: 7.984 kB / 461.8 MB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.5606, allocations: 0.7207 MB / 462.5 MB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.5606, allocations: 0 / 462.5 MB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005232/0.5612, allocations: 51.97 kB / 462.6 MB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.494e-05/0.5612, allocations: 7.984 kB / 462.6 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-05/0.5613, allocations: 15.92 kB / 462.6 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.5613, allocations: 0 / 462.6 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5613, allocations: 0 / 462.6 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.5629, allocations: 0.5385 MB / 463.1 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.5631, allocations: 104.7 kB / 463.2 MB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.119e-05/0.5632, allocations: 16.05 kB / 463.2 MB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/0.5635, allocations: 16 kB / 463.3 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.5636, allocations: 23.95 kB / 463.3 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.411e-05/0.5637, allocations: 15.98 kB / 463.3 MB, free: 12.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000244/0.5639, allocations: 156.5 kB / 463.5 MB, free: 12.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5639, allocations: 0 / 463.5 MB, free: 12.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005599/0.5645, allocations: 79.78 kB / 463.5 MB, free: 12.47 MB / 394.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) * Number of clocked states: 0 () * 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.0002556/0.5648, allocations: 128.2 kB / 463.7 MB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.5658, allocations: 280.3 kB / 463.9 MB, free: 12.06 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.5658, allocations: 0 / 463.9 MB, free: 12.06 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004829/0.5663, allocations: 139.8 kB / 464.1 MB, free: 11.92 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.5668, allocations: 26.34 kB / 464.1 MB, free: 11.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.5684, allocations: 0.705 MB / 464.8 MB, free: 11.16 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.569, allocations: 0.7802 MB / 465.6 MB, free: 10.35 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.5692, allocations: 35.42 kB / 465.6 MB, free: 10.31 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/0.5692, allocations: 0 / 465.6 MB, free: 10.31 MB / 394.7 MB Notification: Performance of Templates: time 0.009458/0.5787, allocations: 3.387 MB / 469 MB, free: 6.93 MB / 394.7 MB