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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.496/2.496, allocations: 235.1 MB / 243 MB, free: 9.609 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.624e-05/2.606e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3635, allocations: 54.85 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.246/2.61, allocations: 0.7335 GB / 1.083 GB, free: 130.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/2.61, allocations: 67.84 kB / 1.083 GB, free: 130.9 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.1417/2.752, allocations: 38.93 MB / 1.121 GB, free: 98.67 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.703e-06/2.752, allocations: 0 / 1.121 GB, free: 98.67 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.264e-05/2.752, allocations: 4 kB / 1.121 GB, free: 98.66 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.0009596/2.753, allocations: 0.509 MB / 1.122 GB, free: 98.12 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/2.753, allocations: 8.031 kB / 1.122 GB, free: 98.11 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004862/2.758, allocations: 371.4 kB / 1.122 GB, free: 97.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000462/2.758, allocations: 258.1 kB / 1.122 GB, free: 97.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/2.758, allocations: 11.98 kB / 1.122 GB, free: 97.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/2.758, allocations: 8 kB / 1.122 GB, free: 97.51 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001139/2.759, allocations: 475.2 kB / 1.123 GB, free: 97.21 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006284/2.76, allocations: 306.9 kB / 1.123 GB, free: 96.98 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/2.76, allocations: 0 / 1.123 GB, free: 96.98 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.419e-05/2.76, allocations: 4 kB / 1.123 GB, free: 96.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/2.76, allocations: 4 kB / 1.123 GB, free: 96.97 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.002983/2.763, allocations: 0.955 MB / 1.124 GB, free: 96.14 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005591/2.764, allocations: 257.9 kB / 1.124 GB, free: 95.96 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/2.764, allocations: 133.7 kB / 1.125 GB, free: 95.87 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001608/2.766, allocations: 0.6544 MB / 1.125 GB, free: 95.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/2.766, allocations: 38.31 kB / 1.125 GB, free: 95.08 MB / 490.7 MB Notification: Performance of pre-optimization done (n=29): time 2.965e-06/2.766, allocations: 3.938 kB / 1.125 GB, free: 95.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008488/2.767, allocations: 261 kB / 1.125 GB, free: 94.88 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/2.767, allocations: 89.06 kB / 1.126 GB, free: 94.77 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.505e-05/2.767, allocations: 104.7 kB / 1.126 GB, free: 94.67 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/2.767, allocations: 25.7 kB / 1.126 GB, free: 94.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.773e-05/2.767, allocations: 186.5 kB / 1.126 GB, free: 94.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.538e-05/2.767, allocations: 97.62 kB / 1.126 GB, free: 94.38 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/2.767, allocations: 0 / 1.126 GB, free: 94.38 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.458e-05/2.767, allocations: 326.5 kB / 1.126 GB, free: 94.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/2.767, allocations: 97.58 kB / 1.126 GB, free: 93.99 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002498/2.768, allocations: 183.4 kB / 1.126 GB, free: 93.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/2.768, allocations: 122.4 kB / 1.127 GB, free: 93.74 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/2.768, allocations: 4 kB / 1.127 GB, free: 93.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008085/2.769, allocations: 324.5 kB / 1.127 GB, free: 93.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/2.769, allocations: 8 kB / 1.127 GB, free: 93.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/2.769, allocations: 4 kB / 1.127 GB, free: 93.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/2.769, allocations: 4 kB / 1.127 GB, free: 93.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006774/2.77, allocations: 75.39 kB / 1.127 GB, free: 93.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/2.77, allocations: 8.25 kB / 1.127 GB, free: 93.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004341/2.77, allocations: 35.62 kB / 1.127 GB, free: 93.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-05/2.77, allocations: 12 kB / 1.127 GB, free: 93.36 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 () * 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.0001294/2.77, allocations: 122.3 kB / 1.127 GB, free: 93.23 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007302/2.771, allocations: 267.2 kB / 1.127 GB, free: 93.04 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/2.771, allocations: 19.88 kB / 1.127 GB, free: 93.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009756/2.772, allocations: 343 kB / 1.128 GB, free: 92.76 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/2.772, allocations: 7.938 kB / 1.128 GB, free: 92.75 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/2.772, allocations: 7.953 kB / 1.128 GB, free: 92.74 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/2.772, allocations: 0 / 1.128 GB, free: 92.74 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000786/2.773, allocations: 320.7 kB / 1.128 GB, free: 92.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/2.773, allocations: 0 / 1.128 GB, free: 92.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006603/2.774, allocations: 55.66 kB / 1.128 GB, free: 92.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/2.774, allocations: 4 kB / 1.128 GB, free: 92.38 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/2.774, allocations: 11.92 kB / 1.128 GB, free: 92.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/2.774, allocations: 0 / 1.128 GB, free: 92.37 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/2.774, allocations: 0 / 1.128 GB, free: 92.37 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008862/2.775, allocations: 0.5229 MB / 1.129 GB, free: 91.92 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.751e-05/2.775, allocations: 96.84 kB / 1.129 GB, free: 91.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.626e-05/2.775, allocations: 4 kB / 1.129 GB, free: 91.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005554/2.775, allocations: 12.11 kB / 1.129 GB, free: 91.79 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.018e-05/2.775, allocations: 23.38 kB / 1.129 GB, free: 91.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.269e-05/2.775, allocations: 15.36 kB / 1.129 GB, free: 91.76 MB / 490.7 MB Notification: Performance of sorting global known variables: time 4.301e-05/2.776, allocations: 94.52 kB / 1.129 GB, free: 91.67 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.776, allocations: 0 / 1.129 GB, free: 91.67 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001209/2.777, allocations: 245 kB / 1.129 GB, free: 91.45 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 () * 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.002893/2.78, allocations: 1.858 MB / 1.131 GB, free: 89.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0006225/2.78, allocations: 253.7 kB / 1.131 GB, free: 89.51 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/2.78, allocations: 3.938 kB / 1.131 GB, free: 89.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002568/2.781, allocations: 128.3 kB / 1.131 GB, free: 89.42 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008919/2.782, allocations: 81.14 kB / 1.131 GB, free: 89.35 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/2.784, allocations: 0.7483 MB / 1.132 GB, free: 88.59 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/2.784, allocations: 0.7386 MB / 1.133 GB, free: 87.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003259/2.784, allocations: 68.34 kB / 1.133 GB, free: 87.78 MB / 490.7 MB Notification: Performance of SimCode: time 1.363e-06/2.784, allocations: 0 / 1.133 GB, free: 87.78 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.918/5.702, allocations: 9.828 MB / 1.143 GB, free: 77.98 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