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.354/2.354, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006274/0.0006275, allocations: 8 kB / 314.3 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2764, allocations: 54.86 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002778/0.2792, allocations: 1.771 MB / 370.9 MB, free: 8.938 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.2807, allocations: 0.7417 MB / 371.7 MB, free: 8.191 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.2809, allocations: 7.938 kB / 371.7 MB, free: 8.184 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.2811, allocations: 19.78 kB / 371.7 MB, free: 8.164 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002109/0.2813, allocations: 51.86 kB / 371.8 MB, free: 8.113 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003438/0.2816, allocations: 103.7 kB / 371.9 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003081/0.282, allocations: 191.7 kB / 372.1 MB, free: 7.824 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002429/0.2822, allocations: 98.62 kB / 372.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002112/0.2825, allocations: 95.56 kB / 372.2 MB, free: 7.633 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.2827, allocations: 115.4 kB / 372.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.467e-05/0.2828, allocations: 12 kB / 372.4 MB, free: 7.508 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.084e-05/0.2828, allocations: 8 kB / 372.4 MB, free: 7.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.456e-05/0.2829, allocations: 47.83 kB / 372.4 MB, free: 7.453 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.283, allocations: 81.5 kB / 372.5 MB, free: 7.367 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003424/0.2834, allocations: 236.2 kB / 372.7 MB, free: 7.137 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.83e-06/0.2834, allocations: 0 / 372.7 MB, free: 7.137 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.03e-06/0.2834, allocations: 0 / 372.7 MB, free: 7.137 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.2834, allocations: 0 / 372.7 MB, free: 7.137 MB / 298.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.001138/0.2846, allocations: 0.5554 MB / 373.3 MB, free: 6.535 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.2846, allocations: 8.031 kB / 373.3 MB, free: 6.527 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.441e-05/0.2847, allocations: 35.62 kB / 373.3 MB, free: 6.492 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005889/0.2853, allocations: 310.1 kB / 373.6 MB, free: 6.145 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.164e-05/0.2854, allocations: 24.5 kB / 373.7 MB, free: 6.121 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.2855, allocations: 28 kB / 373.7 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.2861, allocations: 256.8 kB / 373.9 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.2862, allocations: 0 / 373.9 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.25e-05/0.2862, allocations: 12 kB / 374 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.2863, allocations: 11.89 kB / 374 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005872/0.2869, allocations: 194.1 kB / 374.2 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.2886, allocations: 0.7797 MB / 374.9 MB, free: 4.793 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005778/0.2892, allocations: 214.8 kB / 375.1 MB, free: 4.574 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.2892, allocations: 0 / 375.1 MB, free: 4.574 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005807/0.2898, allocations: 235.2 kB / 375.4 MB, free: 4.332 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 3.049e-06/0.2899, allocations: 0 / 375.4 MB, free: 4.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.001115/0.291, allocations: 385.2 kB / 375.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.2911, allocations: 59.39 kB / 375.8 MB, free: 3.879 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003164/0.2914, allocations: 228.9 kB / 376 MB, free: 3.648 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.2915, allocations: 33.7 kB / 376.1 MB, free: 3.609 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.2916, allocations: 227 kB / 376.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.2918, allocations: 98.61 kB / 376.4 MB, free: 3.285 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.2918, allocations: 4 kB / 376.4 MB, free: 3.281 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.292, allocations: 330.8 kB / 376.7 MB, free: 2.949 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003005/0.2923, allocations: 88.7 kB / 376.8 MB, free: 2.859 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004115/0.2927, allocations: 234.5 kB / 377 MB, free: 2.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.2931, allocations: 123.9 kB / 377.1 MB, free: 2.449 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.38e-06/0.2931, allocations: 0 / 377.1 MB, free: 2.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009733/0.2941, allocations: 364.9 kB / 377.5 MB, free: 2.086 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.2941, allocations: 8 kB / 377.5 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.2942, allocations: 8.453 kB / 377.5 MB, free: 2.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.2942, allocations: 12 kB / 377.5 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003998/0.2946, allocations: 71.91 kB / 377.6 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.743e-05/0.2946, allocations: 15.92 kB / 377.6 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.2949, allocations: 35.69 kB / 377.6 MB, free: 1.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.973e-05/0.295, allocations: 19.98 kB / 377.7 MB, free: 1.918 MB / 298.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.0002538/0.2952, allocations: 169.6 kB / 377.8 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.867e-05/0.2953, allocations: 23.72 kB / 377.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008918/0.2962, allocations: 331.2 kB / 378.2 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.377e-06/0.2962, allocations: 4 kB / 378.2 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.825e-06/0.2962, allocations: 0 / 378.2 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.224e-06/0.2963, allocations: 0 / 378.2 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.2976, allocations: 0.7167 MB / 378.9 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.382e-06/0.2976, allocations: 4 kB / 378.9 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003516/0.298, allocations: 51.89 kB / 379 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.651e-06/0.298, allocations: 4 kB / 379 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.298, allocations: 4 kB / 379 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.789e-06/0.2981, allocations: 4 kB / 379 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.921e-06/0.2981, allocations: 0 / 379 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.2993, allocations: 0.5385 MB / 379.5 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.352e-05/0.2994, allocations: 104.9 kB / 379.6 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.449e-05/0.2995, allocations: 15.94 kB / 379.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.2998, allocations: 15.98 kB / 379.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.732e-05/0.2999, allocations: 23.97 kB / 379.7 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.812e-05/0.2999, allocations: 11.98 kB / 379.7 MB, free: 15.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000216/0.3002, allocations: 160.5 kB / 379.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.297e-06/0.3002, allocations: 0 / 379.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005218/0.3007, allocations: 79.69 kB / 379.9 MB, free: 15.57 MB / 314.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.00017/0.3009, allocations: 115.3 kB / 380 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007684/0.3017, allocations: 275.6 kB / 380.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3017, allocations: 0 / 380.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003693/0.3021, allocations: 140.8 kB / 380.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.3024, allocations: 28.23 kB / 380.5 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.3038, allocations: 0.7048 MB / 381.2 MB, free: 14.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.3043, allocations: 0.7763 MB / 381.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.3044, allocations: 35.42 kB / 382 MB, free: 13.45 MB / 314.7 MB Notification: Performance of SimCode: time 1.661e-06/0.3044, allocations: 0 / 382 MB, free: 13.45 MB / 314.7 MB Notification: Performance of Templates: time 0.007142/0.3116, allocations: 3.389 MB / 385.4 MB, free: 10.06 MB / 314.7 MB