Running command: "" <> buildModelFMU(OpenHPL.Examples.HPSimple_Francis_GridGen,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPSimple_Francis_GridGen",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.432/2.432, allocations: 257 MB / 269.1 MB, free: 11.75 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.967e-05/3.973e-05, allocations: 4 kB / 332.1 MB, free: 12.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.3976, allocations: 59.97 MB / 392.1 MB, free: 4.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2089/0.6066, allocations: 114.6 MB / 0.4948 GB, free: 1.832 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003224/0.6069, allocations: 83.95 kB / 0.4949 GB, free: 1.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.051/1.658, allocations: 140.5 MB / 0.6321 GB, free: 37.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.658, allocations: 0 / 0.6321 GB, free: 37.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003551/1.659, allocations: 171.9 kB / 0.6322 GB, free: 37.42 MB / 458.7 MB 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.04604/1.705, allocations: 8.364 MB / 0.6404 GB, free: 28.98 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/1.705, allocations: 8.031 kB / 0.6404 GB, free: 28.98 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006817/1.712, allocations: 1.272 MB / 0.6417 GB, free: 27.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01115/1.723, allocations: 1.29 MB / 0.6429 GB, free: 26.39 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01599/1.739, allocations: 4.381 MB / 0.6472 GB, free: 21.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001223/1.74, allocations: 0.7918 MB / 0.648 GB, free: 21.12 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005305/1.745, allocations: 0.7265 MB / 0.6487 GB, free: 20.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0493/1.795, allocations: 15.16 MB / 0.6635 GB, free: 5.184 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004495/1.795, allocations: 11.91 kB / 0.6635 GB, free: 5.172 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004745/1.8, allocations: 307.9 kB / 0.6638 GB, free: 4.871 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001225/1.801, allocations: 1.015 MB / 0.6648 GB, free: 3.855 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05693/1.858, allocations: 16.1 MB / 0.6805 GB, free: 3.75 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5116/2.37, allocations: 40.6 MB / 0.7201 GB, free: 99.68 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03617/2.406, allocations: 15.11 MB / 0.7349 GB, free: 98.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01552/2.422, allocations: 5.983 MB / 0.7407 GB, free: 98.05 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002492/2.424, allocations: 1.001 MB / 0.7417 GB, free: 97.11 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001178/2.424, allocations: 125.7 kB / 0.7418 GB, free: 97.06 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=862): time 1.146e-05/2.424, allocations: 0 / 0.7418 GB, free: 97.06 MB / 0.4948 GB Notification: Performance of matching and sorting (n=886): time 0.1239/2.548, allocations: 31.42 MB / 0.7725 GB, free: 89.92 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/2.548, allocations: 193.1 kB / 0.7727 GB, free: 89.79 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004426/2.553, allocations: 1.859 MB / 0.7745 GB, free: 89.07 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.003087/2.556, allocations: 172.5 kB / 0.7747 GB, free: 88.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00255/2.559, allocations: 2.872 MB / 0.7775 GB, free: 86.81 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005259/2.564, allocations: 3.001 MB / 0.7804 GB, free: 84.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00276/2.567, allocations: 161.2 kB / 0.7806 GB, free: 84.37 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008492/2.568, allocations: 0.6473 MB / 0.7812 GB, free: 83.92 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01583/2.583, allocations: 5.399 MB / 0.7865 GB, free: 82.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01721/2.601, allocations: 6.227 MB / 0.7926 GB, free: 78.37 MB / 0.4948 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: order2_1.w = $START.order2_1.w (1.0 = $START.order2_1.w) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: surgeTank.Vdot = $START.surgeTank.Vdot (surgeTank.Vdot_0 = $START.surgeTank.Vdot) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: surgeTank.h = $START.surgeTank.h (surgeTank.h_0 = $START.surgeTank.h) Notification: Performance of analyzeInitialSystem (initialization): time 0.3461/2.947, allocations: 49 MB / 0.8404 GB, free: 42.62 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-05/2.947, allocations: 4 kB / 0.8404 GB, free: 42.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.07819/3.025, allocations: 17.93 MB / 0.8579 GB, free: 27.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00108/3.026, allocations: 5.351 MB / 0.8632 GB, free: 21.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-05/3.026, allocations: 23.64 kB / 0.8632 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02181/3.048, allocations: 3.485 MB / 0.8666 GB, free: 19.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02889/3.077, allocations: 1.915 MB / 0.8685 GB, free: 17.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1069/3.184, allocations: 29.62 MB / 0.8974 GB, free: 2.625 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02003/3.204, allocations: 0.5425 MB / 0.8979 GB, free: 2.082 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004166/3.208, allocations: 311.8 kB / 0.8982 GB, free: 1.777 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/3.208, allocations: 8 kB / 0.8982 GB, free: 1.77 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.122/3.33, allocations: 17.58 MB / 0.9154 GB, free: 188 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.481e-05/3.331, allocations: 12 kB / 0.9154 GB, free: 176 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.377/3.708, allocations: 3.483 MB / 0.9188 GB, free: 128 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02153/3.729, allocations: 1.899 MB / 0.9207 GB, free: 128 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07767/3.807, allocations: 29.57 MB / 0.9495 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01823/3.825, allocations: 0.533 MB / 0.9501 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003767/3.829, allocations: 311.5 kB / 0.9504 GB, free: 115 MB / 0.5261 GB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: order2_1.w = $START.order2_1.w surgeTank.Vdot = $START.surgeTank.Vdot surgeTank.h = $START.surgeTank.h. 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 (936): * Single equations (assignments): 926 * 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: 5 * 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: 5 {1 28,1 7,1 22,1 7,26 10} Notification: Performance of prepare postOptimizeDAE: time 0.005376/3.834, allocations: 0.5238 MB / 0.9509 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004169/3.839, allocations: 466.2 kB / 0.9513 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09078/3.93, allocations: 19.11 MB / 0.97 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001156/3.93, allocations: 95.06 kB / 0.9701 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-05/3.93, allocations: 3.562 kB / 0.9701 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002817/3.93, allocations: 44.2 kB / 0.9701 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1175/4.048, allocations: 32.48 MB / 1.002 GB, free: 99.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001561/4.048, allocations: 8 kB / 1.002 GB, free: 99.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02062/4.068, allocations: 1.874 MB / 1.004 GB, free: 97.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02001/4.088, allocations: 3.263 MB / 1.007 GB, free: 95.31 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002865/4.091, allocations: 246.4 kB / 1.007 GB, free: 95.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0547/4.146, allocations: 28.62 MB / 1.035 GB, free: 67.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.151e-05/4.146, allocations: 15.94 kB / 1.035 GB, free: 67.48 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08952/4.236, allocations: 27.91 MB / 1.062 GB, free: 42.49 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001469/4.237, allocations: 0.562 MB / 1.063 GB, free: 41.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003551/4.241, allocations: 178.6 kB / 1.063 GB, free: 41.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01223/4.253, allocations: 0.5349 MB / 1.064 GB, free: 41.37 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004518/4.258, allocations: 0.7859 MB / 1.064 GB, free: 40.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002611/4.26, allocations: 290 kB / 1.065 GB, free: 40.66 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003018/4.263, allocations: 1.384 MB / 1.066 GB, free: 39.37 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.21e-07/4.263, allocations: 0 / 1.066 GB, free: 39.37 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02043/4.284, allocations: 3.764 MB / 1.07 GB, free: 35.63 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,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,surgeTank.Vdot,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.09752/4.381, allocations: 31.59 MB / 1.1 GB, free: 7.285 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.4513/4.833, allocations: 24.39 MB / 1.124 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/4.833, allocations: 3.812 kB / 1.124 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02836/4.861, allocations: 8.859 MB / 1.133 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006051/4.867, allocations: 498.3 kB / 1.133 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06111/4.928, allocations: 20.25 MB / 1.153 GB, free: 123 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01046/4.939, allocations: 5.163 MB / 1.158 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0315/4.97, allocations: 6.193 MB / 1.164 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01236/4.983, allocations: 3.653 MB / 1.168 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of SimCode: time 2.544e-06/4.983, allocations: 0 / 1.168 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8586/5.842, allocations: 193.7 MB / 1.357 GB, free: 129.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000277/5.842, allocations: 204.7 kB / 1.357 GB, free: 129 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/17.33, allocations: 2.625 kB / 1.357 GB, free: 129 MB / 0.5417 GB