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.641/1.641, allocations: 171.2 MB / 178.8 MB, free: 8.207 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.007e-05/2.025e-05, allocations: 4 kB / 219.6 MB, free: 11.36 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07877/0.07881, allocations: 38.76 MB / 258.3 MB, free: 4.531 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.261/8.34, allocations: 2.734 GB / 2.987 GB, free: 72.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.05165/8.392, allocations: 10.58 MB / 2.997 GB, free: 72.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7839/9.176, allocations: 108.7 MB / 3.103 GB, free: 48.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.503e-06/9.176, allocations: 0 / 3.103 GB, free: 48.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.408e-05/9.176, allocations: 3.281 kB / 3.103 GB, free: 48.18 MB / 346.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.005745/9.182, allocations: 1.133 MB / 3.104 GB, free: 47.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/9.182, allocations: 9.688 kB / 3.104 GB, free: 47.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001929/9.184, allocations: 179 kB / 3.105 GB, free: 47.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/9.184, allocations: 263.3 kB / 3.105 GB, free: 47.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.716e-05/9.184, allocations: 7.219 kB / 3.105 GB, free: 47.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/9.184, allocations: 17.78 kB / 3.105 GB, free: 47.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000865/9.185, allocations: 354.3 kB / 3.105 GB, free: 47.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006165/9.186, allocations: 282.2 kB / 3.105 GB, free: 47.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/9.186, allocations: 2.906 kB / 3.105 GB, free: 47.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/9.186, allocations: 1.188 kB / 3.105 GB, free: 47.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/9.186, allocations: 5.781 kB / 3.105 GB, free: 47.29 MB / 346.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.001968/9.188, allocations: 1.306 MB / 3.107 GB, free: 46.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006065/9.189, allocations: 244.9 kB / 3.107 GB, free: 46.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/9.189, allocations: 133.9 kB / 3.107 GB, free: 46.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1105/9.299, allocations: 36.72 MB / 3.143 GB, free: 24.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/9.299, allocations: 37.44 kB / 3.143 GB, free: 24.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.625e-06/9.299, allocations: 0 / 3.143 GB, free: 24.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.004414/9.304, allocations: 0.7893 MB / 3.144 GB, free: 24.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/9.304, allocations: 55.09 kB / 3.144 GB, free: 24.4 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/9.304, allocations: 108.7 kB / 3.144 GB, free: 24.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.427e-05/9.304, allocations: 25.7 kB / 3.144 GB, free: 24.28 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.388e-05/9.304, allocations: 195.6 kB / 3.144 GB, free: 24.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/9.304, allocations: 101.5 kB / 3.144 GB, free: 24.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.763e-05/9.305, allocations: 0 / 3.144 GB, free: 24.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.266e-05/9.305, allocations: 332.1 kB / 3.145 GB, free: 23.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006641/9.305, allocations: 305.7 kB / 3.145 GB, free: 23.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007041/9.306, allocations: 377.3 kB / 3.145 GB, free: 23.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002968/9.309, allocations: 424.3 kB / 3.146 GB, free: 23.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/9.309, allocations: 0 / 3.146 GB, free: 23.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.004478/9.313, allocations: 0.9039 MB / 3.146 GB, free: 23.6 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/9.313, allocations: 3.438 kB / 3.146 GB, free: 23.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/9.314, allocations: 2.969 kB / 3.146 GB, free: 23.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.79e-05/9.314, allocations: 3.062 kB / 3.146 GB, free: 23.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/9.315, allocations: 178.4 kB / 3.147 GB, free: 23.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/9.315, allocations: 7.781 kB / 3.147 GB, free: 23.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007818/9.316, allocations: 37.5 kB / 3.147 GB, free: 23.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/9.316, allocations: 64.52 kB / 3.147 GB, free: 23.59 MB / 346.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.0002344/9.316, allocations: 112.5 kB / 3.147 GB, free: 23.48 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004369/9.32, allocations: 0.879 MB / 3.148 GB, free: 23.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/9.321, allocations: 11.59 kB / 3.148 GB, free: 23.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008189/9.329, allocations: 6.304 MB / 3.154 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.204e-05/9.329, allocations: 17.88 kB / 3.154 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/9.329, allocations: 3.062 kB / 3.154 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/9.329, allocations: 10.08 kB / 3.154 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002942/9.332, allocations: 2.748 MB / 3.157 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/9.332, allocations: 3.5 kB / 3.157 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/9.333, allocations: 123.9 kB / 3.157 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.839e-06/9.333, allocations: 3.656 kB / 3.157 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.064e-05/9.333, allocations: 18.8 kB / 3.157 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/9.333, allocations: 0 / 3.157 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/9.333, allocations: 3.875 kB / 3.157 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003284/9.337, allocations: 1.508 MB / 3.158 GB, free: 22.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.172e-05/9.337, allocations: 126.9 kB / 3.158 GB, free: 22.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/9.337, allocations: 4.062 kB / 3.158 GB, free: 22.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006183/9.338, allocations: 18.5 kB / 3.158 GB, free: 22.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/9.338, allocations: 38.86 kB / 3.158 GB, free: 22.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.242e-05/9.338, allocations: 24.73 kB / 3.158 GB, free: 22.08 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.318e-05/9.338, allocations: 86.75 kB / 3.158 GB, free: 22.01 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/9.338, allocations: 0 / 3.158 GB, free: 22.01 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004879/9.343, allocations: 0.9835 MB / 3.159 GB, free: 21.83 MB / 346.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.01164/9.354, allocations: 3.217 MB / 3.163 GB, free: 20.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001748/9.356, allocations: 0.7786 MB / 3.163 GB, free: 20.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/9.356, allocations: 3.844 kB / 3.163 GB, free: 20.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007877/9.357, allocations: 478.3 kB / 3.164 GB, free: 20.37 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008882/9.358, allocations: 67.8 kB / 3.164 GB, free: 20.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00541/9.363, allocations: 1.301 MB / 3.165 GB, free: 19.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/9.364, allocations: 0.8148 MB / 3.166 GB, free: 18.99 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007602/9.364, allocations: 209.5 kB / 3.166 GB, free: 18.88 MB / 346.7 MB Notification: Performance of SimCode: time 9.52e-07/9.364, allocations: 0 / 3.166 GB, free: 18.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.542/12.91, allocations: 27.58 MB / 3.193 GB, free: 13.83 MB / 346.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