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 1.859/1.859, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004269/0.0004271, allocations: 8 kB / 282.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.277, allocations: 48.71 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.0017/0.2788, allocations: 1.301 MB / 332.5 MB, free: 5.801 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008891/0.2797, allocations: 0.5244 MB / 333 MB, free: 5.438 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.695e-05/0.2798, allocations: 5.406 kB / 333 MB, free: 5.434 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.921e-05/0.2799, allocations: 9.844 kB / 333 MB, free: 5.426 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.13e-05/0.28, allocations: 12.95 kB / 333 MB, free: 5.418 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.2802, allocations: 42.67 kB / 333.1 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.2803, allocations: 66.67 kB / 333.1 MB, free: 5.359 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.2805, allocations: 25.38 kB / 333.2 MB, free: 5.352 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.2806, allocations: 33.33 kB / 333.2 MB, free: 5.336 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.993e-05/0.2807, allocations: 38.58 kB / 333.2 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.2807, allocations: 4.062 kB / 333.2 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.03e-05/0.2808, allocations: 2.906 kB / 333.2 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.165e-05/0.2808, allocations: 16.7 kB / 333.3 MB, free: 5.309 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.94e-05/0.2809, allocations: 40.55 kB / 333.3 MB, free: 5.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.281, allocations: 74.47 kB / 333.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.189e-06/0.281, allocations: 0 / 333.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.281, allocations: 0 / 333.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2811, allocations: 0 / 333.4 MB, free: 5.25 MB / 266.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.0005851/0.2816, allocations: 388.8 kB / 333.8 MB, free: 4.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.2817, allocations: 13.66 kB / 333.8 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.137e-05/0.2818, allocations: 14.11 kB / 333.8 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/0.282, allocations: 205.7 kB / 334 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.282, allocations: 7.344 kB / 334 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.282, allocations: 14.95 kB / 334 MB, free: 4.629 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.2823, allocations: 85.14 kB / 334.1 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.2823, allocations: 1.562 kB / 334.1 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.2824, allocations: 0.5625 kB / 334.1 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.476e-06/0.2824, allocations: 1.844 kB / 334.1 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.2826, allocations: 65.28 kB / 334.2 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005724/0.2832, allocations: 367 kB / 334.5 MB, free: 4.238 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.2833, allocations: 66.52 kB / 334.6 MB, free: 4.195 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.2834, allocations: 1.125 kB / 334.6 MB, free: 4.195 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.2836, allocations: 101.6 kB / 334.7 MB, free: 4.133 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 2.724e-06/0.2837, allocations: 4 kB / 334.7 MB, free: 4.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004165/0.2841, allocations: 132.6 kB / 334.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.707e-05/0.2841, allocations: 53.86 kB / 334.9 MB, free: 4.004 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.2843, allocations: 139.9 kB / 335 MB, free: 3.887 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.2843, allocations: 27.08 kB / 335 MB, free: 3.855 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.273e-05/0.2844, allocations: 171.8 kB / 335.2 MB, free: 3.688 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.358e-05/0.2844, allocations: 34.16 kB / 335.2 MB, free: 3.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-06/0.2844, allocations: 4 kB / 335.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.08e-05/0.2845, allocations: 314.5 kB / 335.5 MB, free: 3.344 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.962e-05/0.2846, allocations: 31.2 kB / 335.6 MB, free: 3.332 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.2847, allocations: 87.31 kB / 335.7 MB, free: 3.246 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001171/0.2849, allocations: 32.25 kB / 335.7 MB, free: 3.238 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2849, allocations: 0 / 335.7 MB, free: 3.238 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003478/0.2852, allocations: 142.3 kB / 335.8 MB, free: 3.164 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.2853, allocations: 7.5 kB / 335.8 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2853, allocations: 6.844 kB / 335.8 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.2853, allocations: 6.812 kB / 335.8 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.2855, allocations: 23.38 kB / 335.9 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.2855, allocations: 7.406 kB / 335.9 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.2856, allocations: 18.62 kB / 335.9 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.2856, allocations: 5.281 kB / 335.9 MB, free: 3.141 MB / 266.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 () * Number of clocked 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 9.95e-05/0.2858, allocations: 127.5 kB / 336 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.716e-05/0.2858, allocations: 13.28 kB / 336 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.844e-05/0.2858, allocations: 12.05 kB / 336 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.839e-06/0.2859, allocations: 1 kB / 336 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.2859, allocations: 0.8438 kB / 336.1 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.242e-06/0.2859, allocations: 8 kB / 336.1 MB, free: 2.992 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/0.2861, allocations: 198.1 kB / 336.3 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.169e-06/0.2861, allocations: 0 / 336.3 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.2862, allocations: 13.72 kB / 336.3 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.905e-06/0.2862, allocations: 96 / 336.3 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.2863, allocations: 14.84 kB / 336.3 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.298e-06/0.2863, allocations: 0 / 336.3 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2863, allocations: 4.656 kB / 336.3 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004389/0.2867, allocations: 182.4 kB / 336.5 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.233e-05/0.2868, allocations: 92.88 kB / 336.6 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.2869, allocations: 5.859 kB / 336.6 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.028e-05/0.287, allocations: 8.547 kB / 336.6 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.768e-05/0.287, allocations: 6.141 kB / 336.6 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.287, allocations: 5.266 kB / 336.6 MB, free: 2.551 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.496e-05/0.2871, allocations: 115.7 kB / 336.7 MB, free: 2.461 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.63e-07/0.2871, allocations: 0 / 336.7 MB, free: 2.461 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003055/0.2874, allocations: 14.72 kB / 336.7 MB, free: 2.461 MB / 266.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) * Number of clocked states: 0 () * 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 8.804e-05/0.2875, allocations: 102.7 kB / 336.8 MB, free: 2.371 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002767/0.2878, allocations: 76.84 kB / 336.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.807e-06/0.2879, allocations: 4.125 kB / 336.9 MB, free: 2.348 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.288, allocations: 40 kB / 336.9 MB, free: 2.336 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.2882, allocations: 13.75 kB / 336.9 MB, free: 2.328 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005385/0.2887, allocations: 313.3 kB / 337.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001557/0.2889, allocations: 0.7088 MB / 338 MB, free: 1.395 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.117e-05/0.289, allocations: 18.52 kB / 338 MB, free: 1.383 MB / 266.7 MB Notification: Performance of SimCode: time 1.449e-06/0.289, allocations: 0 / 338 MB, free: 1.383 MB / 266.7 MB Notification: Performance of Templates: time 0.003183/0.2922, allocations: 1.287 MB / 339.3 MB, free: 0.8984 MB / 266.7 MB