Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation") [: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 loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 1.997/1.997, allocations: 253.1 MB / 260.4 MB, free: 7.574 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001668/0.001668, allocations: 181.3 kB / 319.6 MB, free: 3.312 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.73/1.73, allocations: 205.4 MB / 0.5704 GB, free: 15.07 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001312/0.001312, allocations: 89.52 kB / 0.6746 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.398e-06/9.508e-06, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2006, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.476/1.677, allocations: 435.5 MB / 1.313 GB, free: 251.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003259/1.678, allocations: 95.44 kB / 1.313 GB, free: 251.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.057/4.735, allocations: 0.6748 GB / 1.988 GB, free: 162.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0002918/4.735, allocations: 41.25 kB / 1.988 GB, free: 162.2 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.005292/4.74, allocations: 1.725 MB / 1.99 GB, free: 161.4 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/4.74, allocations: 7.25 kB / 1.99 GB, free: 161.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003085/4.743, allocations: 373.6 kB / 1.99 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03262/4.776, allocations: 8.422 MB / 1.999 GB, free: 160.7 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/4.776, allocations: 25.5 kB / 1.999 GB, free: 160.7 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00054/4.777, allocations: 55.22 kB / 1.999 GB, free: 160.7 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00322/4.78, allocations: 0.6228 MB / 1.999 GB, free: 160.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004119/4.784, allocations: 0.8525 MB / 2 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.216e-05/4.784, allocations: 4.844 kB / 2 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002569/4.785, allocations: 6.219 kB / 2 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.834e-05/4.785, allocations: 17.25 kB / 2 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01326/4.798, allocations: 4.704 MB / 2.005 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/4.799, allocations: 450.1 kB / 2.005 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000545/4.8, allocations: 235.5 kB / 2.005 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003464/4.803, allocations: 1.656 MB / 2.007 GB, free: 157.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007244/4.804, allocations: 361.5 kB / 2.007 GB, free: 157 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 3.256e-06/4.804, allocations: 0 / 2.007 GB, free: 157 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.002864/4.807, allocations: 0.685 MB / 2.008 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/4.807, allocations: 112.3 kB / 2.008 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002161/4.809, allocations: 0.9716 MB / 2.009 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002028/4.809, allocations: 25.7 kB / 2.009 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004137/4.81, allocations: 437.4 kB / 2.01 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/4.81, allocations: 155.4 kB / 2.01 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/4.81, allocations: 3.75 kB / 2.01 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.04e-05/4.81, allocations: 329.4 kB / 2.01 GB, free: 156 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005516/4.811, allocations: 211.2 kB / 2.01 GB, free: 156 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006944/4.812, allocations: 494.2 kB / 2.011 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/4.813, allocations: 347.1 kB / 2.011 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/4.813, allocations: 6 kB / 2.011 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.003127/4.816, allocations: 0.8695 MB / 2.012 GB, free: 155.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005762/4.817, allocations: 2.74 MB / 2.015 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/4.817, allocations: 7.25 kB / 2.015 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004269/4.817, allocations: 70.44 kB / 2.015 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/4.819, allocations: 167.3 kB / 2.015 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009408/4.82, allocations: 1.145 MB / 2.016 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/4.822, allocations: 113.9 kB / 2.016 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/4.822, allocations: 43.81 kB / 2.016 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/4.822, allocations: 9.422 kB / 2.016 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00269/4.825, allocations: 0.6763 MB / 2.017 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/4.825, allocations: 7.031 kB / 2.017 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003225/4.825, allocations: 69.58 kB / 2.017 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/4.826, allocations: 157 kB / 2.017 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009439/4.827, allocations: 1.155 MB / 2.018 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/4.829, allocations: 90.16 kB / 2.018 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/4.829, allocations: 46.91 kB / 2.018 GB, free: 150.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QCoo.a,QCoo.b,QCoo.last,$PRE.QCoo.nextEvent,QCoo.nextEvent,QCoo.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 66 * 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.0003391/4.829, allocations: 169.4 kB / 2.018 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000279/4.829, allocations: 127.2 kB / 2.018 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003291/4.833, allocations: 0.8841 MB / 2.019 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/4.833, allocations: 10.31 kB / 2.019 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/4.833, allocations: 0 / 2.019 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/4.833, allocations: 3.797 kB / 2.019 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005128/4.838, allocations: 1.827 MB / 2.021 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/4.838, allocations: 3.719 kB / 2.021 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009794/4.839, allocations: 108 kB / 2.021 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003231/4.839, allocations: 70.58 kB / 2.021 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.691e-05/4.839, allocations: 21.89 kB / 2.021 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009764/4.84, allocations: 1.142 MB / 2.022 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/4.84, allocations: 1.219 kB / 2.022 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002593/4.843, allocations: 1.003 MB / 2.023 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008424/4.844, allocations: 308.3 kB / 2.024 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002782/4.844, allocations: 3.562 kB / 2.024 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/4.846, allocations: 76.92 kB / 2.024 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/4.846, allocations: 31.28 kB / 2.024 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/4.846, allocations: 36.42 kB / 2.024 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001582/4.848, allocations: 0.7449 MB / 2.025 GB, free: 148 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003433/4.851, allocations: 0.7371 MB / 2.025 GB, free: 147.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QCoo.a,QCoo.b,QCoo.last,QCoo.nextEvent,QCoo.nextEventScaled) * Number of discrete states: 6 (QCoo.nextEvent,QCoo.last,QCoo.nextEventScaled,QCoo.b,QCoo.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002441/4.854, allocations: 0.9733 MB / 2.026 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002831/4.856, allocations: 0.9949 MB / 2.027 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/4.856, allocations: 2.344 kB / 2.027 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009345/4.857, allocations: 347.2 kB / 2.028 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004419/4.862, allocations: 0.5238 MB / 2.028 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005671/4.868, allocations: 1.681 MB / 2.03 GB, free: 147 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00149/4.869, allocations: 1.34 MB / 2.031 GB, free: 146.3 MB / 0.8698 GB Notification: Performance of SimCode: time 1.603e-06/4.869, allocations: 0 / 2.031 GB, free: 146.3 MB / 0.8698 GB Notification: Performance of Templates: time 0.07832/4.948, allocations: 30.18 MB / 2.06 GB, free: 145.4 MB / 0.8698 GB