Running command: translateModel(OpenHPL.Examples.HPDetailed,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPDetailed") Notification: Performance of loadModel(OpenHPL): time 2.162/2.162, allocations: 258 MB / 271.8 MB, free: 13.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.068e-05/3.084e-05, allocations: 4 kB / 335.7 MB, free: 2.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1024, allocations: 60.24 MB / 396 MB, free: 5.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4127/0.5151, allocations: 101.8 MB / 497.7 MB, free: 14.16 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.5154, allocations: 85.58 kB / 497.8 MB, free: 14.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4613/0.9767, allocations: 106.3 MB / 0.5899 GB, free: 5.426 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.623e-06/0.9768, allocations: 0 / 0.5899 GB, free: 5.426 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002257/0.977, allocations: 135.9 kB / 0.5901 GB, free: 5.293 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: 2252 * Number of variables: 2252 Notification: Performance of Generate backend data structure: time 0.3421/1.319, allocations: 6.563 MB / 0.5965 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/1.319, allocations: 9.375 kB / 0.5965 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004075/1.323, allocations: 0.6654 MB / 0.5971 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01083/1.334, allocations: 3.577 MB / 0.6006 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006697/1.335, allocations: 492.4 kB / 0.6011 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003598/1.338, allocations: 0.6265 MB / 0.6017 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04137/1.38, allocations: 14.09 MB / 0.6155 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002693/1.38, allocations: 13.12 kB / 0.6155 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002782/1.383, allocations: 264.9 kB / 0.6157 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001108/1.384, allocations: 0.9805 MB / 0.6167 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03917/1.423, allocations: 15.17 MB / 0.6315 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08754/1.511, allocations: 35.7 MB / 0.6664 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0231/1.534, allocations: 13.12 MB / 0.6792 GB, free: 91.17 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001416/1.535, allocations: 0.9748 MB / 0.6802 GB, free: 90.07 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.913e-05/1.536, allocations: 108.3 kB / 0.6803 GB, free: 89.95 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=731): time 1.271e-05/1.536, allocations: 0 / 0.6803 GB, free: 89.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=755): time 0.08202/1.618, allocations: 31.12 MB / 0.7106 GB, free: 62.24 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.613e-05/1.618, allocations: 133.3 kB / 0.7108 GB, free: 62.09 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/1.619, allocations: 0.8771 MB / 0.7116 GB, free: 61.33 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001566/1.621, allocations: 149.7 kB / 0.7118 GB, free: 61.18 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001016/1.622, allocations: 2.257 MB / 0.714 GB, free: 59.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00321/1.625, allocations: 2.554 MB / 0.7165 GB, free: 56.91 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001433/1.627, allocations: 136.6 kB / 0.7166 GB, free: 56.77 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005879/1.627, allocations: 0.6375 MB / 0.7172 GB, free: 56.22 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01143/1.639, allocations: 4.902 MB / 0.722 GB, free: 51.97 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01853/1.657, allocations: 5.609 MB / 0.7275 GB, free: 46.77 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02158/1.679, allocations: 5.813 MB / 0.7332 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.71e-05/1.679, allocations: 4 kB / 0.7332 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.05035/1.729, allocations: 13.22 MB / 0.7461 GB, free: 27.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/1.73, allocations: 14.64 kB / 0.7461 GB, free: 27.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-05/1.73, allocations: 8 kB / 0.7461 GB, free: 27.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007379/1.737, allocations: 1.515 MB / 0.7476 GB, free: 26.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01139/1.748, allocations: 1.568 MB / 0.7491 GB, free: 24.56 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02991/1.778, allocations: 13.39 MB / 0.7622 GB, free: 10.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005997/1.784, allocations: 355.6 kB / 0.7625 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001943/1.786, allocations: 267.8 kB / 0.7628 GB, free: 10.29 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 (820): * Single equations (assignments): 818 * 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.007336/1.794, allocations: 2.479 MB / 0.7652 GB, free: 7.793 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002011/1.796, allocations: 304.2 kB / 0.7655 GB, free: 7.492 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04511/1.841, allocations: 14.56 MB / 0.7797 GB, free: 8.879 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/1.841, allocations: 83.95 kB / 0.7798 GB, free: 8.797 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-05/1.841, allocations: 0 / 0.7798 GB, free: 8.797 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001756/1.841, allocations: 43.78 kB / 0.7798 GB, free: 8.754 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3566/2.198, allocations: 25.97 MB / 0.8052 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.641e-05/2.198, allocations: 8.125 kB / 0.8052 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01363/2.212, allocations: 1.664 MB / 0.8068 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01069/2.222, allocations: 1.492 MB / 0.8083 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002744/2.225, allocations: 211.8 kB / 0.8085 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04074/2.266, allocations: 14.57 MB / 0.8227 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.505e-05/2.266, allocations: 13.66 kB / 0.8227 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06071/2.327, allocations: 22.07 MB / 0.8443 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007289/2.328, allocations: 405 kB / 0.8447 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001902/2.329, allocations: 160 kB / 0.8448 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005134/2.335, allocations: 340.7 kB / 0.8451 GB, free: 118 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002238/2.337, allocations: 0.5365 MB / 0.8457 GB, free: 118 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001072/2.338, allocations: 263.7 kB / 0.8459 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001225/2.339, allocations: 0.6472 MB / 0.8466 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.78e-07/2.339, allocations: 0 / 0.8466 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007057/2.346, allocations: 1.889 MB / 0.8484 GB, free: 117.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 24 (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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (787): * Single equations (assignments): 783 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {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.002896/2.349, allocations: 0.6637 MB / 0.849 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02765/2.377, allocations: 12.2 MB / 0.861 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.524e-06/2.377, allocations: 0 / 0.861 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01435/2.391, allocations: 6.768 MB / 0.8676 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002815/2.394, allocations: 370.8 kB / 0.8679 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03563/2.43, allocations: 20.79 MB / 0.8882 GB, free: 85.18 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008182/2.438, allocations: 4.397 MB / 0.8925 GB, free: 81.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01438/2.452, allocations: 3.748 MB / 0.8962 GB, free: 79.21 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004258/2.457, allocations: 496.2 kB / 0.8967 GB, free: 78.82 MB / 0.5105 GB Notification: Performance of SimCode: time 1.303e-06/2.457, allocations: 0 / 0.8967 GB, free: 78.82 MB / 0.5105 GB Notification: Performance of Templates: time 0.157/2.614, allocations: 81.18 MB / 0.9759 GB, free: 3.266 MB / 0.5105 GB