Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_1_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.044/1.044, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.623e-05/2.659e-05, allocations: 0 / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1722, allocations: 25.15 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.469/4.641, allocations: 1.565 GB / 1.737 GB, free: 13.82 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03627/4.677, allocations: 12.46 MB / 1.749 GB, free: 4.164 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8138/5.491, allocations: 112.7 MB / 1.859 GB, free: 37.66 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.483e-06/5.491, allocations: 0 / 1.859 GB, free: 37.66 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.484e-05/5.491, allocations: 3.875 kB / 1.859 GB, free: 37.66 MB / 250.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.005463/5.497, allocations: 1.154 MB / 1.86 GB, free: 37.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/5.497, allocations: 11.41 kB / 1.86 GB, free: 37.02 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.524e-05/5.497, allocations: 52.66 kB / 1.86 GB, free: 36.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.166e-05/5.497, allocations: 23.28 kB / 1.86 GB, free: 36.97 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/5.497, allocations: 229.3 kB / 1.861 GB, free: 36.77 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/5.497, allocations: 17.22 kB / 1.861 GB, free: 36.77 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/5.497, allocations: 25.77 kB / 1.861 GB, free: 36.77 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009088/5.498, allocations: 439.4 kB / 1.861 GB, free: 36.7 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/5.498, allocations: 5.406 kB / 1.861 GB, free: 36.7 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.704e-05/5.498, allocations: 12.31 kB / 1.861 GB, free: 36.7 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/5.498, allocations: 7.875 kB / 1.861 GB, free: 36.7 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/5.5, allocations: 0.619 MB / 1.862 GB, free: 36.7 MB / 250.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.002118/5.502, allocations: 1.55 MB / 1.863 GB, free: 35.61 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005381/5.502, allocations: 211.4 kB / 1.863 GB, free: 35.59 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/5.503, allocations: 163.2 kB / 1.864 GB, free: 35.58 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2211/5.724, allocations: 69.07 MB / 1.931 GB, free: 8.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/5.724, allocations: 42.73 kB / 1.931 GB, free: 8.797 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.935e-06/5.724, allocations: 0 / 1.931 GB, free: 8.797 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.00135/5.725, allocations: 405.3 kB / 1.931 GB, free: 8.754 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/5.725, allocations: 55.25 kB / 1.932 GB, free: 8.691 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/5.725, allocations: 110.7 kB / 1.932 GB, free: 8.602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.181e-05/5.725, allocations: 29.27 kB / 1.932 GB, free: 8.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.661e-05/5.725, allocations: 189.3 kB / 1.932 GB, free: 8.398 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.065e-05/5.726, allocations: 116.7 kB / 1.932 GB, free: 8.324 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/5.726, allocations: 9.625 kB / 1.932 GB, free: 8.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/5.726, allocations: 328.1 kB / 1.932 GB, free: 8.004 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/5.726, allocations: 120.7 kB / 1.932 GB, free: 8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003127/5.726, allocations: 193.6 kB / 1.933 GB, free: 7.922 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/5.727, allocations: 145.8 kB / 1.933 GB, free: 7.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/5.727, allocations: 0 / 1.933 GB, free: 7.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009145/5.728, allocations: 384 kB / 1.933 GB, free: 7.863 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/5.728, allocations: 7.844 kB / 1.933 GB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/5.728, allocations: 3.594 kB / 1.933 GB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/5.728, allocations: 3.844 kB / 1.933 GB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005683/5.728, allocations: 89.97 kB / 1.933 GB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/5.728, allocations: 3.906 kB / 1.933 GB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/5.729, allocations: 41.84 kB / 1.933 GB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.223e-05/5.729, allocations: 23.22 kB / 1.933 GB, free: 7.84 MB / 266.7 MB Warning: Assuming fixed start value for the following 2 variables: medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 800000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 2000.0))))) max = min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, 1000000000.0))))) start = 700.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real 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.0002578/5.729, allocations: 155.6 kB / 1.933 GB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.967e-05/5.729, allocations: 19.62 kB / 1.933 GB, free: 7.699 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001607/5.731, allocations: 0.7812 MB / 1.934 GB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.685e-05/5.731, allocations: 18.53 kB / 1.934 GB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/5.731, allocations: 0 / 1.934 GB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/5.731, allocations: 2.531 kB / 1.934 GB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007715/5.732, allocations: 0.4996 MB / 1.935 GB, free: 7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/5.732, allocations: 0 / 1.935 GB, free: 7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/5.732, allocations: 72.44 kB / 1.935 GB, free: 6.996 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/5.732, allocations: 10.45 kB / 1.935 GB, free: 6.996 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.58e-05/5.732, allocations: 7.594 kB / 1.935 GB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/5.732, allocations: 7.625 kB / 1.935 GB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/5.732, allocations: 0 / 1.935 GB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/5.734, allocations: 0.8229 MB / 1.936 GB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.044e-05/5.734, allocations: 111 kB / 1.936 GB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.764e-05/5.734, allocations: 7.938 kB / 1.936 GB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/5.734, allocations: 21.31 kB / 1.936 GB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.459e-05/5.734, allocations: 31 kB / 1.936 GB, free: 6.422 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.441e-05/5.734, allocations: 22.09 kB / 1.936 GB, free: 6.414 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.438e-05/5.734, allocations: 89.78 kB / 1.936 GB, free: 6.336 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.61e-07/5.734, allocations: 0 / 1.936 GB, free: 6.336 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.005001/5.739, allocations: 1.119 MB / 1.937 GB, free: 6.074 MB / 266.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: 3 ($cse5.region3boundary,$cse6.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.1835/5.923, allocations: 2.7 MB / 1.94 GB, free: 51.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001064/5.924, allocations: 396.3 kB / 1.94 GB, free: 51.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/5.924, allocations: 1.094 kB / 1.94 GB, free: 51.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005012/5.925, allocations: 266.2 kB / 1.94 GB, free: 51.97 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008636/5.925, allocations: 70.42 kB / 1.94 GB, free: 51.97 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004873/5.93, allocations: 1.051 MB / 1.941 GB, free: 51.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/5.931, allocations: 0.7646 MB / 1.942 GB, free: 50.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002869/5.931, allocations: 110.9 kB / 1.942 GB, free: 50.97 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/5.931, allocations: 0 / 1.942 GB, free: 50.97 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.527/9.458, allocations: 23.96 MB / 1.966 GB, free: 49.27 MB / 266.7 MB