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 1.822/1.822, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.115e-05/3.142e-05, allocations: 3.719 kB / 255.3 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08206/0.08211, allocations: 44.5 MB / 299.8 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.89/5.972, allocations: 2.576 GB / 2.869 GB, free: 14.73 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/5.972, allocations: 86.62 kB / 2.869 GB, free: 14.69 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.898/7.871, allocations: 429.6 MB / 3.288 GB, free: 42.33 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.794e-06/7.871, allocations: 0 / 3.288 GB, free: 42.33 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.244e-05/7.871, allocations: 5.156 kB / 3.288 GB, free: 42.33 MB / 410.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.003912/7.875, allocations: 1.247 MB / 3.29 GB, free: 41.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/7.875, allocations: 10.72 kB / 3.29 GB, free: 41.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001584/7.876, allocations: 161.1 kB / 3.29 GB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004381/7.877, allocations: 315.5 kB / 3.29 GB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.718e-05/7.877, allocations: 32.44 kB / 3.29 GB, free: 41.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.018e-05/7.877, allocations: 28.58 kB / 3.29 GB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/7.878, allocations: 0.5452 MB / 3.291 GB, free: 41.01 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/7.878, allocations: 3.812 kB / 3.291 GB, free: 41.01 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.45e-05/7.878, allocations: 20.53 kB / 3.291 GB, free: 41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/7.878, allocations: 6.969 kB / 3.291 GB, free: 41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/7.88, allocations: 475.1 kB / 3.291 GB, free: 40.88 MB / 410.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.002969/7.883, allocations: 2.619 MB / 3.294 GB, free: 38.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001332/7.884, allocations: 429.8 kB / 3.294 GB, free: 38.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/7.885, allocations: 139.7 kB / 3.294 GB, free: 38.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007556/7.885, allocations: 0.5535 MB / 3.295 GB, free: 37.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/7.885, allocations: 44.52 kB / 3.295 GB, free: 37.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=30): time 2.874e-06/7.885, allocations: 3.094 kB / 3.295 GB, free: 37.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.004218/7.89, allocations: 1.236 MB / 3.296 GB, free: 37.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.488e-05/7.89, allocations: 62.73 kB / 3.296 GB, free: 37.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/7.89, allocations: 219.8 kB / 3.296 GB, free: 37.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/7.89, allocations: 33.52 kB / 3.296 GB, free: 37.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.383e-05/7.89, allocations: 248.2 kB / 3.296 GB, free: 36.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.038e-05/7.89, allocations: 115.4 kB / 3.297 GB, free: 36.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/7.89, allocations: 8 kB / 3.297 GB, free: 36.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.731e-05/7.89, allocations: 326.2 kB / 3.297 GB, free: 36.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/7.891, allocations: 103.9 kB / 3.297 GB, free: 36.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002692/7.891, allocations: 197.6 kB / 3.297 GB, free: 36.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002776/7.891, allocations: 133.9 kB / 3.297 GB, free: 36.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.969e-06/7.891, allocations: 6.375 kB / 3.297 GB, free: 36.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009553/7.892, allocations: 416.2 kB / 3.298 GB, free: 36.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/7.892, allocations: 7.578 kB / 3.298 GB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/7.892, allocations: 3.5 kB / 3.298 GB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004444/7.893, allocations: 78.34 kB / 3.298 GB, free: 35.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004328/7.893, allocations: 91.62 kB / 3.298 GB, free: 35.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/7.894, allocations: 2.384 MB / 3.3 GB, free: 33.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004839/7.895, allocations: 47.27 kB / 3.3 GB, free: 33.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.432e-05/7.895, allocations: 24.02 kB / 3.3 GB, free: 33.56 MB / 410.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 (ambient.medium.phase,volume.medium.phase,fixedMassFlowRate.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.0001187/7.895, allocations: 140.2 kB / 3.3 GB, free: 33.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.351e-05/7.895, allocations: 27.16 kB / 3.3 GB, free: 33.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001667/7.897, allocations: 1.337 MB / 3.302 GB, free: 32.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/7.897, allocations: 17.5 kB / 3.302 GB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.92e-06/7.897, allocations: 3 kB / 3.302 GB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00132/7.898, allocations: 1.432 MB / 3.303 GB, free: 31.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/7.901, allocations: 2.096 MB / 3.305 GB, free: 30.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.182e-06/7.901, allocations: 0 / 3.305 GB, free: 30.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000505/7.901, allocations: 105.7 kB / 3.305 GB, free: 30.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003835/7.902, allocations: 71.97 kB / 3.305 GB, free: 30.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/7.902, allocations: 10.89 kB / 3.305 GB, free: 30.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000334/7.902, allocations: 0.5917 MB / 3.306 GB, free: 30.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.667e-06/7.902, allocations: 0 / 3.306 GB, free: 30.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/7.904, allocations: 1.175 MB / 3.307 GB, free: 29.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/7.904, allocations: 167.9 kB / 3.307 GB, free: 29.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.126e-05/7.904, allocations: 16.36 kB / 3.307 GB, free: 29.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004112/7.904, allocations: 43.75 kB / 3.307 GB, free: 29.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.865e-05/7.904, allocations: 35.91 kB / 3.307 GB, free: 29.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.774e-05/7.905, allocations: 19.5 kB / 3.307 GB, free: 29.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002714/7.905, allocations: 228 kB / 3.308 GB, free: 29.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.6e-07/7.905, allocations: 0 / 3.308 GB, free: 29.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003942/7.909, allocations: 0.8934 MB / 3.308 GB, free: 29.02 MB / 410.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.007005/7.916, allocations: 1.324 MB / 3.31 GB, free: 28.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001256/7.917, allocations: 0.5844 MB / 3.31 GB, free: 28.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.513e-06/7.917, allocations: 0 / 3.31 GB, free: 28.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005645/7.918, allocations: 375.5 kB / 3.311 GB, free: 28.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/7.919, allocations: 178.7 kB / 3.311 GB, free: 28.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001701/7.921, allocations: 0.9898 MB / 3.312 GB, free: 27.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/7.921, allocations: 0.891 MB / 3.313 GB, free: 27.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/7.921, allocations: 40.81 kB / 3.313 GB, free: 27.08 MB / 410.7 MB Notification: Performance of SimCode: time 2.048e-06/7.921, allocations: 0 / 3.313 GB, free: 27.08 MB / 410.7 MB Notification: Performance of Templates: time 0.04119/7.962, allocations: 27.61 MB / 3.34 GB, free: 19.4 MB / 410.7 MB