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.RootMeanSquare.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.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadModel(ModelicaTest): time 2.009/2.009, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.612e-05/2.624e-05, allocations: 4 kB / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3556/0.4667, allocations: 74.45 MB / 401 MB, free: 10.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.467, allocations: 59.88 kB / 401 MB, free: 10.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006285/0.4733, allocations: 1.648 MB / 402.7 MB, free: 9.566 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.971e-06/0.4733, allocations: 0 / 402.7 MB, free: 9.566 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.4734, allocations: 3.812 kB / 402.7 MB, free: 9.566 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004531/0.4738, allocations: 376.6 kB / 403.1 MB, free: 9.191 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.4739, allocations: 7.688 kB / 403.1 MB, free: 9.191 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.751e-05/0.4739, allocations: 15.59 kB / 403.1 MB, free: 9.184 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.4742, allocations: 217.8 kB / 403.3 MB, free: 8.953 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.4742, allocations: 7.219 kB / 403.3 MB, free: 8.953 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/0.4743, allocations: 7.469 kB / 403.3 MB, free: 8.953 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/0.4745, allocations: 86.8 kB / 403.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.4745, allocations: 0 / 403.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.4745, allocations: 0 / 403.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.448e-06/0.4745, allocations: 3.844 kB / 403.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.4746, allocations: 40.92 kB / 403.4 MB, free: 8.902 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005328/0.4752, allocations: 375.3 kB / 403.8 MB, free: 8.578 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.4753, allocations: 60.58 kB / 403.9 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.443e-05/0.4754, allocations: 19.52 kB / 403.9 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.4754, allocations: 3.781 kB / 403.9 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.4756, allocations: 102.8 kB / 404 MB, free: 8.457 MB / 314.7 MB Notification: Performance of pre-optimization done (n=9): time 2.501e-06/0.4756, allocations: 0 / 404 MB, free: 8.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002435/0.4759, allocations: 97.47 kB / 404.1 MB, free: 8.406 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.48e-05/0.4759, allocations: 54.78 kB / 404.1 MB, free: 8.344 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.4761, allocations: 124.7 kB / 404.3 MB, free: 8.246 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.4761, allocations: 36.3 kB / 404.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.844e-05/0.4762, allocations: 171.6 kB / 404.5 MB, free: 8.051 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.4762, allocations: 19.41 kB / 404.5 MB, free: 8.035 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.324e-06/0.4762, allocations: 3.875 kB / 404.5 MB, free: 8.035 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.133e-05/0.4763, allocations: 320.3 kB / 404.8 MB, free: 7.719 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.654e-05/0.4763, allocations: 18.31 kB / 404.8 MB, free: 7.719 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-05/0.4764, allocations: 81.92 kB / 404.9 MB, free: 7.641 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.952e-05/0.4765, allocations: 26.42 kB / 404.9 MB, free: 7.637 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.14e-06/0.4765, allocations: 0 / 404.9 MB, free: 7.637 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002406/0.4768, allocations: 128.1 kB / 405 MB, free: 7.574 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.4768, allocations: 11.77 kB / 405.1 MB, free: 7.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.714e-06/0.4768, allocations: 0 / 405.1 MB, free: 7.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.4769, allocations: 3.844 kB / 405.1 MB, free: 7.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.477, allocations: 31.08 kB / 405.1 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.564e-06/0.4771, allocations: 3.844 kB / 405.1 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.4772, allocations: 20.02 kB / 405.1 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.4772, allocations: 7.719 kB / 405.1 MB, free: 7.547 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.mean1.y,mean1.y,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 6.513e-05/0.4773, allocations: 114.6 kB / 405.2 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/0.4773, allocations: 7.875 kB / 405.2 MB, free: 7.434 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.42e-05/0.4774, allocations: 15.27 kB / 405.3 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.681e-06/0.4774, allocations: 0 / 405.3 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4774, allocations: 0 / 405.3 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.414e-06/0.4774, allocations: 3.984 kB / 405.3 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001547/0.4776, allocations: 199.2 kB / 405.5 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.777e-06/0.4776, allocations: 4 kB / 405.5 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.4778, allocations: 15.33 kB / 405.5 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.4778, allocations: 0 / 405.5 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.4778, allocations: 7.688 kB / 405.5 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.923e-06/0.4778, allocations: 4.047 kB / 405.5 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.784e-06/0.4778, allocations: 7.922 kB / 405.5 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.4782, allocations: 149.8 kB / 405.6 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.434e-05/0.4782, allocations: 96.59 kB / 405.7 MB, free: 7.016 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.4783, allocations: 0 / 405.7 MB, free: 7.016 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.473e-05/0.4784, allocations: 7.875 kB / 405.7 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.514e-05/0.4785, allocations: 19.12 kB / 405.8 MB, free: 7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.4785, allocations: 7.828 kB / 405.8 MB, free: 6.996 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.914e-05/0.4786, allocations: 104.7 kB / 405.9 MB, free: 6.922 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.39e-07/0.4786, allocations: 0 / 405.9 MB, free: 6.922 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000321/0.4789, allocations: 26.5 kB / 405.9 MB, free: 6.914 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y,rootMeanSquare.mean.y) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001225/0.479, allocations: 118.3 kB / 406 MB, free: 6.809 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001876/0.4792, allocations: 68.92 kB / 406.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.682e-06/0.4793, allocations: 0 / 406.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.103e-05/0.4793, allocations: 26.72 kB / 406.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.4795, allocations: 11.78 kB / 406.1 MB, free: 6.793 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004224/0.48, allocations: 187.2 kB / 406.3 MB, free: 6.648 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.4801, allocations: 0.7077 MB / 407 MB, free: 5.934 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.4802, allocations: 18.78 kB / 407 MB, free: 5.926 MB / 314.7 MB Notification: Performance of SimCode: time 1.801e-06/0.4802, allocations: 0 / 407 MB, free: 5.926 MB / 314.7 MB Notification: Performance of Templates: time 0.002843/0.4831, allocations: 1.297 MB / 408.3 MB, free: 5.285 MB / 314.7 MB