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.062/2.062, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.178e-05/3.188e-05, allocations: 7.984 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09672/0.09679, allocations: 44.5 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.449/8.546, allocations: 2.844 GB / 3.137 GB, free: 24.96 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03408/8.58, allocations: 10.87 MB / 3.148 GB, free: 16.58 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7847/9.365, allocations: 112.8 MB / 3.258 GB, free: 73.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.914e-06/9.365, allocations: 0 / 3.258 GB, free: 73.69 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.578e-05/9.365, allocations: 4 kB / 3.258 GB, free: 73.69 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.005699/9.371, allocations: 1.138 MB / 3.259 GB, free: 72.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/9.371, allocations: 8.031 kB / 3.259 GB, free: 72.57 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.904e-05/9.371, allocations: 58.2 kB / 3.259 GB, free: 72.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001919/9.373, allocations: 185.4 kB / 3.26 GB, free: 72.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/9.373, allocations: 253.6 kB / 3.26 GB, free: 72.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.149e-05/9.373, allocations: 19.34 kB / 3.26 GB, free: 72.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.951e-05/9.374, allocations: 28 kB / 3.26 GB, free: 72.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004509/9.378, allocations: 0.9063 MB / 3.261 GB, free: 71.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/9.378, allocations: 0 / 3.261 GB, free: 71.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.644e-05/9.378, allocations: 4 kB / 3.261 GB, free: 71.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/9.378, allocations: 11.95 kB / 3.261 GB, free: 71.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004621/9.383, allocations: 0.952 MB / 3.262 GB, free: 70.54 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.002059/9.385, allocations: 1.348 MB / 3.263 GB, free: 69.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003745/9.389, allocations: 0.7301 MB / 3.264 GB, free: 68.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002985/9.389, allocations: 145.3 kB / 3.264 GB, free: 68.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1198/9.509, allocations: 37.33 MB / 3.3 GB, free: 27.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/9.509, allocations: 42.8 kB / 3.3 GB, free: 27.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 4.779e-06/9.509, allocations: 0 / 3.3 GB, free: 27.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.00743/9.517, allocations: 1.245 MB / 3.302 GB, free: 26.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/9.517, allocations: 59.39 kB / 3.302 GB, free: 26.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/9.517, allocations: 101.2 kB / 3.302 GB, free: 26.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/9.517, allocations: 33.7 kB / 3.302 GB, free: 26.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.661e-05/9.517, allocations: 186.9 kB / 3.302 GB, free: 26.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/9.517, allocations: 114.3 kB / 3.302 GB, free: 25.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.555e-05/9.517, allocations: 8 kB / 3.302 GB, free: 25.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.292e-05/9.517, allocations: 326.8 kB / 3.302 GB, free: 25.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007681/9.518, allocations: 311.9 kB / 3.303 GB, free: 25.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000826/9.519, allocations: 379.6 kB / 3.303 GB, free: 24.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007895/9.52, allocations: 319.7 kB / 3.303 GB, free: 24.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/9.52, allocations: 0 / 3.303 GB, free: 24.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002448/9.522, allocations: 0.8059 MB / 3.304 GB, free: 23.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/9.522, allocations: 4.25 kB / 3.304 GB, free: 23.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/9.522, allocations: 8 kB / 3.304 GB, free: 23.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/9.522, allocations: 7.953 kB / 3.304 GB, free: 23.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/9.524, allocations: 179.7 kB / 3.304 GB, free: 23.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/9.524, allocations: 4 kB / 3.304 GB, free: 23.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008212/9.525, allocations: 43.73 kB / 3.304 GB, free: 23.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001707/9.525, allocations: 67.92 kB / 3.304 GB, free: 23.49 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.0002756/9.525, allocations: 128 kB / 3.304 GB, free: 23.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/9.525, allocations: 15.81 kB / 3.304 GB, free: 23.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0081/9.533, allocations: 6.511 MB / 3.311 GB, free: 16.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.191e-05/9.533, allocations: 27.92 kB / 3.311 GB, free: 16.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.649e-06/9.533, allocations: 0 / 3.311 GB, free: 16.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/9.534, allocations: 3.984 kB / 3.311 GB, free: 16.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/9.537, allocations: 2.895 MB / 3.314 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/9.537, allocations: 0 / 3.314 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/9.538, allocations: 135.8 kB / 3.314 GB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/9.538, allocations: 0 / 3.314 GB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.872e-05/9.538, allocations: 19.98 kB / 3.314 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.654e-06/9.538, allocations: 7.953 kB / 3.314 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/9.538, allocations: 0 / 3.314 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003128/9.541, allocations: 1.739 MB / 3.316 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/9.542, allocations: 144.2 kB / 3.316 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.498e-05/9.542, allocations: 12.06 kB / 3.316 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000694/9.542, allocations: 19.98 kB / 3.316 GB, free: 11.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/9.543, allocations: 51.2 kB / 3.316 GB, free: 11.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.748e-05/9.543, allocations: 19.98 kB / 3.316 GB, free: 11.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.079e-05/9.543, allocations: 95.2 kB / 3.316 GB, free: 11.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/9.543, allocations: 4 kB / 3.316 GB, free: 11.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005232/9.548, allocations: 0.9951 MB / 3.317 GB, free: 10.42 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.01308/9.561, allocations: 3.454 MB / 3.32 GB, free: 6.949 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002057/9.563, allocations: 0.8407 MB / 3.321 GB, free: 6.109 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/9.563, allocations: 0 / 3.321 GB, free: 6.109 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/9.564, allocations: 0.5607 MB / 3.322 GB, free: 5.547 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/9.566, allocations: 91.75 kB / 3.322 GB, free: 5.457 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006579/9.572, allocations: 1.478 MB / 3.323 GB, free: 3.938 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/9.572, allocations: 0.8571 MB / 3.324 GB, free: 3.055 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008244/9.573, allocations: 231.3 kB / 3.324 GB, free: 2.828 MB / 410.7 MB Notification: Performance of SimCode: time 1.502e-06/9.573, allocations: 0 / 3.324 GB, free: 2.828 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.545/13.12, allocations: 27.58 MB / 3.351 GB, free: 80.62 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