Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003564, allocations: 8 kB / 233.3 MB, free: 0.8359 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1215, allocations: 38.77 MB / 272.1 MB, free: 9.988 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.184/8.306, allocations: 2.735 GB / 3.001 GB, free: 77.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03404/8.34, allocations: 10.81 MB / 3.011 GB, free: 69.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7199/9.06, allocations: 111.1 MB / 3.12 GB, free: 59.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.344e-06/9.06, allocations: 6.25 kB / 3.12 GB, free: 59.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/9.06, allocations: 2.719 kB / 3.12 GB, free: 59.7 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.005636/9.065, allocations: 1.136 MB / 3.121 GB, free: 58.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/9.066, allocations: 11.78 kB / 3.121 GB, free: 58.96 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.783e-05/9.066, allocations: 56.69 kB / 3.121 GB, free: 58.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001937/9.068, allocations: 186.7 kB / 3.121 GB, free: 58.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/9.068, allocations: 256.8 kB / 3.121 GB, free: 58.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.514e-05/9.068, allocations: 18.62 kB / 3.121 GB, free: 58.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.238e-05/9.068, allocations: 22.81 kB / 3.121 GB, free: 58.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004685/9.073, allocations: 0.8889 MB / 3.122 GB, free: 58.63 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/9.073, allocations: 0 / 3.122 GB, free: 58.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/9.073, allocations: 7.562 kB / 3.122 GB, free: 58.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/9.073, allocations: 6.938 kB / 3.122 GB, free: 58.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004972/9.078, allocations: 0.973 MB / 3.123 GB, free: 58.62 MB / 362.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.002066/9.08, allocations: 1.349 MB / 3.124 GB, free: 57.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003949/9.084, allocations: 0.7089 MB / 3.125 GB, free: 57.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1116/9.196, allocations: 36.58 MB / 3.161 GB, free: 34.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/9.196, allocations: 44.8 kB / 3.161 GB, free: 34.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.277e-06/9.196, allocations: 0 / 3.161 GB, free: 34.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.007996/9.204, allocations: 1.321 MB / 3.162 GB, free: 34.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/9.204, allocations: 58.39 kB / 3.162 GB, free: 34.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/9.204, allocations: 111.1 kB / 3.162 GB, free: 34.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000127/9.204, allocations: 29.64 kB / 3.162 GB, free: 34.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.594e-05/9.204, allocations: 193.3 kB / 3.163 GB, free: 34.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001907/9.204, allocations: 114 kB / 3.163 GB, free: 34.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.719e-05/9.205, allocations: 14.22 kB / 3.163 GB, free: 34.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.137e-05/9.205, allocations: 328.6 kB / 3.163 GB, free: 33.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000997/9.206, allocations: 332.2 kB / 3.163 GB, free: 33.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/9.207, allocations: 407.4 kB / 3.164 GB, free: 33.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/9.208, allocations: 344.3 kB / 3.164 GB, free: 33.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/9.208, allocations: 0 / 3.164 GB, free: 33.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00282/9.211, allocations: 0.8521 MB / 3.165 GB, free: 33.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/9.211, allocations: 12.5 kB / 3.165 GB, free: 33.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/9.211, allocations: 3.281 kB / 3.165 GB, free: 33.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/9.211, allocations: 6.438 kB / 3.165 GB, free: 33.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/9.212, allocations: 182.9 kB / 3.165 GB, free: 33.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/9.212, allocations: 8.938 kB / 3.165 GB, free: 33.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000788/9.213, allocations: 40.62 kB / 3.165 GB, free: 33.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001714/9.213, allocations: 67.16 kB / 3.165 GB, free: 33.6 MB / 362.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: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0003323/9.213, allocations: 136.8 kB / 3.165 GB, free: 33.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/9.214, allocations: 15.72 kB / 3.165 GB, free: 33.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009495/9.223, allocations: 7.596 MB / 3.173 GB, free: 30.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.714e-05/9.223, allocations: 13.34 kB / 3.173 GB, free: 30.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/9.223, allocations: 7.562 kB / 3.173 GB, free: 30.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/9.223, allocations: 3.844 kB / 3.173 GB, free: 30.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003567/9.227, allocations: 3.42 MB / 3.176 GB, free: 28.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.878e-06/9.227, allocations: 0 / 3.176 GB, free: 28.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/9.228, allocations: 119.1 kB / 3.176 GB, free: 27.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/9.228, allocations: 4 kB / 3.176 GB, free: 27.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.387e-05/9.228, allocations: 9.672 kB / 3.176 GB, free: 27.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/9.228, allocations: 4.375 kB / 3.176 GB, free: 27.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/9.228, allocations: 3.141 kB / 3.176 GB, free: 27.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003145/9.231, allocations: 1.593 MB / 3.178 GB, free: 26.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/9.232, allocations: 135.8 kB / 3.178 GB, free: 26.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.989e-05/9.232, allocations: 15.12 kB / 3.178 GB, free: 26.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006019/9.232, allocations: 23.56 kB / 3.178 GB, free: 26.26 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/9.232, allocations: 28.14 kB / 3.178 GB, free: 26.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-05/9.232, allocations: 15.23 kB / 3.178 GB, free: 26.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.921e-05/9.233, allocations: 88.97 kB / 3.178 GB, free: 26.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.31e-07/9.233, allocations: 0 / 3.178 GB, free: 26.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00504/9.238, allocations: 0.9959 MB / 3.179 GB, free: 25.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 11 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01308/9.251, allocations: 3.302 MB / 3.182 GB, free: 22.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002327/9.253, allocations: 0.8245 MB / 3.183 GB, free: 21.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/9.253, allocations: 4.5 kB / 3.183 GB, free: 21.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/9.254, allocations: 0.5046 MB / 3.184 GB, free: 21.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008729/9.255, allocations: 83.38 kB / 3.184 GB, free: 20.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009382/9.265, allocations: 4.332 MB / 3.188 GB, free: 16.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/9.265, allocations: 0.8324 MB / 3.189 GB, free: 16.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007112/9.266, allocations: 192 kB / 3.189 GB, free: 15.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.513e-06/9.266, allocations: 0 / 3.189 GB, free: 15.89 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.397/12.66, allocations: 26.28 MB / 3.215 GB, free: 100 kB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat