Running command: translateModel(OpenHPL.Examples.HPDetailed_generator,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPDetailed_generator") Notification: Performance of loadModel(OpenHPL): time 2.78/2.78, allocations: 258 MB / 272.4 MB, free: 13.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.022e-05/4.032e-05, allocations: 8 kB / 336.3 MB, free: 2.074 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.133, allocations: 60.25 MB / 396.6 MB, free: 5.699 MB / 330.7 MB Notification: Performance of NFInst.instantiate(OpenHPL.Examples.HPDetailed_generator): time 0.007208/0.1403, allocations: 4.295 MB / 400.9 MB, free: 1.371 MB / 330.7 MB Notification: Performance of NFInst.instExpressions(OpenHPL.Examples.HPDetailed_generator): time 0.007035/0.1474, allocations: 2.839 MB / 403.7 MB, free: 14.53 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008696/0.1483, allocations: 11.94 kB / 403.7 MB, free: 14.52 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents(OpenHPL.Examples.HPDetailed_generator): time 0.0009323/0.1492, allocations: 266.7 kB / 404 MB, free: 14.25 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings(OpenHPL.Examples.HPDetailed_generator): time 0.001774/0.151, allocations: 454.6 kB / 404.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections(OpenHPL.Examples.HPDetailed_generator): time 0.003433/0.1545, allocations: 1.01 MB / 405.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFFlatten.flatten(OpenHPL.Examples.HPDetailed_generator): time 0.003276/0.1578, allocations: 1.415 MB / 406.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections(OpenHPL.Examples.HPDetailed_generator): time 0.0003213/0.1582, allocations: 63.34 kB / 406.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002419/0.1606, allocations: 1.03 MB / 407.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007182/0.1679, allocations: 3.571 MB / 411.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions(OpenHPL.Examples.HPDetailed_generator): time 0.002894/0.1708, allocations: 0.5074 MB / 412 MB, free: 6.203 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002181/0.1731, allocations: 304 kB / 412.3 MB, free: 5.906 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize(OpenHPL.Examples.HPDetailed_generator): time 0.005507/0.1786, allocations: 3.025 MB / 415.3 MB, free: 2.875 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.513e-05/0.1787, allocations: 4 kB / 415.3 MB, free: 2.871 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert(OpenHPL.Examples.HPDetailed_generator): time 0.3693/0.548, allocations: 9.164 MB / 424.5 MB, free: 6.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.5481, allocations: 0 / 424.5 MB, free: 6.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.5481, allocations: 0 / 424.5 MB, free: 6.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003921/0.5485, allocations: 0 / 424.5 MB, free: 6.512 MB / 346.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.07814/0.6267, allocations: 6.949 MB / 431.5 MB, free: 3.719 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.205e-05/0.6268, allocations: 8.062 kB / 431.5 MB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006671/0.6334, allocations: 0.6456 MB / 432.1 MB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01282/0.6463, allocations: 3.029 MB / 435.1 MB, free: 2.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009121/0.6473, allocations: 427.7 kB / 435.6 MB, free: 2.418 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006108/0.6535, allocations: 0.5441 MB / 436.1 MB, free: 2.414 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05188/0.7054, allocations: 14.54 MB / 450.6 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003371/0.7058, allocations: 12.61 kB / 450.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004779/0.7106, allocations: 232.6 kB / 450.9 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004475/0.7151, allocations: 1.547 MB / 452.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05349/0.7686, allocations: 14.88 MB / 467.3 MB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6232/1.392, allocations: 96.63 MB / 0.5507 GB, free: 5.84 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06657/1.459, allocations: 24.71 MB / 0.5748 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002675/1.461, allocations: 0.9736 MB / 0.5758 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/1.461, allocations: 116.3 kB / 0.5759 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=737): time 1.225e-05/1.462, allocations: 0 / 0.5759 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=761): time 0.9138/2.375, allocations: 100.7 MB / 0.6743 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.462e-05/2.375, allocations: 137.4 kB / 0.6744 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/2.377, allocations: 0.8555 MB / 0.6753 GB, free: 127.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.005127/2.382, allocations: 145.7 kB / 0.6754 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001288/2.384, allocations: 2.278 MB / 0.6776 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.007527/2.391, allocations: 2.568 MB / 0.6801 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00738/2.399, allocations: 136 kB / 0.6803 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007589/2.4, allocations: 0.6466 MB / 0.6809 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04109/2.441, allocations: 15.86 MB / 0.6964 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0405/2.481, allocations: 16.56 MB / 0.7126 GB, free: 88.89 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04339/2.525, allocations: 16.98 MB / 0.7291 GB, free: 71.89 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.525e-05/2.525, allocations: 11.94 kB / 0.7291 GB, free: 71.88 MB / 0.5105 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.2437/2.769, allocations: 45.24 MB / 0.7733 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/2.769, allocations: 8.562 kB / 0.7733 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.324e-05/2.769, allocations: 13.09 kB / 0.7733 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1107/2.879, allocations: 11.66 MB / 0.7847 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03779/2.917, allocations: 1.868 MB / 0.7866 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6406/3.558, allocations: 55.44 MB / 0.8407 GB, free: 154.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04059/3.599, allocations: 436.3 kB / 0.8411 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007624/3.606, allocations: 0.9941 MB / 0.8421 GB, free: 153.5 MB / 0.5105 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 (803): * Single equations (assignments): 801 * 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 48,1 28} Notification: Performance of prepare postOptimizeDAE: time 0.01909/3.625, allocations: 2.479 MB / 0.8445 GB, free: 151.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007491/3.633, allocations: 305.5 kB / 0.8448 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3292/3.962, allocations: 48.36 MB / 0.892 GB, free: 103 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002582/3.962, allocations: 40.92 kB / 0.8921 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.471e-05/3.963, allocations: 0 / 0.8921 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008743/3.963, allocations: 387.8 kB / 0.8924 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007774/3.971, allocations: 156 kB / 0.8926 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.03028/4.002, allocations: 416.2 kB / 0.893 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007727/4.009, allocations: 0.88 MB / 0.8938 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.2581/4.267, allocations: 40.22 MB / 0.9331 GB, free: 61.21 MB / 0.5105 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.5067/4.774, allocations: 61.56 MB / 0.9932 GB, free: 164.9 MB / 0.5105 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.04547/4.82, allocations: 18.82 MB / 1.012 GB, free: 158.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001276/4.821, allocations: 0.6328 MB / 1.012 GB, free: 158.7 MB / 0.5105 GB Notification: Performance of Backend: time 1.012e-06/4.821, allocations: 0 / 1.012 GB, free: 158.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05778/4.879, allocations: 21.34 MB / 1.033 GB, free: 149.6 MB / 0.5105 GB Notification: Performance of SimCode: time 0.03703/4.916, allocations: 15.81 MB / 1.049 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of Templates: time 1.937/6.853, allocations: 424.1 MB / 1.463 GB, free: 133.2 MB / 0.5418 GB