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.723/1.723, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.213e-05/3.231e-05, allocations: 4 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2581, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.148/8.407, allocations: 2.735 GB / 2.992 GB, free: 78.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03169/8.438, allocations: 10.68 MB / 3.003 GB, free: 77.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7453/9.184, allocations: 110.9 MB / 3.111 GB, free: 53.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/9.184, allocations: 0 / 3.111 GB, free: 53.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.529e-05/9.184, allocations: 3.969 kB / 3.111 GB, free: 53.95 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.005628/9.189, allocations: 1.136 MB / 3.112 GB, free: 53.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/9.189, allocations: 11.88 kB / 3.112 GB, free: 53.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.11e-05/9.19, allocations: 52.44 kB / 3.112 GB, free: 53.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001952/9.191, allocations: 180.5 kB / 3.113 GB, free: 53.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/9.192, allocations: 259 kB / 3.113 GB, free: 53.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.315e-05/9.192, allocations: 20.12 kB / 3.113 GB, free: 53.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.52e-05/9.192, allocations: 26.84 kB / 3.113 GB, free: 53.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00441/9.196, allocations: 0.9062 MB / 3.114 GB, free: 53.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/9.196, allocations: 6.734 kB / 3.114 GB, free: 53.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.523e-05/9.197, allocations: 3.875 kB / 3.114 GB, free: 53.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/9.197, allocations: 11.45 kB / 3.114 GB, free: 53.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004498/9.201, allocations: 0.9595 MB / 3.115 GB, free: 53.07 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.002059/9.203, allocations: 1.345 MB / 3.116 GB, free: 52.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003849/9.207, allocations: 0.7262 MB / 3.117 GB, free: 52.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/9.207, allocations: 151.7 kB / 3.117 GB, free: 52.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1149/9.322, allocations: 36.72 MB / 3.153 GB, free: 30.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/9.322, allocations: 37.78 kB / 3.153 GB, free: 30.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.745e-06/9.322, allocations: 2.344 kB / 3.153 GB, free: 30.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.007188/9.33, allocations: 1.238 MB / 3.154 GB, free: 30.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/9.33, allocations: 55.38 kB / 3.154 GB, free: 30.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/9.33, allocations: 106.6 kB / 3.154 GB, free: 30.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.74e-05/9.33, allocations: 34.7 kB / 3.154 GB, free: 30.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.322e-05/9.33, allocations: 185.5 kB / 3.154 GB, free: 29.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/9.33, allocations: 115.8 kB / 3.154 GB, free: 29.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.194e-05/9.33, allocations: 3.75 kB / 3.154 GB, free: 29.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.975e-05/9.33, allocations: 329.9 kB / 3.155 GB, free: 29.51 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007915/9.331, allocations: 314.7 kB / 3.155 GB, free: 29.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008646/9.332, allocations: 387.8 kB / 3.155 GB, free: 29.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008005/9.333, allocations: 311.8 kB / 3.156 GB, free: 29.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/9.333, allocations: 0 / 3.156 GB, free: 29.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00246/9.335, allocations: 0.8278 MB / 3.156 GB, free: 29.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/9.335, allocations: 3.5 kB / 3.156 GB, free: 29.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/9.335, allocations: 3.5 kB / 3.156 GB, free: 29.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.894e-05/9.335, allocations: 3.812 kB / 3.156 GB, free: 29.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/9.337, allocations: 174.8 kB / 3.157 GB, free: 29.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/9.337, allocations: 7.812 kB / 3.157 GB, free: 29.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008097/9.338, allocations: 45.86 kB / 3.157 GB, free: 29.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/9.338, allocations: 63.67 kB / 3.157 GB, free: 29.38 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.0002621/9.338, allocations: 127.2 kB / 3.157 GB, free: 29.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/9.338, allocations: 21.28 kB / 3.157 GB, free: 29.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008547/9.347, allocations: 6.283 MB / 3.163 GB, free: 29.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.733e-05/9.347, allocations: 18.48 kB / 3.163 GB, free: 29.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/9.347, allocations: 0 / 3.163 GB, free: 29.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/9.347, allocations: 0 / 3.163 GB, free: 29.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003643/9.351, allocations: 2.826 MB / 3.166 GB, free: 28.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/9.351, allocations: 0 / 3.166 GB, free: 28.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001339/9.352, allocations: 121.1 kB / 3.166 GB, free: 28.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.888e-06/9.352, allocations: 7.781 kB / 3.166 GB, free: 28.1 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.061e-05/9.352, allocations: 23.72 kB / 3.166 GB, free: 28.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/9.352, allocations: 0 / 3.166 GB, free: 28.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/9.352, allocations: 3.812 kB / 3.166 GB, free: 28.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/9.355, allocations: 1.498 MB / 3.167 GB, free: 27.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/9.355, allocations: 119 kB / 3.168 GB, free: 27.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.008e-05/9.355, allocations: 7.969 kB / 3.168 GB, free: 27.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00069/9.356, allocations: 33.59 kB / 3.168 GB, free: 27.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/9.356, allocations: 38.98 kB / 3.168 GB, free: 27.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.785e-05/9.356, allocations: 30.25 kB / 3.168 GB, free: 27.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.106e-05/9.356, allocations: 89.66 kB / 3.168 GB, free: 27.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.7e-07/9.356, allocations: 0 / 3.168 GB, free: 27.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004971/9.361, allocations: 0.9925 MB / 3.169 GB, free: 26.93 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.01224/9.374, allocations: 3.184 MB / 3.172 GB, free: 25.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002028/9.376, allocations: 0.7923 MB / 3.173 GB, free: 25.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/9.376, allocations: 3.812 kB / 3.173 GB, free: 25.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008944/9.377, allocations: 487.9 kB / 3.173 GB, free: 24.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009099/9.378, allocations: 77.05 kB / 3.173 GB, free: 24.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005575/9.383, allocations: 1.329 MB / 3.174 GB, free: 24.26 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/9.383, allocations: 0.8151 MB / 3.175 GB, free: 23.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007621/9.384, allocations: 207.4 kB / 3.175 GB, free: 23.45 MB / 362.7 MB Notification: Performance of SimCode: time 1.303e-06/9.384, allocations: 3.938 kB / 3.175 GB, free: 23.45 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.317/12.7, allocations: 26.88 MB / 3.202 GB, free: 20.41 MB / 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