Running command: "" <> buildModelFMU(OpenHPL.Examples.HPDetailed_generator,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPDetailed_generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.652/2.652, allocations: 258 MB / 271.8 MB, free: 13.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.846e-05/4.839e-05, allocations: 4 kB / 335.8 MB, free: 1.926 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1739/0.174, allocations: 60.23 MB / 396 MB, free: 5.566 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5264/0.7004, allocations: 102.6 MB / 498.6 MB, free: 13.37 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003177/0.7008, allocations: 92.48 kB / 498.7 MB, free: 13.32 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6004/1.301, allocations: 107.1 MB / 0.5916 GB, free: 3.711 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.739e-06/1.301, allocations: 4 kB / 0.5916 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002796/1.302, allocations: 131.9 kB / 0.5918 GB, free: 3.578 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: 2262 * Number of variables: 2262 Notification: Performance of Generate backend data structure: time 0.6726/1.974, allocations: 6.614 MB / 0.5982 GB, free: 121 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/1.974, allocations: 9.297 kB / 0.5982 GB, free: 121 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006428/1.981, allocations: 1.143 MB / 0.5993 GB, free: 120.9 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00576/1.987, allocations: 0.6792 MB / 0.6 GB, free: 120.5 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01385/2, allocations: 3.599 MB / 0.6035 GB, free: 120 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008751/2.001, allocations: 489 kB / 0.604 GB, free: 120 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004998/2.006, allocations: 0.6357 MB / 0.6046 GB, free: 120 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05205/2.059, allocations: 14.15 MB / 0.6184 GB, free: 119.6 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004009/2.059, allocations: 9.312 kB / 0.6184 GB, free: 119.6 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004227/2.063, allocations: 263.7 kB / 0.6187 GB, free: 119.6 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001239/2.064, allocations: 0.984 MB / 0.6196 GB, free: 119.6 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04707/2.112, allocations: 15.24 MB / 0.6345 GB, free: 115.2 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1143/2.226, allocations: 35.82 MB / 0.6695 GB, free: 99.65 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03014/2.256, allocations: 13.15 MB / 0.6824 GB, free: 87.65 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002165/2.258, allocations: 0.981 MB / 0.6833 GB, free: 86.54 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.615e-05/2.259, allocations: 112.3 kB / 0.6834 GB, free: 86.42 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=737): time 1.09e-05/2.259, allocations: 7.938 kB / 0.6834 GB, free: 86.41 MB / 0.4949 GB Notification: Performance of matching and sorting (n=761): time 0.1236/2.382, allocations: 31.66 MB / 0.7143 GB, free: 58.29 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/2.382, allocations: 129.4 kB / 0.7145 GB, free: 58.14 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002526/2.385, allocations: 0.9001 MB / 0.7153 GB, free: 57.36 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002514/2.387, allocations: 149.7 kB / 0.7155 GB, free: 57.21 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.001727/2.389, allocations: 2.273 MB / 0.7177 GB, free: 55.22 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.005407/2.395, allocations: 2.571 MB / 0.7202 GB, free: 52.91 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/2.396, allocations: 136 kB / 0.7203 GB, free: 52.78 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0007712/2.397, allocations: 0.6485 MB / 0.721 GB, free: 52.21 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01769/2.415, allocations: 4.932 MB / 0.7258 GB, free: 47.94 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01673/2.431, allocations: 5.647 MB / 0.7313 GB, free: 42.23 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01487/2.446, allocations: 5.841 MB / 0.737 GB, free: 36.37 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-05/2.446, allocations: 4 kB / 0.737 GB, free: 36.37 MB / 0.4949 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.04575/2.492, allocations: 13.26 MB / 0.75 GB, free: 23.06 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 4.577e-05/2.492, allocations: 14.02 kB / 0.75 GB, free: 23.05 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.223e-05/2.492, allocations: 8 kB / 0.75 GB, free: 23.04 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009925/2.502, allocations: 1.518 MB / 0.7515 GB, free: 21.52 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02069/2.523, allocations: 1.587 MB / 0.753 GB, free: 19.94 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03564/2.559, allocations: 13.35 MB / 0.7661 GB, free: 6.312 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009097/2.568, allocations: 359.6 kB / 0.7664 GB, free: 5.961 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002114/2.57, allocations: 271.8 kB / 0.7667 GB, free: 5.695 MB / 0.4949 GB Warning: Assuming fixed start value for the following 3 variables: penstockKP.U[20]:VARIABLE(fixed = true ) "centered states" type: Real [20] penstockKP.U[11]:VARIABLE(fixed = true ) "centered states" type: Real [20] intake.M:VARIABLE(unit = "kg.m/s" fixed = true ) "Water momentum" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (827): * Single equations (assignments): 825 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 28,1 24} Notification: Performance of prepare postOptimizeDAE: time 0.008882/2.579, allocations: 2.492 MB / 0.7691 GB, free: 3.191 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002424/2.581, allocations: 312.2 kB / 0.7694 GB, free: 2.883 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05355/2.635, allocations: 14.6 MB / 0.7837 GB, free: 4.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.813e-05/2.635, allocations: 83.98 kB / 0.7837 GB, free: 4.148 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/2.635, allocations: 4 kB / 0.7837 GB, free: 4.145 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001774/2.635, allocations: 39.84 kB / 0.7838 GB, free: 4.105 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4461/3.081, allocations: 26.09 MB / 0.8093 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000166/3.082, allocations: 7.656 kB / 0.8093 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01872/3.1, allocations: 1.69 MB / 0.8109 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0102/3.11, allocations: 1.487 MB / 0.8124 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00275/3.113, allocations: 215.4 kB / 0.8126 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03418/3.148, allocations: 15.86 MB / 0.8281 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/3.148, allocations: 11.44 kB / 0.8281 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06903/3.217, allocations: 22.19 MB / 0.8497 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/3.218, allocations: 407.7 kB / 0.8501 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002989/3.221, allocations: 157.8 kB / 0.8503 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008926/3.23, allocations: 353.5 kB / 0.8506 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003555/3.233, allocations: 0.5432 MB / 0.8511 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00234/3.236, allocations: 258.9 kB / 0.8514 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001421/3.237, allocations: 0.6636 MB / 0.852 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.31e-07/3.237, allocations: 0 / 0.852 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009812/3.247, allocations: 1.907 MB / 0.8539 GB, free: 113.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 25 (reservoir.m,intake.M,tail.m,surgeTank.m,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],generator.K_a) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (793): * Single equations (assignments): 788 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {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 30,1 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.06897/3.316, allocations: 25.42 MB / 0.8787 GB, free: 92.51 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03397/3.35, allocations: 12.23 MB / 0.8907 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/3.35, allocations: 3.938 kB / 0.8907 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01893/3.369, allocations: 6.833 MB / 0.8973 GB, free: 75.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004271/3.373, allocations: 374.1 kB / 0.8977 GB, free: 75.45 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1259/3.499, allocations: 53.89 MB / 0.9503 GB, free: 26.56 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009306/3.509, allocations: 4.411 MB / 0.9546 GB, free: 22.58 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01878/3.527, allocations: 3.765 MB / 0.9583 GB, free: 18.83 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01019/3.538, allocations: 2.959 MB / 0.9612 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of SimCode: time 1.413e-06/3.538, allocations: 0 / 0.9612 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6266/4.164, allocations: 124.5 MB / 1.083 GB, free: 102.3 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/4.165, allocations: 202.3 kB / 1.083 GB, free: 102 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.345/11.51, allocations: 0 / 1.083 GB, free: 102 MB / 0.5262 GB