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.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadModel(Modelica): time 2.078/2.078, allocations: 194.9 MB / 211.2 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.542e-05/4.499e-05, allocations: 7.906 kB / 258.8 MB, free: 8.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3226, allocations: 44.5 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.05074/0.3734, allocations: 26.28 MB / 329.6 MB, free: 3.328 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02525/0.3987, allocations: 12.56 MB / 342.1 MB, free: 6.738 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005125/0.3993, allocations: 4 kB / 342.1 MB, free: 6.734 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008945/0.4002, allocations: 207 kB / 342.3 MB, free: 6.531 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009357/0.4012, allocations: 231.3 kB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01526/0.4165, allocations: 4.019 MB / 346.6 MB, free: 2.273 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.4176, allocations: 455.9 kB / 347 MB, free: 1.828 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.4178, allocations: 47.89 kB / 347.1 MB, free: 1.781 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008632/0.4265, allocations: 3.22 MB / 350.3 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004898/0.427, allocations: 183.4 kB / 350.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01553/0.4426, allocations: 5.463 MB / 355.9 MB, free: 8.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002243/0.4449, allocations: 340 kB / 356.3 MB, free: 8.578 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002564/0.4452, allocations: 75.73 kB / 356.4 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002128/0.4454, allocations: 52 kB / 356.4 MB, free: 8.453 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006431/0.4518, allocations: 2.417 MB / 358.8 MB, free: 6.031 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4519, allocations: 0 / 358.8 MB, free: 6.031 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4519, allocations: 0 / 358.8 MB, free: 6.031 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.4519, allocations: 0 / 358.8 MB, free: 6.031 MB / 298.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.003127/0.4551, allocations: 0.9242 MB / 359.7 MB, free: 5.059 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.4551, allocations: 12.03 kB / 359.8 MB, free: 5.047 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001897/0.457, allocations: 159.5 kB / 359.9 MB, free: 4.891 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006468/0.4577, allocations: 318.3 kB / 360.2 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.312e-05/0.4578, allocations: 24.66 kB / 360.2 MB, free: 4.512 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.065e-05/0.4579, allocations: 36 kB / 360.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002478/0.4604, allocations: 0.5658 MB / 360.8 MB, free: 3.871 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.4605, allocations: 3.938 kB / 360.9 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.245e-05/0.4606, allocations: 12 kB / 360.9 MB, free: 3.855 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.4606, allocations: 8 kB / 360.9 MB, free: 3.848 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002789/0.4634, allocations: 0.5407 MB / 361.4 MB, free: 3.305 MB / 298.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.005361/0.4688, allocations: 2.612 MB / 364 MB, free: 444 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002578/0.4714, allocations: 490.2 kB / 364.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001307/0.4728, allocations: 0.5602 MB / 365.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/0.4729, allocations: 50.5 kB / 365.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 2.595e-06/0.4729, allocations: 0 / 365.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.008111/0.481, allocations: 1.594 MB / 366.7 MB, free: 13.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.4811, allocations: 55.41 kB / 366.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003605/0.4815, allocations: 220.1 kB / 367 MB, free: 13.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.222e-05/0.4815, allocations: 37.64 kB / 367 MB, free: 13.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.4817, allocations: 238.6 kB / 367.2 MB, free: 13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.4818, allocations: 118.3 kB / 367.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.062e-05/0.4819, allocations: 4 kB / 367.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.482, allocations: 334.8 kB / 367.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007347/0.4828, allocations: 144.8 kB / 367.8 MB, free: 12.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008005/0.4836, allocations: 251.4 kB / 368.1 MB, free: 12.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000779/0.4844, allocations: 171.9 kB / 368.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4844, allocations: 0 / 368.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002294/0.4867, allocations: 0.5231 MB / 368.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.4868, allocations: 8 kB / 368.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.4868, allocations: 4 kB / 368.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008083/0.4876, allocations: 118.6 kB / 368.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006876/0.4883, allocations: 91.88 kB / 369 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002719/0.4911, allocations: 2.416 MB / 371.4 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006914/0.4918, allocations: 56.14 kB / 371.5 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-05/0.4919, allocations: 20 kB / 371.5 MB, free: 8.508 MB / 314.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.0002892/0.4922, allocations: 157.7 kB / 371.6 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.4923, allocations: 35.7 kB / 371.7 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003299/0.4956, allocations: 1.371 MB / 373 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.682e-05/0.4957, allocations: 19.92 kB / 373.1 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.4957, allocations: 7.938 kB / 373.1 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002927/0.4987, allocations: 1.46 MB / 374.5 MB, free: 5.348 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004525/0.5032, allocations: 2.136 MB / 376.7 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.5033, allocations: 0 / 376.7 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007757/0.5041, allocations: 111.8 kB / 376.8 MB, free: 3.031 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000494/0.5046, allocations: 72.7 kB / 376.8 MB, free: 2.957 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.581e-05/0.5047, allocations: 8 kB / 376.8 MB, free: 2.949 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005306/0.5052, allocations: 0.5953 MB / 377.4 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5052, allocations: 0 / 377.4 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00322/0.5085, allocations: 1.309 MB / 378.8 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/0.5088, allocations: 164.1 kB / 378.9 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.5089, allocations: 8 kB / 378.9 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006179/0.5095, allocations: 44.03 kB / 379 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.5097, allocations: 39.88 kB / 379 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-05/0.5097, allocations: 11.98 kB / 379 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003951/0.5101, allocations: 231.1 kB / 379.2 MB, free: 492 kB / 314.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5102, allocations: 0 / 379.2 MB, free: 492 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.003073/0.5132, allocations: 0.8121 MB / 380.1 MB, free: 15.67 MB / 330.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.005864/0.5192, allocations: 0.9776 MB / 381 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002442/0.5216, allocations: 0.6816 MB / 381.7 MB, free: 13.99 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.5217, allocations: 0 / 381.7 MB, free: 13.99 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.5229, allocations: 416.7 kB / 382.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/0.5248, allocations: 184.9 kB / 382.3 MB, free: 13.4 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.5284, allocations: 1.587 MB / 383.9 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006117/0.5291, allocations: 0.8882 MB / 384.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.5293, allocations: 43.42 kB / 384.8 MB, free: 10.83 MB / 330.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5293, allocations: 0 / 384.8 MB, free: 10.83 MB / 330.7 MB Notification: Performance of Templates: time 0.05715/0.5865, allocations: 25.59 MB / 410.4 MB, free: 1.203 MB / 346.7 MB