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.MixIdealGasAir.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.MixIdealGasAir,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.284/2.284, allocations: 234.9 MB / 250.5 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004492/0.0004492, allocations: 12 kB / 314.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3441, allocations: 54.86 MB / 369.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.205/2.549, allocations: 0.7343 GB / 1.095 GB, free: 108.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/2.549, allocations: 68.22 kB / 1.095 GB, free: 108.1 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Media.mo:684:27-684:37:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 0.1397/2.689, allocations: 39.7 MB / 1.134 GB, free: 74.04 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.844e-06/2.689, allocations: 0 / 1.134 GB, free: 74.04 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.36e-05/2.689, allocations: 4 kB / 1.134 GB, free: 74.04 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001023/2.69, allocations: 0.5136 MB / 1.134 GB, free: 73.49 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/2.69, allocations: 8.031 kB / 1.134 GB, free: 73.48 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.117e-05/2.69, allocations: 53.3 kB / 1.134 GB, free: 73.43 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004948/2.695, allocations: 367.6 kB / 1.135 GB, free: 73.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004672/2.696, allocations: 267.6 kB / 1.135 GB, free: 72.84 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/2.696, allocations: 11.81 kB / 1.135 GB, free: 72.83 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/2.696, allocations: 19.56 kB / 1.135 GB, free: 72.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/2.697, allocations: 479.9 kB / 1.135 GB, free: 72.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/2.697, allocations: 0 / 1.135 GB, free: 72.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.181e-05/2.698, allocations: 11.25 kB / 1.135 GB, free: 72.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/2.698, allocations: 8 kB / 1.135 GB, free: 72.47 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/2.699, allocations: 0.5074 MB / 1.136 GB, free: 72.12 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.003088/2.702, allocations: 0.9934 MB / 1.137 GB, free: 71.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008393/2.703, allocations: 281.1 kB / 1.137 GB, free: 71.05 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001592/2.705, allocations: 0.6581 MB / 1.138 GB, free: 70.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/2.705, allocations: 42.41 kB / 1.138 GB, free: 70.26 MB / 490.7 MB Notification: Performance of pre-optimization done (n=29): time 2.906e-06/2.705, allocations: 0 / 1.138 GB, free: 70.26 MB / 490.7 MB Notification: Performance of matching and sorting (n=29): time 0.001402/2.706, allocations: 393.9 kB / 1.138 GB, free: 69.98 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.436e-05/2.706, allocations: 85.09 kB / 1.138 GB, free: 69.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.663e-05/2.706, allocations: 100.8 kB / 1.138 GB, free: 69.78 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/2.706, allocations: 34.14 kB / 1.138 GB, free: 69.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.028e-05/2.706, allocations: 188.7 kB / 1.139 GB, free: 69.57 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.823e-05/2.707, allocations: 108.8 kB / 1.139 GB, free: 69.47 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-05/2.707, allocations: 7.688 kB / 1.139 GB, free: 69.47 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.489e-05/2.707, allocations: 325.8 kB / 1.139 GB, free: 69.15 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/2.707, allocations: 111.3 kB / 1.139 GB, free: 69.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/2.707, allocations: 202.2 kB / 1.139 GB, free: 68.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/2.708, allocations: 133.7 kB / 1.139 GB, free: 68.81 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/2.708, allocations: 4 kB / 1.139 GB, free: 68.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001069/2.709, allocations: 366.2 kB / 1.14 GB, free: 68.54 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/2.709, allocations: 7.953 kB / 1.14 GB, free: 68.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/2.709, allocations: 7.938 kB / 1.14 GB, free: 68.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/2.709, allocations: 4.312 kB / 1.14 GB, free: 68.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007106/2.71, allocations: 79.77 kB / 1.14 GB, free: 68.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/2.71, allocations: 16 kB / 1.14 GB, free: 68.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004652/2.71, allocations: 31.05 kB / 1.14 GB, free: 68.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.489e-05/2.71, allocations: 23.42 kB / 1.14 GB, free: 68.39 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (39): * Single equations (assignments): 39 * 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.0002306/2.711, allocations: 135.5 kB / 1.14 GB, free: 68.26 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/2.711, allocations: 11.91 kB / 1.14 GB, free: 68.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/2.712, allocations: 393.5 kB / 1.141 GB, free: 67.96 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/2.712, allocations: 4 kB / 1.141 GB, free: 67.95 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/2.712, allocations: 0 / 1.141 GB, free: 67.95 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/2.712, allocations: 0 / 1.141 GB, free: 67.95 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009318/2.713, allocations: 361.7 kB / 1.141 GB, free: 67.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/2.713, allocations: 4 kB / 1.141 GB, free: 67.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006861/2.714, allocations: 59.84 kB / 1.141 GB, free: 67.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/2.714, allocations: 7.984 kB / 1.141 GB, free: 67.54 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/2.714, allocations: 15.7 kB / 1.141 GB, free: 67.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/2.714, allocations: 0 / 1.141 GB, free: 67.52 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/2.714, allocations: 0 / 1.141 GB, free: 67.52 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/2.715, allocations: 0.5577 MB / 1.141 GB, free: 67.05 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.327e-05/2.716, allocations: 100.8 kB / 1.142 GB, free: 66.94 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.79e-05/2.716, allocations: 15.45 kB / 1.142 GB, free: 66.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005926/2.716, allocations: 19.23 kB / 1.142 GB, free: 66.91 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/2.716, allocations: 11.98 kB / 1.142 GB, free: 66.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.009e-05/2.716, allocations: 23.59 kB / 1.142 GB, free: 66.88 MB / 490.7 MB Notification: Performance of sorting global known variables: time 5.984e-05/2.716, allocations: 83.03 kB / 1.142 GB, free: 66.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.61e-07/2.716, allocations: 4 kB / 1.142 GB, free: 66.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001425/2.718, allocations: 258.9 kB / 1.142 GB, free: 66.58 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium.p,medium.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2]) * 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 (29): * Single equations (assignments): 29 * 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.003678/2.722, allocations: 1.833 MB / 1.144 GB, free: 64.85 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001045/2.723, allocations: 293.4 kB / 1.144 GB, free: 64.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/2.723, allocations: 0 / 1.144 GB, free: 64.64 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004086/2.723, allocations: 148.6 kB / 1.144 GB, free: 64.54 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009349/2.724, allocations: 73.86 kB / 1.144 GB, free: 64.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004139/2.728, allocations: 3.366 MB / 1.148 GB, free: 61.19 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/2.729, allocations: 0.7362 MB / 1.148 GB, free: 60.43 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003217/2.729, allocations: 68.38 kB / 1.148 GB, free: 60.39 MB / 490.7 MB Notification: Performance of SimCode: time 9.52e-07/2.729, allocations: 3.938 kB / 1.148 GB, free: 60.39 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.763/5.492, allocations: 9.827 MB / 1.158 GB, free: 50.59 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat does not exist to compare? outputFormat=mat