Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 0.9694/0.9694, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.971e-05/2.991e-05, allocations: 0 / 151.4 MB, free: 15.65 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1706, allocations: 25.16 MB / 176.5 MB, free: 4 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.353/3.524, allocations: 1.423 GB / 1.596 GB, free: 0.6133 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/3.524, allocations: 61.61 kB / 1.596 GB, free: 0.582 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.613/4.137, allocations: 108.8 MB / 1.702 GB, free: 26.02 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.199e-06/4.137, allocations: 0 / 1.702 GB, free: 26.02 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.434e-05/4.137, allocations: 3.969 kB / 1.702 GB, free: 26.02 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.006196/4.143, allocations: 1.144 MB / 1.703 GB, free: 25.51 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/4.143, allocations: 7.5 kB / 1.703 GB, free: 25.51 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.54e-05/4.143, allocations: 15.94 kB / 1.703 GB, free: 25.5 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/4.144, allocations: 219.7 kB / 1.703 GB, free: 25.31 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/4.144, allocations: 11.44 kB / 1.703 GB, free: 25.31 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.002e-05/4.144, allocations: 19.61 kB / 1.703 GB, free: 25.3 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009395/4.145, allocations: 322.1 kB / 1.704 GB, free: 25.21 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/4.145, allocations: 0 / 1.704 GB, free: 25.21 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.498e-05/4.145, allocations: 8.562 kB / 1.704 GB, free: 25.21 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/4.145, allocations: 3.031 kB / 1.704 GB, free: 25.21 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000906/4.146, allocations: 256.5 kB / 1.704 GB, free: 25.21 MB / 234.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.001519/4.147, allocations: 1.293 MB / 1.705 GB, free: 24.1 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/4.148, allocations: 208.8 kB / 1.705 GB, free: 24.03 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/4.148, allocations: 87.31 kB / 1.706 GB, free: 24.01 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09999/4.248, allocations: 46.55 MB / 1.751 GB, free: 10.79 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.72e-05/4.248, allocations: 34.19 kB / 1.751 GB, free: 10.75 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 3.104e-06/4.248, allocations: 0 / 1.751 GB, free: 10.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.006743/4.255, allocations: 1.384 MB / 1.752 GB, free: 10.44 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.238e-05/4.255, allocations: 110.2 kB / 1.752 GB, free: 10.31 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/4.255, allocations: 116.8 kB / 1.753 GB, free: 10.21 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.109e-05/4.255, allocations: 40.08 kB / 1.753 GB, free: 10.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/4.255, allocations: 174.4 kB / 1.753 GB, free: 10.02 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.139e-05/4.255, allocations: 112.6 kB / 1.753 GB, free: 9.965 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-05/4.256, allocations: 10.66 kB / 1.753 GB, free: 9.965 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0004508/4.256, allocations: 322 kB / 1.753 GB, free: 25.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/4.256, allocations: 106 kB / 1.753 GB, free: 25.65 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/4.257, allocations: 177.1 kB / 1.753 GB, free: 25.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/4.257, allocations: 121.9 kB / 1.754 GB, free: 25.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.185e-06/4.257, allocations: 0 / 1.754 GB, free: 25.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009346/4.258, allocations: 365.7 kB / 1.754 GB, free: 25.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/4.258, allocations: 7.594 kB / 1.754 GB, free: 25.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/4.258, allocations: 5.625 kB / 1.754 GB, free: 25.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002888/4.258, allocations: 34.23 kB / 1.754 GB, free: 25.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000583/4.259, allocations: 101 kB / 1.754 GB, free: 25.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005097/4.259, allocations: 0.5437 MB / 1.755 GB, free: 24.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003726/4.26, allocations: 36.08 kB / 1.755 GB, free: 24.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.213e-05/4.26, allocations: 22.06 kB / 1.755 GB, free: 24.96 MB / 266.7 MB Warning: Assuming fixed start value for the following 3 variables: V:VARIABLE(start = 0.1 unit = "m3" ) type: Real medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 100000.0 unit = "J/kg" nominal = 1000000.0 stateSelect=StateSelect.prefer ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, 2000.0)) max = min(100000000.0, min(100000000.0, 1000000000.0)) start = 100000.0 unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002681/4.26, allocations: 133.3 kB / 1.755 GB, free: 24.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/4.26, allocations: 17.41 kB / 1.755 GB, free: 24.85 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001849/4.262, allocations: 1.151 MB / 1.756 GB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.308e-05/4.262, allocations: 25.44 kB / 1.756 GB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.514e-06/4.262, allocations: 0 / 1.756 GB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/4.262, allocations: 7 kB / 1.756 GB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003072/4.265, allocations: 1.597 MB / 1.758 GB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.901e-06/4.265, allocations: 3.906 kB / 1.758 GB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005503/4.266, allocations: 77.42 kB / 1.758 GB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003907/4.266, allocations: 82.72 kB / 1.758 GB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-05/4.266, allocations: 13.45 kB / 1.758 GB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000515/4.267, allocations: 0.5825 MB / 1.758 GB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.384e-06/4.267, allocations: 2.531 kB / 1.758 GB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/4.269, allocations: 1.524 MB / 1.76 GB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/4.269, allocations: 115.8 kB / 1.76 GB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.024e-05/4.269, allocations: 12.8 kB / 1.76 GB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004948/4.269, allocations: 20.81 kB / 1.76 GB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.566e-05/4.27, allocations: 36.28 kB / 1.76 GB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.234e-05/4.27, allocations: 21.53 kB / 1.76 GB, free: 23.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.22e-05/4.27, allocations: 88.41 kB / 1.76 GB, free: 23.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.42e-07/4.27, allocations: 0 / 1.76 GB, free: 23.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003995/4.274, allocations: 1.025 MB / 1.761 GB, free: 22.93 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007389/4.281, allocations: 1.33 MB / 1.762 GB, free: 22.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001172/4.282, allocations: 0.5119 MB / 1.763 GB, free: 22.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/4.282, allocations: 0 / 1.763 GB, free: 22.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007814/4.283, allocations: 445.5 kB / 1.763 GB, free: 22.61 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007266/4.284, allocations: 78.05 kB / 1.763 GB, free: 22.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/4.286, allocations: 0.9574 MB / 1.764 GB, free: 22.24 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005028/4.287, allocations: 0.7963 MB / 1.765 GB, free: 21.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/4.287, allocations: 38.11 kB / 1.765 GB, free: 21.53 MB / 266.7 MB Notification: Performance of SimCode: time 2.034e-06/4.287, allocations: 0 / 1.765 GB, free: 21.53 MB / 266.7 MB Notification: Performance of Templates: time 0.03821/4.325, allocations: 23.56 MB / 1.788 GB, free: 9.918 MB / 266.7 MB