Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.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.Validation.IdealSmallSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem") [: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.082/2.082, allocations: 253.1 MB / 260.4 MB, free: 7.59 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.001635/0.001635, allocations: 188.7 kB / 319.6 MB, free: 3.316 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.841/1.841, 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.001321/0.001321, allocations: 87.39 kB / 0.6746 GB, free: 4.41 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.987e-06/9.217e-06, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2062, allocations: 106.3 MB / 0.888 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.521/1.728, allocations: 479 MB / 1.356 GB, free: 236.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/1.728, allocations: 84.19 kB / 1.356 GB, free: 236.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 25.85/27.58, allocations: 5.245 GB / 6.601 GB, free: 56.78 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.002989/27.59, allocations: 315 kB / 6.601 GB, free: 56.73 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.04403/27.63, allocations: 10.66 MB / 6.612 GB, free: 51.94 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/27.63, allocations: 8.312 kB / 6.612 GB, free: 51.94 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02336/27.65, allocations: 2.627 MB / 6.614 GB, free: 51.23 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09009/27.74, allocations: 19.24 MB / 6.633 GB, free: 49.2 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007584/27.74, allocations: 237.2 kB / 6.633 GB, free: 49.2 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003764/27.75, allocations: 454.2 kB / 6.634 GB, free: 49.2 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02438/27.77, allocations: 5.624 MB / 6.639 GB, free: 49.16 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03351/27.81, allocations: 7.259 MB / 6.646 GB, free: 47.99 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005394/27.81, allocations: 21.94 kB / 6.646 GB, free: 47.98 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003112/27.81, allocations: 16 kB / 6.646 GB, free: 47.98 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002836/27.81, allocations: 202.7 kB / 6.646 GB, free: 47.98 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1014/27.91, allocations: 47.28 MB / 6.693 GB, free: 20.66 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006139/27.92, allocations: 2.059 MB / 6.695 GB, free: 20.64 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005927/27.92, allocations: 2.02 MB / 6.697 GB, free: 20.6 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03413/27.96, allocations: 9.412 MB / 6.706 GB, free: 16.75 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00642/27.96, allocations: 1.833 MB / 6.708 GB, free: 16.66 MB / 1.135 GB Notification: Performance of pre-optimization done (n=339): time 9.318e-06/27.96, allocations: 0 / 6.708 GB, free: 16.66 MB / 1.135 GB Notification: Performance of matching and sorting (n=339): time 0.02089/27.98, allocations: 4.456 MB / 6.712 GB, free: 15.94 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/27.99, allocations: 88.2 kB / 6.712 GB, free: 15.87 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02755/28.01, allocations: 7.678 MB / 6.719 GB, free: 15.29 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.00134/28.01, allocations: 36.02 kB / 6.72 GB, free: 15.25 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.006476/28.02, allocations: 3.225 MB / 6.723 GB, free: 13.67 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.003834/28.02, allocations: 1.13 MB / 6.724 GB, free: 12.93 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005893/28.03, allocations: 1.375 kB / 6.724 GB, free: 12.93 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0004339/28.03, allocations: 495.7 kB / 6.724 GB, free: 12.61 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004856/28.03, allocations: 1.494 MB / 6.726 GB, free: 12.6 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006991/28.04, allocations: 3.586 MB / 6.729 GB, free: 9.988 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01057/28.05, allocations: 2.429 MB / 6.732 GB, free: 9.926 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.68e-05/28.05, allocations: 16.53 kB / 6.732 GB, free: 9.926 MB / 1.135 GB Notification: Performance of matching and sorting (n=612) (initialization): time 0.02612/28.07, allocations: 6.005 MB / 6.737 GB, free: 9.227 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.012/28.09, allocations: 31.11 MB / 6.768 GB, free: 8.129 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002864/28.09, allocations: 53.06 kB / 6.768 GB, free: 8.129 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002335/28.09, allocations: 0.4901 MB / 6.768 GB, free: 8.051 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01013/28.1, allocations: 1.129 MB / 6.769 GB, free: 8.051 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/28.11, allocations: 8.241 MB / 6.778 GB, free: 17.34 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0159/28.13, allocations: 0.8799 MB / 6.778 GB, free: 17.07 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001743/28.13, allocations: 271.4 kB / 6.779 GB, free: 17.07 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/28.13, allocations: 3.812 kB / 6.779 GB, free: 17.07 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0205/28.15, allocations: 4.794 MB / 6.783 GB, free: 16.9 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002191/28.15, allocations: 53.41 kB / 6.783 GB, free: 16.9 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/28.15, allocations: 498.5 kB / 6.784 GB, free: 16.82 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00931/28.16, allocations: 1.099 MB / 6.785 GB, free: 16.82 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00999/28.17, allocations: 8.237 MB / 6.793 GB, free: 10.09 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0154/28.19, allocations: 0.7829 MB / 6.794 GB, free: 9.895 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001732/28.19, allocations: 253 kB / 6.794 GB, free: 9.895 MB / 1.182 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: coo1.hex.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true final = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hea2.pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hea1.pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 238 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition4,$PRE.QCoo2.nextTimeEvent,$whenCondition3,$PRE.QCoo1.nextTimeEvent,$whenCondition2,$PRE.QHea2.nextTimeEvent,$whenCondition1,$PRE.QHea1.nextTimeEvent,QHea1.nextTimeEvent,$PRE.QHea1.nextTimeEventScaled,QHea1.nextTimeEventScaled,QHea2.nextTimeEvent,$PRE.QHea2.nextTimeEventScaled,QHea2.nextTimeEventScaled,QCoo1.nextTimeEvent,$PRE.QCoo1.nextTimeEventScaled,QCoo1.nextTimeEventScaled,QCoo2.nextTimeEvent,$PRE.QCoo2.nextTimeEventScaled,QCoo2.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (580): * Single equations (assignments): 566 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 8 {1 2,1 2,1 2,1 2,1 2,1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.002563/28.19, allocations: 300.3 kB / 6.794 GB, free: 9.664 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003901/28.19, allocations: 0.9635 MB / 6.795 GB, free: 9.148 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02432/28.22, allocations: 5.252 MB / 6.8 GB, free: 8.781 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.979e-05/28.22, allocations: 42.52 kB / 6.8 GB, free: 8.781 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.36e-05/28.22, allocations: 2.812 kB / 6.8 GB, free: 8.781 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01468/28.23, allocations: 3.516 MB / 6.804 GB, free: 8.551 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04805/28.28, allocations: 11.47 MB / 6.815 GB, free: 7.836 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.927e-05/28.28, allocations: 4.5 kB / 6.815 GB, free: 7.836 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007662/28.29, allocations: 0.7222 MB / 6.816 GB, free: 7.809 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001997/28.29, allocations: 423 kB / 6.816 GB, free: 7.727 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001008/28.29, allocations: 74.22 kB / 6.816 GB, free: 7.727 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009643/28.3, allocations: 8.13 MB / 6.824 GB, free: 0.9961 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/28.3, allocations: 4 kB / 6.824 GB, free: 0.9961 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02401/28.33, allocations: 6.958 MB / 6.831 GB, free: 15.9 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009327/28.34, allocations: 1.742 MB / 6.833 GB, free: 15.24 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004537/28.34, allocations: 22.44 kB / 6.833 GB, free: 15.24 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01443/28.35, allocations: 0.5873 MB / 6.833 GB, free: 15.2 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001031/28.36, allocations: 200.8 kB / 6.833 GB, free: 15.2 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008937/28.36, allocations: 185.5 kB / 6.834 GB, free: 15.2 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.01887/28.38, allocations: 5.766 MB / 6.839 GB, free: 14.91 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.03463/28.41, allocations: 5.548 MB / 6.845 GB, free: 14.04 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (pla.coo.outCon.T,pla.hea.outCon.T,pip.vol[1].dynBal.U,pip.vol[2].dynBal.U,pip.vol[3].dynBal.U,pip1.vol[1].dynBal.U,pip1.vol[2].dynBal.U,pip1.vol[3].dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,spl4.vol.dynBal.U,spl5.vol.dynBal.U) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,QHea1.nextTimeEvent,QHea1.nextTimeEventScaled,QHea2.nextTimeEvent,QHea2.nextTimeEventScaled,QCoo1.nextTimeEvent,QCoo1.nextTimeEventScaled,QCoo2.nextTimeEvent,QCoo2.nextTimeEventScaled) * Number of discrete states: 8 (QCoo2.nextTimeEvent,QCoo1.nextTimeEvent,QHea2.nextTimeEvent,QHea1.nextTimeEvent,QCoo2.nextTimeEventScaled,QCoo1.nextTimeEventScaled,QHea2.nextTimeEventScaled,QHea1.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 315 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 8 {1 2,1 2,1 2,1 2,1 2,1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01731/28.43, allocations: 6.528 MB / 6.851 GB, free: 10.69 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.03119/28.46, allocations: 7.368 MB / 6.858 GB, free: 9.828 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 2.182e-05/28.46, allocations: 2.531 kB / 6.858 GB, free: 9.828 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.009887/28.47, allocations: 2.103 MB / 6.86 GB, free: 9.547 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0622/28.53, allocations: 4.497 MB / 6.865 GB, free: 9.266 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09298/28.62, allocations: 15.3 MB / 6.88 GB, free: 5.367 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01968/28.64, allocations: 6.502 MB / 6.886 GB, free: 4.277 MB / 1.198 GB Notification: Performance of SimCode: time 1.993e-06/28.64, allocations: 0 / 6.886 GB, free: 4.277 MB / 1.198 GB Notification: Performance of Templates: time 1.513/30.16, allocations: 222.6 MB / 7.103 GB, free: 168.5 MB / 1.214 GB