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.703/1.703, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.611e-05/3.632e-05, allocations: 7.938 kB / 225 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2164, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.973/6.189, allocations: 2.466 GB / 2.724 GB, free: 62.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/6.19, allocations: 89.81 kB / 2.724 GB, free: 62.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.592/7.782, allocations: 418.9 MB / 3.133 GB, free: 17.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.344e-06/7.782, allocations: 0 / 3.133 GB, free: 17.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.283e-05/7.782, allocations: 4 kB / 3.133 GB, free: 17.24 MB / 378.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.003959/7.786, allocations: 1.231 MB / 3.134 GB, free: 15.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/7.786, allocations: 8.031 kB / 3.134 GB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001655/7.788, allocations: 160.2 kB / 3.134 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005929/7.788, allocations: 315.9 kB / 3.135 GB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.13e-05/7.789, allocations: 32.78 kB / 3.135 GB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.406e-05/7.789, allocations: 28 kB / 3.135 GB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/7.79, allocations: 0.5405 MB / 3.135 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/7.79, allocations: 0 / 3.135 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.828e-05/7.79, allocations: 14.97 kB / 3.135 GB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/7.79, allocations: 8 kB / 3.135 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/7.792, allocations: 472.1 kB / 3.136 GB, free: 14.37 MB / 378.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.004219/7.796, allocations: 2.633 MB / 3.138 GB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/7.798, allocations: 415.9 kB / 3.139 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003153/7.798, allocations: 128.8 kB / 3.139 GB, free: 10.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001027/7.799, allocations: 0.5604 MB / 3.139 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/7.799, allocations: 37.34 kB / 3.139 GB, free: 10.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 3.203e-06/7.799, allocations: 0 / 3.139 GB, free: 10.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.00491/7.804, allocations: 1.242 MB / 3.141 GB, free: 8.996 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/7.804, allocations: 59.41 kB / 3.141 GB, free: 8.926 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003578/7.805, allocations: 228.1 kB / 3.141 GB, free: 8.703 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/7.805, allocations: 33.7 kB / 3.141 GB, free: 8.664 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/7.805, allocations: 245 kB / 3.141 GB, free: 8.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/7.805, allocations: 116.3 kB / 3.141 GB, free: 8.309 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.529e-05/7.805, allocations: 4 kB / 3.141 GB, free: 8.305 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/7.805, allocations: 326.8 kB / 3.142 GB, free: 7.977 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/7.806, allocations: 108 kB / 3.142 GB, free: 7.875 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003632/7.806, allocations: 194.6 kB / 3.142 GB, free: 7.645 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003245/7.806, allocations: 122.6 kB / 3.142 GB, free: 7.531 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.421e-06/7.806, allocations: 0 / 3.142 GB, free: 7.531 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001146/7.807, allocations: 414 kB / 3.142 GB, free: 7.113 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/7.808, allocations: 4 kB / 3.142 GB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/7.808, allocations: 7.953 kB / 3.142 GB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004834/7.808, allocations: 89.84 kB / 3.142 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004898/7.809, allocations: 95.83 kB / 3.143 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002384/7.811, allocations: 2.375 MB / 3.145 GB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005754/7.812, allocations: 51.16 kB / 3.145 GB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.789e-05/7.812, allocations: 19.98 kB / 3.145 GB, free: 4.297 MB / 378.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.0001741/7.812, allocations: 128.4 kB / 3.145 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.807e-05/7.812, allocations: 27.72 kB / 3.145 GB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002209/7.814, allocations: 1.343 MB / 3.146 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.93e-05/7.814, allocations: 19.97 kB / 3.146 GB, free: 2.773 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.479e-06/7.814, allocations: 0 / 3.146 GB, free: 2.773 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001926/7.816, allocations: 1.435 MB / 3.148 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2754/8.092, allocations: 2.087 MB / 3.15 GB, free: 49.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/8.092, allocations: 1.234 kB / 3.15 GB, free: 49.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006289/8.092, allocations: 107.9 kB / 3.15 GB, free: 49.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000439/8.093, allocations: 70.89 kB / 3.15 GB, free: 49.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.603e-05/8.093, allocations: 10.84 kB / 3.15 GB, free: 49.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003538/8.093, allocations: 0.5902 MB / 3.151 GB, free: 49.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.645e-06/8.093, allocations: 5.375 kB / 3.151 GB, free: 49.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/8.095, allocations: 1.168 MB / 3.152 GB, free: 48.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/8.095, allocations: 171.5 kB / 3.152 GB, free: 48.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.983e-05/8.095, allocations: 6.969 kB / 3.152 GB, free: 48.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004765/8.096, allocations: 43.02 kB / 3.152 GB, free: 48.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/8.096, allocations: 35.75 kB / 3.152 GB, free: 48.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/8.096, allocations: 16.09 kB / 3.152 GB, free: 48.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003017/8.096, allocations: 232.9 kB / 3.152 GB, free: 48.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.57e-07/8.096, allocations: 2.406 kB / 3.152 GB, free: 48.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003602/8.1, allocations: 0.8852 MB / 3.153 GB, free: 48.77 MB / 378.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.006427/8.106, allocations: 1.336 MB / 3.154 GB, free: 48.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/8.107, allocations: 0.566 MB / 3.155 GB, free: 48.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.228e-06/8.107, allocations: 3.938 kB / 3.155 GB, free: 48.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006248/8.108, allocations: 372 kB / 3.155 GB, free: 48.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/8.109, allocations: 184.4 kB / 3.155 GB, free: 48.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/8.111, allocations: 0.9871 MB / 3.156 GB, free: 48.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/8.112, allocations: 0.8855 MB / 3.157 GB, free: 47.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/8.112, allocations: 38.56 kB / 3.157 GB, free: 47.62 MB / 378.7 MB Notification: Performance of SimCode: time 1.632e-06/8.112, allocations: 1.531 kB / 3.157 GB, free: 47.62 MB / 378.7 MB Notification: Performance of Templates: time 0.04185/8.154, allocations: 27.51 MB / 3.184 GB, free: 46.34 MB / 378.7 MB