Running command: "" <> buildModelFMU(OpenHPL.Examples.HPDetailed,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPDetailed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.475/2.475, allocations: 258 MB / 265.1 MB, free: 5.461 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.141e-05/2.153e-05, allocations: 0.5 kB / 327.7 MB, free: 9.895 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1341, allocations: 60.24 MB / 388 MB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5188/0.6529, allocations: 101.1 MB / 489.1 MB, free: 6.059 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.6533, allocations: 89.67 kB / 489.2 MB, free: 6.047 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6084/1.262, allocations: 105.3 MB / 0.5805 GB, free: 12.59 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.262, allocations: 0 / 0.5805 GB, free: 12.59 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003807/1.262, allocations: 128 kB / 0.5807 GB, free: 12.47 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: 2252 * Number of variables: 2252 Notification: Performance of Generate backend data structure: time 0.05017/1.312, allocations: 6.572 MB / 0.5871 GB, free: 5.824 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.244e-05/1.312, allocations: 12.03 kB / 0.5871 GB, free: 5.812 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006265/1.319, allocations: 0.6593 MB / 0.5877 GB, free: 5.145 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01452/1.333, allocations: 3.584 MB / 0.5912 GB, free: 1.508 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005589/1.334, allocations: 208 kB / 0.5914 GB, free: 1.305 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004734/1.339, allocations: 383.9 kB / 0.5918 GB, free: 0.9297 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04627/1.385, allocations: 15.29 MB / 0.6067 GB, free: 1.621 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04404/1.429, allocations: 12.85 MB / 0.6193 GB, free: 4.707 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002388/1.429, allocations: 7.906 kB / 0.6193 GB, free: 4.699 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002315/1.432, allocations: 4 kB / 0.6193 GB, free: 4.695 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001489/1.433, allocations: 0.989 MB / 0.6203 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4643/1.898, allocations: 34.12 MB / 0.6536 GB, free: 134.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02963/1.927, allocations: 12.6 MB / 0.6659 GB, free: 133.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01224/1.94, allocations: 4.998 MB / 0.6708 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002045/1.942, allocations: 0.9863 MB / 0.6717 GB, free: 130.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.624e-05/1.942, allocations: 105.8 kB / 0.6718 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=722): time 1.049e-05/1.942, allocations: 0 / 0.6718 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=746): time 0.09048/2.032, allocations: 24.61 MB / 0.6959 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.024e-05/2.032, allocations: 134.3 kB / 0.696 GB, free: 123 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001845/2.034, allocations: 0.8627 MB / 0.6968 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00215/2.036, allocations: 25.7 kB / 0.6969 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001414/2.038, allocations: 2.283 MB / 0.6991 GB, free: 121 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004084/2.042, allocations: 2.423 MB / 0.7014 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001736/2.044, allocations: 0 / 0.7014 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006921/2.044, allocations: 0.6408 MB / 0.7021 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01162/2.056, allocations: 4.654 MB / 0.7066 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01266/2.069, allocations: 5.318 MB / 0.7118 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/2.084, allocations: 5.761 MB / 0.7174 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.448e-05/2.084, allocations: 4 kB / 0.7174 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.04372/2.128, allocations: 12.65 MB / 0.7298 GB, free: 98.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.801e-05/2.128, allocations: 19.08 kB / 0.7298 GB, free: 98.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.425e-05/2.128, allocations: 12 kB / 0.7298 GB, free: 98.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009138/2.137, allocations: 1.461 MB / 0.7313 GB, free: 96.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0166/2.154, allocations: 1.549 MB / 0.7328 GB, free: 95.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02426/2.178, allocations: 10.52 MB / 0.743 GB, free: 86.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009252/2.188, allocations: 216.5 kB / 0.7432 GB, free: 86.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002227/2.19, allocations: 268.7 kB / 0.7435 GB, free: 86 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 (820): * Single equations (assignments): 818 * 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.002076/2.192, allocations: 222.4 kB / 0.7437 GB, free: 85.86 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04339/2.235, allocations: 11.76 MB / 0.7552 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002724/2.238, allocations: 304.2 kB / 0.7555 GB, free: 75.43 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05102/2.289, allocations: 13.79 MB / 0.7689 GB, free: 64.04 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/2.289, allocations: 80 kB / 0.769 GB, free: 63.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.387e-05/2.29, allocations: 3.953 kB / 0.769 GB, free: 63.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002123/2.29, allocations: 41.02 kB / 0.7691 GB, free: 63.95 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07932/2.369, allocations: 23.9 MB / 0.7924 GB, free: 43.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001001/2.369, allocations: 4 kB / 0.7924 GB, free: 43.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01804/2.387, allocations: 1.639 MB / 0.794 GB, free: 42.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009168/2.396, allocations: 1.433 MB / 0.7954 GB, free: 40.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002454/2.399, allocations: 107.8 kB / 0.7955 GB, free: 40.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02593/2.425, allocations: 13 MB / 0.8082 GB, free: 27.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-05/2.425, allocations: 11.95 kB / 0.8082 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0595/2.485, allocations: 21.01 MB / 0.8287 GB, free: 5.809 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008785/2.485, allocations: 404.8 kB / 0.8291 GB, free: 5.391 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002918/2.488, allocations: 23.94 kB / 0.8291 GB, free: 5.367 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008294/2.497, allocations: 211.6 kB / 0.8294 GB, free: 5.16 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00272/2.499, allocations: 0.5287 MB / 0.8299 GB, free: 4.629 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001387/2.501, allocations: 251.8 kB / 0.8301 GB, free: 4.383 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001228/2.502, allocations: 0.6202 MB / 0.8307 GB, free: 3.766 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.91e-07/2.502, allocations: 0 / 0.8307 GB, free: 3.766 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008653/2.511, allocations: 1.617 MB / 0.8323 GB, free: 2.164 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 24 (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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (778): * Single equations (assignments): 774 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {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.4204/2.931, allocations: 23.47 MB / 0.8552 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02866/2.96, allocations: 11.55 MB / 0.8665 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/2.96, allocations: 2.844 kB / 0.8665 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01696/2.977, allocations: 6.412 MB / 0.8728 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004266/2.981, allocations: 239.9 kB / 0.873 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04895/3.03, allocations: 16.87 MB / 0.8895 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009002/3.039, allocations: 4.386 MB / 0.8937 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01938/3.059, allocations: 3.743 MB / 0.8974 GB, free: 120 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01052/3.069, allocations: 2.926 MB / 0.9003 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.553e-06/3.069, allocations: 4 kB / 0.9003 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2719/3.341, allocations: 123.5 MB / 1.021 GB, free: 6.398 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002697/3.342, allocations: 135.1 kB / 1.021 GB, free: 6.207 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.122/10.46, allocations: 0 / 1.021 GB, free: 6.207 MB / 0.5105 GB