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.207/2.207, allocations: 234.9 MB / 250.5 MB, free: 9.449 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004334/0.0004335, allocations: 16 kB / 314.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2767, allocations: 54.86 MB / 369.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1267/0.4034, allocations: 82.32 MB / 451.6 MB, free: 8.242 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.4037, allocations: 59.97 kB / 451.6 MB, free: 8.184 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01807/0.4218, allocations: 4.143 MB / 455.8 MB, free: 4.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.512e-06/0.4218, allocations: 0 / 455.8 MB, free: 4.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.291e-05/0.4218, allocations: 11.84 kB / 455.8 MB, free: 4.012 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.001111/0.423, allocations: 0.559 MB / 456.4 MB, free: 3.402 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.423, allocations: 12.03 kB / 456.4 MB, free: 3.391 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.4231, allocations: 35.62 kB / 456.4 MB, free: 3.355 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005387/0.4237, allocations: 298.1 kB / 456.7 MB, free: 3.023 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.404e-05/0.4238, allocations: 28.55 kB / 456.7 MB, free: 2.996 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.003e-05/0.4239, allocations: 31.91 kB / 456.8 MB, free: 2.965 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006835/0.4245, allocations: 256.8 kB / 457 MB, free: 2.707 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.4246, allocations: 8 kB / 457 MB, free: 2.699 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.22e-05/0.4246, allocations: 8 kB / 457 MB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.4247, allocations: 8 kB / 457 MB, free: 2.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005911/0.4253, allocations: 194.1 kB / 457.2 MB, free: 2.496 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.427, allocations: 0.7876 MB / 458 MB, free: 1.652 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005719/0.4276, allocations: 206.8 kB / 458.2 MB, free: 1.441 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.165e-05/0.4276, allocations: 7.938 kB / 458.2 MB, free: 1.434 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000593/0.4283, allocations: 231.2 kB / 458.4 MB, free: 1.195 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 4.54e-06/0.4283, allocations: 0 / 458.4 MB, free: 1.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.00114/0.4294, allocations: 393.2 kB / 458.8 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.4295, allocations: 59.41 kB / 458.9 MB, free: 0.7344 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002962/0.4298, allocations: 208.1 kB / 459.1 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.311e-05/0.4299, allocations: 37.7 kB / 459.1 MB, free: 492 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.4301, allocations: 219 kB / 459.3 MB, free: 272 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.4302, allocations: 94.7 kB / 459.4 MB, free: 176 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.532e-05/0.4302, allocations: 8 kB / 459.4 MB, free: 168 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.4304, allocations: 330.8 kB / 459.8 MB, free: 15.83 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003095/0.4307, allocations: 96.69 kB / 459.9 MB, free: 15.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004087/0.4312, allocations: 228.6 kB / 460.1 MB, free: 15.45 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003593/0.4315, allocations: 123.9 kB / 460.2 MB, free: 15.33 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.4316, allocations: 4 kB / 460.2 MB, free: 15.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009862/0.4326, allocations: 377.2 kB / 460.6 MB, free: 14.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.4326, allocations: 4 kB / 460.6 MB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.4326, allocations: 4 kB / 460.6 MB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.4327, allocations: 8 kB / 460.6 MB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004021/0.4331, allocations: 79.83 kB / 460.7 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.4331, allocations: 4 kB / 460.7 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.4334, allocations: 47.73 kB / 460.7 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.816e-05/0.4334, allocations: 16 kB / 460.7 MB, free: 14.79 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.0002815/0.4337, allocations: 173.7 kB / 460.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.392e-05/0.4338, allocations: 23.72 kB / 460.9 MB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009371/0.4348, allocations: 332 kB / 461.2 MB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.151e-06/0.4348, allocations: 4 kB / 461.3 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.4348, allocations: 0 / 461.3 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.363e-06/0.4348, allocations: 3.984 kB / 461.3 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/0.4362, allocations: 0.7206 MB / 462 MB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4362, allocations: 0 / 462 MB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/0.4366, allocations: 55.91 kB / 462 MB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.936e-06/0.4366, allocations: 4 kB / 462 MB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.967e-05/0.4367, allocations: 11.98 kB / 462 MB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.974e-06/0.4367, allocations: 0 / 462 MB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.902e-06/0.4367, allocations: 0 / 462 MB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.4379, allocations: 0.5385 MB / 462.6 MB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.505e-05/0.4381, allocations: 104.8 kB / 462.7 MB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.194e-05/0.4381, allocations: 20.05 kB / 462.7 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.4384, allocations: 16 kB / 462.7 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.847e-05/0.4385, allocations: 19.95 kB / 462.7 MB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.176e-05/0.4385, allocations: 19.98 kB / 462.8 MB, free: 12.65 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00022/0.4388, allocations: 156.5 kB / 462.9 MB, free: 12.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.153e-06/0.4388, allocations: 0 / 462.9 MB, free: 12.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005422/0.4393, allocations: 79.77 kB / 463 MB, free: 12.42 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.0001914/0.4395, allocations: 115.2 kB / 463.1 MB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007852/0.4403, allocations: 280.4 kB / 463.4 MB, free: 12.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.548e-06/0.4404, allocations: 4.125 kB / 463.4 MB, free: 12.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003724/0.4408, allocations: 143.8 kB / 463.5 MB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.4411, allocations: 24.66 kB / 463.5 MB, free: 11.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.4425, allocations: 0.7009 MB / 464.2 MB, free: 11.13 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/0.443, allocations: 0.7802 MB / 465 MB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.4431, allocations: 35.42 kB / 465.1 MB, free: 10.28 MB / 394.7 MB Notification: Performance of SimCode: time 1.603e-06/0.4431, allocations: 0 / 465.1 MB, free: 10.28 MB / 394.7 MB Notification: Performance of Templates: time 0.007307/0.4505, allocations: 3.378 MB / 468.4 MB, free: 6.906 MB / 394.7 MB