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.746/1.746, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.221e-05/4.234e-05, allocations: 4 kB / 225.1 MB, free: 2.211 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2581, allocations: 38.77 MB / 263.8 MB, free: 9.801 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.334/8.592, allocations: 2.735 GB / 2.992 GB, free: 79.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03336/8.625, allocations: 10.68 MB / 3.003 GB, free: 78.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7745/9.4, allocations: 110.9 MB / 3.111 GB, free: 55.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.076e-06/9.4, allocations: 2.688 kB / 3.111 GB, free: 55.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.582e-05/9.4, allocations: 5.188 kB / 3.111 GB, free: 55.5 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.005754/9.406, allocations: 1.13 MB / 3.112 GB, free: 54.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/9.406, allocations: 10.69 kB / 3.112 GB, free: 54.93 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.848e-05/9.406, allocations: 56.95 kB / 3.112 GB, free: 54.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00193/9.408, allocations: 180.2 kB / 3.113 GB, free: 54.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/9.408, allocations: 266.3 kB / 3.113 GB, free: 54.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.356e-05/9.408, allocations: 16 kB / 3.113 GB, free: 54.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.518e-05/9.408, allocations: 25.78 kB / 3.113 GB, free: 54.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004624/9.413, allocations: 0.9096 MB / 3.114 GB, free: 54.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/9.413, allocations: 2.438 kB / 3.114 GB, free: 54.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.864e-05/9.413, allocations: 10.31 kB / 3.114 GB, free: 54.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/9.413, allocations: 3.844 kB / 3.114 GB, free: 54.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004726/9.418, allocations: 0.9628 MB / 3.115 GB, free: 54.61 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.002269/9.42, allocations: 1.341 MB / 3.116 GB, free: 53.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003902/9.424, allocations: 0.7308 MB / 3.117 GB, free: 53.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003227/9.425, allocations: 143.9 kB / 3.117 GB, free: 53.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1364/9.561, allocations: 36.72 MB / 3.153 GB, free: 31.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/9.561, allocations: 45.36 kB / 3.153 GB, free: 31.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.066e-06/9.561, allocations: 3.969 kB / 3.153 GB, free: 31.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.008871/9.57, allocations: 1.232 MB / 3.154 GB, free: 31.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/9.57, allocations: 55.28 kB / 3.154 GB, free: 31.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/9.57, allocations: 107 kB / 3.154 GB, free: 31.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001502/9.57, allocations: 36.11 kB / 3.154 GB, free: 31.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.97e-05/9.571, allocations: 121.4 kB / 3.154 GB, free: 31.49 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002329/9.571, allocations: 110.2 kB / 3.154 GB, free: 31.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/9.571, allocations: 3.812 kB / 3.154 GB, free: 31.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.646e-05/9.571, allocations: 333.9 kB / 3.155 GB, free: 31.12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/9.572, allocations: 310.1 kB / 3.155 GB, free: 31.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/9.573, allocations: 388.3 kB / 3.155 GB, free: 31.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/9.575, allocations: 307.6 kB / 3.156 GB, free: 31.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/9.575, allocations: 3.969 kB / 3.156 GB, free: 31.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003707/9.578, allocations: 0.8243 MB / 3.156 GB, free: 30.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/9.578, allocations: 6 kB / 3.156 GB, free: 30.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/9.578, allocations: 4.375 kB / 3.156 GB, free: 30.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.114e-05/9.579, allocations: 4.531 kB / 3.156 GB, free: 30.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001929/9.58, allocations: 178.7 kB / 3.157 GB, free: 30.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.808e-05/9.581, allocations: 3.969 kB / 3.157 GB, free: 30.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/9.582, allocations: 46.86 kB / 3.157 GB, free: 30.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002675/9.582, allocations: 59.58 kB / 3.157 GB, free: 30.98 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.0003939/9.582, allocations: 131.2 kB / 3.157 GB, free: 30.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002551/9.583, allocations: 19.34 kB / 3.157 GB, free: 30.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02396/9.607, allocations: 6.282 MB / 3.163 GB, free: 30.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.482e-05/9.607, allocations: 21.95 kB / 3.163 GB, free: 30.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/9.607, allocations: 0 / 3.163 GB, free: 30.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/9.607, allocations: 3.891 kB / 3.163 GB, free: 30.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/9.618, allocations: 2.822 MB / 3.166 GB, free: 29.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/9.618, allocations: 0 / 3.166 GB, free: 29.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00179/9.62, allocations: 131.5 kB / 3.166 GB, free: 29.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.515e-05/9.62, allocations: 384 / 3.166 GB, free: 29.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/9.62, allocations: 23.23 kB / 3.166 GB, free: 29.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.745e-06/9.62, allocations: 3.938 kB / 3.166 GB, free: 29.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/9.62, allocations: 0 / 3.166 GB, free: 29.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/9.63, allocations: 1.496 MB / 3.167 GB, free: 28.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/9.63, allocations: 123.1 kB / 3.168 GB, free: 28.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/9.63, allocations: 6.094 kB / 3.168 GB, free: 28.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009598/9.631, allocations: 26.94 kB / 3.168 GB, free: 28.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/9.632, allocations: 50 kB / 3.168 GB, free: 28.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/9.632, allocations: 22.38 kB / 3.168 GB, free: 28.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.7e-05/9.632, allocations: 90.3 kB / 3.168 GB, free: 28.33 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.51e-07/9.632, allocations: 0 / 3.168 GB, free: 28.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01363/9.645, allocations: 0.9897 MB / 3.169 GB, free: 28.14 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.01468/9.66, allocations: 3.184 MB / 3.172 GB, free: 26.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002078/9.662, allocations: 0.79 MB / 3.173 GB, free: 26.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/9.662, allocations: 0 / 3.173 GB, free: 26.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000954/9.663, allocations: 494.3 kB / 3.173 GB, free: 26.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009132/9.664, allocations: 71.98 kB / 3.173 GB, free: 26.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005752/9.67, allocations: 1.307 MB / 3.174 GB, free: 25.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/9.67, allocations: 0.819 MB / 3.175 GB, free: 24.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004314/9.675, allocations: 2.733 MB / 3.178 GB, free: 24.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007376/9.676, allocations: 188.7 kB / 3.178 GB, free: 24.56 MB / 362.7 MB Notification: Performance of SimCode: time 9.11e-07/9.676, allocations: 0 / 3.178 GB, free: 24.56 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08748/9.763, allocations: 35.69 MB / 3.213 GB, free: 18.3 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002785/9.763, allocations: 170.9 kB / 3.213 GB, free: 18.06 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.008/13.77, allocations: 3.938 kB / 3.213 GB, free: 18.06 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