Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadModel(Modelica): time 1.607/1.607, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.003e-05/2.996e-05, allocations: 4 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08143/0.08148, allocations: 38.77 MB / 266.9 MB, free: 1.125 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.04378/0.1253, allocations: 26.1 MB / 293 MB, free: 6.945 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.25/0.3754, allocations: 12.44 MB / 305.4 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005538/0.376, allocations: 5.562 kB / 305.4 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.3772, allocations: 216 kB / 305.7 MB, free: 4.516 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0011/0.3783, allocations: 222.5 kB / 305.9 MB, free: 4.516 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02075/0.3991, allocations: 3.98 MB / 309.9 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001491/0.4006, allocations: 434.8 kB / 310.3 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.4009, allocations: 42.7 kB / 310.3 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01229/0.4132, allocations: 3.19 MB / 313.5 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007637/0.414, allocations: 176.5 kB / 313.7 MB, free: 4.367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01959/0.4336, allocations: 5.417 MB / 319.1 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002524/0.4362, allocations: 333 kB / 319.4 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002842/0.4365, allocations: 74.92 kB / 319.5 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003476/0.4369, allocations: 52.91 kB / 319.6 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006505/0.4434, allocations: 2.397 MB / 321.9 MB, free: 2.359 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.4435, allocations: 0 / 321.9 MB, free: 2.359 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4435, allocations: 0 / 321.9 MB, free: 2.359 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.863e-05/0.4435, allocations: 0 / 321.9 MB, free: 2.359 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002764/0.4463, allocations: 0.8854 MB / 322.8 MB, free: 1.699 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.4464, allocations: 14.25 kB / 322.8 MB, free: 1.695 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001916/0.4483, allocations: 153.5 kB / 323 MB, free: 1.645 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006368/0.449, allocations: 320.8 kB / 323.3 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.449, allocations: 25.88 kB / 323.3 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.086e-05/0.4491, allocations: 31.47 kB / 323.4 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/0.451, allocations: 0.5172 MB / 323.9 MB, free: 1.168 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.451, allocations: 0 / 323.9 MB, free: 1.168 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.408e-05/0.4511, allocations: 19.61 kB / 323.9 MB, free: 1.168 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.4512, allocations: 14.59 kB / 323.9 MB, free: 1.164 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009444/0.4521, allocations: 324.4 kB / 324.2 MB, free: 1.105 MB / 250.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.004556/0.4567, allocations: 2.574 MB / 326.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008945/0.4577, allocations: 275.4 kB / 327.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1139/0.5716, allocations: 31.19 MB / 358.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.991e-05/0.5717, allocations: 37.81 kB / 358.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 2.725e-06/0.5718, allocations: 4 kB / 358.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.005265/0.577, allocations: 1.212 MB / 359.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.5771, allocations: 51.41 kB / 359.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/0.5775, allocations: 230.9 kB / 359.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.971e-05/0.5776, allocations: 35.52 kB / 359.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.5778, allocations: 250.2 kB / 360.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.5779, allocations: 107.6 kB / 360.2 MB, free: 11.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.712e-05/0.578, allocations: 8.625 kB / 360.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5781, allocations: 328.8 kB / 360.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/0.5784, allocations: 93.59 kB / 360.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/0.5788, allocations: 208.6 kB / 360.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003528/0.5791, allocations: 140.4 kB / 360.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5791, allocations: 0 / 360.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001131/0.5803, allocations: 397.2 kB / 361.3 MB, free: 10.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.5803, allocations: 8 kB / 361.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.5804, allocations: 4 kB / 361.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004138/0.5808, allocations: 60.66 kB / 361.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006769/0.5815, allocations: 91.86 kB / 361.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002252/0.5837, allocations: 2.429 MB / 363.9 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000496/0.5843, allocations: 34.08 kB / 364 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.844e-05/0.5843, allocations: 14.75 kB / 364 MB, free: 7.887 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003096/0.5847, allocations: 163.7 kB / 364.1 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.5848, allocations: 32.91 kB / 364.2 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001669/0.5865, allocations: 0.8775 MB / 365 MB, free: 7.137 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.422e-05/0.5866, allocations: 11.94 kB / 365 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.5866, allocations: 0 / 365 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00143/0.588, allocations: 1.042 MB / 366.1 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.5909, allocations: 1.496 MB / 367.6 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.5909, allocations: 0 / 367.6 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.5914, allocations: 54.64 kB / 367.6 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004903/0.5919, allocations: 68.8 kB / 367.7 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/0.592, allocations: 11.31 kB / 367.7 MB, free: 5.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005337/0.5925, allocations: 0.5938 MB / 368.3 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5925, allocations: 0 / 368.3 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.5941, allocations: 0.8204 MB / 369.1 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.5944, allocations: 131.6 kB / 369.3 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.477e-05/0.5945, allocations: 4.062 kB / 369.3 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006778/0.5952, allocations: 52.16 kB / 369.3 MB, free: 3.711 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.651e-05/0.5953, allocations: 21.72 kB / 369.3 MB, free: 3.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.67e-05/0.5953, allocations: 22.86 kB / 369.4 MB, free: 3.676 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003959/0.5958, allocations: 236 kB / 369.6 MB, free: 3.496 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5958, allocations: 0 / 369.6 MB, free: 3.496 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003368/0.5991, allocations: 0.8005 MB / 370.4 MB, free: 2.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * 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: 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.006472/0.6057, allocations: 0.9712 MB / 371.4 MB, free: 1.848 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.6073, allocations: 485.8 kB / 371.8 MB, free: 1.426 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.6074, allocations: 1 kB / 371.8 MB, free: 1.426 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000626/0.608, allocations: 244.6 kB / 372.1 MB, free: 1.195 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/0.61, allocations: 180.4 kB / 372.2 MB, free: 1.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/0.6127, allocations: 1.217 MB / 373.5 MB, free: 15.78 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.6133, allocations: 0.8328 MB / 374.3 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.6135, allocations: 39.44 kB / 374.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of SimCode: time 1.733e-06/0.6135, allocations: 0 / 374.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of Templates: time 0.05587/0.6694, allocations: 24 MB / 398.3 MB, free: 6.887 MB / 330.7 MB