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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.384/2.384, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.389e-05/2.389e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5194/0.5195, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.7287, allocations: 81.56 MB / 439.7 MB, free: 13.19 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003317/0.7292, allocations: 67.95 kB / 439.7 MB, free: 13.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02715/0.7563, allocations: 4.096 MB / 443.8 MB, free: 9.012 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.7564, allocations: 4 kB / 443.8 MB, free: 9.008 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.47e-05/0.7564, allocations: 7.938 kB / 443.9 MB, free: 9 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.001781/0.7582, allocations: 0.5223 MB / 444.4 MB, free: 8.438 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.369e-05/0.7583, allocations: 8.031 kB / 444.4 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001891/0.7585, allocations: 47.52 kB / 444.4 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009029/0.7595, allocations: 302 kB / 444.7 MB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.475e-05/0.7595, allocations: 12 kB / 444.7 MB, free: 8.031 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.7596, allocations: 20 kB / 444.8 MB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006771/0.7603, allocations: 145 kB / 444.9 MB, free: 7.871 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008183/0.7612, allocations: 199.8 kB / 445.1 MB, free: 7.672 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.7612, allocations: 3.938 kB / 445.1 MB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.979e-05/0.7613, allocations: 11.98 kB / 445.1 MB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.7614, allocations: 4 kB / 445.1 MB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/0.7643, allocations: 0.7207 MB / 445.8 MB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006948/0.765, allocations: 178.8 kB / 446 MB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.7654, allocations: 76.84 kB / 446.1 MB, free: 6.629 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.683e-05/0.7654, allocations: 4 kB / 446.1 MB, free: 6.625 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007348/0.7662, allocations: 207.1 kB / 446.3 MB, free: 6.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 5.25e-06/0.7662, allocations: 4 kB / 446.3 MB, free: 6.406 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001069/0.7673, allocations: 237.2 kB / 446.5 MB, free: 6.168 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.126e-05/0.7674, allocations: 63.41 kB / 446.6 MB, free: 6.094 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/0.7679, allocations: 188.5 kB / 446.8 MB, free: 5.902 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.825e-05/0.768, allocations: 41.69 kB / 446.8 MB, free: 5.855 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.7682, allocations: 211.4 kB / 447 MB, free: 5.648 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.7684, allocations: 94.56 kB / 447.1 MB, free: 5.555 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.7684, allocations: 0 / 447.1 MB, free: 5.555 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002434/0.7687, allocations: 330.8 kB / 447.4 MB, free: 5.223 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003695/0.7691, allocations: 72.73 kB / 447.5 MB, free: 5.148 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004167/0.7695, allocations: 200.4 kB / 447.7 MB, free: 4.895 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005868/0.7701, allocations: 91.89 kB / 447.8 MB, free: 4.805 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.7702, allocations: 8 kB / 447.8 MB, free: 4.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001057/0.7712, allocations: 277.1 kB / 448.1 MB, free: 4.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.7713, allocations: 8 kB / 448.1 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.7713, allocations: 4.469 kB / 448.1 MB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.756e-05/0.7714, allocations: 12 kB / 448.1 MB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008006/0.7722, allocations: 79.83 kB / 448.2 MB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.368e-05/0.7722, allocations: 11.94 kB / 448.2 MB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005308/0.7728, allocations: 31.67 kB / 448.2 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.972e-05/0.7729, allocations: 16 kB / 448.2 MB, free: 4.359 MB / 378.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 () * 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.0002244/0.7731, allocations: 120.9 kB / 448.3 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008912/0.774, allocations: 241.3 kB / 448.6 MB, free: 3.992 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.855e-05/0.7741, allocations: 27.62 kB / 448.6 MB, free: 3.965 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/0.7752, allocations: 264.6 kB / 448.9 MB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.7753, allocations: 4 kB / 448.9 MB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.7753, allocations: 0 / 448.9 MB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.7753, allocations: 3.984 kB / 448.9 MB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.777, allocations: 0.616 MB / 449.5 MB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.7771, allocations: 0 / 449.5 MB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007063/0.7778, allocations: 51.97 kB / 449.5 MB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.7778, allocations: 0 / 449.5 MB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-05/0.7779, allocations: 7.984 kB / 449.5 MB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.7779, allocations: 4.094 kB / 449.6 MB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.7779, allocations: 3.938 kB / 449.6 MB, free: 2.969 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/0.7794, allocations: 474.8 kB / 450 MB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/0.7796, allocations: 100.8 kB / 450.1 MB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.7797, allocations: 8.062 kB / 450.1 MB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.7802, allocations: 11.98 kB / 450.1 MB, free: 2.352 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.7803, allocations: 19.97 kB / 450.2 MB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.067e-05/0.7804, allocations: 19.92 kB / 450.2 MB, free: 2.312 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003378/0.7808, allocations: 148.5 kB / 450.3 MB, free: 2.168 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.7808, allocations: 4 kB / 450.3 MB, free: 2.164 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000928/0.7817, allocations: 67.73 kB / 450.4 MB, free: 2.098 MB / 378.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) * 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.001982/0.7837, allocations: 1.013 MB / 451.4 MB, free: 1.059 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008499/0.7846, allocations: 216.3 kB / 451.6 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.7847, allocations: 0 / 451.6 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004147/0.7851, allocations: 111.8 kB / 451.7 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005755/0.7857, allocations: 21.86 kB / 451.7 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.788, allocations: 0.524 MB / 452.3 MB, free: 148 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006556/0.7887, allocations: 0.7813 MB / 453.1 MB, free: 15.33 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003862/0.7891, allocations: 103.4 kB / 453.2 MB, free: 15.23 MB / 394.7 MB Notification: Performance of SimCode: time 1.313e-06/0.7891, allocations: 0 / 453.2 MB, free: 15.23 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.733/3.522, allocations: 4.55 MB / 457.7 MB, free: 10.68 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat