Running command: "" <> buildModelFMU(OpenHPL.Examples.HPDetailed_Francis,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPDetailed_Francis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.41/2.41, allocations: 258 MB / 265.1 MB, free: 5.469 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.314e-05/2.326e-05, allocations: 4 kB / 327.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1313, allocations: 60.24 MB / 388 MB, free: 13.58 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5652/0.6966, allocations: 107.5 MB / 495.5 MB, free: 3.938 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.6969, allocations: 86.47 kB / 495.6 MB, free: 3.922 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.599/1.296, allocations: 109.4 MB / 0.5908 GB, free: 2.062 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.045e-06/1.296, allocations: 0 / 0.5908 GB, free: 2.062 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000279/1.296, allocations: 140 kB / 0.5909 GB, free: 1.926 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: 2345 * Number of variables: 2345 Notification: Performance of Generate backend data structure: time 0.04088/1.337, allocations: 6.87 MB / 0.5976 GB, free: 10.98 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.653e-05/1.337, allocations: 12.03 kB / 0.5976 GB, free: 10.97 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005807/1.343, allocations: 0.7096 MB / 0.5983 GB, free: 10.25 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01431/1.358, allocations: 3.655 MB / 0.6019 GB, free: 6.543 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007513/1.358, allocations: 323.2 kB / 0.6022 GB, free: 6.219 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004939/1.363, allocations: 407.9 kB / 0.6026 GB, free: 5.82 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04935/1.413, allocations: 15.73 MB / 0.618 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04781/1.461, allocations: 13.25 MB / 0.6309 GB, free: 8.766 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002911/1.461, allocations: 11.91 kB / 0.6309 GB, free: 8.754 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003047/1.464, allocations: 4 kB / 0.6309 GB, free: 8.75 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001523/1.465, allocations: 1.005 MB / 0.6319 GB, free: 7.742 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7762/2.242, allocations: 35.52 MB / 0.6666 GB, free: 137 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03024/2.272, allocations: 12.97 MB / 0.6793 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01276/2.285, allocations: 5.167 MB / 0.6843 GB, free: 131 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002295/2.287, allocations: 0.9948 MB / 0.6853 GB, free: 130 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.001e-05/2.287, allocations: 107.6 kB / 0.6854 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=764): time 1.045e-05/2.287, allocations: 0 / 0.6854 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=788): time 0.09606/2.383, allocations: 25.41 MB / 0.7102 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.56e-05/2.383, allocations: 129.6 kB / 0.7103 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/2.385, allocations: 0.9754 MB / 0.7113 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002378/2.388, allocations: 25.7 kB / 0.7113 GB, free: 116.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001487/2.389, allocations: 2.41 MB / 0.7136 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004644/2.394, allocations: 2.564 MB / 0.7161 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002482/2.397, allocations: 0.5625 kB / 0.7161 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007592/2.397, allocations: 0.6701 MB / 0.7168 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01263/2.41, allocations: 4.855 MB / 0.7215 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0137/2.424, allocations: 5.6 MB / 0.727 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01724/2.441, allocations: 6.002 MB / 0.7329 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.194e-05/2.441, allocations: 4 kB / 0.7329 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.04974/2.491, allocations: 13.24 MB / 0.7458 GB, free: 85.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.593e-05/2.491, allocations: 8 kB / 0.7458 GB, free: 85.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.613e-05/2.491, allocations: 12 kB / 0.7458 GB, free: 85.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009987/2.501, allocations: 1.555 MB / 0.7473 GB, free: 84.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02112/2.522, allocations: 1.811 MB / 0.7491 GB, free: 82.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03151/2.554, allocations: 18.74 MB / 0.7674 GB, free: 64.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01075/2.565, allocations: 232 kB / 0.7676 GB, free: 64.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002978/2.568, allocations: 292.1 kB / 0.7679 GB, free: 64.05 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 equation system with analytic Jacobian: turbine.theta:VARIABLE(unit = "rad" ) "one of servo angles" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turbine.d:VARIABLE(unit = "m" ) "servo term" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turbine.psi:VARIABLE(unit = "rad" ) "one of servo angles" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turbine.phi:VARIABLE(unit = "rad" ) "one of servo angles" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: generator.Idq[2]:VARIABLE(unit = "A" ) type: Real [2] generator.Idq[1]:VARIABLE(unit = "A" ) type: Real [2] 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: 51 * 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 (898): * Single equations (assignments): 890 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {2,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: 2 {1 28,1 22} Notification: Performance of prepare postOptimizeDAE: time 0.003869/2.572, allocations: 247.6 kB / 0.7681 GB, free: 63.82 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04717/2.619, allocations: 12.16 MB / 0.78 GB, free: 53.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003118/2.622, allocations: 331.9 kB / 0.7803 GB, free: 52.98 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05672/2.679, allocations: 14.39 MB / 0.7944 GB, free: 41.01 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001306/2.679, allocations: 84 kB / 0.7945 GB, free: 40.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.312e-05/2.679, allocations: 0 / 0.7945 GB, free: 40.93 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002504/2.679, allocations: 47.78 kB / 0.7945 GB, free: 40.88 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08396/2.763, allocations: 24.79 MB / 0.8187 GB, free: 16.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000104/2.763, allocations: 4 kB / 0.8187 GB, free: 16.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01993/2.783, allocations: 1.771 MB / 0.8205 GB, free: 14.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01069/2.794, allocations: 1.599 MB / 0.822 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002741/2.797, allocations: 107.8 kB / 0.8221 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4076/3.204, allocations: 21.09 MB / 0.8427 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-05/3.204, allocations: 16.3 kB / 0.8427 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07025/3.275, allocations: 21.86 MB / 0.8641 GB, free: 124 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/3.276, allocations: 433.7 kB / 0.8645 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003521/3.279, allocations: 19.97 kB / 0.8645 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01/3.289, allocations: 228.1 kB / 0.8647 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003598/3.293, allocations: 0.5728 MB / 0.8653 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00264/3.296, allocations: 268.5 kB / 0.8656 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001493/3.297, allocations: 0.6904 MB / 0.8662 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.91e-07/3.297, allocations: 0 / 0.8662 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01079/3.308, allocations: 1.717 MB / 0.8679 GB, free: 123.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 30 (reservoir.m,tail.m,generator.DELTA,generator.EEd,generator.EEq,generator.Ef,generator.Vstabilizer,generator.w,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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (829): * Single equations (assignments): 819 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {2,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: 3 {1 30,1 24,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0697/3.378, allocations: 24.47 MB / 0.8918 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03334/3.411, allocations: 12.26 MB / 0.9038 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/3.411, allocations: 4 kB / 0.9038 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01831/3.43, allocations: 6.918 MB / 0.9105 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004642/3.434, allocations: 239.7 kB / 0.9108 GB, free: 102 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05026/3.485, allocations: 17.83 MB / 0.9282 GB, free: 86.62 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008329/3.493, allocations: 4.545 MB / 0.9326 GB, free: 83.15 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01939/3.512, allocations: 3.818 MB / 0.9363 GB, free: 80.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01165/3.524, allocations: 3.183 MB / 0.9395 GB, free: 77.66 MB / 0.5105 GB Notification: Performance of SimCode: time 1.583e-06/3.524, allocations: 0 / 0.9395 GB, free: 77.66 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6535/4.178, allocations: 131.2 MB / 1.068 GB, free: 131.8 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002271/4.178, allocations: 108.3 kB / 1.068 GB, free: 131.6 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.14/12.32, allocations: 0 / 1.068 GB, free: 131.6 MB / 0.5262 GB