Running command: translateModel(OpenHPL.Examples.HPDetailed,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPDetailed") [: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.228/2.228, allocations: 258 MB / 265 MB, free: 15.92 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.646e-06/6.765e-06, allocations: 0 / 327.4 MB, free: 1.453 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2499, allocations: 60.22 MB / 387.6 MB, free: 6.961 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1537/0.4036, allocations: 101 MB / 488.7 MB, free: 2.5 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.4039, allocations: 79.95 kB / 488.8 MB, free: 2.422 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6892/1.093, allocations: 102.9 MB / 0.5778 GB, free: 94.19 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003759/1.094, allocations: 132 kB / 0.5779 GB, free: 94.06 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: 2252 * Number of variables: 2252 Notification: Performance of Generate backend data structure: time 0.02949/1.123, allocations: 6.55 MB / 0.5843 GB, free: 87.45 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/1.123, allocations: 12.03 kB / 0.5843 GB, free: 87.43 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00419/1.127, allocations: 0.667 MB / 0.585 GB, free: 86.76 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01051/1.138, allocations: 3.58 MB / 0.5885 GB, free: 83.13 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003908/1.138, allocations: 208 kB / 0.5887 GB, free: 82.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003622/1.142, allocations: 379.8 kB / 0.589 GB, free: 82.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03531/1.177, allocations: 15.41 MB / 0.6041 GB, free: 67.14 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03525/1.213, allocations: 12.94 MB / 0.6167 GB, free: 54.14 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003458/1.213, allocations: 11.91 kB / 0.6167 GB, free: 54.13 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003157/1.216, allocations: 0 / 0.6167 GB, free: 54.13 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007599/1.217, allocations: 1.016 MB / 0.6177 GB, free: 53.11 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0941/1.311, allocations: 34.02 MB / 0.6509 GB, free: 19.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01335/1.324, allocations: 5.912 MB / 0.6567 GB, free: 13.33 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01065/1.335, allocations: 5.011 MB / 0.6616 GB, free: 8.309 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00154/1.337, allocations: 0.9725 MB / 0.6626 GB, free: 7.176 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.523e-05/1.337, allocations: 104.2 kB / 0.6627 GB, free: 7.062 MB / 458.7 MB Notification: Performance of pre-optimization done (n=722): time 1.247e-05/1.337, allocations: 0 / 0.6627 GB, free: 7.062 MB / 458.7 MB Notification: Performance of matching and sorting (n=746): time 0.08775/1.425, allocations: 24.86 MB / 0.6869 GB, free: 14.06 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/1.425, allocations: 125.2 kB / 0.6871 GB, free: 13.93 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/1.427, allocations: 0.8712 MB / 0.6879 GB, free: 13.05 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001787/1.429, allocations: 25.7 kB / 0.6879 GB, free: 13.02 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/1.431, allocations: 2.2 MB / 0.6901 GB, free: 10.79 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00459/1.435, allocations: 2.425 MB / 0.6924 GB, free: 8.324 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001645/1.437, allocations: 0 / 0.6924 GB, free: 8.324 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0008763/1.438, allocations: 0.6387 MB / 0.6931 GB, free: 7.676 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01203/1.45, allocations: 4.707 MB / 0.6977 GB, free: 2.965 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01329/1.463, allocations: 5.381 MB / 0.7029 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01604/1.479, allocations: 5.835 MB / 0.7086 GB, free: 7.582 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-05/1.479, allocations: 8 kB / 0.7086 GB, free: 7.574 MB / 0.4948 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.1966/1.676, allocations: 12.84 MB / 0.7212 GB, free: 176.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/1.676, allocations: 16.31 kB / 0.7212 GB, free: 176.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-05/1.676, allocations: 10.06 kB / 0.7212 GB, free: 176.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007974/1.684, allocations: 1.37 MB / 0.7225 GB, free: 176.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01204/1.696, allocations: 1.5 MB / 0.724 GB, free: 176.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02071/1.717, allocations: 9.987 MB / 0.7337 GB, free: 173.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006922/1.724, allocations: 151.8 kB / 0.7339 GB, free: 173.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002193/1.726, allocations: 262.5 kB / 0.7341 GB, free: 173.9 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 (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.002807/1.729, allocations: 218.2 kB / 0.7343 GB, free: 173.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00158/1.731, allocations: 305.4 kB / 0.7346 GB, free: 173.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04265/1.773, allocations: 14.09 MB / 0.7484 GB, free: 173.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.94e-05/1.773, allocations: 79.34 kB / 0.7485 GB, free: 173.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.758e-05/1.773, allocations: 3.938 kB / 0.7485 GB, free: 173.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00016/1.774, allocations: 40.78 kB / 0.7485 GB, free: 173.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09207/1.866, allocations: 23.67 MB / 0.7716 GB, free: 166.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001151/1.866, allocations: 9.625 kB / 0.7716 GB, free: 166.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01694/1.883, allocations: 1.574 MB / 0.7732 GB, free: 166.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00788/1.891, allocations: 1.372 MB / 0.7745 GB, free: 166.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002309/1.893, allocations: 112.8 kB / 0.7746 GB, free: 166.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02696/1.92, allocations: 12.46 MB / 0.7868 GB, free: 156.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.6e-06/1.92, allocations: 7.938 kB / 0.7868 GB, free: 156.6 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05102/1.971, allocations: 21.34 MB / 0.8076 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007623/1.972, allocations: 388.9 kB / 0.808 GB, free: 137.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002693/1.975, allocations: 19.19 kB / 0.808 GB, free: 137.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006427/1.981, allocations: 148.4 kB / 0.8082 GB, free: 137.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002698/1.984, allocations: 456.3 kB / 0.8086 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002221/1.986, allocations: 252.5 kB / 0.8088 GB, free: 136.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001128/1.987, allocations: 0.6285 MB / 0.8095 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008562/1.996, allocations: 1.599 MB / 0.811 GB, free: 134.6 MB / 0.4948 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.002915/1.999, allocations: 471.3 kB / 0.8115 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02482/2.024, allocations: 11.61 MB / 0.8228 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.584e-06/2.024, allocations: 0 / 0.8228 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01365/2.037, allocations: 6.421 MB / 0.8291 GB, free: 117.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003359/2.041, allocations: 222.4 kB / 0.8293 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04203/2.083, allocations: 15.83 MB / 0.8448 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01548/2.098, allocations: 5.082 MB / 0.8497 GB, free: 99.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.161e-06/2.098, allocations: 0 / 0.8497 GB, free: 99.66 MB / 0.4948 GB Notification: Performance of Templates: time 0.3486/2.447, allocations: 105.7 MB / 0.9529 GB, free: 177.8 MB / 0.4948 GB