Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.058/2.058, allocations: 194.9 MB / 208.4 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.446e-05/3.471e-05, allocations: 0 / 255.4 MB, free: 3.129 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1033, allocations: 44.51 MB / 299.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.684/8.787, allocations: 2.844 GB / 3.137 GB, free: 24.79 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0329/8.82, allocations: 10.88 MB / 3.148 GB, free: 16.41 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8123/9.633, allocations: 112.8 MB / 3.258 GB, free: 73.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/9.633, allocations: 0 / 3.258 GB, free: 73.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.568e-05/9.633, allocations: 4 kB / 3.258 GB, free: 73.63 MB / 410.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.006056/9.639, allocations: 1.147 MB / 3.259 GB, free: 72.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/9.639, allocations: 8.031 kB / 3.259 GB, free: 72.51 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.888e-05/9.639, allocations: 54.17 kB / 3.259 GB, free: 72.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001936/9.641, allocations: 189.3 kB / 3.259 GB, free: 72.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/9.641, allocations: 260.7 kB / 3.26 GB, free: 72.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/9.641, allocations: 20.38 kB / 3.26 GB, free: 72.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.23e-05/9.641, allocations: 24 kB / 3.26 GB, free: 72.01 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004522/9.646, allocations: 0.9 MB / 3.261 GB, free: 71.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/9.646, allocations: 0 / 3.261 GB, free: 71.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.938e-05/9.646, allocations: 12 kB / 3.261 GB, free: 71.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/9.646, allocations: 11.95 kB / 3.261 GB, free: 71.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004629/9.651, allocations: 0.9499 MB / 3.262 GB, free: 70.48 MB / 410.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.002122/9.653, allocations: 1.347 MB / 3.263 GB, free: 69.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003802/9.657, allocations: 0.7303 MB / 3.264 GB, free: 68.53 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000315/9.657, allocations: 142.3 kB / 3.264 GB, free: 68.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1163/9.773, allocations: 37.35 MB / 3.3 GB, free: 27.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/9.773, allocations: 38.8 kB / 3.3 GB, free: 27.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 3.667e-06/9.773, allocations: 4 kB / 3.3 GB, free: 27.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.007304/9.781, allocations: 1.237 MB / 3.302 GB, free: 26.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/9.781, allocations: 51.41 kB / 3.302 GB, free: 26.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/9.781, allocations: 113.2 kB / 3.302 GB, free: 26.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000103/9.781, allocations: 29.7 kB / 3.302 GB, free: 26.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.532e-05/9.781, allocations: 186.8 kB / 3.302 GB, free: 25.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/9.781, allocations: 118.3 kB / 3.302 GB, free: 25.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.045e-05/9.781, allocations: 8 kB / 3.302 GB, free: 25.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.177e-05/9.781, allocations: 326.8 kB / 3.302 GB, free: 25.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007941/9.782, allocations: 307.9 kB / 3.303 GB, free: 25.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008379/9.783, allocations: 379.6 kB / 3.303 GB, free: 24.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008047/9.784, allocations: 315.7 kB / 3.303 GB, free: 24.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/9.784, allocations: 3.938 kB / 3.303 GB, free: 24.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002477/9.786, allocations: 0.8177 MB / 3.304 GB, free: 23.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/9.786, allocations: 8.062 kB / 3.304 GB, free: 23.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/9.786, allocations: 4 kB / 3.304 GB, free: 23.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.17e-05/9.787, allocations: 7.953 kB / 3.304 GB, free: 23.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/9.788, allocations: 175.8 kB / 3.304 GB, free: 23.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/9.788, allocations: 4 kB / 3.304 GB, free: 23.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008217/9.789, allocations: 43.73 kB / 3.304 GB, free: 23.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001747/9.789, allocations: 67.92 kB / 3.304 GB, free: 23.31 MB / 410.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.0002516/9.789, allocations: 125.2 kB / 3.304 GB, free: 23.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/9.789, allocations: 15.81 kB / 3.304 GB, free: 23.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008156/9.797, allocations: 6.506 MB / 3.311 GB, free: 16.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.989e-05/9.798, allocations: 23.92 kB / 3.311 GB, free: 16.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/9.798, allocations: 0 / 3.311 GB, free: 16.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/9.798, allocations: 3.984 kB / 3.311 GB, free: 16.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003111/9.801, allocations: 2.903 MB / 3.314 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/9.801, allocations: 0 / 3.314 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/9.802, allocations: 127.8 kB / 3.314 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.688e-06/9.802, allocations: 0 / 3.314 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.082e-05/9.802, allocations: 23.97 kB / 3.314 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.866e-06/9.802, allocations: 11.33 kB / 3.314 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/9.802, allocations: 0 / 3.314 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003115/9.805, allocations: 1.744 MB / 3.316 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/9.805, allocations: 140.2 kB / 3.316 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.412e-05/9.806, allocations: 15.98 kB / 3.316 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006682/9.806, allocations: 19.98 kB / 3.316 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/9.806, allocations: 43.89 kB / 3.316 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.009e-05/9.807, allocations: 23.98 kB / 3.316 GB, free: 11.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.42e-05/9.807, allocations: 95.2 kB / 3.316 GB, free: 11.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/9.807, allocations: 4.062 kB / 3.316 GB, free: 11.24 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005188/9.812, allocations: 0.9951 MB / 3.317 GB, free: 10.25 MB / 410.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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01282/9.825, allocations: 3.458 MB / 3.32 GB, free: 6.766 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002055/9.827, allocations: 0.8456 MB / 3.321 GB, free: 5.922 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/9.827, allocations: 4.125 kB / 3.321 GB, free: 5.918 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009647/9.828, allocations: 0.5633 MB / 3.322 GB, free: 5.352 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009208/9.829, allocations: 83.81 kB / 3.322 GB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006126/9.835, allocations: 1.482 MB / 3.323 GB, free: 3.742 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/9.835, allocations: 0.8494 MB / 3.324 GB, free: 2.867 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007726/9.836, allocations: 231.3 kB / 3.324 GB, free: 2.641 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/9.836, allocations: 0 / 3.324 GB, free: 2.641 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.955/13.79, allocations: 27.58 MB / 3.351 GB, free: 80.44 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat