Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.233/2.233, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.322e-05/4.332e-05, allocations: 0 / 269.4 MB, free: 6.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1146, allocations: 47.57 MB / 317 MB, free: 6.668 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.525/9.64, allocations: 3.021 GB / 3.33 GB, free: 36.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03954/9.679, allocations: 10.94 MB / 3.341 GB, free: 27.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8147/10.49, allocations: 112.9 MB / 3.451 GB, free: 80.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.565e-06/10.49, allocations: 0 / 3.451 GB, free: 80.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.578e-05/10.49, allocations: 4 kB / 3.451 GB, free: 80.74 MB / 426.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.006768/10.5, allocations: 1.141 MB / 3.452 GB, free: 79.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/10.5, allocations: 16.03 kB / 3.452 GB, free: 79.64 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.934e-05/10.5, allocations: 53.77 kB / 3.452 GB, free: 79.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002021/10.5, allocations: 176.8 kB / 3.452 GB, free: 79.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/10.5, allocations: 260.6 kB / 3.453 GB, free: 79.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.077e-05/10.5, allocations: 17.38 kB / 3.453 GB, free: 79.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.458e-05/10.5, allocations: 23.81 kB / 3.453 GB, free: 79.24 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004632/10.51, allocations: 0.911 MB / 3.454 GB, free: 78.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/10.51, allocations: 0 / 3.454 GB, free: 78.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.894e-05/10.51, allocations: 8 kB / 3.454 GB, free: 78.51 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/10.51, allocations: 4 kB / 3.454 GB, free: 78.51 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004646/10.51, allocations: 0.9533 MB / 3.454 GB, free: 77.73 MB / 426.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.002075/10.52, allocations: 1.341 MB / 3.456 GB, free: 76.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003831/10.52, allocations: 0.7348 MB / 3.456 GB, free: 75.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000306/10.52, allocations: 141.1 kB / 3.457 GB, free: 75.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1188/10.64, allocations: 37.34 MB / 3.493 GB, free: 38.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/10.64, allocations: 38.89 kB / 3.493 GB, free: 38.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.006e-06/10.64, allocations: 0 / 3.493 GB, free: 38.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.00735/10.65, allocations: 1.235 MB / 3.494 GB, free: 37.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/10.65, allocations: 63.36 kB / 3.494 GB, free: 37.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/10.65, allocations: 120.8 kB / 3.495 GB, free: 37.65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.817e-05/10.65, allocations: 29.7 kB / 3.495 GB, free: 37.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.478e-05/10.65, allocations: 116.2 kB / 3.495 GB, free: 37.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/10.65, allocations: 121.2 kB / 3.495 GB, free: 37.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.584e-05/10.65, allocations: 8 kB / 3.495 GB, free: 37.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.129e-05/10.65, allocations: 322.5 kB / 3.495 GB, free: 37.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007519/10.65, allocations: 310.4 kB / 3.495 GB, free: 36.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000796/10.65, allocations: 388.5 kB / 3.496 GB, free: 36.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007695/10.65, allocations: 316.2 kB / 3.496 GB, free: 36.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/10.65, allocations: 0 / 3.496 GB, free: 36.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002427/10.65, allocations: 0.8143 MB / 3.497 GB, free: 35.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/10.65, allocations: 11.52 kB / 3.497 GB, free: 35.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/10.65, allocations: 0 / 3.497 GB, free: 35.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/10.65, allocations: 4 kB / 3.497 GB, free: 35.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/10.65, allocations: 187 kB / 3.497 GB, free: 35.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/10.65, allocations: 11.27 kB / 3.497 GB, free: 35.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008119/10.65, allocations: 38.42 kB / 3.497 GB, free: 35.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/10.65, allocations: 65 kB / 3.497 GB, free: 35.16 MB / 426.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.0002539/10.65, allocations: 124.9 kB / 3.497 GB, free: 35.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/10.65, allocations: 15.91 kB / 3.497 GB, free: 35.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007991/10.66, allocations: 6.508 MB / 3.504 GB, free: 29.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.099e-05/10.66, allocations: 23.67 kB / 3.504 GB, free: 29.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/10.66, allocations: 4 kB / 3.504 GB, free: 29.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/10.66, allocations: 0 / 3.504 GB, free: 29.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003026/10.67, allocations: 2.902 MB / 3.506 GB, free: 26.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/10.67, allocations: 0 / 3.506 GB, free: 26.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/10.67, allocations: 130.3 kB / 3.507 GB, free: 26.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.888e-06/10.67, allocations: 4 kB / 3.507 GB, free: 26.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.746e-05/10.67, allocations: 23.89 kB / 3.507 GB, free: 26.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/10.67, allocations: 0 / 3.507 GB, free: 26.29 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/10.67, allocations: 0 / 3.507 GB, free: 26.29 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003069/10.67, allocations: 1.744 MB / 3.508 GB, free: 24.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.088e-05/10.67, allocations: 140.2 kB / 3.508 GB, free: 24.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.716e-05/10.67, allocations: 4 kB / 3.508 GB, free: 24.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006634/10.67, allocations: 31.98 kB / 3.509 GB, free: 24.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/10.67, allocations: 39.94 kB / 3.509 GB, free: 24.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.558e-05/10.67, allocations: 27.97 kB / 3.509 GB, free: 24.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.875e-05/10.67, allocations: 87.28 kB / 3.509 GB, free: 24.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.693e-06/10.67, allocations: 0 / 3.509 GB, free: 24.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005138/10.68, allocations: 1.011 MB / 3.51 GB, free: 23.23 MB / 426.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.01191/10.69, allocations: 3.44 MB / 3.513 GB, free: 19.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002014/10.69, allocations: 0.8483 MB / 3.514 GB, free: 18.92 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/10.69, allocations: 0 / 3.514 GB, free: 18.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009411/10.69, allocations: 0.5557 MB / 3.514 GB, free: 18.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009254/10.69, allocations: 83.31 kB / 3.514 GB, free: 18.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005752/10.7, allocations: 1.449 MB / 3.516 GB, free: 16.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/10.7, allocations: 0.8532 MB / 3.517 GB, free: 15.92 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003987/10.7, allocations: 2.734 MB / 3.519 GB, free: 13.18 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006745/10.7, allocations: 219.3 kB / 3.52 GB, free: 12.96 MB / 426.7 MB Notification: Performance of SimCode: time 1.473e-06/10.7, allocations: 0 / 3.52 GB, free: 12.96 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4203/11.12, allocations: 36.62 MB / 3.555 GB, free: 73.41 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002489/11.12, allocations: 165.8 kB / 3.556 GB, free: 73.19 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.222/15.35, allocations: 3.562 kB / 3.556 GB, free: 73.19 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat