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_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.987/1.987, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.09e-05/3.096e-05, allocations: 7.906 kB / 258.8 MB, free: 8.723 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3136, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01961/0.3333, allocations: 10.58 MB / 313.9 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01749/0.3508, allocations: 9.229 MB / 323.1 MB, free: 9.855 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.351, allocations: 0 / 323.1 MB, free: 9.855 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003012/0.3514, allocations: 51.73 kB / 323.1 MB, free: 9.805 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002566/0.3516, allocations: 71.81 kB / 323.2 MB, free: 9.734 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01351/0.3652, allocations: 3.47 MB / 326.7 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.3655, allocations: 131.7 kB / 326.8 MB, free: 6.125 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.969e-05/0.3656, allocations: 7.984 kB / 326.8 MB, free: 6.117 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005897/0.3662, allocations: 175.4 kB / 327 MB, free: 5.945 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.3664, allocations: 51.84 kB / 327 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01792/0.3843, allocations: 6.349 MB / 333.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002505/0.3869, allocations: 391.9 kB / 333.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.387, allocations: 27.86 kB / 333.8 MB, free: 15.13 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.434e-05/0.3871, allocations: 16 kB / 333.8 MB, free: 15.11 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00679/0.3939, allocations: 2.378 MB / 336.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.394, allocations: 0 / 336.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.394, allocations: 0 / 336.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.394, allocations: 0 / 336.2 MB, free: 12.73 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.007244/0.4013, allocations: 1.108 MB / 337.3 MB, free: 11.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.4014, allocations: 8.031 kB / 337.3 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007161/0.4021, allocations: 55.86 kB / 337.4 MB, free: 11.51 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.4025, allocations: 214.9 kB / 337.6 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.278e-05/0.4026, allocations: 12.28 kB / 337.6 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.207e-05/0.4026, allocations: 15.91 kB / 337.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.4047, allocations: 394.5 kB / 338 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.4048, allocations: 3.953 kB / 338 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.696e-05/0.4049, allocations: 8 kB / 338 MB, free: 10.81 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.4049, allocations: 4 kB / 338 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002516/0.4074, allocations: 364.2 kB / 338.4 MB, free: 10.45 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.002267/0.4098, allocations: 1.208 MB / 339.6 MB, free: 9.141 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.4112, allocations: 292.3 kB / 339.8 MB, free: 8.828 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.175/0.5863, allocations: 47.86 MB / 387.7 MB, free: 3.348 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.5863, allocations: 39.12 kB / 387.7 MB, free: 3.301 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.485e-06/0.5864, allocations: 0 / 387.7 MB, free: 3.301 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.01154/0.5979, allocations: 1.621 MB / 389.4 MB, free: 1.625 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.598, allocations: 106.8 kB / 389.5 MB, free: 1.496 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.5982, allocations: 116.9 kB / 389.6 MB, free: 1.375 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.017e-05/0.5983, allocations: 33.7 kB / 389.6 MB, free: 1.336 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.5984, allocations: 170.9 kB / 389.8 MB, free: 1.168 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.5985, allocations: 114.4 kB / 389.9 MB, free: 1.055 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.66e-05/0.5986, allocations: 8 kB / 389.9 MB, free: 1.047 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5987, allocations: 326.8 kB / 390.2 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006945/0.5994, allocations: 139.9 kB / 390.4 MB, free: 0.582 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000753/0.6002, allocations: 202.7 kB / 390.6 MB, free: 368 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007425/0.601, allocations: 151.9 kB / 390.7 MB, free: 216 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.601, allocations: 0 / 390.7 MB, free: 216 kB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001894/0.6029, allocations: 433.9 kB / 391.1 MB, free: 15.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.603, allocations: 4 kB / 391.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.603, allocations: 4 kB / 391.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003423/0.6033, allocations: 36.83 kB / 391.2 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008506/0.6042, allocations: 88.03 kB / 391.3 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005203/0.6047, allocations: 0.5523 MB / 391.8 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005597/0.6053, allocations: 28.02 kB / 391.8 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.925e-05/0.6054, allocations: 15.94 kB / 391.9 MB, free: 15.02 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.000231/0.6056, allocations: 141.9 kB / 392 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.6058, allocations: 15.81 kB / 392 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003611/0.6094, allocations: 1.46 MB / 393.5 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.269e-05/0.6095, allocations: 19.97 kB / 393.5 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.6095, allocations: 3.953 kB / 393.5 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.6095, allocations: 3.984 kB / 393.5 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004783/0.6143, allocations: 1.979 MB / 395.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/0.6144, allocations: 8.125 kB / 395.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008236/0.6152, allocations: 87.86 kB / 395.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000468/0.6157, allocations: 64.8 kB / 395.6 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.45e-05/0.6158, allocations: 19.98 kB / 395.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005135/0.6163, allocations: 0.5913 MB / 396.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.6163, allocations: 4.031 kB / 396.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003749/0.6201, allocations: 1.766 MB / 398 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.6203, allocations: 124.5 kB / 398.1 MB, free: 8.527 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.939e-05/0.6204, allocations: 8 kB / 398.1 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000649/0.621, allocations: 32.33 kB / 398.2 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.6211, allocations: 35.92 kB / 398.2 MB, free: 8.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.269e-05/0.6212, allocations: 15.92 kB / 398.2 MB, free: 8.438 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.758e-05/0.6213, allocations: 95.2 kB / 398.3 MB, free: 8.344 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6213, allocations: 0 / 398.3 MB, free: 8.344 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003312/0.6246, allocations: 0.9097 MB / 399.2 MB, free: 7.434 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.006432/0.6311, allocations: 1.147 MB / 400.4 MB, free: 6.277 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002176/0.6333, allocations: 0.5894 MB / 401 MB, free: 5.691 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.6334, allocations: 0 / 401 MB, free: 5.691 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.6348, allocations: 0.5252 MB / 401.5 MB, free: 5.164 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009519/0.6358, allocations: 64.12 kB / 401.6 MB, free: 5.102 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00402/0.6398, allocations: 1.585 MB / 403.1 MB, free: 3.469 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000522/0.6404, allocations: 0.8295 MB / 404 MB, free: 2.613 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002746/0.6406, allocations: 39.41 kB / 404 MB, free: 2.574 MB / 346.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6407, allocations: 0 / 404 MB, free: 2.574 MB / 346.7 MB Notification: Performance of Templates: time 0.3447/0.9853, allocations: 23.5 MB / 427.5 MB, free: 101.5 MB / 362.7 MB