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 1.156/1.156, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.507e-05, allocations: 4 kB / 154.5 MB, free: 2.84 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0684/0.06847, allocations: 25.19 MB / 179.7 MB, free: 9.617 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.02955/0.09807, allocations: 12.86 MB / 192.5 MB, free: 12.73 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.02473/0.1229, allocations: 10.27 MB / 202.8 MB, free: 2.438 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.1231, allocations: 0 / 202.8 MB, free: 2.438 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003813/0.1235, allocations: 55.73 kB / 202.9 MB, free: 2.383 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003464/0.1238, allocations: 71.81 kB / 202.9 MB, free: 2.312 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1862/0.3101, allocations: 3.726 MB / 206.7 MB, free: 4.707 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004408/0.3106, allocations: 124.6 kB / 206.8 MB, free: 4.707 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.467e-05/0.3106, allocations: 4.734 kB / 206.8 MB, free: 4.707 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007125/0.3114, allocations: 179.8 kB / 207 MB, free: 4.707 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.3116, allocations: 60.73 kB / 207 MB, free: 4.707 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02437/0.336, allocations: 6.388 MB / 213.4 MB, free: 4.688 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003365/0.3394, allocations: 379.8 kB / 213.8 MB, free: 4.684 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.3396, allocations: 20.69 kB / 213.8 MB, free: 4.684 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.3397, allocations: 18.25 kB / 213.8 MB, free: 4.684 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00827/0.348, allocations: 2.398 MB / 216.2 MB, free: 3.938 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.348, allocations: 0 / 216.2 MB, free: 3.938 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3481, allocations: 0 / 216.2 MB, free: 3.938 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.3481, allocations: 0 / 216.2 MB, free: 3.938 MB / 170.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.009156/0.3572, allocations: 1.105 MB / 217.3 MB, free: 3.191 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/0.3573, allocations: 9.625 kB / 217.3 MB, free: 3.191 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.3575, allocations: 12.16 kB / 217.3 MB, free: 3.188 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.3579, allocations: 215.2 kB / 217.6 MB, free: 2.969 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.679e-05/0.358, allocations: 11.55 kB / 217.6 MB, free: 2.969 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.845e-05/0.3581, allocations: 17.22 kB / 217.6 MB, free: 2.965 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.3605, allocations: 350.7 kB / 217.9 MB, free: 2.773 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.3606, allocations: 3.75 kB / 217.9 MB, free: 2.773 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.493e-05/0.3607, allocations: 6.688 kB / 217.9 MB, free: 2.773 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.3607, allocations: 8.109 kB / 217.9 MB, free: 2.77 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003335/0.3641, allocations: 325.5 kB / 218.3 MB, free: 2.695 MB / 170.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.003049/0.3672, allocations: 1.292 MB / 219.6 MB, free: 1.492 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.3685, allocations: 219.2 kB / 219.8 MB, free: 1.391 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1693/0.5378, allocations: 47.03 MB / 266.8 MB, free: 15.57 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.182e-05/0.5379, allocations: 41.89 kB / 266.8 MB, free: 15.52 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.384e-06/0.5379, allocations: 0 / 266.8 MB, free: 15.52 MB / 234.7 MB Notification: Performance of matching and sorting (n=33): time 0.01149/0.5494, allocations: 1.594 MB / 268.4 MB, free: 14.17 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.508e-05/0.5495, allocations: 106.8 kB / 268.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.5497, allocations: 114.7 kB / 268.6 MB, free: 13.93 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.414e-05/0.5498, allocations: 36.39 kB / 268.7 MB, free: 13.89 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.5499, allocations: 170.7 kB / 268.9 MB, free: 13.73 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.55, allocations: 119.2 kB / 269 MB, free: 13.63 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-05/0.5501, allocations: 3.625 kB / 269 MB, free: 13.63 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5502, allocations: 329.1 kB / 269.3 MB, free: 13.3 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006787/0.5509, allocations: 135.9 kB / 269.4 MB, free: 13.21 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007208/0.5517, allocations: 203.4 kB / 269.6 MB, free: 13.04 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007279/0.5524, allocations: 154.4 kB / 269.8 MB, free: 12.94 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.5524, allocations: 0 / 269.8 MB, free: 12.94 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001842/0.5543, allocations: 432.3 kB / 270.2 MB, free: 12.63 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.5543, allocations: 8 kB / 270.2 MB, free: 12.62 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.5543, allocations: 0 / 270.2 MB, free: 12.62 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/0.5547, allocations: 36.09 kB / 270.2 MB, free: 12.59 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008345/0.5555, allocations: 92.69 kB / 270.3 MB, free: 12.51 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005103/0.5561, allocations: 0.5514 MB / 270.9 MB, free: 11.95 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005047/0.5566, allocations: 23.23 kB / 270.9 MB, free: 11.93 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.257e-05/0.5567, allocations: 18.48 kB / 270.9 MB, free: 11.92 MB / 234.7 MB Warning: Assuming fixed start value for the following 3 variables: V:VARIABLE(start = 0.1 unit = "m3" fixed = true ) type: Real medium.h:VARIABLE(flow=false min = -100000000.0 max = 100000000.0 start = 100000.0 unit = "J/kg" fixed = true nominal = 1000000.0 stateSelect=StateSelect.prefer ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(flow=false min = max(0.0, max(0.0, 2000.0)) max = min(100000000.0, min(100000000.0, 1000000000.0)) start = 100000.0 unit = "Pa" fixed = true 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.000316/0.557, allocations: 155.3 kB / 271.1 MB, free: 11.78 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.5571, allocations: 12.28 kB / 271.1 MB, free: 11.77 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003073/0.5602, allocations: 1.225 MB / 272.3 MB, free: 10.95 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-05/0.5602, allocations: 20.59 kB / 272.3 MB, free: 10.93 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.5603, allocations: 0 / 272.3 MB, free: 10.93 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.5603, allocations: 3.938 kB / 272.3 MB, free: 10.93 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003978/0.5643, allocations: 1.659 MB / 274 MB, free: 9.711 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.5643, allocations: 4 kB / 274 MB, free: 9.707 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007726/0.5651, allocations: 86.48 kB / 274.1 MB, free: 9.629 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004541/0.5656, allocations: 73.3 kB / 274.2 MB, free: 9.57 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.122e-05/0.5656, allocations: 13.92 kB / 274.2 MB, free: 9.562 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004739/0.5661, allocations: 0.5842 MB / 274.8 MB, free: 8.984 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.5661, allocations: 4.094 kB / 274.8 MB, free: 8.98 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003339/0.5695, allocations: 1.605 MB / 276.4 MB, free: 7.793 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.5696, allocations: 124.5 kB / 276.5 MB, free: 7.652 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.683e-05/0.5697, allocations: 13.38 kB / 276.5 MB, free: 7.645 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000593/0.5703, allocations: 26.3 kB / 276.5 MB, free: 7.625 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.5705, allocations: 37.84 kB / 276.6 MB, free: 7.594 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.592e-05/0.5705, allocations: 15.3 kB / 276.6 MB, free: 7.582 MB / 234.7 MB Notification: Performance of sorting global known variables: time 7.379e-05/0.5706, allocations: 90.58 kB / 276.7 MB, free: 7.496 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5706, allocations: 0 / 276.7 MB, free: 7.496 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.003687/0.5743, allocations: 0.9674 MB / 277.6 MB, free: 6.578 MB / 234.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.007023/0.5814, allocations: 1.208 MB / 278.8 MB, free: 5.488 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002169/0.5836, allocations: 0.5748 MB / 279.4 MB, free: 5.098 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.5836, allocations: 0 / 279.4 MB, free: 5.098 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.585, allocations: 485.4 kB / 279.9 MB, free: 4.82 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009078/0.5859, allocations: 73.92 kB / 280 MB, free: 4.762 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/0.5894, allocations: 1.409 MB / 281.4 MB, free: 3.488 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.5899, allocations: 0.8015 MB / 282.2 MB, free: 2.656 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.5901, allocations: 38.61 kB / 282.2 MB, free: 2.625 MB / 234.7 MB Notification: Performance of SimCode: time 8.91e-07/0.5901, allocations: 3.938 kB / 282.2 MB, free: 2.621 MB / 234.7 MB Notification: Performance of Templates: time 0.2106/0.8008, allocations: 23.36 MB / 305.6 MB, free: 85.05 MB / 250.7 MB