Running command: translateModel(OpenHPL.Examples.HPDetailed_generator,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPDetailed_generator") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(OpenHPL): time 2.06/2.06, allocations: 258 MB / 265 MB, free: 15.85 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.574e-06/7.642e-06, allocations: 0 / 327.4 MB, free: 1.371 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2478, allocations: 60.23 MB / 387.7 MB, free: 6.961 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.4023, allocations: 101.8 MB / 489.5 MB, free: 1.676 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.4026, allocations: 87.94 kB / 489.6 MB, free: 1.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.7046/1.107, allocations: 103.7 MB / 0.5794 GB, free: 92.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001865/1.107, allocations: 135.9 kB / 0.5795 GB, free: 92.49 MB / 458.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.02613/1.134, allocations: 6.601 MB / 0.586 GB, free: 85.82 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/1.134, allocations: 8.031 kB / 0.586 GB, free: 85.81 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004302/1.138, allocations: 0.6824 MB / 0.5866 GB, free: 85.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01037/1.148, allocations: 3.596 MB / 0.5901 GB, free: 81.49 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003861/1.149, allocations: 216 kB / 0.5904 GB, free: 81.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003683/1.152, allocations: 379.9 kB / 0.5907 GB, free: 80.91 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03512/1.188, allocations: 15.43 MB / 0.6058 GB, free: 65.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05283/1.24, allocations: 12.96 MB / 0.6184 GB, free: 52.44 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005099/1.241, allocations: 15.91 kB / 0.6185 GB, free: 52.42 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004296/1.245, allocations: 0 / 0.6185 GB, free: 52.42 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00144/1.247, allocations: 1.016 MB / 0.6194 GB, free: 51.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09788/1.345, allocations: 34.13 MB / 0.6528 GB, free: 17.42 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01397/1.359, allocations: 5.946 MB / 0.6586 GB, free: 11.47 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01082/1.37, allocations: 5.019 MB / 0.6635 GB, free: 6.445 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001537/1.371, allocations: 0.9737 MB / 0.6644 GB, free: 5.309 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.026e-05/1.371, allocations: 112.2 kB / 0.6645 GB, free: 5.188 MB / 458.7 MB Notification: Performance of pre-optimization done (n=728): time 1.194e-05/1.371, allocations: 0 / 0.6645 GB, free: 5.188 MB / 458.7 MB Notification: Performance of matching and sorting (n=752): time 0.08723/1.459, allocations: 24.91 MB / 0.6889 GB, free: 12.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/1.459, allocations: 133.3 kB / 0.689 GB, free: 11.98 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001968/1.461, allocations: 0.8948 MB / 0.6899 GB, free: 11.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001676/1.462, allocations: 25.7 kB / 0.6899 GB, free: 11.04 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001912/1.464, allocations: 2.21 MB / 0.6921 GB, free: 8.801 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004344/1.469, allocations: 2.44 MB / 0.6944 GB, free: 6.324 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001061/1.47, allocations: 0 / 0.6944 GB, free: 6.324 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007962/1.471, allocations: 0.6465 MB / 0.6951 GB, free: 5.668 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01172/1.482, allocations: 4.715 MB / 0.6997 GB, free: 0.9492 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01304/1.495, allocations: 5.397 MB / 0.7049 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01632/1.512, allocations: 5.863 MB / 0.7107 GB, free: 5.523 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.823e-05/1.512, allocations: 4 kB / 0.7107 GB, free: 5.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.2/1.712, allocations: 12.82 MB / 0.7232 GB, free: 175.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/1.712, allocations: 3.938 kB / 0.7232 GB, free: 175.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.219e-05/1.712, allocations: 11.06 kB / 0.7232 GB, free: 175.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007221/1.719, allocations: 1.378 MB / 0.7245 GB, free: 175.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01252/1.732, allocations: 1.511 MB / 0.726 GB, free: 175.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02099/1.753, allocations: 9.935 MB / 0.7357 GB, free: 173.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006405/1.759, allocations: 159 kB / 0.7359 GB, free: 173.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002185/1.761, allocations: 272.3 kB / 0.7361 GB, free: 173.3 MB / 0.4948 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.00276/1.764, allocations: 217.5 kB / 0.7363 GB, free: 173.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001601/1.766, allocations: 309.1 kB / 0.7366 GB, free: 173.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05201/1.818, allocations: 14.16 MB / 0.7505 GB, free: 172.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001542/1.818, allocations: 80.94 kB / 0.7505 GB, free: 172.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.724e-05/1.818, allocations: 0 / 0.7505 GB, free: 172.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002126/1.818, allocations: 44.72 kB / 0.7506 GB, free: 172.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09013/1.909, allocations: 23.71 MB / 0.7737 GB, free: 165.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.182e-05/1.909, allocations: 8.031 kB / 0.7737 GB, free: 165.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0138/1.922, allocations: 1.608 MB / 0.7753 GB, free: 165.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007699/1.93, allocations: 1.372 MB / 0.7767 GB, free: 165.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002209/1.932, allocations: 113.9 kB / 0.7768 GB, free: 165.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02334/1.956, allocations: 13.69 MB / 0.7901 GB, free: 152.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/1.956, allocations: 4 kB / 0.7901 GB, free: 152.8 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0526/2.008, allocations: 21.38 MB / 0.811 GB, free: 133.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008075/2.009, allocations: 392.6 kB / 0.8114 GB, free: 133.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002626/2.012, allocations: 23.42 kB / 0.8114 GB, free: 133.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006506/2.019, allocations: 154.6 kB / 0.8116 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002679/2.021, allocations: 461 kB / 0.812 GB, free: 133 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002159/2.023, allocations: 251.7 kB / 0.8122 GB, free: 132.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001154/2.025, allocations: 0.6396 MB / 0.8129 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007706/2.032, allocations: 1.609 MB / 0.8144 GB, free: 130.6 MB / 0.4948 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.002535/2.035, allocations: 477.5 kB / 0.8149 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02353/2.058, allocations: 11.6 MB / 0.8262 GB, free: 119.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.662e-06/2.059, allocations: 4.438 kB / 0.8262 GB, free: 119.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01377/2.072, allocations: 6.454 MB / 0.8325 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003368/2.076, allocations: 226.2 kB / 0.8327 GB, free: 113.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04181/2.118, allocations: 15.98 MB / 0.8483 GB, free: 99.42 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01605/2.134, allocations: 5.111 MB / 0.8533 GB, free: 95.52 MB / 0.4948 GB Notification: Performance of SimCode: time 1.479e-06/2.134, allocations: 0 / 0.8533 GB, free: 95.52 MB / 0.4948 GB Notification: Performance of Templates: time 0.3582/2.492, allocations: 106.4 MB / 0.9572 GB, free: 154 MB / 0.4948 GB