Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.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.HeatingSubstation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation") [: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 2.209/2.209, allocations: 253.1 MB / 260.4 MB, free: 7.469 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.001616/0.001615, allocations: 177.3 kB / 319.6 MB, free: 3.32 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.745/1.745, allocations: 205.4 MB / 0.5704 GB, free: 15.05 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.001323/0.001323, allocations: 85.94 kB / 0.6746 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.466e-06/8.586e-06, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2097, allocations: 106.3 MB / 0.888 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.409/1.618, allocations: 435.5 MB / 1.313 GB, free: 251.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004016/1.619, allocations: 92.36 kB / 1.313 GB, free: 251.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.072/4.691, allocations: 0.6748 GB / 1.988 GB, free: 162.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0003045/4.691, allocations: 38.58 kB / 1.988 GB, free: 162.7 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.005421/4.697, allocations: 1.728 MB / 1.99 GB, free: 161.9 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/4.697, allocations: 7.344 kB / 1.99 GB, free: 161.9 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003171/4.7, allocations: 371 kB / 1.99 GB, free: 161.8 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03176/4.732, allocations: 8.427 MB / 1.999 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.016e-05/4.732, allocations: 25.44 kB / 1.999 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003393/4.732, allocations: 53.19 kB / 1.999 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002141/4.734, allocations: 0.62 MB / 1.999 GB, free: 161.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/4.737, allocations: 0.8541 MB / 2 GB, free: 161 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/4.737, allocations: 3.219 kB / 2 GB, free: 161 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000133/4.737, allocations: 0 / 2 GB, free: 161 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/4.737, allocations: 24.91 kB / 2 GB, free: 161 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01102/4.748, allocations: 4.708 MB / 2.005 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/4.749, allocations: 453.8 kB / 2.005 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005788/4.75, allocations: 237.1 kB / 2.005 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00399/4.754, allocations: 1.649 MB / 2.007 GB, free: 157.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007924/4.755, allocations: 358.8 kB / 2.007 GB, free: 157.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 3.897e-06/4.755, allocations: 3.094 kB / 2.007 GB, free: 157.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.003078/4.758, allocations: 0.6766 MB / 2.008 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/4.758, allocations: 116.2 kB / 2.008 GB, free: 157.3 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002323/4.76, allocations: 0.9697 MB / 2.009 GB, free: 157.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002329/4.761, allocations: 28.33 kB / 2.009 GB, free: 157.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004381/4.761, allocations: 437.2 kB / 2.009 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002404/4.761, allocations: 148.7 kB / 2.01 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/4.762, allocations: 3.875 kB / 2.01 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.558e-05/4.762, allocations: 329.5 kB / 2.01 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005643/4.762, allocations: 213.6 kB / 2.01 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007555/4.763, allocations: 490.7 kB / 2.011 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/4.765, allocations: 352.9 kB / 2.011 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/4.765, allocations: 0 / 2.011 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.003346/4.768, allocations: 0.8726 MB / 2.012 GB, free: 156 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006127/4.769, allocations: 2.738 MB / 2.014 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/4.769, allocations: 7.031 kB / 2.014 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004494/4.769, allocations: 74.61 kB / 2.015 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/4.771, allocations: 163.6 kB / 2.015 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009557/4.772, allocations: 1.143 MB / 2.016 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001837/4.774, allocations: 116.8 kB / 2.016 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/4.774, allocations: 42.41 kB / 2.016 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/4.774, allocations: 4.875 kB / 2.016 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002822/4.777, allocations: 0.6773 MB / 2.017 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/4.777, allocations: 13.38 kB / 2.017 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000328/4.777, allocations: 70.08 kB / 2.017 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/4.778, allocations: 163.4 kB / 2.017 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/4.779, allocations: 1.156 MB / 2.018 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/4.781, allocations: 98.75 kB / 2.018 GB, free: 151 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002171/4.781, allocations: 40.31 kB / 2.018 GB, free: 151 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,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 (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.0004031/4.782, allocations: 170.1 kB / 2.018 GB, free: 150.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004466/4.782, allocations: 129.3 kB / 2.018 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003756/4.786, allocations: 0.8832 MB / 2.019 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.94e-05/4.786, allocations: 9.828 kB / 2.019 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/4.786, allocations: 3 kB / 2.019 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/4.786, allocations: 3.281 kB / 2.019 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005367/4.791, allocations: 1.827 MB / 2.021 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.886e-06/4.792, allocations: 3.219 kB / 2.021 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009861/4.793, allocations: 104.8 kB / 2.021 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003304/4.793, allocations: 70.55 kB / 2.021 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.008e-05/4.793, allocations: 16.84 kB / 2.021 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000972/4.794, allocations: 1.142 MB / 2.022 GB, free: 149.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/4.794, allocations: 0.6562 kB / 2.022 GB, free: 149.3 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002594/4.797, allocations: 0.9918 MB / 2.023 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007974/4.797, allocations: 299.2 kB / 2.024 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/4.798, allocations: 14.38 kB / 2.024 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/4.799, allocations: 81.95 kB / 2.024 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/4.799, allocations: 35.52 kB / 2.024 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/4.8, allocations: 42.08 kB / 2.024 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001554/4.801, allocations: 0.7393 MB / 2.025 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00349/4.805, allocations: 0.7355 MB / 2.025 GB, free: 148.4 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,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 (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.002828/4.807, allocations: 0.9682 MB / 2.026 GB, free: 148.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.003521/4.811, allocations: 0.9996 MB / 2.027 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/4.811, allocations: 0 / 2.027 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009177/4.812, allocations: 345.9 kB / 2.028 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004496/4.817, allocations: 0.5215 MB / 2.028 GB, free: 148 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/4.822, allocations: 1.683 MB / 2.03 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001472/4.824, allocations: 1.342 MB / 2.031 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of SimCode: time 1.553e-06/4.824, allocations: 0 / 2.031 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of Templates: time 0.07909/4.903, allocations: 30.18 MB / 2.06 GB, free: 145.9 MB / 0.8698 GB