Running command: "" <> buildModelFMU(OpenHPL.Examples.HPSimple_Francis,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPSimple_Francis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.547/2.547, allocations: 258 MB / 265.1 MB, free: 5.457 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.785e-05/2.778e-05, allocations: 4 kB / 327.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1337, allocations: 60.24 MB / 388 MB, free: 13.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.574/0.7078, allocations: 102.6 MB / 490.6 MB, free: 5.965 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.7082, allocations: 82.95 kB / 490.7 MB, free: 5.953 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1048/0.8129, allocations: 20.54 MB / 0.4993 GB, free: 9.492 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.782e-06/0.813, allocations: 4 kB / 0.4993 GB, free: 9.488 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.495e-05/0.8131, allocations: 20 kB / 0.4993 GB, free: 9.469 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.005479/0.8186, allocations: 1.242 MB / 0.5005 GB, free: 8.238 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.8187, allocations: 8.031 kB / 0.5005 GB, free: 8.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.8197, allocations: 130.7 kB / 0.5006 GB, free: 8.102 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001569/0.8213, allocations: 0.4944 MB / 0.5011 GB, free: 7.637 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002487/0.8216, allocations: 101.4 kB / 0.5012 GB, free: 7.527 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000346/0.822, allocations: 55.91 kB / 0.5013 GB, free: 7.473 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003139/0.8251, allocations: 0.8596 MB / 0.5021 GB, free: 6.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002987/0.8282, allocations: 0.8622 MB / 0.5029 GB, free: 6.266 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.459e-05/0.8283, allocations: 0 / 0.5029 GB, free: 6.266 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.8284, allocations: 4 kB / 0.503 GB, free: 6.262 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.682e-05/0.8284, allocations: 20 kB / 0.503 GB, free: 6.242 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01241/0.8409, allocations: 3.051 MB / 0.506 GB, free: 3.832 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003568/0.8445, allocations: 0.7599 MB / 0.5067 GB, free: 3.324 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.8457, allocations: 369.2 kB / 0.507 GB, free: 3.102 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001511/0.8473, allocations: 0.8665 MB / 0.5079 GB, free: 2.055 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.13e-05/0.8474, allocations: 45.66 kB / 0.5079 GB, free: 2.004 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 4.469e-06/0.8474, allocations: 7.938 kB / 0.5079 GB, free: 1.996 MB / 394.7 MB Notification: Performance of matching and sorting (n=107): time 0.01118/0.8586, allocations: 2.446 MB / 0.5103 GB, free: 0 / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/0.8587, allocations: 64.72 kB / 0.5104 GB, free: 15.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.86, allocations: 0.5933 MB / 0.511 GB, free: 15.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002741/0.8603, allocations: 25.7 kB / 0.511 GB, free: 15.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004014/0.8607, allocations: 481.5 kB / 0.5115 GB, free: 15.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004791/0.8612, allocations: 360.6 kB / 0.5118 GB, free: 14.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.8614, allocations: 0 / 0.5118 GB, free: 14.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002593/0.8617, allocations: 400.8 kB / 0.5122 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.8629, allocations: 409.1 kB / 0.5126 GB, free: 14.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/0.8645, allocations: 0.5822 MB / 0.5131 GB, free: 13.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002272/0.8669, allocations: 0.5294 MB / 0.5137 GB, free: 13.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.755e-05/0.8669, allocations: 7.984 kB / 0.5137 GB, free: 13.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006087/0.873, allocations: 1.493 MB / 0.5151 GB, free: 12.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.873e-05/0.8731, allocations: 6.031 kB / 0.5151 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.8732, allocations: 4 kB / 0.5151 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001944/0.8751, allocations: 334.3 kB / 0.5155 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005586/0.8808, allocations: 421.6 kB / 0.5159 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01532/0.8961, allocations: 11.6 MB / 0.5272 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002523/0.8987, allocations: 27.97 kB / 0.5272 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004032/0.8992, allocations: 57.36 kB / 0.5273 GB, free: 15.61 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: surgeTank.Vdot:VARIABLE(start = surgeTank.Vdot_0 unit = "m3/s" ) "Water flow rate" type: Real penstock.Vdot:VARIABLE(start = penstock.Vdot_0 unit = "m3/s" ) "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[1]:VARIABLE(unit = "A" ) type: Real [2] generator.Idq[2]:VARIABLE(unit = "A" ) type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 152 * 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: 1 {(1,100.0%) 17} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005091/0.8997, allocations: 140.7 kB / 0.5274 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004717/0.9044, allocations: 1.078 MB / 0.5284 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/0.905, allocations: 98.77 kB / 0.5285 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006171/0.9112, allocations: 1.302 MB / 0.5298 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.395e-05/0.9113, allocations: 12 kB / 0.5298 GB, free: 13.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.9113, allocations: 11.94 kB / 0.5298 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.628e-05/0.9114, allocations: 3.984 kB / 0.5298 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009488/0.9209, allocations: 2.266 MB / 0.5321 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/0.9209, allocations: 4 kB / 0.5321 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004276/0.9252, allocations: 387.3 kB / 0.5324 GB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003103/0.9284, allocations: 392.7 kB / 0.5328 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003101/0.9288, allocations: 19.88 kB / 0.5328 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01744/0.9462, allocations: 13.97 MB / 0.5465 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.075e-05/0.9463, allocations: 4.031 kB / 0.5465 GB, free: 12.53 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007639/0.9539, allocations: 1.905 MB / 0.5483 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005117/0.9545, allocations: 183.8 kB / 0.5485 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004409/0.955, allocations: 4 kB / 0.5485 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/0.9567, allocations: 35.91 kB / 0.5485 GB, free: 10.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005061/0.9572, allocations: 93.12 kB / 0.5486 GB, free: 10.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/0.9573, allocations: 31.98 kB / 0.5487 GB, free: 10.48 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001038/0.9584, allocations: 451.2 kB / 0.5491 GB, free: 10.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.9584, allocations: 0 / 0.5491 GB, free: 10.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002926/0.9614, allocations: 419.8 kB / 0.5495 GB, free: 9.633 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 11 (reservoir.m,tail.m,generator.DELTA,generator.EEd,generator.EEq,generator.Ef,generator.Vstabilizer,generator.w,penstock.Vdot,surgeTank.m,surgeTank.Vdot) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 86 * 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: 1 {(1,100.0%) 17} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.009544/0.971, allocations: 3.118 MB / 0.5525 GB, free: 6.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007352/0.9784, allocations: 1.541 MB / 0.554 GB, free: 4.852 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/0.9785, allocations: 0 / 0.554 GB, free: 4.852 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004231/0.9827, allocations: 1.098 MB / 0.5551 GB, free: 3.715 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.9843, allocations: 107.2 kB / 0.5552 GB, free: 3.613 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008145/0.9925, allocations: 2.194 MB / 0.5574 GB, free: 1.352 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009975/0.9935, allocations: 1.093 MB / 0.5584 GB, free: 236 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001774/0.9953, allocations: 167.4 kB / 0.5586 GB, free: 64 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001511/0.9969, allocations: 423.3 kB / 0.559 GB, free: 15.64 MB / 458.7 MB Notification: Performance of SimCode: time 1.813e-06/0.9969, allocations: 0 / 0.559 GB, free: 15.64 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/1.099, allocations: 24.67 MB / 0.5831 GB, free: 6.996 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002902/1.099, allocations: 115.7 kB / 0.5832 GB, free: 6.797 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.622/4.721, allocations: 3.938 kB / 0.5832 GB, free: 6.793 MB / 474.7 MB