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.587/2.587, allocations: 256.4 MB / 268.5 MB, free: 12.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.194e-05/4.225e-05, allocations: 4 kB / 331.3 MB, free: 13.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4155/0.4156, allocations: 59.81 MB / 391.1 MB, free: 5.441 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1904/0.6061, allocations: 102.4 MB / 493.5 MB, free: 14.91 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/0.6065, allocations: 83.95 kB / 493.6 MB, free: 14.83 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9264/1.533, allocations: 106.8 MB / 0.5863 GB, free: 85.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.405e-06/1.533, allocations: 0 / 0.5863 GB, free: 85.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002183/1.533, allocations: 136.2 kB / 0.5864 GB, free: 85.39 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: 2262 * Number of variables: 2262 Notification: Performance of Generate backend data structure: time 0.03781/1.571, allocations: 6.619 MB / 0.5929 GB, free: 78.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/1.571, allocations: 8.031 kB / 0.5929 GB, free: 78.69 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006193/1.577, allocations: 1.141 MB / 0.594 GB, free: 77.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005354/1.583, allocations: 0.6786 MB / 0.5947 GB, free: 76.85 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01368/1.596, allocations: 3.6 MB / 0.5982 GB, free: 73.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008057/1.597, allocations: 492.8 kB / 0.5987 GB, free: 72.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004834/1.602, allocations: 0.6327 MB / 0.5993 GB, free: 72.08 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04625/1.648, allocations: 13.98 MB / 0.613 GB, free: 58.03 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004531/1.649, allocations: 7.906 kB / 0.613 GB, free: 58.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004238/1.653, allocations: 267.9 kB / 0.6132 GB, free: 57.76 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001202/1.654, allocations: 0.9892 MB / 0.6142 GB, free: 56.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0473/1.702, allocations: 14.93 MB / 0.6288 GB, free: 41.82 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1236/1.825, allocations: 35.84 MB / 0.6638 GB, free: 5.754 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03492/1.86, allocations: 13.01 MB / 0.6765 GB, free: 8.57 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0161/1.876, allocations: 5.248 MB / 0.6816 GB, free: 3.305 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002506/1.879, allocations: 0.9772 MB / 0.6826 GB, free: 2.141 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/1.879, allocations: 108.3 kB / 0.6827 GB, free: 2.023 MB / 474.7 MB Notification: Performance of pre-optimization done (n=737): time 1.047e-05/1.879, allocations: 4 kB / 0.6827 GB, free: 2.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=761): time 0.1072/1.986, allocations: 25.33 MB / 0.7074 GB, free: 8.531 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/1.987, allocations: 133.3 kB / 0.7075 GB, free: 8.387 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002273/1.989, allocations: 0.887 MB / 0.7084 GB, free: 7.496 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002357/1.991, allocations: 149.7 kB / 0.7085 GB, free: 7.344 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00206/1.993, allocations: 2.277 MB / 0.7108 GB, free: 5.035 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005386/1.999, allocations: 2.576 MB / 0.7133 GB, free: 2.422 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002471/2.001, allocations: 136 kB / 0.7134 GB, free: 2.289 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009742/2.002, allocations: 0.6505 MB / 0.714 GB, free: 1.629 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3667/2.369, allocations: 4.809 MB / 0.7187 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01549/2.385, allocations: 5.522 MB / 0.7241 GB, free: 128.4 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: 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.3055/2.69, allocations: 43.32 MB / 0.7664 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.403e-05/2.69, allocations: 4 kB / 0.7664 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.09958/2.79, allocations: 13.4 MB / 0.7795 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.778e-05/2.79, allocations: 8 kB / 0.7795 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.667e-05/2.79, allocations: 12 kB / 0.7795 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01284/2.803, allocations: 1.717 MB / 0.7812 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01719/2.82, allocations: 1.555 MB / 0.7827 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03328/2.853, allocations: 15.59 MB / 0.798 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009089/2.863, allocations: 362 kB / 0.7983 GB, free: 94.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002532/2.865, allocations: 269 kB / 0.7986 GB, free: 94.6 MB / 0.4948 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: 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 (813): * Single equations (assignments): 809 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 28,1 7,1 24,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.004209/2.869, allocations: 481.6 kB / 0.799 GB, free: 94.18 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002176/2.872, allocations: 308.9 kB / 0.7993 GB, free: 94.04 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05435/2.926, allocations: 14.33 MB / 0.8133 GB, free: 81.14 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.673e-05/2.926, allocations: 83.89 kB / 0.8134 GB, free: 81.06 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/2.926, allocations: 3.953 kB / 0.8134 GB, free: 81.05 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002221/2.926, allocations: 39.84 kB / 0.8134 GB, free: 81.02 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09058/3.017, allocations: 25.88 MB / 0.8387 GB, free: 55.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001282/3.017, allocations: 8 kB / 0.8387 GB, free: 55.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01949/3.037, allocations: 1.682 MB / 0.8404 GB, free: 53.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009693/3.046, allocations: 1.456 MB / 0.8418 GB, free: 52.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002784/3.049, allocations: 215.8 kB / 0.842 GB, free: 51.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0295/3.079, allocations: 14.77 MB / 0.8564 GB, free: 36.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.096e-05/3.079, allocations: 11.94 kB / 0.8564 GB, free: 36.54 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06796/3.147, allocations: 21.8 MB / 0.8777 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008563/3.148, allocations: 414 kB / 0.8781 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003044/3.151, allocations: 152 kB / 0.8783 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009373/3.16, allocations: 351.6 kB / 0.8786 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003439/3.164, allocations: 0.5521 MB / 0.8791 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002556/3.166, allocations: 259.8 kB / 0.8794 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00142/3.168, allocations: 0.6514 MB / 0.88 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.01e-07/3.168, allocations: 0 / 0.88 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01093/3.179, allocations: 1.92 MB / 0.8819 GB, free: 10.07 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 25 (reservoir.m,tail.m,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],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.07912/3.258, allocations: 25.05 MB / 0.9064 GB, free: 0.8516 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3828/3.641, allocations: 12.28 MB / 0.9183 GB, free: 144.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/3.641, allocations: 0 / 0.9183 GB, free: 144.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0195/3.66, allocations: 6.713 MB / 0.9249 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004578/3.665, allocations: 375.3 kB / 0.9253 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05546/3.721, allocations: 17.82 MB / 0.9427 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01012/3.731, allocations: 4.434 MB / 0.947 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01921/3.75, allocations: 3.716 MB / 0.9506 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01186/3.762, allocations: 2.891 MB / 0.9534 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.883e-06/3.762, allocations: 0 / 0.9534 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3035/4.065, allocations: 129.5 MB / 1.08 GB, free: 19.49 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002569/4.066, allocations: 209.6 kB / 1.08 GB, free: 19.26 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.671/11.74, allocations: 0 / 1.08 GB, free: 19.26 MB / 0.5105 GB