Running command: translateModel(OpenHPL.Examples.HPDetailed_generator,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPDetailed_generator") Notification: Performance of loadModel(OpenHPL): time 2.205/2.205, allocations: 258 MB / 271.8 MB, free: 13.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.517e-05/3.525e-05, allocations: 4 kB / 335.7 MB, free: 2.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1031, allocations: 60.25 MB / 396 MB, free: 5.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4143/0.5174, allocations: 102.6 MB / 498.6 MB, free: 13.37 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.5177, allocations: 86.91 kB / 498.6 MB, free: 13.33 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4621/0.9799, allocations: 107.1 MB / 0.5915 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.473e-06/0.98, allocations: 0 / 0.5915 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002374/0.9802, allocations: 136 kB / 0.5917 GB, free: 3.672 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2262 * Number of variables: 2262 Notification: Performance of Generate backend data structure: time 0.2992/1.279, allocations: 6.612 MB / 0.5981 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/1.279, allocations: 8.625 kB / 0.5981 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004305/1.284, allocations: 0.6745 MB / 0.5988 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01079/1.295, allocations: 3.599 MB / 0.6023 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007226/1.295, allocations: 489 kB / 0.6028 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003762/1.299, allocations: 0.6317 MB / 0.6034 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04144/1.341, allocations: 14.14 MB / 0.6172 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003358/1.341, allocations: 19.39 kB / 0.6172 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003346/1.344, allocations: 263.6 kB / 0.6175 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001032/1.345, allocations: 0.9847 MB / 0.6184 GB, free: 122 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03928/1.385, allocations: 15.23 MB / 0.6333 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09378/1.479, allocations: 35.82 MB / 0.6683 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02487/1.503, allocations: 13.15 MB / 0.6811 GB, free: 90.06 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001465/1.505, allocations: 0.9777 MB / 0.6821 GB, free: 88.96 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.552e-05/1.505, allocations: 112 kB / 0.6822 GB, free: 88.84 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=737): time 1.287e-05/1.505, allocations: 0 / 0.6822 GB, free: 88.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=761): time 0.08384/1.589, allocations: 31.67 MB / 0.7131 GB, free: 60.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.682e-05/1.589, allocations: 125.4 kB / 0.7133 GB, free: 60.56 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001746/1.591, allocations: 0.9032 MB / 0.7141 GB, free: 59.78 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001739/1.593, allocations: 149.7 kB / 0.7143 GB, free: 59.62 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001065/1.594, allocations: 2.276 MB / 0.7165 GB, free: 57.63 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003199/1.597, allocations: 2.566 MB / 0.719 GB, free: 55.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000843/1.598, allocations: 136 kB / 0.7191 GB, free: 55.19 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005162/1.598, allocations: 0.6482 MB / 0.7198 GB, free: 54.63 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01036/1.609, allocations: 4.931 MB / 0.7246 GB, free: 50.36 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.012/1.621, allocations: 5.645 MB / 0.7301 GB, free: 44.71 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01274/1.634, allocations: 5.845 MB / 0.7358 GB, free: 38.84 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.334e-05/1.634, allocations: 0 / 0.7358 GB, free: 38.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.03755/1.671, allocations: 13.27 MB / 0.7488 GB, free: 25.52 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/1.671, allocations: 8 kB / 0.7488 GB, free: 25.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.384e-05/1.671, allocations: 12 kB / 0.7488 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007033/1.678, allocations: 1.515 MB / 0.7503 GB, free: 23.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01113/1.689, allocations: 1.576 MB / 0.7518 GB, free: 22.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02792/1.717, allocations: 13.36 MB / 0.7648 GB, free: 8.781 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005806/1.723, allocations: 367.7 kB / 0.7652 GB, free: 8.422 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001753/1.725, allocations: 263.8 kB / 0.7655 GB, free: 8.164 MB / 0.4948 GB Warning: Assuming fixed start value for the following 3 variables: penstockKP.U[20]:VARIABLE(fixed = true ) "centered states" type: Real [20] penstockKP.U[11]:VARIABLE(fixed = true ) "centered states" type: Real [20] intake.M:VARIABLE(unit = "kg.m/s" fixed = true ) "Water momentum" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 4 (penstockKP.KP.boundaryCon[2,2],penstockKP.KP.boundaryCon[2,1],penstockKP.KP.boundaryCon[1,2],penstockKP.KP.boundaryCon[1,1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (827): * Single equations (assignments): 825 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 28,1 24} Notification: Performance of prepare postOptimizeDAE: time 0.006651/1.732, allocations: 2.487 MB / 0.7679 GB, free: 5.664 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001197/1.733, allocations: 312.2 kB / 0.7682 GB, free: 5.355 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04869/1.782, allocations: 14.61 MB / 0.7824 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/1.782, allocations: 80 kB / 0.7825 GB, free: 6.613 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.336e-05/1.782, allocations: 0 / 0.7825 GB, free: 6.613 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000183/1.782, allocations: 39.84 kB / 0.7826 GB, free: 6.574 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6266/2.409, allocations: 26.1 MB / 0.808 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.989e-05/2.409, allocations: 8.062 kB / 0.8081 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01332/2.422, allocations: 1.69 MB / 0.8097 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007843/2.43, allocations: 1.493 MB / 0.8112 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001939/2.432, allocations: 213.9 kB / 0.8114 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02886/2.461, allocations: 15.86 MB / 0.8269 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.613e-06/2.461, allocations: 11.06 kB / 0.8269 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05322/2.514, allocations: 22.17 MB / 0.8485 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007963/2.515, allocations: 414.6 kB / 0.8489 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001956/2.517, allocations: 155.9 kB / 0.8491 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005731/2.523, allocations: 355.2 kB / 0.8494 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00184/2.525, allocations: 0.5412 MB / 0.8499 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009678/2.526, allocations: 263.3 kB / 0.8502 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001189/2.527, allocations: 0.6604 MB / 0.8508 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.99e-07/2.527, allocations: 0 / 0.8508 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006276/2.533, allocations: 1.903 MB / 0.8527 GB, free: 112.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 25 (reservoir.m,intake.M,tail.m,surgeTank.m,penstockKP.U[1],penstockKP.U[2],penstockKP.U[3],penstockKP.U[4],penstockKP.U[5],penstockKP.U[6],penstockKP.U[7],penstockKP.U[8],penstockKP.U[9],penstockKP.U[10],penstockKP.U[11],penstockKP.U[12],penstockKP.U[13],penstockKP.U[14],penstockKP.U[15],penstockKP.U[16],penstockKP.U[17],penstockKP.U[18],penstockKP.U[19],penstockKP.U[20],generator.K_a) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (793): * Single equations (assignments): 788 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 30,1 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.002376/2.535, allocations: 0.6546 MB / 0.8533 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02615/2.562, allocations: 12.22 MB / 0.8653 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/2.562, allocations: 8 kB / 0.8653 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01517/2.577, allocations: 6.826 MB / 0.8719 GB, free: 99.95 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00527/2.582, allocations: 382.5 kB / 0.8723 GB, free: 99.64 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06309/2.645, allocations: 20.96 MB / 0.8928 GB, free: 80.58 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01466/2.66, allocations: 4.416 MB / 0.8971 GB, free: 77.19 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01899/2.679, allocations: 3.762 MB / 0.9008 GB, free: 74.59 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005295/2.684, allocations: 494.1 kB / 0.9012 GB, free: 74.21 MB / 0.5105 GB Notification: Performance of SimCode: time 1.319e-06/2.684, allocations: 0 / 0.9012 GB, free: 74.21 MB / 0.5105 GB Notification: Performance of Templates: time 0.162/2.846, allocations: 81.78 MB / 0.9811 GB, free: 13.51 MB / 0.5262 GB