Running command: translateModel(OpenHPL.Examples.HPSimple_Francis_IPSLGen,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPSimple_Francis_IPSLGen") Notification: Performance of loadModel(OpenHPL): time 2.133/2.133, allocations: 258 MB / 271.8 MB, free: 13.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.292e-05/3.305e-05, allocations: 4 kB / 335.7 MB, free: 2.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 60.25 MB / 396 MB, free: 5.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4295/0.531, allocations: 114.6 MB / 0.4986 GB, free: 1.68 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.5313, allocations: 92.77 kB / 0.4987 GB, free: 1.633 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8444/1.376, allocations: 135.3 MB / 0.6308 GB, free: 126 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.905e-06/1.376, allocations: 0 / 0.6308 GB, free: 126 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002897/1.376, allocations: 164.6 kB / 0.6309 GB, free: 126 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: 2523 * Number of variables: 2523 Notification: Performance of Generate backend data structure: time 0.03142/1.407, allocations: 8.36 MB / 0.6391 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/1.408, allocations: 10.53 kB / 0.6391 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009149/1.417, allocations: 1.29 MB / 0.6403 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.013/1.43, allocations: 4.449 MB / 0.6447 GB, free: 120.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009643/1.431, allocations: 0.7952 MB / 0.6455 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004149/1.435, allocations: 0.7323 MB / 0.6462 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04195/1.477, allocations: 15.68 MB / 0.6615 GB, free: 114.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003184/1.477, allocations: 15.75 kB / 0.6615 GB, free: 114.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003399/1.481, allocations: 301.6 kB / 0.6618 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009662/1.482, allocations: 1.025 MB / 0.6628 GB, free: 114.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04318/1.525, allocations: 16.85 MB / 0.6793 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09902/1.624, allocations: 40.59 MB / 0.7189 GB, free: 62.33 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02938/1.653, allocations: 15.67 MB / 0.7342 GB, free: 46.45 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001654/1.655, allocations: 1 MB / 0.7352 GB, free: 45.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.445e-05/1.655, allocations: 117.3 kB / 0.7353 GB, free: 45.17 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=862): time 1.488e-05/1.655, allocations: 7.938 kB / 0.7353 GB, free: 45.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=886): time 0.1242/1.779, allocations: 42.28 MB / 0.7766 GB, free: 2.723 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/1.78, allocations: 193.8 kB / 0.7768 GB, free: 2.508 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004102/1.784, allocations: 1.952 MB / 0.7787 GB, free: 0.5312 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001888/1.786, allocations: 169.7 kB / 0.7788 GB, free: 368 kB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002561/1.788, allocations: 2.87 MB / 0.7816 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005053/1.793, allocations: 3.002 MB / 0.7846 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001725/1.795, allocations: 160 kB / 0.7847 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007622/1.796, allocations: 0.6447 MB / 0.7853 GB, free: 9.691 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01584/1.812, allocations: 5.786 MB / 0.791 GB, free: 3.895 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3088/2.12, allocations: 6.65 MB / 0.7975 GB, free: 126.6 MB / 0.5105 GB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.2159/2.336, allocations: 44.15 MB / 0.8406 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.678e-05/2.336, allocations: 3.75 kB / 0.8406 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.05309/2.39, allocations: 18.62 MB / 0.8588 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001033/2.391, allocations: 5.361 MB / 0.864 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.283e-05/2.391, allocations: 11.34 kB / 0.864 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0148/2.406, allocations: 3.66 MB / 0.8676 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01468/2.42, allocations: 1.943 MB / 0.8695 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0601/2.48, allocations: 30.06 MB / 0.8989 GB, free: 82.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008284/2.489, allocations: 0.5473 MB / 0.8994 GB, free: 82.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002445/2.491, allocations: 316 kB / 0.8997 GB, free: 82.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/2.491, allocations: 4 kB / 0.8997 GB, free: 82.16 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0542/2.545, allocations: 18.22 MB / 0.9175 GB, free: 64.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-05/2.546, allocations: 16 kB / 0.9175 GB, free: 64.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01498/2.561, allocations: 3.66 MB / 0.9211 GB, free: 60.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02122/2.582, allocations: 1.935 MB / 0.923 GB, free: 59.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08634/2.668, allocations: 29.99 MB / 0.9523 GB, free: 28.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008043/2.676, allocations: 0.5308 MB / 0.9528 GB, free: 27.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00202/2.678, allocations: 317.5 kB / 0.9531 GB, free: 27.33 MB / 0.5105 GB Warning: Assuming fixed start value for the following 3 variables: penstock.U[20]:VARIABLE(fixed = true ) "centered states" type: Real [20] penstock.U[11]:VARIABLE(fixed = true ) "centered states" type: Real [20] intake.M:VARIABLE(unit = "kg.m/s" fixed = true ) "Water momentum" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: order2_1.w = $START.order2_1.w. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 4 (penstock.KP.boundaryCon[2,2],penstock.KP.boundaryCon[2,1],penstock.KP.boundaryCon[1,2],penstock.KP.boundaryCon[1,1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (950): * Single equations (assignments): 942 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 28,1 22,26 10} Notification: Performance of prepare postOptimizeDAE: time 0.008111/2.686, allocations: 2.652 MB / 0.9557 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002527/2.689, allocations: 464.5 kB / 0.9561 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05798/2.747, allocations: 20.19 MB / 0.9758 GB, free: 4.129 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-05/2.747, allocations: 92 kB / 0.9759 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.61e-05/2.747, allocations: 0 / 0.9759 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001944/2.747, allocations: 43.83 kB / 0.976 GB, free: 3.996 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4009/3.148, allocations: 33.48 MB / 1.009 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001018/3.148, allocations: 9.25 kB / 1.009 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01477/3.163, allocations: 1.881 MB / 1.011 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0161/3.179, allocations: 3.75 MB / 1.014 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002423/3.182, allocations: 246.3 kB / 1.014 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05937/3.241, allocations: 32.33 MB / 1.046 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-05/3.241, allocations: 17.09 kB / 1.046 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07059/3.312, allocations: 29.26 MB / 1.075 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/3.313, allocations: 0.5561 MB / 1.075 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00258/3.316, allocations: 191.7 kB / 1.075 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007549/3.323, allocations: 0.5304 MB / 1.076 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003264/3.327, allocations: 0.7914 MB / 1.077 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001282/3.328, allocations: 295.1 kB / 1.077 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003163/3.331, allocations: 1.474 MB / 1.078 GB, free: 99.95 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.56e-07/3.331, allocations: 0 / 1.078 GB, free: 99.95 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01502/3.346, allocations: 3.737 MB / 1.082 GB, free: 99.34 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * Number of states: 29 (reservoir.m,intake.M,tail.m,penstock.U[1],penstock.U[2],penstock.U[3],penstock.U[4],penstock.U[5],penstock.U[6],penstock.U[7],penstock.U[8],penstock.U[9],penstock.U[10],penstock.U[11],penstock.U[12],penstock.U[13],penstock.U[14],penstock.U[15],penstock.U[16],penstock.U[17],penstock.U[18],penstock.U[19],penstock.U[20],surgeTank.m,order2_1.delta,order2_1.w,governor.pilot_servo.x_scaled[1],governor.main_servo.x_scaled[1],governor.control.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (887): * Single equations (assignments): 876 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {26 10,1 30,1 24,1 8,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003394/3.35, allocations: 0.7184 MB / 1.083 GB, free: 98.84 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.06072/3.41, allocations: 24.41 MB / 1.106 GB, free: 77.45 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/3.41, allocations: 256 / 1.106 GB, free: 77.45 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02262/3.433, allocations: 9.428 MB / 1.116 GB, free: 69.11 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004403/3.438, allocations: 0.4902 MB / 1.116 GB, free: 68.67 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04261/3.48, allocations: 24.24 MB / 1.14 GB, free: 46.43 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00835/3.489, allocations: 5.119 MB / 1.145 GB, free: 42.59 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.02267/3.511, allocations: 6.275 MB / 1.151 GB, free: 38.39 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004863/3.516, allocations: 0.5553 MB / 1.152 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of SimCode: time 1.373e-06/3.516, allocations: 0 / 1.152 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of Templates: time 0.8701/4.386, allocations: 130.6 MB / 1.279 GB, free: 114.3 MB / 0.5418 GB