Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_1_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.562e-05/4.579e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2713, allocations: 38.78 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.182/8.453, allocations: 2.735 GB / 2.992 GB, free: 80.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03189/8.485, allocations: 10.68 MB / 3.003 GB, free: 79.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8439/9.329, allocations: 110.9 MB / 3.111 GB, free: 56.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/9.329, allocations: 3.719 kB / 3.111 GB, free: 56.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.871e-05/9.329, allocations: 3.969 kB / 3.111 GB, free: 56.81 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.0109/9.34, allocations: 1.131 MB / 3.112 GB, free: 56.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/9.34, allocations: 7.938 kB / 3.112 GB, free: 56.23 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.108e-05/9.34, allocations: 60.3 kB / 3.112 GB, free: 56.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01063/9.351, allocations: 181.4 kB / 3.113 GB, free: 56.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/9.351, allocations: 262.3 kB / 3.113 GB, free: 55.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.918e-05/9.351, allocations: 16.22 kB / 3.113 GB, free: 55.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-05/9.351, allocations: 22.84 kB / 3.113 GB, free: 55.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/9.362, allocations: 0.908 MB / 3.114 GB, free: 55.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/9.362, allocations: 2.953 kB / 3.114 GB, free: 55.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/9.362, allocations: 10.06 kB / 3.114 GB, free: 55.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/9.362, allocations: 7.938 kB / 3.114 GB, free: 55.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/9.373, allocations: 0.9581 MB / 3.115 GB, free: 55.91 MB / 362.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.003396/9.377, allocations: 1.342 MB / 3.116 GB, free: 54.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005732/9.383, allocations: 0.7314 MB / 3.117 GB, free: 54.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004804/9.383, allocations: 141.9 kB / 3.117 GB, free: 54.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1523/9.536, allocations: 36.72 MB / 3.153 GB, free: 33.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/9.536, allocations: 37.94 kB / 3.153 GB, free: 33.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 4.248e-06/9.536, allocations: 0 / 3.153 GB, free: 33.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.007502/9.543, allocations: 1.238 MB / 3.154 GB, free: 33.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/9.543, allocations: 55.16 kB / 3.154 GB, free: 33.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/9.543, allocations: 115.9 kB / 3.154 GB, free: 32.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/9.544, allocations: 31.08 kB / 3.154 GB, free: 32.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.296e-05/9.544, allocations: 117.7 kB / 3.154 GB, free: 32.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/9.544, allocations: 117.2 kB / 3.154 GB, free: 32.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.522e-05/9.544, allocations: 6.688 kB / 3.154 GB, free: 32.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.143e-05/9.544, allocations: 328.1 kB / 3.155 GB, free: 32.42 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007913/9.545, allocations: 311.5 kB / 3.155 GB, free: 32.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008264/9.546, allocations: 384.4 kB / 3.155 GB, free: 32.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007949/9.547, allocations: 321.6 kB / 3.156 GB, free: 32.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/9.547, allocations: 0 / 3.156 GB, free: 32.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002534/9.549, allocations: 0.8122 MB / 3.156 GB, free: 32.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.228e-05/9.549, allocations: 7.844 kB / 3.156 GB, free: 32.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/9.549, allocations: 3.281 kB / 3.156 GB, free: 32.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.093e-05/9.549, allocations: 3.375 kB / 3.156 GB, free: 32.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/9.551, allocations: 180 kB / 3.157 GB, free: 32.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/9.551, allocations: 3.969 kB / 3.157 GB, free: 32.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008492/9.551, allocations: 47.97 kB / 3.157 GB, free: 32.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001755/9.552, allocations: 60.52 kB / 3.157 GB, free: 32.28 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 () * 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.0002726/9.552, allocations: 128.8 kB / 3.157 GB, free: 32.17 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/9.552, allocations: 15.34 kB / 3.157 GB, free: 32.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008294/9.56, allocations: 6.287 MB / 3.163 GB, free: 31.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.949e-05/9.561, allocations: 19.22 kB / 3.163 GB, free: 31.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.485e-06/9.561, allocations: 3.609 kB / 3.163 GB, free: 31.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/9.561, allocations: 0 / 3.163 GB, free: 31.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003284/9.564, allocations: 2.81 MB / 3.166 GB, free: 30.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/9.564, allocations: 0 / 3.166 GB, free: 30.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/9.565, allocations: 131 kB / 3.166 GB, free: 30.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.185e-05/9.565, allocations: 5.562 kB / 3.166 GB, free: 30.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.199e-05/9.565, allocations: 18.69 kB / 3.166 GB, free: 30.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/9.565, allocations: 0 / 3.166 GB, free: 30.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/9.565, allocations: 3.938 kB / 3.166 GB, free: 30.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002952/9.568, allocations: 1.497 MB / 3.167 GB, free: 29.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/9.569, allocations: 123.4 kB / 3.168 GB, free: 29.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.878e-05/9.569, allocations: 13.06 kB / 3.168 GB, free: 29.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006979/9.569, allocations: 30.48 kB / 3.168 GB, free: 29.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/9.57, allocations: 41.33 kB / 3.168 GB, free: 29.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.374e-05/9.57, allocations: 22.62 kB / 3.168 GB, free: 29.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.571e-05/9.57, allocations: 90.72 kB / 3.168 GB, free: 29.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/9.57, allocations: 0 / 3.168 GB, free: 29.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00577/9.576, allocations: 0.9897 MB / 3.169 GB, free: 28.86 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: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse6.region3boundary,$cse7.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.01312/9.589, allocations: 3.2 MB / 3.172 GB, free: 27.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002041/9.591, allocations: 0.7867 MB / 3.173 GB, free: 27.03 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/9.591, allocations: 0 / 3.173 GB, free: 27.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009328/9.592, allocations: 480.5 kB / 3.173 GB, free: 26.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009269/9.593, allocations: 82.44 kB / 3.173 GB, free: 26.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005749/9.599, allocations: 1.295 MB / 3.174 GB, free: 26.15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/9.599, allocations: 0.8199 MB / 3.175 GB, free: 25.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004406/9.603, allocations: 2.729 MB / 3.178 GB, free: 25.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007415/9.604, allocations: 197.1 kB / 3.178 GB, free: 25.25 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/9.604, allocations: 0 / 3.178 GB, free: 25.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1106/9.715, allocations: 35.71 MB / 3.213 GB, free: 17.19 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001884/9.715, allocations: 165.4 kB / 3.213 GB, free: 16.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.988/13.7, allocations: 0 / 3.213 GB, free: 16.96 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat