Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 194.9 MB / 208 MB, free: 3.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.213e-05, allocations: 4 kB / 255.5 MB, free: 2.605 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 44.5 MB / 300 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.078/9.184, allocations: 2.844 GB / 3.137 GB, free: 18.24 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03294/9.217, allocations: 10.87 MB / 3.148 GB, free: 9.863 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7999/10.02, allocations: 112.9 MB / 3.258 GB, free: 68.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.833e-06/10.02, allocations: 0 / 3.258 GB, free: 68.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.677e-05/10.02, allocations: 4 kB / 3.258 GB, free: 68.94 MB / 410.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.006044/10.02, allocations: 1.137 MB / 3.259 GB, free: 67.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.84e-05/10.02, allocations: 8.031 kB / 3.259 GB, free: 67.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.998e-05/10.02, allocations: 62.55 kB / 3.259 GB, free: 67.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001948/10.03, allocations: 187.5 kB / 3.26 GB, free: 67.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/10.03, allocations: 254.8 kB / 3.26 GB, free: 67.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.862e-05/10.03, allocations: 16.44 kB / 3.26 GB, free: 67.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-05/10.03, allocations: 20 kB / 3.26 GB, free: 67.17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004547/10.03, allocations: 0.9082 MB / 3.261 GB, free: 66.24 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/10.03, allocations: 0 / 3.261 GB, free: 66.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.841e-05/10.03, allocations: 8 kB / 3.261 GB, free: 66.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/10.03, allocations: 7.953 kB / 3.261 GB, free: 66.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004687/10.04, allocations: 0.9493 MB / 3.262 GB, free: 65.28 MB / 410.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.002104/10.04, allocations: 1.362 MB / 3.263 GB, free: 63.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003813/10.04, allocations: 0.7173 MB / 3.264 GB, free: 63.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003148/10.04, allocations: 141.4 kB / 3.264 GB, free: 62.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1193/10.16, allocations: 37.35 MB / 3.3 GB, free: 21.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/10.16, allocations: 38.8 kB / 3.3 GB, free: 21.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 3.958e-06/10.16, allocations: 0 / 3.3 GB, free: 21.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.007381/10.17, allocations: 1.237 MB / 3.302 GB, free: 19.83 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/10.17, allocations: 55.41 kB / 3.302 GB, free: 19.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/10.17, allocations: 113.1 kB / 3.302 GB, free: 19.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/10.17, allocations: 33.7 kB / 3.302 GB, free: 19.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.722e-05/10.17, allocations: 116.5 kB / 3.302 GB, free: 19.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/10.17, allocations: 118.3 kB / 3.302 GB, free: 19.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.521e-05/10.17, allocations: 4 kB / 3.302 GB, free: 19.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.065e-05/10.17, allocations: 326.8 kB / 3.302 GB, free: 19.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007724/10.17, allocations: 311.9 kB / 3.303 GB, free: 18.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008225/10.17, allocations: 387.5 kB / 3.303 GB, free: 18.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007739/10.17, allocations: 307.8 kB / 3.303 GB, free: 18.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/10.17, allocations: 8 kB / 3.303 GB, free: 18.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002436/10.17, allocations: 0.8097 MB / 3.304 GB, free: 17.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/10.17, allocations: 4 kB / 3.304 GB, free: 17.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/10.17, allocations: 4 kB / 3.304 GB, free: 17.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.241e-05/10.17, allocations: 7.953 kB / 3.304 GB, free: 17.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001379/10.18, allocations: 179.9 kB / 3.304 GB, free: 17.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/10.18, allocations: 8 kB / 3.304 GB, free: 17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008027/10.18, allocations: 43.77 kB / 3.304 GB, free: 16.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/10.18, allocations: 59.92 kB / 3.304 GB, free: 16.9 MB / 410.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.000254/10.18, allocations: 124.9 kB / 3.304 GB, free: 16.77 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/10.18, allocations: 15.81 kB / 3.304 GB, free: 16.76 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00799/10.19, allocations: 6.514 MB / 3.311 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.909e-05/10.19, allocations: 27.92 kB / 3.311 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/10.19, allocations: 0 / 3.311 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/10.19, allocations: 3.984 kB / 3.311 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003098/10.19, allocations: 2.887 MB / 3.314 GB, free: 7.109 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/10.19, allocations: 0 / 3.314 GB, free: 7.109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/10.19, allocations: 127.8 kB / 3.314 GB, free: 6.984 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.13e-05/10.19, allocations: 4 kB / 3.314 GB, free: 6.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.23e-05/10.19, allocations: 19.98 kB / 3.314 GB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.035e-06/10.19, allocations: 11.95 kB / 3.314 GB, free: 6.949 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/10.19, allocations: 0 / 3.314 GB, free: 6.949 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/10.19, allocations: 1.743 MB / 3.316 GB, free: 5.188 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/10.19, allocations: 144.2 kB / 3.316 GB, free: 5.027 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.442e-05/10.19, allocations: 8 kB / 3.316 GB, free: 5.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006738/10.19, allocations: 24.05 kB / 3.316 GB, free: 4.996 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/10.19, allocations: 43.89 kB / 3.316 GB, free: 4.953 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.638e-05/10.19, allocations: 23.98 kB / 3.316 GB, free: 4.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.907e-05/10.19, allocations: 91.27 kB / 3.316 GB, free: 4.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/10.19, allocations: 3.938 kB / 3.316 GB, free: 4.836 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005269/10.2, allocations: 0.9951 MB / 3.317 GB, free: 3.84 MB / 410.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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.0128/10.21, allocations: 3.452 MB / 3.32 GB, free: 380 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.2883/10.5, allocations: 0.8374 MB / 3.321 GB, free: 83.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/10.5, allocations: 1.375 kB / 3.321 GB, free: 83.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001309/10.5, allocations: 0.5626 MB / 3.322 GB, free: 83.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009947/10.5, allocations: 83.59 kB / 3.322 GB, free: 83.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007145/10.51, allocations: 1.456 MB / 3.323 GB, free: 83.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/10.51, allocations: 0.8541 MB / 3.324 GB, free: 82.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006054/10.52, allocations: 2.738 MB / 3.327 GB, free: 82.69 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008396/10.52, allocations: 213.7 kB / 3.327 GB, free: 82.68 MB / 410.7 MB Notification: Performance of SimCode: time 1.203e-06/10.52, allocations: 0 / 3.327 GB, free: 82.68 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09639/10.61, allocations: 36.62 MB / 3.363 GB, free: 81.89 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002737/10.61, allocations: 158.5 kB / 3.363 GB, free: 81.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.24/14.85, allocations: 3.969 kB / 3.363 GB, free: 81.66 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat