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.755/1.755, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.089e-05/3.093e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2658, allocations: 38.77 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.195/8.461, allocations: 2.735 GB / 2.992 GB, free: 78.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03138/8.493, allocations: 10.68 MB / 3.003 GB, free: 77.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7958/9.288, allocations: 110.9 MB / 3.111 GB, free: 54.26 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/9.288, allocations: 0 / 3.111 GB, free: 54.26 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.687e-05/9.289, allocations: 4.938 kB / 3.111 GB, free: 54.26 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.005909/9.294, allocations: 1.133 MB / 3.112 GB, free: 53.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/9.295, allocations: 7.938 kB / 3.112 GB, free: 53.7 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.129e-05/9.295, allocations: 59.89 kB / 3.112 GB, free: 53.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00197/9.297, allocations: 188 kB / 3.113 GB, free: 53.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003647/9.297, allocations: 259.2 kB / 3.113 GB, free: 53.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/9.297, allocations: 15.72 kB / 3.113 GB, free: 53.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.793e-05/9.297, allocations: 19.47 kB / 3.113 GB, free: 53.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004597/9.302, allocations: 0.9068 MB / 3.114 GB, free: 53.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/9.302, allocations: 0 / 3.114 GB, free: 53.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.991e-05/9.302, allocations: 11.69 kB / 3.114 GB, free: 53.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/9.302, allocations: 7.5 kB / 3.114 GB, free: 53.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00464/9.307, allocations: 0.959 MB / 3.115 GB, free: 53.38 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.002051/9.309, allocations: 1.351 MB / 3.116 GB, free: 52.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003854/9.313, allocations: 0.7311 MB / 3.117 GB, free: 52.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003194/9.313, allocations: 141.4 kB / 3.117 GB, free: 52.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1388/9.452, allocations: 36.71 MB / 3.153 GB, free: 30.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/9.452, allocations: 37.88 kB / 3.153 GB, free: 30.58 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.705e-06/9.452, allocations: 0 / 3.153 GB, free: 30.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.007623/9.459, allocations: 1.242 MB / 3.154 GB, free: 30.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/9.46, allocations: 55.03 kB / 3.154 GB, free: 30.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/9.46, allocations: 118.3 kB / 3.154 GB, free: 30.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/9.46, allocations: 29.27 kB / 3.154 GB, free: 30.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.877e-05/9.46, allocations: 183.8 kB / 3.154 GB, free: 30.19 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/9.46, allocations: 112.6 kB / 3.154 GB, free: 30.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.564e-05/9.46, allocations: 10.5 kB / 3.154 GB, free: 30.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.322e-05/9.46, allocations: 325.7 kB / 3.155 GB, free: 29.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007831/9.461, allocations: 311 kB / 3.155 GB, free: 29.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008224/9.462, allocations: 388.5 kB / 3.155 GB, free: 29.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000788/9.463, allocations: 316.4 kB / 3.156 GB, free: 29.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/9.463, allocations: 0 / 3.156 GB, free: 29.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002518/9.465, allocations: 0.8109 MB / 3.156 GB, free: 29.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/9.465, allocations: 3.625 kB / 3.157 GB, free: 29.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/9.465, allocations: 7.75 kB / 3.157 GB, free: 29.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/9.465, allocations: 3.656 kB / 3.157 GB, free: 29.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/9.467, allocations: 183 kB / 3.157 GB, free: 29.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/9.467, allocations: 3.812 kB / 3.157 GB, free: 29.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007911/9.468, allocations: 44.22 kB / 3.157 GB, free: 29.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/9.468, allocations: 64.95 kB / 3.157 GB, free: 29.68 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.0002508/9.468, allocations: 130.8 kB / 3.157 GB, free: 29.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/9.468, allocations: 13.97 kB / 3.157 GB, free: 29.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007798/9.476, allocations: 6.284 MB / 3.163 GB, free: 29.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.478e-05/9.476, allocations: 24.22 kB / 3.163 GB, free: 29.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/9.476, allocations: 0 / 3.163 GB, free: 29.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/9.476, allocations: 2.859 kB / 3.163 GB, free: 29.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003124/9.479, allocations: 2.816 MB / 3.166 GB, free: 28.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/9.479, allocations: 3.891 kB / 3.166 GB, free: 28.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001288/9.481, allocations: 127.3 kB / 3.166 GB, free: 28.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-06/9.481, allocations: 0 / 3.166 GB, free: 28.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.652e-05/9.481, allocations: 25.75 kB / 3.166 GB, free: 28.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/9.481, allocations: 7.719 kB / 3.166 GB, free: 28.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/9.481, allocations: 0 / 3.166 GB, free: 28.4 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002841/9.484, allocations: 1.493 MB / 3.167 GB, free: 27.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.852e-05/9.484, allocations: 127.6 kB / 3.168 GB, free: 27.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.569e-05/9.484, allocations: 10.72 kB / 3.168 GB, free: 27.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006587/9.484, allocations: 31.58 kB / 3.168 GB, free: 27.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/9.485, allocations: 33.92 kB / 3.168 GB, free: 27.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.292e-05/9.485, allocations: 27.33 kB / 3.168 GB, free: 27.49 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.989e-05/9.485, allocations: 89.22 kB / 3.168 GB, free: 27.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/9.485, allocations: 0 / 3.168 GB, free: 27.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005055/9.49, allocations: 0.9987 MB / 3.169 GB, free: 27.23 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.01112/9.501, allocations: 3.183 MB / 3.172 GB, free: 25.76 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001978/9.503, allocations: 0.7824 MB / 3.173 GB, free: 25.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/9.503, allocations: 0 / 3.173 GB, free: 25.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009327/9.504, allocations: 487.8 kB / 3.173 GB, free: 25.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009136/9.505, allocations: 78.31 kB / 3.173 GB, free: 25.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005933/9.511, allocations: 1.327 MB / 3.174 GB, free: 24.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/9.511, allocations: 0.8207 MB / 3.175 GB, free: 23.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007564/9.512, allocations: 203.1 kB / 3.175 GB, free: 23.75 MB / 362.7 MB Notification: Performance of SimCode: time 1.262e-06/9.512, allocations: 0 / 3.175 GB, free: 23.75 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.303/12.81, allocations: 26.88 MB / 3.202 GB, free: 20.7 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