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.2_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.825/1.825, allocations: 194.9 MB / 210.6 MB, free: 8.34 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.646e-05/3.638e-05, allocations: 4 kB / 258.8 MB, free: 8.07 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2989, allocations: 44.5 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01795/0.3169, allocations: 10.59 MB / 313.9 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01644/0.3334, allocations: 9.225 MB / 323.1 MB, free: 9.758 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.3336, allocations: 4 kB / 323.1 MB, free: 9.754 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003007/0.3339, allocations: 55.73 kB / 323.2 MB, free: 9.699 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.3342, allocations: 71.75 kB / 323.2 MB, free: 9.629 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01271/0.3469, allocations: 3.47 MB / 326.7 MB, free: 6.148 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003798/0.3473, allocations: 131.7 kB / 326.8 MB, free: 6.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.081e-05/0.3474, allocations: 4 kB / 326.8 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005867/0.3479, allocations: 175.4 kB / 327 MB, free: 5.844 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.3482, allocations: 59.83 kB / 327.1 MB, free: 5.785 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01703/0.3652, allocations: 6.345 MB / 333.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002234/0.3675, allocations: 391.9 kB / 333.8 MB, free: 15.05 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.613e-05/0.3676, allocations: 23.92 kB / 333.8 MB, free: 15.02 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.903e-05/0.3677, allocations: 16 kB / 333.8 MB, free: 15.01 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006302/0.374, allocations: 2.382 MB / 336.2 MB, free: 12.62 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.374, allocations: 0 / 336.2 MB, free: 12.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3741, allocations: 0 / 336.2 MB, free: 12.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.3741, allocations: 0 / 336.2 MB, free: 12.62 MB / 282.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.006918/0.381, allocations: 1.104 MB / 337.3 MB, free: 11.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.3811, allocations: 8.031 kB / 337.3 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006557/0.3817, allocations: 55.86 kB / 337.4 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.3821, allocations: 218.9 kB / 337.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.3821, allocations: 8.281 kB / 337.6 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.696e-05/0.3822, allocations: 23.91 kB / 337.6 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001979/0.3842, allocations: 386.5 kB / 338 MB, free: 10.72 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.3842, allocations: 7.953 kB / 338 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.393e-05/0.3843, allocations: 12 kB / 338 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.3843, allocations: 4 kB / 338 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.3867, allocations: 372.2 kB / 338.4 MB, free: 10.33 MB / 282.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.001895/0.3886, allocations: 1.196 MB / 339.6 MB, free: 9.035 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/0.39, allocations: 292.3 kB / 339.9 MB, free: 8.723 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1686/0.5586, allocations: 47.86 MB / 387.7 MB, free: 3.238 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.433e-05/0.5587, allocations: 39.12 kB / 387.8 MB, free: 3.191 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.995e-06/0.5587, allocations: 0 / 387.8 MB, free: 3.191 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.01135/0.5701, allocations: 1.617 MB / 389.4 MB, free: 1.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.21e-05/0.5702, allocations: 114.8 kB / 389.5 MB, free: 1.383 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.5703, allocations: 105 kB / 389.6 MB, free: 1.273 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/0.5703, allocations: 33.7 kB / 389.6 MB, free: 1.234 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.315e-05/0.5704, allocations: 108.4 kB / 389.7 MB, free: 1.125 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.5706, allocations: 114.4 kB / 389.9 MB, free: 1.012 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.832e-05/0.5706, allocations: 16 kB / 389.9 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5708, allocations: 322.8 kB / 390.2 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006827/0.5715, allocations: 135.9 kB / 390.3 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007541/0.5722, allocations: 198.7 kB / 390.5 MB, free: 328 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000718/0.573, allocations: 151.9 kB / 390.7 MB, free: 176 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.573, allocations: 0 / 390.7 MB, free: 176 kB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00187/0.5749, allocations: 438.1 kB / 391.1 MB, free: 15.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.5749, allocations: 8 kB / 391.1 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.5749, allocations: 0 / 391.1 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003227/0.5753, allocations: 40.83 kB / 391.1 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008709/0.5761, allocations: 91.88 kB / 391.2 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004788/0.5766, allocations: 0.5485 MB / 391.8 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005124/0.5772, allocations: 31.88 kB / 391.8 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-05/0.5772, allocations: 19.92 kB / 391.8 MB, free: 14.96 MB / 346.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.0001976/0.5775, allocations: 133.8 kB / 392 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.5776, allocations: 16 kB / 392 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003521/0.5811, allocations: 1.462 MB / 393.4 MB, free: 13.33 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.363e-05/0.5812, allocations: 15.97 kB / 393.5 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.5812, allocations: 7.953 kB / 393.5 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.5812, allocations: 0 / 393.5 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004636/0.5859, allocations: 1.982 MB / 395.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.5859, allocations: 0 / 395.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008216/0.5868, allocations: 88.38 kB / 395.5 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004757/0.5872, allocations: 76.69 kB / 395.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/0.5873, allocations: 8 kB / 395.6 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004975/0.5878, allocations: 0.5914 MB / 396.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.5879, allocations: 7.922 kB / 396.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003691/0.5916, allocations: 1.764 MB / 398 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.5917, allocations: 128.5 kB / 398.1 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.146e-05/0.5918, allocations: 8 kB / 398.1 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00063/0.5925, allocations: 27.92 kB / 398.1 MB, free: 8.445 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.8e-05/0.5926, allocations: 31.91 kB / 398.2 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.998e-05/0.5927, allocations: 19.98 kB / 398.2 MB, free: 8.395 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.638e-05/0.5928, allocations: 99.2 kB / 398.3 MB, free: 8.297 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5928, allocations: 0 / 398.3 MB, free: 8.297 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0033/0.5961, allocations: 0.9097 MB / 399.2 MB, free: 7.387 MB / 346.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.006572/0.6027, allocations: 1.146 MB / 400.3 MB, free: 6.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002125/0.6049, allocations: 0.5973 MB / 400.9 MB, free: 5.637 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.6049, allocations: 0 / 400.9 MB, free: 5.637 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.6062, allocations: 0.5174 MB / 401.5 MB, free: 5.117 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009547/0.6072, allocations: 71.92 kB / 401.5 MB, free: 5.047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003934/0.6112, allocations: 1.552 MB / 403.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.6117, allocations: 0.8256 MB / 403.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006939/0.6124, allocations: 137.7 kB / 404 MB, free: 2.469 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.6126, allocations: 35.41 kB / 404.1 MB, free: 2.434 MB / 346.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6126, allocations: 288 / 404.1 MB, free: 2.434 MB / 346.7 MB Notification: Performance of Templates: time 0.3035/0.9162, allocations: 26.36 MB / 430.4 MB, free: 112 MB / 362.7 MB