Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_5_0_1_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"dynamic"}) [: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(Buildings): time 4.702/4.702, allocations: 403.9 MB / 410.9 MB, free: 4.961 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2527/4.955, allocations: 95.01 MB / 0.4941 GB, free: 7.367 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5385/5.494, allocations: 92.68 MB / 0.5846 GB, free: 3.406 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.1/6.594, allocations: 416.7 MB / 0.9915 GB, free: 16.48 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003493/6.594, allocations: 92.95 kB / 0.9916 GB, free: 16.43 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 3.455/10.05, allocations: 0.6485 GB / 1.64 GB, free: 27.93 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 8.714e-05/10.05, allocations: 12 kB / 1.64 GB, free: 27.92 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006267/10.06, allocations: 433.4 kB / 1.641 GB, free: 27.5 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04779/10.1, allocations: 8.256 MB / 1.649 GB, free: 19.23 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001494/10.1, allocations: 31.91 kB / 1.649 GB, free: 19.2 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004639/10.1, allocations: 59.94 kB / 1.649 GB, free: 19.14 MB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003812/10.11, allocations: 0.6483 MB / 1.649 GB, free: 18.5 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003864/10.11, allocations: 0.9508 MB / 1.65 GB, free: 17.46 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.17e-05/10.11, allocations: 0 / 1.65 GB, free: 17.46 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001791/10.11, allocations: 4 kB / 1.65 GB, free: 17.45 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.409e-05/10.11, allocations: 31.94 kB / 1.65 GB, free: 17.42 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01291/10.13, allocations: 5.64 MB / 1.656 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/10.13, allocations: 0.5049 MB / 1.656 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007229/10.13, allocations: 255.3 kB / 1.657 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004212/10.13, allocations: 1.678 MB / 1.658 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008749/10.13, allocations: 357.4 kB / 1.659 GB, free: 8.559 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=47): time 3.546e-06/10.13, allocations: 4 kB / 1.659 GB, free: 8.555 MB / 0.7761 GB Notification: Performance of matching and sorting (n=47): time 0.003337/10.14, allocations: 0.6456 MB / 1.659 GB, free: 7.895 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.928e-05/10.14, allocations: 158.2 kB / 1.659 GB, free: 7.703 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002834/10.14, allocations: 0.9853 MB / 1.66 GB, free: 6.707 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0002476/10.14, allocations: 25.7 kB / 1.66 GB, free: 6.676 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005947/10.14, allocations: 487.7 kB / 1.661 GB, free: 6.191 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002988/10.14, allocations: 153.8 kB / 1.661 GB, free: 6.039 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.558e-05/10.14, allocations: 0 / 1.661 GB, free: 6.039 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000106/10.14, allocations: 334 kB / 1.661 GB, free: 5.707 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007457/10.14, allocations: 213.5 kB / 1.661 GB, free: 5.5 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009014/10.14, allocations: 0.5184 MB / 1.662 GB, free: 4.824 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001881/10.15, allocations: 349.1 kB / 1.662 GB, free: 4.484 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.168e-06/10.15, allocations: 0 / 1.662 GB, free: 4.484 MB / 0.7761 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003894/10.15, allocations: 0.889 MB / 1.663 GB, free: 3.582 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.001042/10.15, allocations: 3.801 MB / 1.667 GB, free: 15.55 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.622e-05/10.15, allocations: 8 kB / 1.667 GB, free: 15.54 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006096/10.15, allocations: 77.69 kB / 1.667 GB, free: 15.46 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002047/10.15, allocations: 187.7 kB / 1.667 GB, free: 15.27 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/10.15, allocations: 1.155 MB / 1.668 GB, free: 14.07 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002375/10.16, allocations: 115.3 kB / 1.668 GB, free: 13.95 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/10.16, allocations: 55.91 kB / 1.668 GB, free: 13.9 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/10.16, allocations: 4 kB / 1.668 GB, free: 13.89 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0038/10.16, allocations: 0.6891 MB / 1.669 GB, free: 13.2 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.23e-05/10.16, allocations: 8 kB / 1.669 GB, free: 13.19 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004701/10.16, allocations: 81.62 kB / 1.669 GB, free: 13.11 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001862/10.16, allocations: 184.1 kB / 1.669 GB, free: 12.93 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001503/10.17, allocations: 1.151 MB / 1.67 GB, free: 11.72 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002132/10.17, allocations: 91.58 kB / 1.671 GB, free: 11.63 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/10.17, allocations: 47.98 kB / 1.671 GB, free: 11.59 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QHea.a,QHea.b,QHea.last,$PRE.QHea.nextEvent,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 75 * Array equations: 1 * Algorithm blocks: 1 * 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 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004538/10.17, allocations: 174.3 kB / 1.671 GB, free: 11.4 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000464/10.17, allocations: 130.4 kB / 1.671 GB, free: 11.27 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004247/10.17, allocations: 0.7449 MB / 1.672 GB, free: 10.52 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-05/10.17, allocations: 7.984 kB / 1.672 GB, free: 10.51 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/10.17, allocations: 4 kB / 1.672 GB, free: 10.5 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/10.17, allocations: 0 / 1.672 GB, free: 10.5 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004705/10.18, allocations: 1.219 MB / 1.673 GB, free: 9.242 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.629e-05/10.18, allocations: 4 kB / 1.673 GB, free: 9.238 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/10.18, allocations: 115.9 kB / 1.673 GB, free: 9.125 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005179/10.18, allocations: 69.69 kB / 1.673 GB, free: 9.051 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001506/10.18, allocations: 11.98 kB / 1.673 GB, free: 9.039 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/10.18, allocations: 1.144 MB / 1.674 GB, free: 7.844 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.417e-06/10.18, allocations: 0 / 1.674 GB, free: 7.844 MB / 0.7917 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003493/10.19, allocations: 0.7517 MB / 1.675 GB, free: 7.035 MB / 0.7917 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003654/10.19, allocations: 1.201 MB / 1.676 GB, free: 5.766 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/10.19, allocations: 283.7 kB / 1.676 GB, free: 5.469 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003699/10.19, allocations: 4 kB / 1.676 GB, free: 5.465 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001909/10.19, allocations: 79.83 kB / 1.676 GB, free: 5.387 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/10.19, allocations: 27.95 kB / 1.676 GB, free: 5.359 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/10.19, allocations: 35.97 kB / 1.676 GB, free: 5.324 MB / 0.7917 GB Notification: Performance of sort global known variables: time 0.002403/10.2, allocations: 0.7448 MB / 1.677 GB, free: 4.578 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.00757/10.2, allocations: 0.9629 MB / 1.678 GB, free: 3.613 MB / 0.7917 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QHea.a,QHea.b,QHea.last,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 6 (QHea.nextEvent,QHea.last,QHea.nextEventScaled,QHea.b,QHea.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002824/10.21, allocations: 0.9273 MB / 1.679 GB, free: 2.754 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.00359/10.21, allocations: 1.006 MB / 1.68 GB, free: 1.738 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/10.21, allocations: 6.062 kB / 1.68 GB, free: 1.734 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.001053/10.21, allocations: 313.9 kB / 1.68 GB, free: 1.422 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005093/10.22, allocations: 0.5274 MB / 1.681 GB, free: 0.8945 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3469/10.56, allocations: 1.655 MB / 1.682 GB, free: 202.6 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001936/10.56, allocations: 1.361 MB / 1.684 GB, free: 201.9 MB / 0.7917 GB Notification: Performance of SimCode: time 1.723e-06/10.56, allocations: 0 / 1.684 GB, free: 201.9 MB / 0.7917 GB