Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestOnly.FlueGas.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.Media.TestOnly.FlueGas,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.281/2.281, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004442, allocations: 16 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.352, allocations: 54.85 MB / 369.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.223/2.575, allocations: 0.7596 GB / 1.12 GB, free: 82.39 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/2.575, allocations: 72.16 kB / 1.12 GB, free: 82.35 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Media.mo:725:35-725:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 0.2018/2.777, allocations: 61.97 MB / 1.181 GB, free: 27.56 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.994e-06/2.777, allocations: 0 / 1.181 GB, free: 27.56 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.262e-05/2.777, allocations: 0 / 1.181 GB, free: 27.56 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0007889/2.778, allocations: 483.4 kB / 1.181 GB, free: 27.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/2.778, allocations: 12.03 kB / 1.181 GB, free: 27.02 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.479e-05/2.778, allocations: 50.55 kB / 1.181 GB, free: 26.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009401/2.787, allocations: 0.7058 MB / 1.182 GB, free: 26.26 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000589/2.788, allocations: 282.7 kB / 1.182 GB, free: 25.94 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/2.788, allocations: 8.328 kB / 1.182 GB, free: 25.93 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001747/2.788, allocations: 23.91 kB / 1.182 GB, free: 25.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002231/2.791, allocations: 0.6995 MB / 1.183 GB, free: 25.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/2.791, allocations: 3.938 kB / 1.183 GB, free: 25.19 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/2.791, allocations: 8 kB / 1.183 GB, free: 25.18 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.726e-05/2.791, allocations: 8 kB / 1.183 GB, free: 25.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/2.793, allocations: 0.7651 MB / 1.184 GB, free: 24.41 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003941/2.797, allocations: 1.218 MB / 1.185 GB, free: 23.14 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/2.798, allocations: 321 kB / 1.185 GB, free: 22.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007572/2.799, allocations: 246.1 kB / 1.186 GB, free: 22.53 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/2.799, allocations: 38.56 kB / 1.186 GB, free: 22.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.775e-06/2.799, allocations: 0 / 1.186 GB, free: 22.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002091/2.801, allocations: 0.5543 MB / 1.186 GB, free: 21.92 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/2.801, allocations: 85.05 kB / 1.186 GB, free: 21.82 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/2.802, allocations: 117 kB / 1.186 GB, free: 21.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.915e-05/2.802, allocations: 33.7 kB / 1.186 GB, free: 21.66 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/2.802, allocations: 186.6 kB / 1.187 GB, free: 21.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/2.802, allocations: 90.66 kB / 1.187 GB, free: 21.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.762e-05/2.802, allocations: 4 kB / 1.187 GB, free: 21.38 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.16e-05/2.802, allocations: 334.8 kB / 1.187 GB, free: 21.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006155/2.803, allocations: 179.9 kB / 1.187 GB, free: 20.87 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006588/2.803, allocations: 280.8 kB / 1.187 GB, free: 20.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006793/2.804, allocations: 207.9 kB / 1.188 GB, free: 20.35 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/2.804, allocations: 0 / 1.188 GB, free: 20.35 MB / 490.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001597/2.806, allocations: 0.5068 MB / 1.188 GB, free: 19.84 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/2.806, allocations: 4 kB / 1.188 GB, free: 19.83 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/2.806, allocations: 4.406 kB / 1.188 GB, free: 19.83 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/2.806, allocations: 12 kB / 1.188 GB, free: 19.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008937/2.807, allocations: 75.88 kB / 1.188 GB, free: 19.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/2.807, allocations: 7.938 kB / 1.188 GB, free: 19.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006922/2.807, allocations: 47.61 kB / 1.188 GB, free: 19.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.729e-05/2.807, allocations: 19.98 kB / 1.188 GB, free: 19.67 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.0002011/2.808, allocations: 145.7 kB / 1.188 GB, free: 19.52 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/2.808, allocations: 19.81 kB / 1.188 GB, free: 19.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/2.809, allocations: 494.3 kB / 1.189 GB, free: 19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/2.81, allocations: 0 / 1.189 GB, free: 19 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/2.81, allocations: 8 kB / 1.189 GB, free: 19 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.351e-06/2.81, allocations: 0 / 1.189 GB, free: 19 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/2.811, allocations: 0.4988 MB / 1.189 GB, free: 18.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/2.811, allocations: 4 kB / 1.189 GB, free: 18.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008843/2.811, allocations: 63.89 kB / 1.189 GB, free: 18.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/2.812, allocations: 0 / 1.189 GB, free: 18.38 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.768e-05/2.812, allocations: 11.98 kB / 1.189 GB, free: 18.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/2.812, allocations: 4 kB / 1.189 GB, free: 18.37 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/2.812, allocations: 0 / 1.189 GB, free: 18.37 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/2.813, allocations: 0.6903 MB / 1.19 GB, free: 17.65 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.415e-05/2.814, allocations: 88.95 kB / 1.19 GB, free: 17.54 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.612e-05/2.814, allocations: 8 kB / 1.19 GB, free: 17.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007701/2.814, allocations: 27.88 kB / 1.19 GB, free: 17.51 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.807e-05/2.814, allocations: 15.94 kB / 1.19 GB, free: 17.49 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.067e-05/2.815, allocations: 19.98 kB / 1.19 GB, free: 17.47 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.648e-05/2.815, allocations: 99.25 kB / 1.19 GB, free: 17.38 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.202e-06/2.815, allocations: 0 / 1.19 GB, free: 17.38 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001094/2.816, allocations: 211.9 kB / 1.191 GB, free: 17.17 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (state.p,state.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium2.X[3],medium2.X[4]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 25 * 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 Backend phase and start with SimCode phase: time 0.003662/2.819, allocations: 1.923 MB / 1.192 GB, free: 15.21 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001371/2.821, allocations: 439.5 kB / 1.193 GB, free: 14.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/2.821, allocations: 0 / 1.193 GB, free: 14.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000635/2.821, allocations: 207.8 kB / 1.193 GB, free: 14.58 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009369/2.822, allocations: 89.31 kB / 1.193 GB, free: 14.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004828/2.827, allocations: 4.18 MB / 1.197 GB, free: 10.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/2.828, allocations: 0.7405 MB / 1.198 GB, free: 9.434 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/2.828, allocations: 67.39 kB / 1.198 GB, free: 9.367 MB / 490.7 MB Notification: Performance of SimCode: time 1.663e-06/2.828, allocations: 0 / 1.198 GB, free: 9.367 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.118/5.946, allocations: 10.24 MB / 1.208 GB, free: 158.6 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestOnly.FlueGas_res.mat does not exist to compare? outputFormat=mat