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.292/2.292, allocations: 258 MB / 265.1 MB, free: 5.465 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.617e-05/1.634e-05, allocations: 2.391 kB / 327.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 60.26 MB / 387.9 MB, free: 13.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4436/0.549, allocations: 101.9 MB / 489.8 MB, free: 6.207 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.5493, allocations: 86.16 kB / 489.9 MB, free: 6.191 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4535/1.003, allocations: 106.1 MB / 0.582 GB, free: 11.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.492e-06/1.003, allocations: 0 / 0.582 GB, free: 11.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002393/1.003, allocations: 136 kB / 0.5821 GB, free: 11.04 MB / 474.7 MB 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.02761/1.031, allocations: 6.627 MB / 0.5886 GB, free: 4.344 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/1.031, allocations: 12.03 kB / 0.5886 GB, free: 4.332 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004453/1.035, allocations: 0.6748 MB / 0.5893 GB, free: 3.648 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/1.047, allocations: 3.592 MB / 0.5928 GB, free: 4 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004817/1.047, allocations: 212 kB / 0.593 GB, free: 15.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003825/1.051, allocations: 383.9 kB / 0.5934 GB, free: 15.42 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04007/1.091, allocations: 15.32 MB / 0.6083 GB, free: 92 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03981/1.131, allocations: 12.87 MB / 0.6209 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003118/1.131, allocations: 7.906 kB / 0.6209 GB, free: 3.145 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002955/1.134, allocations: 4 kB / 0.6209 GB, free: 3.141 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001249/1.136, allocations: 0.9891 MB / 0.6219 GB, free: 2.148 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3777/1.513, allocations: 34.23 MB / 0.6553 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02445/1.538, allocations: 12.62 MB / 0.6676 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01025/1.548, allocations: 5.016 MB / 0.6725 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001564/1.55, allocations: 0.9789 MB / 0.6735 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.624e-05/1.55, allocations: 107.9 kB / 0.6736 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=728): time 1.419e-05/1.55, allocations: 0 / 0.6736 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=752): time 0.07276/1.623, allocations: 24.69 MB / 0.6977 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.693e-05/1.623, allocations: 132.5 kB / 0.6978 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/1.624, allocations: 0.8827 MB / 0.6987 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001638/1.626, allocations: 32.7 kB / 0.6987 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001082/1.627, allocations: 2.291 MB / 0.7009 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003391/1.63, allocations: 2.446 MB / 0.7033 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001324/1.632, allocations: 0 / 0.7033 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007259/1.633, allocations: 0.6373 MB / 0.704 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01053/1.643, allocations: 4.666 MB / 0.7085 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01114/1.654, allocations: 5.335 MB / 0.7137 GB, free: 114 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01335/1.668, allocations: 5.775 MB / 0.7194 GB, free: 109 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.291e-05/1.668, allocations: 4 kB / 0.7194 GB, free: 109 MB / 0.5105 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.03765/1.705, allocations: 12.63 MB / 0.7317 GB, free: 98.14 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/1.706, allocations: 8 kB / 0.7317 GB, free: 98.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.173e-05/1.706, allocations: 15.95 kB / 0.7317 GB, free: 98.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006873/1.712, allocations: 1.467 MB / 0.7332 GB, free: 97.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01127/1.724, allocations: 1.564 MB / 0.7347 GB, free: 95.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01931/1.743, allocations: 10.48 MB / 0.7449 GB, free: 86.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006324/1.749, allocations: 226.7 kB / 0.7451 GB, free: 86.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002314/1.752, allocations: 269 kB / 0.7454 GB, free: 86.06 MB / 0.5105 GB Warning: Assuming fixed start value for the following 3 variables: penstockKP.U[20]:VARIABLE() "centered states" type: Real [20] penstockKP.U[11]:VARIABLE() "centered states" type: Real [20] surgeTank.Vdot:VARIABLE(start = surgeTank.Vdot_0 unit = "m3/s" ) "Water flow rate" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: penstockKP.p_[10,2]:VARIABLE(unit = "Pa" ) "boundary p. matrix" type: Real [10,4] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: penstockKP.p_[1,3]:VARIABLE(unit = "Pa" ) "boundary p. matrix" type: Real [10,4] 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.003345/1.755, allocations: 206.9 kB / 0.7456 GB, free: 85.93 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001794/1.757, allocations: 316.1 kB / 0.7459 GB, free: 85.62 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04036/1.797, allocations: 13.83 MB / 0.7594 GB, free: 74.19 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001113/1.798, allocations: 84 kB / 0.7595 GB, free: 74.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.477e-05/1.798, allocations: 0 / 0.7595 GB, free: 74.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001914/1.798, allocations: 39.56 kB / 0.7595 GB, free: 74.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06513/1.863, allocations: 23.91 MB / 0.7829 GB, free: 54.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-05/1.863, allocations: 7.938 kB / 0.7829 GB, free: 54.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01213/1.875, allocations: 1.666 MB / 0.7845 GB, free: 53.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006581/1.882, allocations: 1.442 MB / 0.7859 GB, free: 51.71 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002237/1.884, allocations: 107.8 kB / 0.786 GB, free: 51.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02155/1.906, allocations: 14.24 MB / 0.7999 GB, free: 36.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.256e-05/1.906, allocations: 11.94 kB / 0.7999 GB, free: 36.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0499/1.956, allocations: 21.07 MB / 0.8205 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007793/1.957, allocations: 408.8 kB / 0.8209 GB, free: 15 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00234/1.959, allocations: 19.98 kB / 0.8209 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006334/1.965, allocations: 215.6 kB / 0.8211 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002756/1.968, allocations: 0.5365 MB / 0.8216 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002017/1.97, allocations: 255.7 kB / 0.8219 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00115/1.971, allocations: 0.6357 MB / 0.8225 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.29e-07/1.971, allocations: 0 / 0.8225 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00843/1.98, allocations: 1.627 MB / 0.8241 GB, free: 11.74 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 25 (reservoir.m,tail.m,surgeTank.m,surgeTank.Vdot,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 (784): * Single equations (assignments): 779 * 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.003098/1.983, allocations: 0.4907 MB / 0.8246 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3283/2.311, allocations: 11.53 MB / 0.8358 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.711e-06/2.311, allocations: 1.312 kB / 0.8358 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01607/2.327, allocations: 6.447 MB / 0.8421 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003764/2.331, allocations: 239.5 kB / 0.8424 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0605/2.392, allocations: 15.4 MB / 0.8574 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01421/2.406, allocations: 4.399 MB / 0.8617 GB, free: 132.3 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.02495/2.431, allocations: 3.751 MB / 0.8654 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00816/2.439, allocations: 496.6 kB / 0.8658 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of SimCode: time 2.918e-06/2.439, allocations: 0 / 0.8658 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.1861/2.625, allocations: 79.34 MB / 0.9433 GB, free: 86.39 MB / 0.5105 GB