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.346/2.346, allocations: 235 MB / 248.1 MB, free: 14.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.377e-05/4.383e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5208/0.5209, allocations: 54.86 MB / 364.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.6784, allocations: 82.23 MB / 446.9 MB, free: 14.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.6787, allocations: 64.62 kB / 446.9 MB, free: 14.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02004/0.6988, allocations: 4.13 MB / 451 MB, free: 10.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.6988, allocations: 0 / 451 MB, free: 10.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.429e-05/0.6989, allocations: 4.75 kB / 451 MB, free: 10.09 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.001285/0.7002, allocations: 0.5306 MB / 451.6 MB, free: 9.512 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.7002, allocations: 8.031 kB / 451.6 MB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001758/0.7004, allocations: 78.84 kB / 451.7 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.7005, allocations: 31.62 kB / 451.7 MB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006436/0.7012, allocations: 310.1 kB / 452 MB, free: 9.043 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.7013, allocations: 20.56 kB / 452 MB, free: 9.023 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.7014, allocations: 39.84 kB / 452.1 MB, free: 8.984 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007066/0.7021, allocations: 253.5 kB / 452.3 MB, free: 8.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.7021, allocations: 4 kB / 452.3 MB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.7022, allocations: 12 kB / 452.3 MB, free: 8.715 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.7022, allocations: 8 kB / 452.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005098/0.7027, allocations: 162.2 kB / 452.5 MB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.705, allocations: 0.8187 MB / 453.3 MB, free: 7.676 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.7056, allocations: 183.7 kB / 453.5 MB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.7058, allocations: 88.78 kB / 453.6 MB, free: 7.398 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.093e-05/0.7059, allocations: 4 kB / 453.6 MB, free: 7.395 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005804/0.7065, allocations: 216.5 kB / 453.8 MB, free: 7.172 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 3.857e-06/0.7065, allocations: 4 kB / 453.8 MB, free: 7.168 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.000798/0.7073, allocations: 257.3 kB / 454 MB, free: 6.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.7074, allocations: 56.81 kB / 454.1 MB, free: 6.844 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.7077, allocations: 209 kB / 454.3 MB, free: 6.633 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.004e-05/0.7078, allocations: 41.69 kB / 454.3 MB, free: 6.586 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.708, allocations: 226.9 kB / 454.6 MB, free: 6.363 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.7081, allocations: 94.7 kB / 454.7 MB, free: 6.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.759e-05/0.7082, allocations: 4 kB / 454.7 MB, free: 6.266 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.7083, allocations: 326.8 kB / 455 MB, free: 5.938 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.7086, allocations: 72.75 kB / 455.1 MB, free: 5.863 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003569/0.709, allocations: 211 kB / 455.3 MB, free: 5.598 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003222/0.7093, allocations: 116.5 kB / 455.4 MB, free: 5.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.7093, allocations: 0 / 455.4 MB, free: 5.484 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008497/0.7102, allocations: 326.2 kB / 455.7 MB, free: 5.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.7102, allocations: 8 kB / 455.7 MB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/0.7103, allocations: 7.953 kB / 455.7 MB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-05/0.7103, allocations: 8 kB / 455.7 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005765/0.7109, allocations: 79.83 kB / 455.8 MB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.031e-05/0.7109, allocations: 11.98 kB / 455.8 MB, free: 5.047 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/0.7113, allocations: 43.67 kB / 455.8 MB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.913e-05/0.7113, allocations: 12.06 kB / 455.9 MB, free: 4.992 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.0001806/0.7115, allocations: 136.8 kB / 456 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.446e-05/0.7116, allocations: 31.7 kB / 456 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008803/0.7125, allocations: 292.4 kB / 456.3 MB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.7125, allocations: 7.953 kB / 456.3 MB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.7125, allocations: 4 kB / 456.3 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.7126, allocations: 0 / 456.3 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001359/0.7139, allocations: 0.6778 MB / 457 MB, free: 3.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.714, allocations: 0 / 457 MB, free: 3.777 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005181/0.7145, allocations: 51.91 kB / 457 MB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/0.7145, allocations: 3.953 kB / 457.1 MB, free: 3.723 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.13e-05/0.7146, allocations: 11.98 kB / 457.1 MB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.834e-06/0.7146, allocations: 4 kB / 457.1 MB, free: 3.707 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.7146, allocations: 4 kB / 457.1 MB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.7157, allocations: 491.4 kB / 457.5 MB, free: 3.207 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.519e-05/0.7158, allocations: 100.8 kB / 457.6 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.981e-05/0.7159, allocations: 20.12 kB / 457.7 MB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003057/0.7163, allocations: 23.92 kB / 457.7 MB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.012e-05/0.7164, allocations: 19.97 kB / 457.7 MB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.133e-05/0.7164, allocations: 19.98 kB / 457.7 MB, free: 3.008 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002223/0.7167, allocations: 153.4 kB / 457.9 MB, free: 2.859 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7167, allocations: 0 / 457.9 MB, free: 2.859 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000535/0.7172, allocations: 79.73 kB / 458 MB, free: 2.781 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.001541/0.7188, allocations: 1.043 MB / 459 MB, free: 1.715 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006724/0.7195, allocations: 236.3 kB / 459.2 MB, free: 1.484 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.7195, allocations: 0 / 459.2 MB, free: 1.484 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003342/0.7198, allocations: 119.8 kB / 459.3 MB, free: 1.367 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.7202, allocations: 33.58 kB / 459.4 MB, free: 1.336 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.7219, allocations: 0.5583 MB / 459.9 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.7224, allocations: 0.788 MB / 460.7 MB, free: 15.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000286/0.7227, allocations: 111.4 kB / 460.8 MB, free: 15.81 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/0.7227, allocations: 0 / 460.8 MB, free: 15.81 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.56/3.283, allocations: 4.643 MB / 465.5 MB, free: 11.16 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