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.53/2.53, allocations: 257 MB / 269.1 MB, free: 11.78 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.896e-05/3.903e-05, allocations: 4 kB / 332.1 MB, free: 12.69 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4535/0.4536, allocations: 59.96 MB / 392.1 MB, free: 4.504 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1875/0.6412, allocations: 102.5 MB / 494.5 MB, free: 13.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/0.6416, allocations: 83.95 kB / 494.6 MB, free: 13.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9371/1.579, allocations: 106.8 MB / 0.5873 GB, free: 83.64 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.745e-06/1.579, allocations: 0 / 0.5873 GB, free: 83.64 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002146/1.579, allocations: 128 kB / 0.5875 GB, free: 83.51 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.03769/1.617, allocations: 6.623 MB / 0.5939 GB, free: 76.82 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/1.617, allocations: 12.03 kB / 0.5939 GB, free: 76.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006783/1.624, allocations: 1.141 MB / 0.5951 GB, free: 75.65 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005486/1.629, allocations: 0.6708 MB / 0.5957 GB, free: 74.97 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01341/1.643, allocations: 3.6 MB / 0.5992 GB, free: 71.32 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007875/1.643, allocations: 492.9 kB / 0.5997 GB, free: 70.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004857/1.648, allocations: 0.6327 MB / 0.6003 GB, free: 70.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0462/1.695, allocations: 13.9 MB / 0.6139 GB, free: 56.24 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004502/1.695, allocations: 15.89 kB / 0.6139 GB, free: 56.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004351/1.699, allocations: 264 kB / 0.6142 GB, free: 55.97 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001223/1.701, allocations: 0.9852 MB / 0.6151 GB, free: 54.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04684/1.748, allocations: 14.84 MB / 0.6296 GB, free: 40.13 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1232/1.871, allocations: 35.83 MB / 0.6646 GB, free: 4.07 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03682/1.908, allocations: 12.95 MB / 0.6773 GB, free: 6.961 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01653/1.924, allocations: 5.24 MB / 0.6824 GB, free: 1.703 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002589/1.927, allocations: 0.985 MB / 0.6833 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001401/1.927, allocations: 108.3 kB / 0.6834 GB, free: 424 kB / 474.7 MB Notification: Performance of pre-optimization done (n=737): time 1.108e-05/1.927, allocations: 0 / 0.6834 GB, free: 424 kB / 474.7 MB Notification: Performance of matching and sorting (n=761): time 0.1104/2.038, allocations: 25.33 MB / 0.7082 GB, free: 6.918 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/2.038, allocations: 141.3 kB / 0.7083 GB, free: 6.766 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002406/2.04, allocations: 0.8909 MB / 0.7092 GB, free: 5.863 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002768/2.043, allocations: 145.7 kB / 0.7093 GB, free: 5.715 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002283/2.045, allocations: 2.277 MB / 0.7115 GB, free: 3.402 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005458/2.051, allocations: 2.572 MB / 0.7141 GB, free: 0.793 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002501/2.054, allocations: 140 kB / 0.7142 GB, free: 0.6562 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001039/2.055, allocations: 0.6466 MB / 0.7148 GB, free: 0 / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3723/2.427, allocations: 4.809 MB / 0.7195 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01568/2.443, allocations: 5.484 MB / 0.7249 GB, free: 128 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.3057/2.748, allocations: 43.31 MB / 0.7672 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.559e-05/2.749, allocations: 4 kB / 0.7672 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.0559/2.804, allocations: 13.38 MB / 0.7802 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.457e-05/2.805, allocations: 8 kB / 0.7803 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.275e-05/2.805, allocations: 12 kB / 0.7803 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01155/2.816, allocations: 1.727 MB / 0.7819 GB, free: 108 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01746/2.834, allocations: 1.538 MB / 0.7835 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03599/2.87, allocations: 15.59 MB / 0.7987 GB, free: 92.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009893/2.88, allocations: 361.6 kB / 0.799 GB, free: 92.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002805/2.883, allocations: 269.2 kB / 0.7993 GB, free: 92.09 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.004982/2.888, allocations: 470 kB / 0.7997 GB, free: 91.68 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002887/2.89, allocations: 309.8 kB / 0.8 GB, free: 91.53 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05718/2.948, allocations: 14.35 MB / 0.814 GB, free: 78.71 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.064e-05/2.948, allocations: 83.83 kB / 0.8141 GB, free: 78.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-05/2.948, allocations: 4.516 kB / 0.8141 GB, free: 78.63 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002297/2.948, allocations: 39.84 kB / 0.8142 GB, free: 78.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09106/3.039, allocations: 25.86 MB / 0.8394 GB, free: 52.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001266/3.039, allocations: 8 kB / 0.8394 GB, free: 52.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0191/3.059, allocations: 1.681 MB / 0.8411 GB, free: 51.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009728/3.068, allocations: 1.45 MB / 0.8425 GB, free: 49.67 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002779/3.071, allocations: 222 kB / 0.8427 GB, free: 49.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02912/3.1, allocations: 14.76 MB / 0.8571 GB, free: 34.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/3.1, allocations: 11.94 kB / 0.8571 GB, free: 34.12 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06882/3.169, allocations: 21.8 MB / 0.8784 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009022/3.17, allocations: 405.2 kB / 0.8788 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003146/3.173, allocations: 160 kB / 0.8789 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009572/3.183, allocations: 351.6 kB / 0.8793 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003729/3.187, allocations: 0.5404 MB / 0.8798 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002632/3.189, allocations: 259.8 kB / 0.8801 GB, free: 10.22 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001396/3.191, allocations: 0.6592 MB / 0.8807 GB, free: 9.566 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.153e-06/3.191, allocations: 0 / 0.8807 GB, free: 9.566 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0112/3.202, allocations: 1.918 MB / 0.8826 GB, free: 7.672 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.4364/3.639, allocations: 25.05 MB / 0.907 GB, free: 134.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0348/3.674, allocations: 12.15 MB / 0.9189 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.265e-05/3.674, allocations: 0 / 0.9189 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01922/3.693, allocations: 6.643 MB / 0.9254 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004699/3.698, allocations: 368.7 kB / 0.9257 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05774/3.755, allocations: 17.78 MB / 0.9431 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01042/3.766, allocations: 4.414 MB / 0.9474 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.02002/3.786, allocations: 3.72 MB / 0.951 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01169/3.798, allocations: 2.893 MB / 0.9539 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.953e-06/3.798, allocations: 4 kB / 0.9539 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2918/4.09, allocations: 128.9 MB / 1.08 GB, free: 14.47 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/4.09, allocations: 205 kB / 1.08 GB, free: 14.24 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.333/11.42, allocations: 0 / 1.08 GB, free: 14.24 MB / 0.5105 GB