Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.67/1.67, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.587e-05/3.586e-05, allocations: 4 kB / 228.1 MB, free: 7.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 38.76 MB / 266.9 MB, free: 0.4961 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.02569/0.1278, allocations: 10.55 MB / 277.4 MB, free: 5.902 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02215/0.15, allocations: 9.186 MB / 286.6 MB, free: 12.7 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.1503, allocations: 0 / 286.6 MB, free: 12.7 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003689/0.1507, allocations: 55.73 kB / 286.7 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.151, allocations: 71.75 kB / 286.8 MB, free: 12.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01876/0.1698, allocations: 3.427 MB / 290.2 MB, free: 9.133 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004473/0.1703, allocations: 127.8 kB / 290.3 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.978e-05/0.1703, allocations: 0 / 290.3 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007345/0.1711, allocations: 183.3 kB / 290.5 MB, free: 8.828 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.1713, allocations: 55.83 kB / 290.5 MB, free: 8.773 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02348/0.1948, allocations: 6.255 MB / 296.8 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003331/0.1982, allocations: 376 kB / 297.2 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.1984, allocations: 23.92 kB / 297.2 MB, free: 2.121 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.1985, allocations: 16 kB / 297.2 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2293/0.4278, allocations: 2.342 MB / 299.5 MB, free: 10 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.4279, allocations: 0.7812 kB / 299.5 MB, free: 10 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4279, allocations: 0 / 299.5 MB, free: 10 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.63e-05/0.428, allocations: 0 / 299.5 MB, free: 10 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.007356/0.4353, allocations: 1.1 MB / 300.6 MB, free: 9.418 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.4354, allocations: 9.625 kB / 300.7 MB, free: 9.418 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007729/0.4362, allocations: 55.64 kB / 300.7 MB, free: 9.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.4366, allocations: 223.4 kB / 300.9 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.459e-05/0.4367, allocations: 10.97 kB / 300.9 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.618e-05/0.4367, allocations: 15.08 kB / 301 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00221/0.439, allocations: 391.8 kB / 301.3 MB, free: 9.109 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.439, allocations: 0.5625 kB / 301.3 MB, free: 9.109 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.769e-05/0.4391, allocations: 7.188 kB / 301.3 MB, free: 9.109 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.4391, allocations: 5.562 kB / 301.3 MB, free: 9.109 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/0.4419, allocations: 367.5 kB / 301.7 MB, free: 9.109 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.001904/0.4439, allocations: 1.199 MB / 302.9 MB, free: 8.121 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.4453, allocations: 287 kB / 303.2 MB, free: 8.047 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1665/0.6118, allocations: 47.79 MB / 351 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/0.6119, allocations: 36.81 kB / 351 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.424e-06/0.6119, allocations: 4 kB / 351 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.01168/0.6236, allocations: 1.613 MB / 352.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.657e-05/0.6237, allocations: 110.9 kB / 352.7 MB, free: 15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.6239, allocations: 115.5 kB / 352.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.731e-05/0.624, allocations: 29.02 kB / 352.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.202e-05/0.6241, allocations: 107.8 kB / 353 MB, free: 14.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.6242, allocations: 121.8 kB / 353.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.4e-05/0.6243, allocations: 6.188 kB / 353.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.6244, allocations: 324.8 kB / 353.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007045/0.6251, allocations: 142.7 kB / 353.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000731/0.6259, allocations: 207 kB / 353.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007102/0.6266, allocations: 155.9 kB / 353.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.6266, allocations: 0 / 353.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001861/0.6285, allocations: 426.9 kB / 354.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.6286, allocations: 4 kB / 354.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.6286, allocations: 9.922 kB / 354.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003586/0.6289, allocations: 43.42 kB / 354.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008626/0.6298, allocations: 89.84 kB / 354.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005524/0.6304, allocations: 0.5394 MB / 355 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005589/0.631, allocations: 31.78 kB / 355.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.1e-05/0.6311, allocations: 15.62 kB / 355.1 MB, free: 12.94 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 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 prepare postOptimizeDAE: time 0.0002207/0.6313, allocations: 141.5 kB / 355.2 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.6314, allocations: 15.81 kB / 355.2 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/0.6349, allocations: 1.464 MB / 356.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.905e-05/0.635, allocations: 19.47 kB / 356.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.635, allocations: 0 / 356.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.635, allocations: 9.625 kB / 356.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00477/0.6398, allocations: 1.984 MB / 358.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/0.6399, allocations: 4 kB / 358.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008289/0.6407, allocations: 89.61 kB / 358.8 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004954/0.6412, allocations: 69.3 kB / 358.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.845e-05/0.6413, allocations: 18.67 kB / 358.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005311/0.6418, allocations: 0.5841 MB / 359.5 MB, free: 9.664 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.6419, allocations: 6.562 kB / 359.5 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003688/0.6456, allocations: 1.771 MB / 361.2 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.6458, allocations: 128.4 kB / 361.4 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.023e-05/0.6459, allocations: 7.125 kB / 361.4 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006091/0.6465, allocations: 30.2 kB / 361.4 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.787e-05/0.6466, allocations: 29.53 kB / 361.4 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.725e-05/0.6467, allocations: 15.67 kB / 361.4 MB, free: 8.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.296e-05/0.6468, allocations: 94.58 kB / 361.5 MB, free: 8.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6468, allocations: 0 / 361.5 MB, free: 8.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00352/0.6503, allocations: 0.9065 MB / 362.4 MB, free: 7.207 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.00646/0.6568, allocations: 1.133 MB / 363.6 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.659, allocations: 0.6027 MB / 364.2 MB, free: 5.797 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.659, allocations: 0 / 364.2 MB, free: 5.797 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001264/0.6603, allocations: 0.5113 MB / 364.7 MB, free: 5.512 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009764/0.6613, allocations: 72.39 kB / 364.8 MB, free: 5.453 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003955/0.6652, allocations: 1.555 MB / 366.3 MB, free: 4.078 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.6658, allocations: 0.8217 MB / 367.1 MB, free: 3.23 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007112/0.6665, allocations: 137.8 kB / 367.3 MB, free: 3.098 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.6668, allocations: 34.98 kB / 367.3 MB, free: 3.066 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.6668, allocations: 0 / 367.3 MB, free: 3.066 MB / 298.7 MB Notification: Performance of Templates: time 0.06049/0.7273, allocations: 26.22 MB / 393.5 MB, free: 8.98 MB / 330.7 MB