Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 224.7 MB / 241.1 MB, free: 1.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.581e-05/2.58e-05, allocations: 0 / 294.5 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 50.41 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01971/0.1307, allocations: 10.63 MB / 355.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01788/0.1486, allocations: 9.217 MB / 364.8 MB, free: 5.051 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.1488, allocations: 0 / 364.8 MB, free: 5.051 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003175/0.1491, allocations: 63.66 kB / 364.9 MB, free: 4.988 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002698/0.1494, allocations: 67.81 kB / 364.9 MB, free: 4.922 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01342/0.1629, allocations: 3.47 MB / 368.4 MB, free: 1.441 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.1633, allocations: 127.7 kB / 368.5 MB, free: 1.316 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.095e-05/0.1633, allocations: 7.984 kB / 368.5 MB, free: 1.309 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006156/0.164, allocations: 187.3 kB / 368.7 MB, free: 1.125 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.1641, allocations: 55.84 kB / 368.8 MB, free: 1.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01763/0.1818, allocations: 6.345 MB / 375.1 MB, free: 10.72 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002437/0.1843, allocations: 388 kB / 375.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.1844, allocations: 23.92 kB / 375.5 MB, free: 10.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.142e-05/0.1845, allocations: 16 kB / 375.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007006/0.1916, allocations: 2.386 MB / 377.9 MB, free: 7.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1916, allocations: 0 / 377.9 MB, free: 7.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.849e-06/0.1916, allocations: 11.92 kB / 377.9 MB, free: 7.898 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.1917, allocations: 0 / 377.9 MB, free: 7.898 MB / 314.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.007325/0.199, allocations: 1.104 MB / 379 MB, free: 6.742 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.1991, allocations: 8.031 kB / 379 MB, free: 6.734 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007452/0.1998, allocations: 55.77 kB / 379.1 MB, free: 6.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.2002, allocations: 218.8 kB / 379.3 MB, free: 6.426 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.2003, allocations: 16.23 kB / 379.3 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.27e-05/0.2004, allocations: 16 kB / 379.3 MB, free: 6.395 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002164/0.2025, allocations: 390.5 kB / 379.7 MB, free: 5.984 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/0.2026, allocations: 7.938 kB / 379.7 MB, free: 5.977 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.522e-05/0.2027, allocations: 7.984 kB / 379.7 MB, free: 5.969 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.2027, allocations: 4 kB / 379.7 MB, free: 5.965 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002586/0.2053, allocations: 364.3 kB / 380.1 MB, free: 5.609 MB / 314.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.00218/0.2075, allocations: 1.192 MB / 381.3 MB, free: 4.316 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.2089, allocations: 296.3 kB / 381.6 MB, free: 4 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4443/0.6533, allocations: 47.86 MB / 429.4 MB, free: 30.08 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.6534, allocations: 37.19 kB / 429.5 MB, free: 30.04 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.435e-06/0.6534, allocations: 0 / 429.5 MB, free: 30.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.01101/0.6644, allocations: 1.614 MB / 431.1 MB, free: 28.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.6645, allocations: 110.4 kB / 431.2 MB, free: 28.29 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.6646, allocations: 103.2 kB / 431.3 MB, free: 28.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.271e-05/0.6647, allocations: 33.7 kB / 431.3 MB, free: 28.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.933e-05/0.6648, allocations: 187.3 kB / 431.5 MB, free: 27.96 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.6649, allocations: 117.7 kB / 431.6 MB, free: 27.85 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/0.6649, allocations: 8 kB / 431.6 MB, free: 27.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.676e-05/0.665, allocations: 322.8 kB / 432 MB, free: 27.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006367/0.6657, allocations: 135.9 kB / 432.1 MB, free: 27.38 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006584/0.6663, allocations: 202.8 kB / 432.3 MB, free: 27.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007005/0.6671, allocations: 150.8 kB / 432.4 MB, free: 27.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.6671, allocations: 0 / 432.4 MB, free: 27.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00171/0.6688, allocations: 431.2 kB / 432.9 MB, free: 26.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.6689, allocations: 8 kB / 432.9 MB, free: 26.58 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.6689, allocations: 0 / 432.9 MB, free: 26.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003302/0.6692, allocations: 36.84 kB / 432.9 MB, free: 26.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008287/0.6701, allocations: 94.14 kB / 433 MB, free: 26.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004025/0.6705, allocations: 0.5525 MB / 433.5 MB, free: 25.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005302/0.671, allocations: 25.86 kB / 433.6 MB, free: 25.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.536e-05/0.6711, allocations: 19.98 kB / 433.6 MB, free: 25.83 MB / 330.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.000188/0.6713, allocations: 138.6 kB / 433.7 MB, free: 25.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.6714, allocations: 15.86 kB / 433.7 MB, free: 25.67 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003049/0.6745, allocations: 1.464 MB / 435.2 MB, free: 24.19 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-05/0.6746, allocations: 19.97 kB / 435.2 MB, free: 24.17 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.6746, allocations: 0.875 kB / 435.2 MB, free: 24.17 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.6746, allocations: 4 kB / 435.2 MB, free: 24.17 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/0.6787, allocations: 1.983 MB / 437.2 MB, free: 22.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/0.6788, allocations: 0 / 437.2 MB, free: 22.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008333/0.6796, allocations: 91.98 kB / 437.3 MB, free: 22.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004623/0.6801, allocations: 72.42 kB / 437.4 MB, free: 21.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-05/0.6802, allocations: 19.48 kB / 437.4 MB, free: 21.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003972/0.6806, allocations: 0.5874 MB / 438 MB, free: 21.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.6806, allocations: 4.031 kB / 438 MB, free: 21.33 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.6838, allocations: 1.779 MB / 439.8 MB, free: 19.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.684, allocations: 129.5 kB / 439.9 MB, free: 19.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.879e-05/0.6841, allocations: 12.41 kB / 439.9 MB, free: 19.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005908/0.6847, allocations: 19.98 kB / 439.9 MB, free: 19.31 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.44e-05/0.6848, allocations: 31.95 kB / 440 MB, free: 19.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-05/0.6848, allocations: 23.98 kB / 440 MB, free: 19.26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.203e-05/0.6849, allocations: 91.22 kB / 440.1 MB, free: 19.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6849, allocations: 0 / 440.1 MB, free: 19.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003042/0.688, allocations: 0.9163 MB / 441 MB, free: 18.33 MB / 330.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.006296/0.6943, allocations: 1.136 MB / 442.1 MB, free: 17.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001983/0.6963, allocations: 0.6145 MB / 442.7 MB, free: 16.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.6964, allocations: 0 / 442.7 MB, free: 16.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.6977, allocations: 0.5093 MB / 443.2 MB, free: 16.22 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000966/0.6987, allocations: 86.12 kB / 443.3 MB, free: 16.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003621/0.7023, allocations: 1.578 MB / 444.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.7027, allocations: 0.8295 MB / 445.7 MB, free: 13.67 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.703, allocations: 35.42 kB / 445.8 MB, free: 13.63 MB / 330.7 MB Notification: Performance of SimCode: time 1.513e-06/0.703, allocations: 0 / 445.8 MB, free: 13.63 MB / 330.7 MB Notification: Performance of Templates: time 0.05077/0.7538, allocations: 23.53 MB / 469.3 MB, free: 6.086 MB / 346.7 MB