Running command: "" <> buildModelFMU(OpenHPL.Tests.HPSquareFittingsTest,fileNamePrefix="OpenHPL_OpenHPL_Tests_HPSquareFittingsTest",fmuType="me",version="2.0",platforms={"static"}) [: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.433/2.433, allocations: 257.8 MB / 264.8 MB, free: 15.97 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1986/2.632, allocations: 62.55 MB / 327.4 MB, free: 1.41 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/2.964, allocations: 60.21 MB / 387.6 MB, free: 7.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1749/3.139, allocations: 89.77 MB / 477.3 MB, free: 13.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/3.139, allocations: 83.95 kB / 477.4 MB, free: 13.84 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.1867/3.326, allocations: 27.53 MB / 0.4931 GB, free: 2.227 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/3.326, allocations: 8 kB / 0.4931 GB, free: 2.219 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/3.327, allocations: 174.3 kB / 0.4933 GB, free: 2.047 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/3.329, allocations: 0.5955 MB / 0.4939 GB, free: 1.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002598/3.329, allocations: 165 kB / 0.494 GB, free: 1.223 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003212/3.33, allocations: 79.89 kB / 0.4941 GB, free: 1.145 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003629/3.333, allocations: 0.9845 MB / 0.4951 GB, free: 160 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003017/3.336, allocations: 0.9904 MB / 0.496 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.614e-05/3.336, allocations: 0 / 0.496 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001568/3.337, allocations: 4 kB / 0.496 GB, free: 15.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.613e-05/3.337, allocations: 24 kB / 0.4961 GB, free: 15.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01327/3.35, allocations: 3.535 MB / 0.4995 GB, free: 11.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008289/3.358, allocations: 1.217 MB / 0.5007 GB, free: 10.25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/3.36, allocations: 397.4 kB / 0.5011 GB, free: 9.852 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001434/3.361, allocations: 0.8701 MB / 0.5019 GB, free: 8.797 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/3.361, allocations: 46.56 kB / 0.502 GB, free: 8.742 MB / 442.7 MB Notification: Performance of pre-optimization done (n=116): time 5.951e-06/3.361, allocations: 96 / 0.502 GB, free: 8.742 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.01771/3.379, allocations: 4.05 MB / 0.5059 GB, free: 4.465 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/3.379, allocations: 144.5 kB / 0.5061 GB, free: 4.293 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001471/3.381, allocations: 0.6135 MB / 0.5067 GB, free: 3.672 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000389/3.381, allocations: 25.7 kB / 0.5067 GB, free: 3.641 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004359/3.381, allocations: 0.4909 MB / 0.5072 GB, free: 3.141 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006336/3.382, allocations: 449.3 kB / 0.5076 GB, free: 2.695 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/3.382, allocations: 0 / 0.5076 GB, free: 2.695 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002516/3.383, allocations: 418.7 kB / 0.508 GB, free: 2.277 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/3.384, allocations: 412 kB / 0.5084 GB, free: 1.875 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/3.386, allocations: 0.7494 MB / 0.5091 GB, free: 0.9961 MB / 442.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe4.M = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe3.M = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe2.M = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe1.M = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.02169/3.407, allocations: 2.681 MB / 0.5117 GB, free: 14.24 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.932e-05/3.407, allocations: 4 kB / 0.5117 GB, free: 14.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.009292/3.417, allocations: 1.869 MB / 0.5136 GB, free: 12.35 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/3.417, allocations: 7.984 kB / 0.5136 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.29e-05/3.417, allocations: 12 kB / 0.5136 GB, free: 12.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005833/3.423, allocations: 0.7692 MB / 0.5143 GB, free: 11.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003071/3.426, allocations: 371.5 kB / 0.5147 GB, free: 11.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006321/3.432, allocations: 3.191 MB / 0.5178 GB, free: 7.895 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/3.435, allocations: 8 kB / 0.5178 GB, free: 7.887 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002477/3.435, allocations: 71.98 kB / 0.5179 GB, free: 7.816 MB / 458.7 MB Warning: Assuming redundant initial conditions for the following 4 initial equations: $DER.pipe4.M = 0.0 $DER.pipe3.M = 0.0 $DER.pipe2.M = 0.0 $DER.pipe1.M = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: SquareReduction1.mdot:DUMMY_STATE(unit = "kg/s" ) "Mass flow rate" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tail3.mdot:DUMMY_STATE(unit = "kg/s" ) "Mass flow rate" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tail4.mdot:DUMMY_STATE(unit = "kg/s" ) "Mass flow rate" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 172 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 11,2 11,2 11,2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0004781/3.435, allocations: 152.3 kB / 0.518 GB, free: 7.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003605/3.436, allocations: 122.6 kB / 0.5181 GB, free: 7.539 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008056/3.444, allocations: 1.523 MB / 0.5196 GB, free: 5.984 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.323e-05/3.444, allocations: 16 kB / 0.5196 GB, free: 5.969 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/3.444, allocations: 4 kB / 0.5197 GB, free: 5.965 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.838e-05/3.444, allocations: 11.98 kB / 0.5197 GB, free: 5.953 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01251/3.456, allocations: 2.891 MB / 0.5225 GB, free: 2.965 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.89e-05/3.457, allocations: 4 kB / 0.5225 GB, free: 2.961 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01203/3.469, allocations: 0.812 MB / 0.5233 GB, free: 2.148 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003329/3.472, allocations: 438.4 kB / 0.5237 GB, free: 1.695 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00033/3.472, allocations: 15.98 kB / 0.5237 GB, free: 1.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1863/3.659, allocations: 21.77 MB / 0.545 GB, free: 149.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/3.659, allocations: 2 kB / 0.545 GB, free: 149.3 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008332/3.667, allocations: 2.439 MB / 0.5474 GB, free: 148.5 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01027/3.677, allocations: 3.323 MB / 0.5506 GB, free: 147.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006959/3.678, allocations: 185.7 kB / 0.5508 GB, free: 147.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007171/3.679, allocations: 15.77 kB / 0.5508 GB, free: 147.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00299/3.682, allocations: 3.344 kB / 0.5508 GB, free: 147.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006019/3.683, allocations: 77.17 kB / 0.5509 GB, free: 147.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002103/3.683, allocations: 43.42 kB / 0.5509 GB, free: 147.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001486/3.684, allocations: 458.7 kB / 0.5513 GB, free: 147.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006195/3.691, allocations: 461.6 kB / 0.5518 GB, free: 147.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 12 (Resorvoir4.m,tail4.Vdot,tailwater4.m,Resorvoir3.m,tail3.Vdot,tailwater3.m,Resorvoir2.m,tail2.Vdot,tailwater2.m,Resorvoir1.m,tail1.Vdot,tailwater1.m) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 8 {1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001232/3.692, allocations: 293.4 kB / 0.5521 GB, free: 147 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004862/3.697, allocations: 1.167 MB / 0.5532 GB, free: 147 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/3.697, allocations: 2.344 kB / 0.5532 GB, free: 147 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005182/3.702, allocations: 1.583 MB / 0.5548 GB, free: 146.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/3.704, allocations: 181.2 kB / 0.5549 GB, free: 146.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007987/3.712, allocations: 2.345 MB / 0.5572 GB, free: 145.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001656/3.714, allocations: 1.336 MB / 0.5585 GB, free: 144.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.473e-06/3.714, allocations: 0 / 0.5585 GB, free: 144.8 MB / 458.7 MB