Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_5_0_1_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",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.284/4.284, allocations: 404 MB / 410.9 MB, free: 4.957 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2774/4.562, allocations: 94.98 MB / 0.4941 GB, free: 7.367 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5441/5.106, allocations: 92.69 MB / 0.5846 GB, free: 3.418 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9895/6.095, allocations: 397.7 MB / 0.9729 GB, free: 33.77 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/6.096, allocations: 84.95 kB / 0.973 GB, free: 33.73 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 7.558/13.65, allocations: 1.445 GB / 2.418 GB, free: 91.48 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/13.65, allocations: 10.12 kB / 2.418 GB, free: 91.47 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009086/13.66, allocations: 0.8717 MB / 2.419 GB, free: 91.17 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03531/13.7, allocations: 7.54 MB / 2.426 GB, free: 90.25 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003346/13.7, allocations: 103 kB / 2.426 GB, free: 90.25 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001781/13.7, allocations: 207.1 kB / 2.427 GB, free: 90.25 MB / 0.7917 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01736/13.72, allocations: 4.77 MB / 2.431 GB, free: 90.23 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01806/13.74, allocations: 4.886 MB / 2.436 GB, free: 89.5 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001273/13.74, allocations: 10.59 kB / 2.436 GB, free: 89.5 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009188/13.74, allocations: 14.91 kB / 2.436 GB, free: 89.5 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-05/13.74, allocations: 82.03 kB / 2.436 GB, free: 89.5 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06102/13.8, allocations: 22.22 MB / 2.458 GB, free: 79.29 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007982/13.81, allocations: 2.558 MB / 2.46 GB, free: 79.23 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004405/13.81, allocations: 1.668 MB / 2.462 GB, free: 79.21 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01985/13.83, allocations: 6.173 MB / 2.468 GB, free: 77.06 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004797/13.84, allocations: 1.799 MB / 2.47 GB, free: 76.57 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=157): time 5.78e-06/13.84, allocations: 0 / 2.47 GB, free: 76.57 MB / 0.7917 GB Notification: Performance of matching and sorting (n=158): time 0.09212/13.93, allocations: 12.01 MB / 2.481 GB, free: 72.45 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/13.93, allocations: 226.3 kB / 2.482 GB, free: 72.19 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0123/13.94, allocations: 3.794 MB / 2.485 GB, free: 70.89 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 0.0009483/13.94, allocations: 31.86 kB / 2.485 GB, free: 70.86 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.003491/13.94, allocations: 1.62 MB / 2.487 GB, free: 69.75 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.002176/13.95, allocations: 0.5407 MB / 2.487 GB, free: 69.34 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005416/13.95, allocations: 0.5312 kB / 2.487 GB, free: 69.34 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0002891/13.95, allocations: 416 kB / 2.488 GB, free: 68.99 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00542/13.95, allocations: 1.582 MB / 2.489 GB, free: 68.4 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006814/13.96, allocations: 2.861 MB / 2.492 GB, free: 66.11 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008527/13.97, allocations: 2.178 MB / 2.494 GB, free: 64.81 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-05/13.97, allocations: 12 kB / 2.494 GB, free: 64.8 MB / 0.7917 GB Notification: Performance of matching and sorting (n=347) (initialization): time 0.1878/14.16, allocations: 11.8 MB / 2.506 GB, free: 53.62 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 0.003476/14.16, allocations: 15.58 MB / 2.521 GB, free: 36.84 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001719/14.16, allocations: 35.98 kB / 2.521 GB, free: 36.81 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2208/14.38, allocations: 10.87 MB / 2.532 GB, free: 25.93 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009306/14.39, allocations: 0.7042 MB / 2.532 GB, free: 25.22 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05209/14.44, allocations: 6.268 MB / 2.539 GB, free: 18.88 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01102/14.45, allocations: 267.5 kB / 2.539 GB, free: 18.61 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/14.45, allocations: 214.9 kB / 2.539 GB, free: 18.41 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/14.45, allocations: 4 kB / 2.539 GB, free: 18.4 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1613/14.62, allocations: 10.44 MB / 2.549 GB, free: 7.934 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/14.62, allocations: 32 kB / 2.549 GB, free: 7.902 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1882/14.8, allocations: 10.63 MB / 2.56 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00686/14.81, allocations: 0.6981 MB / 2.56 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03269/14.84, allocations: 8.037 MB / 2.568 GB, free: 4.281 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008668/14.85, allocations: 215.7 kB / 2.568 GB, free: 4.07 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001213/14.85, allocations: 195.8 kB / 2.569 GB, free: 3.879 MB / 0.8073 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 153 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (291): * Single equations (assignments): 284 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 15,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001883/14.86, allocations: 223.8 kB / 2.569 GB, free: 3.656 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002516/14.86, allocations: 422.8 kB / 2.569 GB, free: 3.238 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4135/15.27, allocations: 5.375 MB / 2.574 GB, free: 181 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.728e-05/15.27, allocations: 19.5 kB / 2.574 GB, free: 181 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/15.27, allocations: 6.969 kB / 2.574 GB, free: 181 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03763/15.31, allocations: 5.772 MB / 2.58 GB, free: 179.7 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08686/15.4, allocations: 10.88 MB / 2.591 GB, free: 178.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.573e-05/15.4, allocations: 2.5 kB / 2.591 GB, free: 178.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005674/15.4, allocations: 419.4 kB / 2.591 GB, free: 178.9 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0141/15.42, allocations: 2.046 MB / 2.593 GB, free: 178.9 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007148/15.42, allocations: 38.67 kB / 2.593 GB, free: 178.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0859/15.5, allocations: 9.287 MB / 2.602 GB, free: 175.4 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/15.5, allocations: 6.141 kB / 2.602 GB, free: 175.4 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07682/15.58, allocations: 8.713 MB / 2.611 GB, free: 175 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.07854/15.66, allocations: 11.58 MB / 2.622 GB, free: 174.2 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004828/15.66, allocations: 0.9403 MB / 2.623 GB, free: 174.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002562/15.67, allocations: 9 kB / 2.623 GB, free: 174.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009493/15.68, allocations: 231.8 kB / 2.623 GB, free: 174 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008552/15.68, allocations: 114.3 kB / 2.623 GB, free: 174 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006152/15.68, allocations: 93.94 kB / 2.623 GB, free: 174 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.008489/15.69, allocations: 2.862 MB / 2.626 GB, free: 173.9 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.021/15.71, allocations: 2.63 MB / 2.629 GB, free: 173.9 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.x[1],val.filter.x[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * 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 {12 5,2 4,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003968/15.71, allocations: 1.179 MB / 2.63 GB, free: 173.7 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.05498/15.77, allocations: 7.417 MB / 2.637 GB, free: 173.2 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-05/15.77, allocations: 4.641 kB / 2.637 GB, free: 173.2 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.022/15.79, allocations: 2.712 MB / 2.64 GB, free: 173 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02256/15.81, allocations: 2.133 MB / 2.642 GB, free: 173 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0458/15.86, allocations: 8.294 MB / 2.65 GB, free: 171.5 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008839/15.87, allocations: 3.692 MB / 2.654 GB, free: 170.7 MB / 0.8073 GB Notification: Performance of SimCode: time 2.124e-06/15.87, allocations: 0 / 2.654 GB, free: 170.7 MB / 0.8073 GB