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.604/2.604, allocations: 256.4 MB / 268.5 MB, free: 12.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.763e-05/3.779e-05, allocations: 4 kB / 331.3 MB, free: 13.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4069, allocations: 59.8 MB / 391.1 MB, free: 5.461 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1911/0.5981, allocations: 108 MB / 499.1 MB, free: 9.332 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.5984, allocations: 79.97 kB / 499.1 MB, free: 9.254 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9205/1.519, allocations: 110.2 MB / 0.595 GB, free: 76.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.519, allocations: 4 kB / 0.595 GB, free: 76.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000223/1.519, allocations: 132.6 kB / 0.5952 GB, free: 76.01 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: 2345 * Number of variables: 2345 Notification: Performance of Generate backend data structure: time 0.03759/1.557, allocations: 6.867 MB / 0.6019 GB, free: 69.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/1.557, allocations: 12.03 kB / 0.6019 GB, free: 69.06 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005577/1.563, allocations: 1.186 MB / 0.603 GB, free: 67.86 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005552/1.568, allocations: 0.7135 MB / 0.6037 GB, free: 67.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01355/1.582, allocations: 3.662 MB / 0.6073 GB, free: 63.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008539/1.583, allocations: 0.5422 MB / 0.6078 GB, free: 62.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004868/1.588, allocations: 0.6601 MB / 0.6085 GB, free: 62.21 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04697/1.635, allocations: 14.39 MB / 0.6225 GB, free: 47.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003911/1.635, allocations: 19.88 kB / 0.6226 GB, free: 47.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004226/1.639, allocations: 276 kB / 0.6228 GB, free: 47.46 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001218/1.641, allocations: 1.005 MB / 0.6238 GB, free: 46.45 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04714/1.688, allocations: 15.37 MB / 0.6388 GB, free: 31.07 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.127/1.815, allocations: 37.19 MB / 0.6751 GB, free: 9.648 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03609/1.851, allocations: 13.36 MB / 0.6882 GB, free: 12.11 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01581/1.867, allocations: 5.417 MB / 0.6935 GB, free: 6.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002424/1.869, allocations: 0.9892 MB / 0.6944 GB, free: 5.504 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001165/1.869, allocations: 112.6 kB / 0.6945 GB, free: 5.383 MB / 490.7 MB Notification: Performance of pre-optimization done (n=773): time 1.079e-05/1.869, allocations: 4 kB / 0.6945 GB, free: 5.379 MB / 490.7 MB Notification: Performance of matching and sorting (n=797): time 0.8202/2.69, allocations: 26.11 MB / 0.72 GB, free: 121.6 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.193e-05/2.69, allocations: 133.3 kB / 0.7202 GB, free: 121.5 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002154/2.692, allocations: 1.018 MB / 0.7212 GB, free: 121.4 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002179/2.694, allocations: 155 kB / 0.7213 GB, free: 121.3 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.001523/2.696, allocations: 2.396 MB / 0.7237 GB, free: 120.9 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.004462/2.7, allocations: 2.702 MB / 0.7263 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001538/2.702, allocations: 146.9 kB / 0.7264 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.000739/2.703, allocations: 0.6662 MB / 0.7271 GB, free: 118.8 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01406/2.717, allocations: 5.018 MB / 0.732 GB, free: 118.8 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01543/2.732, allocations: 5.797 MB / 0.7376 GB, free: 118.3 MB / 0.4949 GB 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.3229/3.055, allocations: 45.83 MB / 0.7824 GB, free: 107.3 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.961e-05/3.055, allocations: 3.953 kB / 0.7824 GB, free: 107.3 MB / 0.4949 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.05551/3.111, allocations: 14 MB / 0.7961 GB, free: 95.22 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 4.844e-05/3.111, allocations: 13.09 kB / 0.7961 GB, free: 95.21 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.424e-05/3.111, allocations: 8 kB / 0.7961 GB, free: 95.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01156/3.122, allocations: 1.814 MB / 0.7979 GB, free: 93.86 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02183/3.144, allocations: 1.789 MB / 0.7996 GB, free: 92.51 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04264/3.187, allocations: 24.11 MB / 0.8232 GB, free: 68.99 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01086/3.198, allocations: 383.6 kB / 0.8235 GB, free: 68.61 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00281/3.201, allocations: 287.8 kB / 0.8238 GB, free: 68.33 MB / 0.4949 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: surgeTank.Vdot = $START.surgeTank.Vdot surgeTank.h = $START.surgeTank.h. 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 (884): * Single equations (assignments): 874 * 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: 4 * 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: 4 {1 28,1 7,1 22,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.005096/3.206, allocations: 496.5 kB / 0.8243 GB, free: 67.84 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002652/3.209, allocations: 335.9 kB / 0.8246 GB, free: 67.51 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05605/3.265, allocations: 14.89 MB / 0.8391 GB, free: 52.58 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-05/3.265, allocations: 84 kB / 0.8392 GB, free: 52.5 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.219e-05/3.265, allocations: 0 / 0.8392 GB, free: 52.5 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002368/3.265, allocations: 39.84 kB / 0.8393 GB, free: 52.46 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0888/3.354, allocations: 26.77 MB / 0.8654 GB, free: 25.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000127/3.354, allocations: 11.94 kB / 0.8654 GB, free: 25.69 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02003/3.374, allocations: 1.787 MB / 0.8672 GB, free: 23.9 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01092/3.385, allocations: 1.611 MB / 0.8687 GB, free: 22.29 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002631/3.388, allocations: 227.8 kB / 0.8689 GB, free: 22.06 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03344/3.421, allocations: 21.91 MB / 0.8903 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.475e-05/3.421, allocations: 11.94 kB / 0.8904 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07163/3.493, allocations: 22.65 MB / 0.9125 GB, free: 7.785 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/3.494, allocations: 448.3 kB / 0.9129 GB, free: 7.324 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003027/3.497, allocations: 160 kB / 0.9131 GB, free: 7.168 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009731/3.507, allocations: 371.6 kB / 0.9134 GB, free: 6.805 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003237/3.51, allocations: 0.5836 MB / 0.914 GB, free: 6.219 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001761/3.512, allocations: 271.5 kB / 0.9142 GB, free: 5.957 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.00186/3.514, allocations: 0.7462 MB / 0.915 GB, free: 5.199 MB / 0.5262 GB Notification: Performance of sort global known variables: time 5.2e-07/3.514, allocations: 0 / 0.915 GB, free: 5.199 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.011/3.525, allocations: 2.034 MB / 0.9169 GB, free: 3.18 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * 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 (838): * Single equations (assignments): 828 * 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.479/4.004, allocations: 25.99 MB / 0.9423 GB, free: 145.1 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.03718/4.041, allocations: 13.02 MB / 0.955 GB, free: 142.1 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/4.041, allocations: 3.688 kB / 0.955 GB, free: 142.1 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02024/4.061, allocations: 7.189 MB / 0.9621 GB, free: 139.7 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00475/4.066, allocations: 385.8 kB / 0.9624 GB, free: 139.5 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05786/4.124, allocations: 18.65 MB / 0.9807 GB, free: 129.3 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009905/4.134, allocations: 4.552 MB / 0.9851 GB, free: 125.8 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.02058/4.155, allocations: 3.797 MB / 0.9888 GB, free: 123.2 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01249/4.167, allocations: 3.183 MB / 0.9919 GB, free: 120.3 MB / 0.5262 GB Notification: Performance of SimCode: time 2.805e-06/4.167, allocations: 0 / 0.9919 GB, free: 120.3 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6401/4.807, allocations: 136.9 MB / 1.126 GB, free: 125.9 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002388/4.808, allocations: 157.1 kB / 1.126 GB, free: 125.7 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.152/12.96, allocations: 0 / 1.126 GB, free: 125.7 MB / 0.5262 GB