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_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.1 MB / 186.3 MB, free: 1.426 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.072e-05/3.081e-05, allocations: 2.188 kB / 228.1 MB, free: 8.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08567/0.08573, allocations: 38.77 MB / 266.9 MB, free: 1.148 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01907/0.1049, allocations: 10.54 MB / 277.4 MB, free: 6.559 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01725/0.1222, allocations: 9.17 MB / 286.6 MB, free: 13.37 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.1224, allocations: 0 / 286.6 MB, free: 13.37 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000329/0.1227, allocations: 55.72 kB / 286.6 MB, free: 13.31 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002704/0.123, allocations: 75.75 kB / 286.7 MB, free: 13.24 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01343/0.1365, allocations: 3.427 MB / 290.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00035/0.1368, allocations: 119.8 kB / 290.3 MB, free: 9.684 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.256e-05/0.1369, allocations: 3.984 kB / 290.3 MB, free: 9.68 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005776/0.1375, allocations: 183.3 kB / 290.5 MB, free: 9.5 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.1377, allocations: 55.84 kB / 290.5 MB, free: 9.445 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01751/0.1552, allocations: 6.255 MB / 296.8 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002384/0.1576, allocations: 376 kB / 297.1 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.1578, allocations: 23.92 kB / 297.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.288e-05/0.1579, allocations: 16 kB / 297.2 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006806/0.1647, allocations: 2.351 MB / 299.5 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1648, allocations: 0 / 299.5 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd: time 5.601e-06/0.1648, allocations: 3.984 kB / 299.5 MB, free: 428 kB / 250.7 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.1648, allocations: 0 / 299.5 MB, free: 428 kB / 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.2226/0.3874, allocations: 1.097 MB / 300.6 MB, free: 30.22 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.3874, allocations: 9 kB / 300.6 MB, free: 30.22 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007923/0.3882, allocations: 52.36 kB / 300.7 MB, free: 30.21 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003544/0.3886, allocations: 227.1 kB / 300.9 MB, free: 30.01 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-05/0.3887, allocations: 12.53 kB / 300.9 MB, free: 30.01 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.018e-05/0.3888, allocations: 14.69 kB / 300.9 MB, free: 30.01 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/0.3909, allocations: 395.8 kB / 301.3 MB, free: 29.91 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.883e-05/0.391, allocations: 1.375 kB / 301.3 MB, free: 29.91 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.737e-05/0.391, allocations: 7.203 kB / 301.3 MB, free: 29.91 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.3911, allocations: 2.75 kB / 301.3 MB, free: 29.91 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00261/0.3937, allocations: 372.2 kB / 301.7 MB, free: 29.9 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.001997/0.3957, allocations: 1.187 MB / 302.9 MB, free: 28.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.3973, allocations: 290.3 kB / 303.2 MB, free: 28.83 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1625/0.5598, allocations: 47.8 MB / 351 MB, free: 20 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.517e-05/0.56, allocations: 44.38 kB / 351 MB, free: 15.97 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.274e-06/0.56, allocations: 0 / 351 MB, free: 15.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.01203/0.572, allocations: 1.612 MB / 352.6 MB, free: 14.31 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.983e-05/0.5722, allocations: 106.8 kB / 352.7 MB, free: 14.18 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.5723, allocations: 112.9 kB / 352.8 MB, free: 14.07 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.582e-05/0.5724, allocations: 33.77 kB / 352.9 MB, free: 14.03 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.5725, allocations: 175.6 kB / 353 MB, free: 13.86 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.5727, allocations: 117 kB / 353.1 MB, free: 13.74 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.745e-05/0.5727, allocations: 8 kB / 353.2 MB, free: 13.73 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.5729, allocations: 330.8 kB / 353.5 MB, free: 13.4 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007191/0.5736, allocations: 135.9 kB / 353.6 MB, free: 13.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007644/0.5744, allocations: 202.6 kB / 353.8 MB, free: 13.05 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007479/0.5752, allocations: 156.4 kB / 354 MB, free: 12.89 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5752, allocations: 4 kB / 354 MB, free: 12.89 MB / 282.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001999/0.5772, allocations: 426 kB / 354.4 MB, free: 12.46 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.5773, allocations: 8 kB / 354.4 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.5773, allocations: 0 / 354.4 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003524/0.5777, allocations: 40.83 kB / 354.4 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008891/0.5786, allocations: 96.91 kB / 354.5 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005783/0.5792, allocations: 0.5484 MB / 355.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005609/0.5798, allocations: 23.89 kB / 355.1 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.096e-05/0.5799, allocations: 16.09 kB / 355.1 MB, free: 11.71 MB / 282.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.0002448/0.5801, allocations: 145.7 kB / 355.3 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.5803, allocations: 11.91 kB / 355.3 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003775/0.5841, allocations: 1.455 MB / 356.7 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.171e-05/0.5841, allocations: 19.97 kB / 356.7 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.5842, allocations: 8.031 kB / 356.7 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.5842, allocations: 5.062 kB / 356.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004947/0.5892, allocations: 1.988 MB / 358.7 MB, free: 7.996 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.137e-05/0.5892, allocations: 0 / 358.7 MB, free: 7.996 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008325/0.5901, allocations: 91.8 kB / 358.8 MB, free: 7.906 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004941/0.5906, allocations: 80.73 kB / 358.9 MB, free: 7.824 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.619e-05/0.5907, allocations: 13.23 kB / 358.9 MB, free: 7.812 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005521/0.5912, allocations: 0.5836 MB / 359.5 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.5913, allocations: 0 / 359.5 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003973/0.5952, allocations: 1.77 MB / 361.3 MB, free: 5.359 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.5955, allocations: 124.5 kB / 361.4 MB, free: 5.219 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.981e-05/0.5956, allocations: 8 kB / 361.4 MB, free: 5.211 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006556/0.5962, allocations: 24.02 kB / 361.4 MB, free: 5.188 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.5964, allocations: 40.42 kB / 361.5 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-05/0.5964, allocations: 19.98 kB / 361.5 MB, free: 5.129 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.83e-05/0.5965, allocations: 91.27 kB / 361.6 MB, free: 5.039 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5966, allocations: 0 / 361.6 MB, free: 5.039 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.003481/0.6, allocations: 0.9009 MB / 362.5 MB, free: 4.176 MB / 282.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.006806/0.6069, allocations: 1.129 MB / 363.6 MB, free: 3.148 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002253/0.6092, allocations: 0.605 MB / 364.2 MB, free: 2.547 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/0.6093, allocations: 448 / 364.2 MB, free: 2.547 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001412/0.6107, allocations: 0.5162 MB / 364.7 MB, free: 2.027 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009589/0.6117, allocations: 67 kB / 364.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/0.6159, allocations: 1.582 MB / 366.4 MB, free: 352 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.6165, allocations: 0.8295 MB / 367.2 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002804/0.6168, allocations: 35.41 kB / 367.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6168, allocations: 0 / 367.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of Templates: time 0.058/0.6748, allocations: 23.33 MB / 390.6 MB, free: 8.098 MB / 314.7 MB