Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.569/2.569, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.028e-05/3.032e-05, allocations: 0 / 292.2 MB, free: 8.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1156, allocations: 50.4 MB / 342.6 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.489/9.605, allocations: 3.026 GB / 3.361 GB, free: 8.629 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.333/9.938, allocations: 11.15 MB / 3.372 GB, free: 131.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5317/10.47, allocations: 114 MB / 3.483 GB, free: 78.68 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.633e-06/10.47, allocations: 0 / 3.483 GB, free: 78.68 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.481e-05/10.47, allocations: 4 kB / 3.483 GB, free: 78.67 MB / 458.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.005876/10.48, allocations: 1.133 MB / 3.484 GB, free: 77.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/10.48, allocations: 12.03 kB / 3.484 GB, free: 77.48 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.496e-05/10.48, allocations: 54.55 kB / 3.484 GB, free: 77.42 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001922/10.48, allocations: 179.6 kB / 3.484 GB, free: 77.25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/10.48, allocations: 262.7 kB / 3.485 GB, free: 76.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.197e-05/10.48, allocations: 16.44 kB / 3.485 GB, free: 76.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.026e-05/10.48, allocations: 27.95 kB / 3.485 GB, free: 76.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004528/10.48, allocations: 0.916 MB / 3.486 GB, free: 75.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/10.48, allocations: 0 / 3.486 GB, free: 75.97 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/10.48, allocations: 11.94 kB / 3.486 GB, free: 75.96 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/10.48, allocations: 4 kB / 3.486 GB, free: 75.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00469/10.49, allocations: 0.9493 MB / 3.486 GB, free: 75.01 MB / 458.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.0021/10.49, allocations: 1.347 MB / 3.488 GB, free: 73.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003784/10.49, allocations: 0.7174 MB / 3.488 GB, free: 72.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/10.49, allocations: 141.4 kB / 3.489 GB, free: 72.65 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.134/10.63, allocations: 37.37 MB / 3.525 GB, free: 30.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/10.63, allocations: 42.78 kB / 3.525 GB, free: 30.79 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 4.338e-06/10.63, allocations: 0 / 3.525 GB, free: 30.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.01069/10.64, allocations: 1.234 MB / 3.526 GB, free: 29.55 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/10.64, allocations: 63.33 kB / 3.526 GB, free: 29.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/10.64, allocations: 105.2 kB / 3.527 GB, free: 29.37 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/10.64, allocations: 30.08 kB / 3.527 GB, free: 29.33 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.62e-05/10.64, allocations: 120.5 kB / 3.527 GB, free: 29.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/10.64, allocations: 114.3 kB / 3.527 GB, free: 29.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/10.64, allocations: 8 kB / 3.527 GB, free: 29.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.779e-05/10.64, allocations: 326.8 kB / 3.527 GB, free: 28.76 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008119/10.64, allocations: 311.9 kB / 3.527 GB, free: 28.46 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008415/10.64, allocations: 379.7 kB / 3.528 GB, free: 28.06 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008142/10.64, allocations: 315.7 kB / 3.528 GB, free: 27.75 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/10.64, allocations: 0 / 3.528 GB, free: 27.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002568/10.64, allocations: 0.8175 MB / 3.529 GB, free: 26.93 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/10.64, allocations: 8 kB / 3.529 GB, free: 26.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/10.64, allocations: 0 / 3.529 GB, free: 26.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.743e-05/10.64, allocations: 7.984 kB / 3.529 GB, free: 26.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/10.65, allocations: 179.8 kB / 3.529 GB, free: 26.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/10.65, allocations: 7.938 kB / 3.529 GB, free: 26.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008317/10.65, allocations: 47.95 kB / 3.529 GB, free: 26.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002883/10.65, allocations: 63.92 kB / 3.529 GB, free: 26.62 MB / 458.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.0004022/10.65, allocations: 124.9 kB / 3.529 GB, free: 26.49 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000283/10.65, allocations: 15.81 kB / 3.529 GB, free: 26.47 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01304/10.66, allocations: 6.503 MB / 3.536 GB, free: 19.96 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.003e-05/10.66, allocations: 35.94 kB / 3.536 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/10.66, allocations: 0 / 3.536 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/10.66, allocations: 0 / 3.536 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004737/10.67, allocations: 2.907 MB / 3.539 GB, free: 16.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/10.67, allocations: 0 / 3.539 GB, free: 16.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/10.67, allocations: 127.8 kB / 3.539 GB, free: 16.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-05/10.67, allocations: 0 / 3.539 GB, free: 16.69 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/10.67, allocations: 27.92 kB / 3.539 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/10.67, allocations: 0 / 3.539 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/10.67, allocations: 7.984 kB / 3.539 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004661/10.67, allocations: 1.75 MB / 3.54 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/10.67, allocations: 136.3 kB / 3.541 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/10.67, allocations: 4 kB / 3.541 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009704/10.67, allocations: 31.92 kB / 3.541 GB, free: 14.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/10.67, allocations: 40 kB / 3.541 GB, free: 14.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/10.67, allocations: 27.97 kB / 3.541 GB, free: 14.63 MB / 458.7 MB Notification: Performance of sorting global known variables: time 8.921e-05/10.67, allocations: 87.28 kB / 3.541 GB, free: 14.55 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.22e-07/10.67, allocations: 0 / 3.541 GB, free: 14.55 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006692/10.68, allocations: 1.003 MB / 3.542 GB, free: 13.54 MB / 458.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.01295/10.69, allocations: 3.463 MB / 3.545 GB, free: 10.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002048/10.7, allocations: 0.841 MB / 3.546 GB, free: 9.215 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/10.7, allocations: 0 / 3.546 GB, free: 9.215 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009736/10.7, allocations: 0.5594 MB / 3.546 GB, free: 8.656 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000919/10.7, allocations: 76.42 kB / 3.546 GB, free: 8.582 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006065/10.7, allocations: 1.457 MB / 3.548 GB, free: 7.082 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/10.7, allocations: 0.8493 MB / 3.549 GB, free: 6.211 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004092/10.71, allocations: 2.746 MB / 3.551 GB, free: 3.457 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007448/10.71, allocations: 215.3 kB / 3.552 GB, free: 3.25 MB / 458.7 MB Notification: Performance of SimCode: time 1.392e-06/10.71, allocations: 0 / 3.552 GB, free: 3.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5337/11.24, allocations: 36.67 MB / 3.587 GB, free: 95.54 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002202/11.24, allocations: 157.9 kB / 3.588 GB, free: 95.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.081/15.33, allocations: 1.969 kB / 3.588 GB, free: 95.32 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat