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.433/2.433, allocations: 256.4 MB / 268.5 MB, free: 12.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.12e-05/4.142e-05, allocations: 4 kB / 331.3 MB, free: 13.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3943, allocations: 59.8 MB / 391.1 MB, free: 5.438 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2515/0.6458, allocations: 114.5 MB / 0.4938 GB, free: 2.758 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003324/0.6462, allocations: 87.95 kB / 0.4939 GB, free: 2.672 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.026/1.672, allocations: 140.5 MB / 0.631 GB, free: 39.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.672, allocations: 0 / 0.631 GB, free: 39.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003727/1.673, allocations: 171.9 kB / 0.6312 GB, free: 38.9 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.04685/1.72, allocations: 8.358 MB / 0.6394 GB, free: 30.47 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/1.72, allocations: 8.031 kB / 0.6394 GB, free: 30.46 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007117/1.727, allocations: 1.284 MB / 0.6406 GB, free: 29.17 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/1.738, allocations: 1.286 MB / 0.6419 GB, free: 27.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01632/1.755, allocations: 4.381 MB / 0.6462 GB, free: 23.44 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001211/1.756, allocations: 0.7957 MB / 0.6469 GB, free: 22.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005426/1.761, allocations: 0.7303 MB / 0.6477 GB, free: 21.87 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05136/1.813, allocations: 15.25 MB / 0.6625 GB, free: 6.57 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004482/1.813, allocations: 11.91 kB / 0.6626 GB, free: 6.559 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00487/1.818, allocations: 304 kB / 0.6628 GB, free: 6.262 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001271/1.819, allocations: 1.019 MB / 0.6638 GB, free: 5.242 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05522/1.875, allocations: 16.21 MB / 0.6797 GB, free: 5.023 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5132/2.388, allocations: 40.6 MB / 0.7193 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03627/2.424, allocations: 15.2 MB / 0.7342 GB, free: 98.57 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01578/2.44, allocations: 5.979 MB / 0.74 GB, free: 98.53 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002651/2.443, allocations: 1.007 MB / 0.741 GB, free: 97.58 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001128/2.443, allocations: 121.2 kB / 0.7411 GB, free: 97.54 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=862): time 1.173e-05/2.443, allocations: 0 / 0.7411 GB, free: 97.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=886): time 0.1266/2.57, allocations: 31.42 MB / 0.7718 GB, free: 90.75 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/2.57, allocations: 199.5 kB / 0.772 GB, free: 90.62 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004794/2.575, allocations: 1.863 MB / 0.7738 GB, free: 89.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002816/2.577, allocations: 167.4 kB / 0.774 GB, free: 89.76 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002262/2.58, allocations: 2.87 MB / 0.7768 GB, free: 87.68 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005606/2.585, allocations: 2.995 MB / 0.7797 GB, free: 85.36 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002843/2.588, allocations: 170.5 kB / 0.7798 GB, free: 85.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008983/2.589, allocations: 0.6407 MB / 0.7805 GB, free: 84.79 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01645/2.606, allocations: 5.403 MB / 0.7857 GB, free: 82.96 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01746/2.623, allocations: 6.272 MB / 0.7919 GB, free: 79.8 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.3583/2.982, allocations: 49 MB / 0.8397 GB, free: 44.06 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.824e-05/2.982, allocations: 4 kB / 0.8397 GB, free: 44.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.1173/3.099, allocations: 17.97 MB / 0.8573 GB, free: 28.85 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001506/3.101, allocations: 5.353 MB / 0.8625 GB, free: 23.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.814e-05/3.101, allocations: 12.05 kB / 0.8625 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02897/3.13, allocations: 3.49 MB / 0.8659 GB, free: 20.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02181/3.152, allocations: 1.906 MB / 0.8678 GB, free: 19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06931/3.221, allocations: 29.63 MB / 0.8967 GB, free: 4.484 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01303/3.234, allocations: 0.5464 MB / 0.8973 GB, free: 3.938 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003067/3.237, allocations: 307.8 kB / 0.8976 GB, free: 3.637 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/3.237, allocations: 11.98 kB / 0.8976 GB, free: 3.625 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08308/3.32, allocations: 17.61 MB / 0.9148 GB, free: 1.996 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/3.321, allocations: 15.95 kB / 0.9148 GB, free: 1.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3813/3.702, allocations: 3.481 MB / 0.9182 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02207/3.724, allocations: 1.896 MB / 0.92 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06539/3.789, allocations: 29.58 MB / 0.9489 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01253/3.802, allocations: 0.5339 MB / 0.9494 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002964/3.805, allocations: 310.7 kB / 0.9497 GB, free: 115.5 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.004917/3.81, allocations: 0.5254 MB / 0.9503 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003105/3.813, allocations: 462.1 kB / 0.9507 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08553/3.899, allocations: 19.1 MB / 0.9693 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001247/3.899, allocations: 95.84 kB / 0.9694 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.566e-05/3.899, allocations: 0 / 0.9694 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002781/3.899, allocations: 47.81 kB / 0.9695 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1282/4.027, allocations: 32.5 MB / 1.001 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001476/4.028, allocations: 8 kB / 1.001 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02105/4.049, allocations: 1.871 MB / 1.003 GB, free: 99.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02035/4.069, allocations: 3.274 MB / 1.006 GB, free: 97.26 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003015/4.072, allocations: 248.3 kB / 1.006 GB, free: 97.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.057/4.129, allocations: 28.62 MB / 1.034 GB, free: 69.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-05/4.129, allocations: 11.94 kB / 1.034 GB, free: 69.55 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09227/4.221, allocations: 27.92 MB / 1.062 GB, free: 44.56 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/4.223, allocations: 0.5633 MB / 1.062 GB, free: 44.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003586/4.227, allocations: 183.2 kB / 1.062 GB, free: 43.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01234/4.239, allocations: 0.5278 MB / 1.063 GB, free: 43.44 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004725/4.244, allocations: 0.7892 MB / 1.064 GB, free: 42.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003015/4.247, allocations: 291.7 kB / 1.064 GB, free: 42.73 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003379/4.25, allocations: 1.383 MB / 1.065 GB, free: 41.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.11e-07/4.25, allocations: 0 / 1.065 GB, free: 41.45 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02212/4.272, allocations: 3.764 MB / 1.069 GB, free: 37.7 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.1007/4.373, allocations: 31.59 MB / 1.1 GB, free: 9.355 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.4578/4.831, allocations: 24.46 MB / 1.124 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/4.831, allocations: 3.75 kB / 1.124 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02956/4.861, allocations: 8.975 MB / 1.133 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006279/4.867, allocations: 0.4913 MB / 1.133 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06649/4.934, allocations: 20.31 MB / 1.153 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0114/4.945, allocations: 5.163 MB / 1.158 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.03192/4.977, allocations: 6.195 MB / 1.164 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01344/4.99, allocations: 3.653 MB / 1.168 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.924e-06/4.991, allocations: 0 / 1.168 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8822/5.873, allocations: 194.4 MB / 1.357 GB, free: 130.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002542/5.873, allocations: 202.6 kB / 1.358 GB, free: 130.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/17.69, allocations: 2.625 kB / 1.358 GB, free: 130.5 MB / 0.5417 GB