Running command: "" <> buildModelFMU(OpenHPL.Examples.HPSimple_Francis,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPSimple_Francis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.388/2.388, allocations: 258 MB / 271.8 MB, free: 13.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.31e-05, allocations: 4 kB / 335.8 MB, free: 1.945 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1348, allocations: 60.23 MB / 396 MB, free: 5.594 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5302/0.665, allocations: 103.3 MB / 499.4 MB, free: 12.68 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004003/0.6655, allocations: 89.61 kB / 499.5 MB, free: 12.63 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1563/0.8218, allocations: 20.95 MB / 0.5082 GB, free: 9.336 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.8218, allocations: 0 / 0.5082 GB, free: 9.336 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.964e-05/0.8219, allocations: 20 kB / 0.5082 GB, free: 9.316 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.004916/0.8269, allocations: 1.247 MB / 0.5095 GB, free: 8.023 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.079e-05/0.8269, allocations: 16.03 kB / 0.5095 GB, free: 8.008 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004801/0.8274, allocations: 135.5 kB / 0.5096 GB, free: 7.867 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007196/0.8282, allocations: 126.7 kB / 0.5097 GB, free: 7.742 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.8295, allocations: 0.4944 MB / 0.5102 GB, free: 7.203 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000203/0.8297, allocations: 133.4 kB / 0.5103 GB, free: 7.059 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002633/0.83, allocations: 95.91 kB / 0.5104 GB, free: 6.965 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003047/0.833, allocations: 1.027 MB / 0.5114 GB, free: 5.918 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.811e-05/0.8331, allocations: 4 kB / 0.5114 GB, free: 5.914 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/0.8333, allocations: 40 kB / 0.5115 GB, free: 5.875 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.8333, allocations: 20 kB / 0.5115 GB, free: 5.855 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003509/0.8368, allocations: 1.015 MB / 0.5125 GB, free: 4.836 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.8479, allocations: 3.193 MB / 0.5156 GB, free: 1.566 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00383/0.8518, allocations: 0.8573 MB / 0.5164 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001355/0.8532, allocations: 0.8669 MB / 0.5173 GB, free: 15.65 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.8533, allocations: 39.34 kB / 0.5173 GB, free: 15.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 3.747e-06/0.8533, allocations: 4 kB / 0.5173 GB, free: 15.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=107): time 0.01212/0.8654, allocations: 3.19 MB / 0.5204 GB, free: 12.31 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.8656, allocations: 68.34 kB / 0.5205 GB, free: 12.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.8672, allocations: 0.6637 MB / 0.5212 GB, free: 11.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002938/0.8675, allocations: 41.7 kB / 0.5212 GB, free: 11.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004931/0.868, allocations: 474.9 kB / 0.5216 GB, free: 11.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005665/0.8686, allocations: 382.5 kB / 0.522 GB, free: 10.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.8688, allocations: 28 kB / 0.522 GB, free: 10.63 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002513/0.869, allocations: 418.6 kB / 0.5224 GB, free: 10.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00177/0.8708, allocations: 483.8 kB / 0.5229 GB, free: 9.742 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001948/0.8728, allocations: 0.6645 MB / 0.5235 GB, free: 9.027 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001988/0.8748, allocations: 0.5517 MB / 0.5241 GB, free: 8.473 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.8748, allocations: 4 kB / 0.5241 GB, free: 8.469 MB / 442.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006242/0.8811, allocations: 1.67 MB / 0.5257 GB, free: 6.781 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.8812, allocations: 4 kB / 0.5257 GB, free: 6.777 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.8812, allocations: 8 kB / 0.5257 GB, free: 6.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001892/0.8831, allocations: 330.2 kB / 0.526 GB, free: 6.438 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005578/0.8887, allocations: 427.4 kB / 0.5265 GB, free: 6.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0156/0.9044, allocations: 12.08 MB / 0.5383 GB, free: 8.871 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002646/0.9071, allocations: 60.05 kB / 0.5383 GB, free: 8.812 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002279/0.9074, allocations: 55.97 kB / 0.5384 GB, free: 8.758 MB / 458.7 MB Warning: Assuming fixed start value for the following 2 variables: penstock.M:VARIABLE(unit = "kg.m/s" fixed = true ) "Water momentum" type: Real 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: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * 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: 6 {2,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 17} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007433/0.9081, allocations: 235.4 kB / 0.5386 GB, free: 8.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002709/0.9084, allocations: 98.77 kB / 0.5387 GB, free: 8.422 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006102/0.9145, allocations: 1.444 MB / 0.5401 GB, free: 6.957 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/0.9146, allocations: 12 kB / 0.5401 GB, free: 6.945 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.9146, allocations: 4 kB / 0.5401 GB, free: 6.941 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/0.9146, allocations: 3.984 kB / 0.5401 GB, free: 6.938 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008886/0.9235, allocations: 2.48 MB / 0.5425 GB, free: 4.367 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.9236, allocations: 0 / 0.5425 GB, free: 4.367 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00418/0.9278, allocations: 403.7 kB / 0.5429 GB, free: 3.973 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002925/0.9307, allocations: 387 kB / 0.5433 GB, free: 3.582 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002021/0.931, allocations: 31.98 kB / 0.5433 GB, free: 3.551 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01619/0.9472, allocations: 14.59 MB / 0.5576 GB, free: 3.629 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.9472, allocations: 8.031 kB / 0.5576 GB, free: 3.621 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007658/0.9549, allocations: 2.069 MB / 0.5596 GB, free: 1.461 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004735/0.9554, allocations: 187.7 kB / 0.5598 GB, free: 1.258 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002789/0.9557, allocations: 24 kB / 0.5598 GB, free: 1.234 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/0.9572, allocations: 47.97 kB / 0.5598 GB, free: 1.188 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003379/0.9575, allocations: 100.8 kB / 0.5599 GB, free: 1.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.9577, allocations: 32 kB / 0.56 GB, free: 1.059 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001067/0.9587, allocations: 0.5107 MB / 0.5605 GB, free: 0.5508 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.9588, allocations: 0 / 0.5605 GB, free: 0.5508 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002296/0.9611, allocations: 467.8 kB / 0.5609 GB, free: 96 kB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 11 (reservoir.m,intake.M,tail.m,generator.DELTA,generator.EEd,generator.EEq,generator.Ef,generator.Vstabilizer,generator.w,penstock.M,surgeTank.m) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {2,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 17} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.008833/0.9699, allocations: 3.299 MB / 0.5641 GB, free: 12.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007365/0.9773, allocations: 1.724 MB / 0.5658 GB, free: 10.94 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.9774, allocations: 1 kB / 0.5658 GB, free: 10.94 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004093/0.9815, allocations: 1.195 MB / 0.567 GB, free: 9.691 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.9828, allocations: 123.7 kB / 0.5671 GB, free: 9.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01943/1.002, allocations: 9.513 MB / 0.5764 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008771/1.003, allocations: 1.093 MB / 0.5775 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001448/1.005, allocations: 179.7 kB / 0.5776 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/1.006, allocations: 431.3 kB / 0.578 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of SimCode: time 9.92e-07/1.006, allocations: 0 / 0.578 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0798/1.086, allocations: 26.32 MB / 0.6037 GB, free: 3.785 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003095/1.086, allocations: 160.9 kB / 0.6039 GB, free: 3.559 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.874/4.96, allocations: 0 / 0.6039 GB, free: 3.559 MB / 0.5105 GB