Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph") Notification: Performance of loadModel(Modelica): time 1.749/1.749, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.07e-05/3.077e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08233/0.08239, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.04279/0.1252, allocations: 26.1 MB / 293 MB, free: 6.957 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2456/0.3709, allocations: 12.44 MB / 305.4 MB, free: 4.531 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005453/0.3715, allocations: 11.31 kB / 305.5 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008515/0.3723, allocations: 211.1 kB / 305.7 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008606/0.3732, allocations: 228.9 kB / 305.9 MB, free: 4.523 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01618/0.3894, allocations: 3.968 MB / 309.9 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.3906, allocations: 450.3 kB / 310.3 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.3909, allocations: 46.05 kB / 310.3 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009205/0.4001, allocations: 3.182 MB / 313.5 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006628/0.4008, allocations: 184.3 kB / 313.7 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01528/0.4161, allocations: 5.414 MB / 319.1 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002437/0.4186, allocations: 331.6 kB / 319.4 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.4189, allocations: 75.39 kB / 319.5 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003056/0.4192, allocations: 50.22 kB / 319.6 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006598/0.4258, allocations: 2.389 MB / 321.9 MB, free: 2.363 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4259, allocations: 0 / 321.9 MB, free: 2.363 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.4259, allocations: 0 / 321.9 MB, free: 2.363 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.01e-05/0.4259, allocations: 4 kB / 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.003156/0.4291, allocations: 0.919 MB / 322.9 MB, free: 1.695 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.4292, allocations: 13.5 kB / 322.9 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001916/0.4311, allocations: 156.7 kB / 323 MB, free: 1.637 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000583/0.4317, allocations: 316.4 kB / 323.3 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.929e-05/0.4318, allocations: 30.66 kB / 323.4 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.104e-05/0.4319, allocations: 34.66 kB / 323.4 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002278/0.4342, allocations: 0.5617 MB / 324 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.148e-05/0.4342, allocations: 4.5 kB / 324 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.946e-05/0.4343, allocations: 15.48 kB / 324 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.521e-05/0.4343, allocations: 11.66 kB / 324 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00258/0.4369, allocations: 0.5349 MB / 324.5 MB, free: 1.016 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.004657/0.4416, allocations: 2.618 MB / 327.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002514/0.4442, allocations: 481.9 kB / 327.6 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001353/0.4456, allocations: 0.5606 MB / 328.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.4457, allocations: 36.66 kB / 328.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 4.418e-06/0.4457, allocations: 0 / 328.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=34): time 0.00813/0.4538, allocations: 1.612 MB / 329.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.4539, allocations: 51.41 kB / 329.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003674/0.4543, allocations: 230.8 kB / 330.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.116e-05/0.4544, allocations: 32.52 kB / 330.1 MB, free: 12.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.4546, allocations: 244 kB / 330.4 MB, free: 12.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.4547, allocations: 110.7 kB / 330.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-05/0.4547, allocations: 6.938 kB / 330.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.4549, allocations: 325.6 kB / 330.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007305/0.4556, allocations: 150.7 kB / 331 MB, free: 11.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008657/0.4565, allocations: 246.6 kB / 331.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/0.4573, allocations: 180.7 kB / 331.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.4574, allocations: 0 / 331.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002253/0.4596, allocations: 0.5125 MB / 331.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/0.4597, allocations: 11.95 kB / 331.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.4597, allocations: 352 / 331.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008324/0.4606, allocations: 119.6 kB / 332 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007101/0.4613, allocations: 95.86 kB / 332.1 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002789/0.4641, allocations: 2.428 MB / 334.5 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007449/0.4649, allocations: 55.72 kB / 334.6 MB, free: 8.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.858e-05/0.465, allocations: 18.42 kB / 334.6 MB, free: 8.25 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002951/0.4653, allocations: 158.4 kB / 334.8 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.4654, allocations: 27.72 kB / 334.8 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/0.4688, allocations: 1.372 MB / 336.2 MB, free: 7.145 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.292e-05/0.4689, allocations: 20.66 kB / 336.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4689, allocations: 3.953 kB / 336.2 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002945/0.4719, allocations: 1.459 MB / 337.6 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004541/0.4765, allocations: 2.134 MB / 339.8 MB, free: 4.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.4765, allocations: 0 / 339.8 MB, free: 4.418 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008208/0.4774, allocations: 107.7 kB / 339.9 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005218/0.4779, allocations: 79.86 kB / 340 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.622e-05/0.478, allocations: 6.688 kB / 340 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005354/0.4785, allocations: 0.59 MB / 340.6 MB, free: 3.676 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4786, allocations: 4.094 kB / 340.6 MB, free: 3.672 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003459/0.482, allocations: 1.308 MB / 341.9 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002672/0.4823, allocations: 166.2 kB / 342 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.656e-05/0.4825, allocations: 3.312 kB / 342 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005859/0.4831, allocations: 51.19 kB / 342.1 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.4832, allocations: 35.94 kB / 342.1 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.369e-05/0.4833, allocations: 16 kB / 342.1 MB, free: 2.492 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000396/0.4837, allocations: 231 kB / 342.4 MB, free: 2.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4837, allocations: 0 / 342.4 MB, free: 2.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003225/0.4869, allocations: 0.8043 MB / 343.2 MB, free: 1.465 MB / 266.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: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.005946/0.4929, allocations: 0.978 MB / 344.1 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.4955, allocations: 0.6729 MB / 344.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4955, allocations: 0 / 344.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.4968, allocations: 425.9 kB / 345.2 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001935/0.4988, allocations: 180.9 kB / 345.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.5024, allocations: 1.576 MB / 347 MB, free: 13.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006251/0.5031, allocations: 0.8882 MB / 347.9 MB, free: 12.79 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/0.5033, allocations: 39.44 kB / 347.9 MB, free: 12.75 MB / 282.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5034, allocations: 0 / 347.9 MB, free: 12.75 MB / 282.7 MB Notification: Performance of Templates: time 0.05859/0.562, allocations: 25.5 MB / 373.4 MB, free: 3.246 MB / 298.7 MB