Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.RootMeanSquare.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.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.36/2.36, allocations: 235 MB / 248 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.495e-05/3.506e-05, allocations: 4 kB / 309.8 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4226, allocations: 54.85 MB / 364.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1463/0.5689, allocations: 80.82 MB / 445.4 MB, free: 15.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.5692, allocations: 59.95 kB / 445.5 MB, free: 15.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0078/0.5771, allocations: 1.65 MB / 447.1 MB, free: 13.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.5771, allocations: 0 / 447.1 MB, free: 13.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.5771, allocations: 7.5 kB / 447.1 MB, free: 13.99 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006362/0.5778, allocations: 378.2 kB / 447.5 MB, free: 13.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.5779, allocations: 8.031 kB / 447.5 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.874e-05/0.5779, allocations: 42.55 kB / 447.6 MB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.578, allocations: 8.562 kB / 447.6 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.5783, allocations: 206.8 kB / 447.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.5784, allocations: 11.98 kB / 447.8 MB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.208e-05/0.5784, allocations: 16 kB / 447.8 MB, free: 13.24 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002438/0.5787, allocations: 73.67 kB / 447.9 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.5787, allocations: 0 / 447.9 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.93e-05/0.5788, allocations: 15.94 kB / 447.9 MB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.5788, allocations: 0.5625 kB / 447.9 MB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001445/0.5789, allocations: 43.94 kB / 447.9 MB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000791/0.5797, allocations: 369.4 kB / 448.3 MB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.5799, allocations: 62.52 kB / 448.4 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.798e-05/0.58, allocations: 19.14 kB / 448.4 MB, free: 12.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.58, allocations: 0 / 448.4 MB, free: 12.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.5803, allocations: 96.16 kB / 448.5 MB, free: 12.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.234e-06/0.5803, allocations: 0 / 448.5 MB, free: 12.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003389/0.5807, allocations: 98.92 kB / 448.6 MB, free: 12.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.5807, allocations: 51.41 kB / 448.6 MB, free: 12.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.5809, allocations: 127.2 kB / 448.7 MB, free: 12.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/0.581, allocations: 29.7 kB / 448.8 MB, free: 12.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.61e-05/0.5811, allocations: 170.7 kB / 448.9 MB, free: 11.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.722e-05/0.5812, allocations: 42.97 kB / 449 MB, free: 11.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-06/0.5812, allocations: 0 / 449 MB, free: 11.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.5813, allocations: 314.8 kB / 449.3 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.694e-05/0.5814, allocations: 27.94 kB / 449.3 MB, free: 11.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.5815, allocations: 74.06 kB / 449.4 MB, free: 11.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.5816, allocations: 35.94 kB / 449.4 MB, free: 11.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5817, allocations: 0 / 449.4 MB, free: 11.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003117/0.582, allocations: 121.5 kB / 449.5 MB, free: 11.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.582, allocations: 11.98 kB / 449.6 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.582, allocations: 0 / 449.6 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.5821, allocations: 4 kB / 449.6 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002432/0.5823, allocations: 30.95 kB / 449.6 MB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.5824, allocations: 4 kB / 449.6 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.5825, allocations: 11.91 kB / 449.6 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.5825, allocations: 8 kB / 449.6 MB, free: 11.29 MB / 378.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 () * 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 0.0001148/0.5827, allocations: 125 kB / 449.7 MB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.5827, allocations: 7.906 kB / 449.7 MB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.799e-05/0.5828, allocations: 12.61 kB / 449.8 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.5828, allocations: 4 kB / 449.8 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.5828, allocations: 0 / 449.8 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.5828, allocations: 0 / 449.8 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002298/0.583, allocations: 197.6 kB / 449.9 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.5831, allocations: 4.047 kB / 450 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.5832, allocations: 15.94 kB / 450 MB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.5833, allocations: 7.984 kB / 450 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.5833, allocations: 4 kB / 450 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.5833, allocations: 0 / 450 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.5833, allocations: 7.312 kB / 450 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.5837, allocations: 148.9 kB / 450.1 MB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.21e-05/0.5838, allocations: 92.98 kB / 450.2 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.5839, allocations: 4 kB / 450.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.584, allocations: 8.062 kB / 450.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.67e-05/0.5841, allocations: 8.078 kB / 450.2 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.5841, allocations: 7.984 kB / 450.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001033/0.5842, allocations: 110.6 kB / 450.4 MB, free: 10.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5842, allocations: 0 / 450.4 MB, free: 10.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003117/0.5845, allocations: 23.94 kB / 450.4 MB, free: 10.42 MB / 378.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) * 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 0.0007284/0.5853, allocations: 0.6943 MB / 451.1 MB, free: 9.699 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002474/0.5855, allocations: 67.86 kB / 451.1 MB, free: 9.633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5856, allocations: 0 / 451.1 MB, free: 9.633 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.5857, allocations: 27.94 kB / 451.2 MB, free: 9.605 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002267/0.5859, allocations: 17.28 kB / 451.2 MB, free: 9.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007712/0.5867, allocations: 229.2 kB / 451.4 MB, free: 9.328 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.587, allocations: 0.7082 MB / 452.1 MB, free: 8.594 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.5872, allocations: 31.42 kB / 452.1 MB, free: 8.562 MB / 378.7 MB Notification: Performance of SimCode: time 1.603e-06/0.5872, allocations: 0 / 452.1 MB, free: 8.562 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.663/3.25, allocations: 1.77 MB / 453.9 MB, free: 6.797 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat