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.469/2.469, allocations: 258 MB / 271.8 MB, free: 13.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.294e-05/5.31e-05, allocations: 7.938 kB / 335.8 MB, free: 1.945 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1682, allocations: 60.24 MB / 396 MB, free: 5.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5853/0.7536, allocations: 101.8 MB / 497.8 MB, free: 14.19 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003316/0.754, allocations: 91.55 kB / 497.9 MB, free: 14.14 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6347/1.389, allocations: 106.3 MB / 0.59 GB, free: 5.371 MB / 0.4948 GB Notification: Performance of FrontEnd: time 7.324e-06/1.389, allocations: 0 / 0.59 GB, free: 5.371 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002863/1.389, allocations: 131.9 kB / 0.5902 GB, free: 5.242 MB / 0.4948 GB 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.6801/2.069, allocations: 6.566 MB / 0.5966 GB, free: 123 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/2.069, allocations: 12.03 kB / 0.5966 GB, free: 123 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006586/2.076, allocations: 1.136 MB / 0.5977 GB, free: 122.9 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005375/2.081, allocations: 0.667 MB / 0.5983 GB, free: 122.5 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01364/2.095, allocations: 3.588 MB / 0.6019 GB, free: 122.3 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000895/2.096, allocations: 484.7 kB / 0.6023 GB, free: 122.3 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004894/2.101, allocations: 0.6286 MB / 0.6029 GB, free: 122.3 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05088/2.152, allocations: 14.09 MB / 0.6167 GB, free: 121.6 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003736/2.152, allocations: 20.47 kB / 0.6167 GB, free: 121.6 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003963/2.156, allocations: 258.4 kB / 0.6169 GB, free: 121.4 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001432/2.158, allocations: 0.9877 MB / 0.6179 GB, free: 121.2 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04706/2.205, allocations: 15.17 MB / 0.6327 GB, free: 116.6 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1154/2.32, allocations: 35.71 MB / 0.6676 GB, free: 102.1 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03092/2.351, allocations: 13.11 MB / 0.6804 GB, free: 90.13 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002097/2.353, allocations: 0.9755 MB / 0.6814 GB, free: 89.03 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.268e-05/2.353, allocations: 112.2 kB / 0.6815 GB, free: 88.91 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=731): time 1.189e-05/2.353, allocations: 0 / 0.6815 GB, free: 88.91 MB / 0.4949 GB Notification: Performance of matching and sorting (n=755): time 0.1104/2.464, allocations: 31.11 MB / 0.7118 GB, free: 61.2 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.816e-05/2.464, allocations: 129.3 kB / 0.712 GB, free: 61.06 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001825/2.466, allocations: 0.8803 MB / 0.7128 GB, free: 60.3 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002133/2.468, allocations: 145.7 kB / 0.713 GB, free: 60.15 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.001241/2.469, allocations: 2.265 MB / 0.7152 GB, free: 58.16 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.005071/2.474, allocations: 2.554 MB / 0.7177 GB, free: 55.87 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003228/2.478, allocations: 139.9 kB / 0.7178 GB, free: 55.73 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0009675/2.479, allocations: 0.646 MB / 0.7184 GB, free: 55.17 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01599/2.495, allocations: 4.901 MB / 0.7232 GB, free: 50.93 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01404/2.509, allocations: 5.607 MB / 0.7287 GB, free: 45.55 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01493/2.524, allocations: 5.813 MB / 0.7344 GB, free: 39.72 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.164e-05/2.524, allocations: 4 kB / 0.7344 GB, free: 39.71 MB / 0.4949 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.05176/2.576, allocations: 13.22 MB / 0.7473 GB, free: 26.45 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 4.702e-05/2.576, allocations: 12 kB / 0.7473 GB, free: 26.44 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-05/2.576, allocations: 8 kB / 0.7473 GB, free: 26.43 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01035/2.586, allocations: 1.516 MB / 0.7488 GB, free: 24.91 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01716/2.603, allocations: 1.56 MB / 0.7503 GB, free: 23.35 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03761/2.641, allocations: 13.4 MB / 0.7634 GB, free: 9.676 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009275/2.65, allocations: 351.7 kB / 0.7637 GB, free: 9.332 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002498/2.653, allocations: 267.8 kB / 0.764 GB, free: 9.07 MB / 0.4949 GB Warning: Assuming fixed start value for the following 3 variables: penstockKP.U[20]:VARIABLE(fixed = true ) "centered states" type: Real [20] penstockKP.U[11]:VARIABLE(fixed = true ) "centered states" type: Real [20] intake.M:VARIABLE(unit = "kg.m/s" fixed = true ) "Water momentum" type: Real 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.008594/2.661, allocations: 2.476 MB / 0.7664 GB, free: 6.582 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00202/2.664, allocations: 304.2 kB / 0.7667 GB, free: 6.281 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05768/2.721, allocations: 14.57 MB / 0.7809 GB, free: 7.656 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001274/2.721, allocations: 83.98 kB / 0.781 GB, free: 7.574 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.017e-05/2.721, allocations: 3.938 kB / 0.781 GB, free: 7.57 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002253/2.722, allocations: 39.84 kB / 0.7811 GB, free: 7.531 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4624/3.184, allocations: 25.96 MB / 0.8064 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001218/3.184, allocations: 6.469 kB / 0.8064 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01861/3.203, allocations: 1.668 MB / 0.808 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01009/3.213, allocations: 1.492 MB / 0.8095 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002629/3.216, allocations: 219.3 kB / 0.8097 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03419/3.25, allocations: 14.56 MB / 0.8239 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/3.25, allocations: 12.06 kB / 0.8239 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06918/3.319, allocations: 22.06 MB / 0.8455 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/3.32, allocations: 411.2 kB / 0.8459 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003491/3.324, allocations: 155.8 kB / 0.846 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009334/3.333, allocations: 340.3 kB / 0.8464 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003281/3.337, allocations: 0.535 MB / 0.8469 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002351/3.339, allocations: 263.4 kB / 0.8471 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001412/3.34, allocations: 0.6462 MB / 0.8478 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.61e-07/3.34, allocations: 0 / 0.8478 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01048/3.351, allocations: 1.892 MB / 0.8496 GB, free: 114.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 24 (reservoir.m,intake.M,tail.m,surgeTank.m,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 (787): * Single equations (assignments): 783 * 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.07254/3.423, allocations: 25.32 MB / 0.8743 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0347/3.458, allocations: 12.2 MB / 0.8862 GB, free: 87.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/3.458, allocations: 0 / 0.8862 GB, free: 87.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01989/3.478, allocations: 6.775 MB / 0.8929 GB, free: 81.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004954/3.483, allocations: 368.8 kB / 0.8932 GB, free: 81.19 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1346/3.618, allocations: 53.41 MB / 0.9454 GB, free: 32.87 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01033/3.628, allocations: 4.389 MB / 0.9497 GB, free: 29.5 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.02021/3.649, allocations: 3.766 MB / 0.9533 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01304/3.662, allocations: 2.83 MB / 0.9561 GB, free: 23.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.683e-06/3.662, allocations: 0 / 0.9561 GB, free: 23.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6369/4.299, allocations: 123.4 MB / 1.077 GB, free: 114.1 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/4.299, allocations: 191.6 kB / 1.077 GB, free: 113.9 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/11.88, allocations: 0 / 1.077 GB, free: 113.9 MB / 0.5262 GB