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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.565/2.565, allocations: 234.9 MB / 250.5 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004514/0.0004515, allocations: 20 kB / 314.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3636, allocations: 54.86 MB / 369.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2001/0.5637, allocations: 82.32 MB / 451.7 MB, free: 8.309 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/0.5641, allocations: 59.98 kB / 451.7 MB, free: 8.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02558/0.5897, allocations: 4.151 MB / 455.9 MB, free: 4.078 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.5898, allocations: 0 / 455.9 MB, free: 4.078 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.018e-05/0.5898, allocations: 4 kB / 455.9 MB, free: 4.074 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.001833/0.5917, allocations: 0.559 MB / 456.4 MB, free: 3.465 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.5917, allocations: 8.031 kB / 456.5 MB, free: 3.457 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000206/0.592, allocations: 71 kB / 456.5 MB, free: 3.375 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.5921, allocations: 43.52 kB / 456.6 MB, free: 3.332 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006401/0.5927, allocations: 310 kB / 456.9 MB, free: 2.992 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.5928, allocations: 28.56 kB / 456.9 MB, free: 2.965 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.309e-05/0.5929, allocations: 28 kB / 456.9 MB, free: 2.938 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008399/0.5937, allocations: 276.8 kB / 457.2 MB, free: 2.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.5938, allocations: 7.844 kB / 457.2 MB, free: 2.652 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.103e-05/0.5938, allocations: 12 kB / 457.2 MB, free: 2.641 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.5939, allocations: 4 kB / 457.2 MB, free: 2.637 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007462/0.5946, allocations: 206.1 kB / 457.4 MB, free: 2.438 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.5968, allocations: 0.8148 MB / 458.2 MB, free: 1.566 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006983/0.5976, allocations: 202.9 kB / 458.4 MB, free: 1.359 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.925e-05/0.5976, allocations: 7.938 kB / 458.4 MB, free: 1.352 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006959/0.5983, allocations: 235.1 kB / 458.7 MB, free: 1.109 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 4.097e-06/0.5983, allocations: 0 / 458.7 MB, free: 1.109 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001424/0.5998, allocations: 393.2 kB / 459.1 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.5999, allocations: 63.33 kB / 459.1 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/0.6002, allocations: 204.2 kB / 459.3 MB, free: 448 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.506e-05/0.6003, allocations: 33.7 kB / 459.3 MB, free: 408 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.6005, allocations: 234.9 kB / 459.6 MB, free: 172 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.6006, allocations: 90.62 kB / 459.7 MB, free: 80 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.6007, allocations: 12 kB / 459.7 MB, free: 68 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.6008, allocations: 326.8 kB / 460 MB, free: 15.74 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/0.6012, allocations: 92.7 kB / 460.1 MB, free: 15.64 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004674/0.6017, allocations: 228.8 kB / 460.3 MB, free: 15.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004434/0.6022, allocations: 127.8 kB / 460.4 MB, free: 15.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.6022, allocations: 0 / 460.4 MB, free: 15.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001117/0.6033, allocations: 377.4 kB / 460.8 MB, free: 14.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.6034, allocations: 8 kB / 460.8 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.6034, allocations: 4 kB / 460.8 MB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-05/0.6034, allocations: 11.95 kB / 460.8 MB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005842/0.604, allocations: 75.89 kB / 460.9 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/0.6041, allocations: 11.94 kB / 460.9 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/0.6044, allocations: 35.77 kB / 460.9 MB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.6044, allocations: 16 kB / 461 MB, free: 14.7 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.0003279/0.6048, allocations: 165.7 kB / 461.1 MB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.921e-05/0.6049, allocations: 31.62 kB / 461.2 MB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.606, allocations: 340.2 kB / 461.5 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.6061, allocations: 7.953 kB / 461.5 MB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.6061, allocations: 4 kB / 461.5 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.6061, allocations: 0 / 461.5 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.6077, allocations: 0.7285 MB / 462.2 MB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.6078, allocations: 0 / 462.2 MB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000494/0.6083, allocations: 43.97 kB / 462.3 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.6083, allocations: 4 kB / 462.3 MB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.287e-05/0.6083, allocations: 15.94 kB / 462.3 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.6084, allocations: 4 kB / 462.3 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6084, allocations: 0 / 462.3 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.6099, allocations: 0.5423 MB / 462.8 MB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.6101, allocations: 100.8 kB / 462.9 MB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.709e-05/0.6102, allocations: 16.05 kB / 463 MB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003224/0.6105, allocations: 15.95 kB / 463 MB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.6107, allocations: 23.95 kB / 463 MB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.544e-05/0.6107, allocations: 19.98 kB / 463 MB, free: 12.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002558/0.611, allocations: 160.4 kB / 463.2 MB, free: 12.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.611, allocations: 0 / 463.2 MB, free: 12.39 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006483/0.6117, allocations: 75.73 kB / 463.2 MB, free: 12.31 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.002085/0.6138, allocations: 1.109 MB / 464.3 MB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009655/0.6148, allocations: 268.5 kB / 464.6 MB, free: 10.92 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.6148, allocations: 0 / 464.6 MB, free: 10.92 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004615/0.6153, allocations: 156.4 kB / 464.8 MB, free: 10.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.6158, allocations: 24.72 kB / 464.8 MB, free: 10.74 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.6193, allocations: 3.953 MB / 468.7 MB, free: 6.656 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005334/0.6199, allocations: 0.7919 MB / 469.5 MB, free: 5.832 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/0.6203, allocations: 111.5 kB / 469.6 MB, free: 5.723 MB / 394.7 MB Notification: Performance of SimCode: time 1.382e-06/0.6203, allocations: 3.938 kB / 469.6 MB, free: 5.719 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.68/3.3, allocations: 4.511 MB / 474.2 MB, free: 1.211 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