Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_1_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.838/1.838, allocations: 171.2 MB / 178.4 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.165e-05/2.187e-05, allocations: 0 / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2646, allocations: 38.77 MB / 258.3 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.807/8.071, allocations: 2.734 GB / 2.986 GB, free: 48.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03287/8.104, allocations: 10.58 MB / 2.997 GB, free: 40.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8436/8.948, allocations: 108.7 MB / 3.103 GB, free: 75.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/8.948, allocations: 0 / 3.103 GB, free: 75.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.429e-05/8.948, allocations: 3.75 kB / 3.103 GB, free: 75.83 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.005631/8.954, allocations: 1.134 MB / 3.104 GB, free: 75.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/8.954, allocations: 10.59 kB / 3.104 GB, free: 75.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001977/8.956, allocations: 182.3 kB / 3.104 GB, free: 75.03 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/8.956, allocations: 268.3 kB / 3.104 GB, free: 74.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.027e-05/8.956, allocations: 10.25 kB / 3.104 GB, free: 74.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.681e-05/8.956, allocations: 10.31 kB / 3.104 GB, free: 74.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008271/8.957, allocations: 359 kB / 3.105 GB, free: 74.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005833/8.958, allocations: 276.4 kB / 3.105 GB, free: 74.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/8.958, allocations: 4 kB / 3.105 GB, free: 74.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.219e-05/8.958, allocations: 0 / 3.105 GB, free: 74.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/8.958, allocations: 8 kB / 3.105 GB, free: 74.21 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.002027/8.96, allocations: 1.297 MB / 3.106 GB, free: 72.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005573/8.961, allocations: 254.3 kB / 3.107 GB, free: 72.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/8.961, allocations: 137.4 kB / 3.107 GB, free: 72.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1146/9.075, allocations: 36.72 MB / 3.143 GB, free: 36.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/9.075, allocations: 38.84 kB / 3.143 GB, free: 36.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.126e-06/9.076, allocations: 0 / 3.143 GB, free: 36.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.004451/9.08, allocations: 0.7811 MB / 3.143 GB, free: 35.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/9.08, allocations: 55.41 kB / 3.143 GB, free: 35.78 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/9.08, allocations: 116.8 kB / 3.144 GB, free: 35.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.239e-05/9.08, allocations: 25.7 kB / 3.144 GB, free: 35.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.368e-05/9.08, allocations: 115.9 kB / 3.144 GB, free: 35.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/9.081, allocations: 109.8 kB / 3.144 GB, free: 35.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.044e-05/9.081, allocations: 3.938 kB / 3.144 GB, free: 35.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.348e-05/9.081, allocations: 326.7 kB / 3.144 GB, free: 35.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006556/9.081, allocations: 303.2 kB / 3.144 GB, free: 34.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000722/9.082, allocations: 377.5 kB / 3.145 GB, free: 34.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003439/9.086, allocations: 428 kB / 3.145 GB, free: 34.06 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/9.086, allocations: 0 / 3.145 GB, free: 34.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00469/9.09, allocations: 0.9011 MB / 3.146 GB, free: 33.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/9.09, allocations: 15.53 kB / 3.146 GB, free: 33.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/9.09, allocations: 0 / 3.146 GB, free: 33.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.706e-05/9.09, allocations: 7.656 kB / 3.146 GB, free: 33.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/9.092, allocations: 181.4 kB / 3.146 GB, free: 33.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/9.092, allocations: 4 kB / 3.146 GB, free: 33.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000789/9.093, allocations: 39.61 kB / 3.146 GB, free: 33.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001639/9.093, allocations: 66.8 kB / 3.146 GB, free: 33.02 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.0002507/9.093, allocations: 112.8 kB / 3.146 GB, free: 32.9 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004507/9.098, allocations: 0.8807 MB / 3.147 GB, free: 32.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/9.098, allocations: 11.91 kB / 3.147 GB, free: 32.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008427/9.106, allocations: 6.294 MB / 3.153 GB, free: 26.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.812e-05/9.106, allocations: 23.62 kB / 3.154 GB, free: 26.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/9.106, allocations: 0 / 3.154 GB, free: 26.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.491e-05/9.106, allocations: 7.844 kB / 3.154 GB, free: 26.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003087/9.109, allocations: 2.748 MB / 3.156 GB, free: 23.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/9.11, allocations: 0 / 3.156 GB, free: 23.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/9.111, allocations: 121.7 kB / 3.156 GB, free: 23.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-05/9.111, allocations: 7.938 kB / 3.156 GB, free: 23.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.737e-05/9.111, allocations: 19.55 kB / 3.156 GB, free: 23.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/9.111, allocations: 0 / 3.156 GB, free: 23.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/9.111, allocations: 0 / 3.156 GB, free: 23.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003379/9.114, allocations: 1.511 MB / 3.158 GB, free: 22.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/9.115, allocations: 124.4 kB / 3.158 GB, free: 22.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/9.115, allocations: 0 / 3.158 GB, free: 22.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006469/9.115, allocations: 19.78 kB / 3.158 GB, free: 22.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/9.116, allocations: 35.14 kB / 3.158 GB, free: 22.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.838e-05/9.116, allocations: 35.44 kB / 3.158 GB, free: 22.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.868e-05/9.116, allocations: 90.11 kB / 3.158 GB, free: 22.01 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/9.116, allocations: 0 / 3.158 GB, free: 22.01 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005025/9.121, allocations: 0.9768 MB / 3.159 GB, free: 21.06 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.01264/9.133, allocations: 3.215 MB / 3.162 GB, free: 18.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001734/9.135, allocations: 0.7717 MB / 3.163 GB, free: 17.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/9.135, allocations: 4.125 kB / 3.163 GB, free: 17.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007712/9.136, allocations: 483.9 kB / 3.163 GB, free: 16.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008836/9.137, allocations: 66.98 kB / 3.163 GB, free: 16.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005295/9.142, allocations: 1.27 MB / 3.165 GB, free: 15.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/9.143, allocations: 0.8167 MB / 3.166 GB, free: 14.87 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004168/9.147, allocations: 2.743 MB / 3.168 GB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000738/9.148, allocations: 193.1 kB / 3.168 GB, free: 13.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.212e-06/9.148, allocations: 0 / 3.168 GB, free: 13.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.426/9.574, allocations: 32.98 MB / 3.201 GB, free: 62.94 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003301/9.574, allocations: 150.1 kB / 3.201 GB, free: 62.75 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.825/13.4, allocations: 0 / 3.201 GB, free: 62.75 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat