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.46/2.46, allocations: 258 MB / 265.1 MB, free: 5.477 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.813e-05/1.821e-05, allocations: 0 / 327.7 MB, free: 9.918 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1321, allocations: 60.23 MB / 388 MB, free: 13.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5109/0.6431, allocations: 101.9 MB / 489.9 MB, free: 5.922 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.6435, allocations: 81.77 kB / 490 MB, free: 5.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6122/1.256, allocations: 106.1 MB / 0.5821 GB, free: 10.98 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.256, allocations: 0 / 0.5821 GB, free: 10.98 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002734/1.256, allocations: 132 kB / 0.5822 GB, free: 10.85 MB / 474.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.03779/1.294, allocations: 6.634 MB / 0.5887 GB, free: 4.145 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/1.294, allocations: 8.031 kB / 0.5887 GB, free: 4.137 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004929/1.299, allocations: 0.667 MB / 0.5894 GB, free: 3.461 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01346/1.312, allocations: 3.6 MB / 0.5929 GB, free: 15.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004483/1.313, allocations: 208 kB / 0.5931 GB, free: 15.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004315/1.317, allocations: 395.8 kB / 0.5935 GB, free: 15.21 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04626/1.363, allocations: 15.32 MB / 0.6084 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04494/1.408, allocations: 12.88 MB / 0.621 GB, free: 2.949 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002901/1.409, allocations: 4 kB / 0.621 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003476/1.412, allocations: 4 kB / 0.621 GB, free: 2.941 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001483/1.414, allocations: 0.9891 MB / 0.622 GB, free: 1.949 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4633/1.877, allocations: 34.22 MB / 0.6554 GB, free: 136 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02852/1.906, allocations: 12.62 MB / 0.6677 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01277/1.919, allocations: 5.013 MB / 0.6726 GB, free: 133 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002205/1.921, allocations: 0.9807 MB / 0.6736 GB, free: 132 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.563e-05/1.921, allocations: 103.5 kB / 0.6737 GB, free: 131.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=728): time 1.049e-05/1.921, allocations: 0 / 0.6737 GB, free: 131.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=752): time 0.08996/2.011, allocations: 24.69 MB / 0.6978 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.925e-05/2.011, allocations: 128.6 kB / 0.6979 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0019/2.013, allocations: 0.8816 MB / 0.6988 GB, free: 124 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002272/2.015, allocations: 25.7 kB / 0.6988 GB, free: 124 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001494/2.017, allocations: 2.295 MB / 0.701 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004564/2.021, allocations: 2.446 MB / 0.7034 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002251/2.024, allocations: 0 / 0.7034 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008067/2.025, allocations: 0.6448 MB / 0.7041 GB, free: 120 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01205/2.037, allocations: 4.662 MB / 0.7086 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01309/2.05, allocations: 5.335 MB / 0.7138 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.016/2.066, allocations: 5.772 MB / 0.7195 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-05/2.066, allocations: 0 / 0.7195 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.04792/2.114, allocations: 12.63 MB / 0.7318 GB, free: 97.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/2.114, allocations: 11.95 kB / 0.7318 GB, free: 97.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-05/2.114, allocations: 15.84 kB / 0.7318 GB, free: 97.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009439/2.123, allocations: 1.459 MB / 0.7332 GB, free: 96.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01726/2.141, allocations: 1.57 MB / 0.7348 GB, free: 95.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02385/2.165, allocations: 10.48 MB / 0.745 GB, free: 86.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009457/2.174, allocations: 226.2 kB / 0.7452 GB, free: 85.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002682/2.177, allocations: 265.5 kB / 0.7455 GB, free: 85.77 MB / 0.5105 GB Warning: Assuming fixed start value for the following 3 variables: penstockKP.U[20]:VARIABLE() "centered states" type: Real [20] penstockKP.U[11]:VARIABLE() "centered states" type: Real [20] surgeTank.Vdot:VARIABLE(start = surgeTank.Vdot_0 unit = "m3/s" ) "Water flow rate" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: penstockKP.p_[10,2]:VARIABLE(unit = "Pa" ) "boundary p. matrix" type: Real [10,4] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: penstockKP.p_[1,3]:VARIABLE(unit = "Pa" ) "boundary p. matrix" type: Real [10,4] 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.004627/2.182, allocations: 213.2 kB / 0.7457 GB, free: 85.64 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04383/2.225, allocations: 11.83 MB / 0.7572 GB, free: 75.45 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002959/2.228, allocations: 311.1 kB / 0.7575 GB, free: 75.14 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0464/2.275, allocations: 13.83 MB / 0.771 GB, free: 63.71 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001308/2.275, allocations: 80 kB / 0.7711 GB, free: 63.63 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/2.275, allocations: 3.953 kB / 0.7711 GB, free: 63.63 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002313/2.275, allocations: 40.69 kB / 0.7712 GB, free: 63.63 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07991/2.355, allocations: 23.9 MB / 0.7945 GB, free: 42.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001071/2.355, allocations: 8 kB / 0.7945 GB, free: 42.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01851/2.374, allocations: 1.666 MB / 0.7961 GB, free: 40.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009126/2.383, allocations: 1.442 MB / 0.7975 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002646/2.386, allocations: 107.8 kB / 0.7976 GB, free: 39.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02563/2.411, allocations: 14.25 MB / 0.8116 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.16e-05/2.412, allocations: 11.95 kB / 0.8116 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06261/2.474, allocations: 21.07 MB / 0.8321 GB, free: 3.246 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009065/2.475, allocations: 408.7 kB / 0.8325 GB, free: 2.824 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003322/2.478, allocations: 30.84 kB / 0.8326 GB, free: 2.797 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009149/2.488, allocations: 215.6 kB / 0.8328 GB, free: 2.586 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003484/2.491, allocations: 0.5288 MB / 0.8333 GB, free: 2.055 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002498/2.494, allocations: 251.8 kB / 0.8335 GB, free: 1.809 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001284/2.495, allocations: 0.6358 MB / 0.8341 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.5e-07/2.495, allocations: 0 / 0.8341 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.3607/2.856, allocations: 1.623 MB / 0.8357 GB, free: 133.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (784): * Single equations (assignments): 779 * 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.07138/2.927, allocations: 23.54 MB / 0.8587 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02936/2.957, allocations: 11.53 MB / 0.87 GB, free: 129 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/2.957, allocations: 0 / 0.87 GB, free: 129 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01772/2.974, allocations: 6.449 MB / 0.8763 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004459/2.979, allocations: 247.6 kB / 0.8765 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05666/3.036, allocations: 17.01 MB / 0.8931 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009029/3.045, allocations: 4.409 MB / 0.8974 GB, free: 120 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01916/3.064, allocations: 3.751 MB / 0.9011 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01053/3.075, allocations: 2.895 MB / 0.9039 GB, free: 116 MB / 0.5105 GB Notification: Performance of SimCode: time 2.996e-06/3.075, allocations: 0 / 0.9039 GB, free: 116 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6425/3.717, allocations: 124.5 MB / 1.025 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/3.717, allocations: 141.3 kB / 1.026 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.39/11.11, allocations: 1.719 kB / 1.026 GB, free: 103.7 MB / 0.5105 GB