Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.IdealSystem3Clusters.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.Examples.IdealSystem3Clusters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.IdealSystem3Clusters") [: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.308/2.308, allocations: 253.1 MB / 260.4 MB, free: 7.543 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.001564/0.001563, allocations: 177.3 kB / 319.6 MB, free: 3.301 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.8/1.8, allocations: 205.4 MB / 0.5704 GB, free: 15.06 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.001258/0.001258, allocations: 86.78 kB / 0.6746 GB, free: 4.426 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.065e-05/1.086e-05, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2082, allocations: 106.3 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.525/1.733, allocations: 476 MB / 1.353 GB, free: 238.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/1.734, allocations: 90.73 kB / 1.353 GB, free: 238.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 47.82/49.55, allocations: 9.445 GB / 10.8 GB, free: 17.86 MB / 1.354 GB Notification: Performance of Transformations before backend: time 0.006195/49.56, allocations: 0.5854 MB / 10.8 GB, free: 17.27 MB / 1.354 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3531 * Number of variables: 3531 Notification: Performance of Generate backend data structure: time 0.08009/49.64, allocations: 20.91 MB / 10.82 GB, free: 12.13 MB / 1.37 GB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/49.64, allocations: 12.03 kB / 10.82 GB, free: 12.12 MB / 1.37 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04902/49.68, allocations: 5.503 MB / 10.82 GB, free: 6.582 MB / 1.37 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.002/50.69, allocations: 38.83 MB / 10.86 GB, free: 203.1 MB / 1.385 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001236/50.69, allocations: 470.4 kB / 10.86 GB, free: 203.1 MB / 1.385 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006697/50.69, allocations: 0.8447 MB / 10.86 GB, free: 203.1 MB / 1.385 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0501/50.74, allocations: 12.96 MB / 10.88 GB, free: 203 MB / 1.385 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06263/50.81, allocations: 15.56 MB / 10.89 GB, free: 200.6 MB / 1.385 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009694/50.81, allocations: 53.5 kB / 10.89 GB, free: 200.6 MB / 1.385 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006065/50.81, allocations: 28.19 kB / 10.89 GB, free: 200.6 MB / 1.385 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000421/50.81, allocations: 392.8 kB / 10.89 GB, free: 200.6 MB / 1.385 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2153/51.03, allocations: 98.63 MB / 10.99 GB, free: 146 MB / 1.385 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02545/51.06, allocations: 8.834 MB / 11 GB, free: 145.8 MB / 1.385 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01348/51.07, allocations: 4.965 MB / 11 GB, free: 145.7 MB / 1.385 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07091/51.14, allocations: 20.16 MB / 11.02 GB, free: 138.9 MB / 1.385 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01486/51.16, allocations: 4.421 MB / 11.03 GB, free: 138.7 MB / 1.385 GB Notification: Performance of pre-optimization done (n=703): time 1.35e-05/51.16, allocations: 3.312 kB / 11.03 GB, free: 138.7 MB / 1.385 GB Notification: Performance of matching and sorting (n=703): time 0.04779/51.2, allocations: 10.52 MB / 11.04 GB, free: 137.4 MB / 1.385 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/51.2, allocations: 123.3 kB / 11.04 GB, free: 137.3 MB / 1.385 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05543/51.26, allocations: 15.95 MB / 11.05 GB, free: 136.3 MB / 1.385 GB Notification: Performance of collectPreVariables (initialization): time 0.002962/51.26, allocations: 55.38 kB / 11.05 GB, free: 136.3 MB / 1.385 GB Notification: Performance of collectInitialEqns (initialization): time 0.01502/51.28, allocations: 6.199 MB / 11.06 GB, free: 133.4 MB / 1.385 GB Notification: Performance of collectInitialBindings (initialization): time 0.01202/51.29, allocations: 2.317 MB / 11.06 GB, free: 131.9 MB / 1.385 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002485/51.29, allocations: 4.828 kB / 11.06 GB, free: 131.9 MB / 1.385 GB Notification: Performance of setup shared object (initialization): time 0.001181/51.29, allocations: 0.6842 MB / 11.06 GB, free: 131.6 MB / 1.385 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01214/51.3, allocations: 3.629 MB / 11.06 GB, free: 131.5 MB / 1.385 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01593/51.32, allocations: 7.665 MB / 11.07 GB, free: 126.6 MB / 1.385 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02544/51.35, allocations: 5.738 MB / 11.08 GB, free: 126.4 MB / 1.385 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001881/51.35, allocations: 29.09 kB / 11.08 GB, free: 126.4 MB / 1.385 GB Notification: Performance of matching and sorting (n=1274) (initialization): time 0.05908/51.41, allocations: 13.87 MB / 11.09 GB, free: 125.2 MB / 1.385 GB Notification: Performance of prepare postOptimizeDAE: time 0.02478/51.43, allocations: 88.94 MB / 11.18 GB, free: 99.23 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004712/51.43, allocations: 114 kB / 11.18 GB, free: 99.23 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01974/51.45, allocations: 2.471 MB / 11.18 GB, free: 99.14 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02034/51.47, allocations: 2.41 MB / 11.18 GB, free: 99.14 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03173/51.5, allocations: 15.13 MB / 11.2 GB, free: 89.84 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.029/51.53, allocations: 1.643 MB / 11.2 GB, free: 89.29 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003469/51.54, allocations: 0.5993 MB / 11.2 GB, free: 89.29 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/51.54, allocations: 7.312 kB / 11.2 GB, free: 89.29 MB / 1.448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04827/51.58, allocations: 11.54 MB / 11.21 GB, free: 89.03 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003131/51.58, allocations: 114.5 kB / 11.21 GB, free: 89.03 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01981/51.6, allocations: 2.465 MB / 11.21 GB, free: 88.94 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01923/51.62, allocations: 2.328 MB / 11.22 GB, free: 88.94 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0316/51.65, allocations: 15.11 MB / 11.23 GB, free: 95.66 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02724/51.68, allocations: 1.434 MB / 11.23 GB, free: 95.24 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003552/51.69, allocations: 0.5577 MB / 11.23 GB, free: 95.24 MB / 1.464 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 504 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition12,$PRE.QCoo5.nextTimeEvent,$whenCondition11,$PRE.QHea7.nextTimeEvent,$whenCondition10,$PRE.QHea6.nextTimeEvent,$whenCondition9,$PRE.QHea5.nextTimeEvent,$whenCondition8,$PRE.QCoo4.nextTimeEvent,$whenCondition7,$PRE.QCoo3.nextTimeEvent,$whenCondition6,$PRE.QHea4.nextTimeEvent,$whenCondition5,$PRE.QHea3.nextTimeEvent,$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,QHea3.nextTimeEvent,$PRE.QHea3.nextTimeEventScaled,QHea3.nextTimeEventScaled,QHea4.nextTimeEvent,$PRE.QHea4.nextTimeEventScaled,QHea4.nextTimeEventScaled,QCoo3.nextTimeEvent,$PRE.QCoo3.nextTimeEventScaled,QCoo3.nextTimeEventScaled,QCoo4.nextTimeEvent,$PRE.QCoo4.nextTimeEventScaled,QCoo4.nextTimeEventScaled,QHea5.nextTimeEvent,$PRE.QHea5.nextTimeEventScaled,QHea5.nextTimeEventScaled,QHea6.nextTimeEvent,$PRE.QHea6.nextTimeEventScaled,QHea6.nextTimeEventScaled,QHea7.nextTimeEvent,$PRE.QHea7.nextTimeEventScaled,QHea7.nextTimeEventScaled,QCoo5.nextTimeEvent,$PRE.QCoo5.nextTimeEventScaled,QCoo5.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1145): * Single equations (assignments): 1124 * Array equations: 12 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {8 20,10 25,6 15} Notification: Performance of prepare postOptimizeDAE: time 0.005757/51.69, allocations: 481.6 kB / 11.23 GB, free: 95.06 MB / 1.464 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00819/51.7, allocations: 1.899 MB / 11.23 GB, free: 94.04 MB / 1.464 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05384/51.75, allocations: 12.45 MB / 11.25 GB, free: 93.5 MB / 1.464 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001405/51.75, allocations: 93.27 kB / 11.25 GB, free: 93.5 MB / 1.464 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.939e-05/51.75, allocations: 7.281 kB / 11.25 GB, free: 93.5 MB / 1.464 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03254/51.79, allocations: 8.689 MB / 11.26 GB, free: 92.81 MB / 1.464 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1025/51.89, allocations: 25.19 MB / 11.28 GB, free: 91.55 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001149/51.89, allocations: 1.875 kB / 11.28 GB, free: 91.55 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01494/51.9, allocations: 1.396 MB / 11.28 GB, free: 91.55 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0107/51.91, allocations: 1.729 MB / 11.28 GB, free: 91.46 MB / 1.464 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002263/51.92, allocations: 151.9 kB / 11.28 GB, free: 91.46 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02699/51.94, allocations: 14.55 MB / 11.3 GB, free: 82.17 MB / 1.464 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.926e-06/51.94, allocations: 6.891 kB / 11.3 GB, free: 82.17 MB / 1.464 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05821/52, allocations: 16.1 MB / 11.31 GB, free: 80.25 MB / 1.464 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01766/52.02, allocations: 3.583 MB / 11.32 GB, free: 79.04 MB / 1.464 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00933/52.03, allocations: 39 kB / 11.32 GB, free: 79.04 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02827/52.06, allocations: 1.09 MB / 11.32 GB, free: 78.97 MB / 1.464 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00219/52.06, allocations: 428.8 kB / 11.32 GB, free: 78.96 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002208/52.06, allocations: 411.9 kB / 11.32 GB, free: 78.96 MB / 1.464 GB Notification: Performance of sort global known variables: time 0.04058/52.1, allocations: 12.14 MB / 11.33 GB, free: 78.36 MB / 1.464 GB Notification: Performance of remove unused functions: time 0.061/52.16, allocations: 10.52 MB / 11.34 GB, free: 77 MB / 1.464 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 20 (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,pip2.vol[1].dynBal.U,pip2.vol[2].dynBal.U,pip2.vol[3].dynBal.U,pip3.vol[1].dynBal.U,pip3.vol[2].dynBal.U,pip3.vol[3].dynBal.U,pip4.vol[1].dynBal.U,pip4.vol[2].dynBal.U,pip4.vol[3].dynBal.U,pip5.vol[1].dynBal.U,pip5.vol[2].dynBal.U,pip5.vol[3].dynBal.U) * Number of discrete variables: 36 ($whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,QHea1.nextTimeEvent,QHea1.nextTimeEventScaled,QHea2.nextTimeEvent,QHea2.nextTimeEventScaled,QCoo1.nextTimeEvent,QCoo1.nextTimeEventScaled,QCoo2.nextTimeEvent,QCoo2.nextTimeEventScaled,QHea3.nextTimeEvent,QHea3.nextTimeEventScaled,QHea4.nextTimeEvent,QHea4.nextTimeEventScaled,QCoo3.nextTimeEvent,QCoo3.nextTimeEventScaled,QCoo4.nextTimeEvent,QCoo4.nextTimeEventScaled,QHea5.nextTimeEvent,QHea5.nextTimeEventScaled,QHea6.nextTimeEvent,QHea6.nextTimeEventScaled,QHea7.nextTimeEvent,QHea7.nextTimeEventScaled,QCoo5.nextTimeEvent,QCoo5.nextTimeEventScaled) * Number of discrete states: 24 (QCoo5.nextTimeEvent,QHea7.nextTimeEvent,QHea6.nextTimeEvent,QHea5.nextTimeEvent,QCoo4.nextTimeEvent,QCoo3.nextTimeEvent,QHea4.nextTimeEvent,QHea3.nextTimeEvent,QCoo2.nextTimeEvent,QCoo1.nextTimeEvent,QHea2.nextTimeEvent,QHea1.nextTimeEvent,QCoo5.nextTimeEventScaled,QHea7.nextTimeEventScaled,QHea6.nextTimeEventScaled,QHea5.nextTimeEventScaled,QCoo4.nextTimeEventScaled,QCoo3.nextTimeEventScaled,QHea4.nextTimeEventScaled,QHea3.nextTimeEventScaled,QCoo2.nextTimeEventScaled,QCoo1.nextTimeEventScaled,QHea2.nextTimeEventScaled,QHea1.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (683): * Single equations (assignments): 621 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 24 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {6 15,8 20,10 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.03073/52.19, allocations: 14.77 MB / 11.36 GB, free: 69.16 MB / 1.464 GB Notification: Performance of simCode: created initialization part: time 0.0615/52.26, allocations: 17.81 MB / 11.37 GB, free: 67.65 MB / 1.464 GB Notification: Performance of simCode: created event and clocks part: time 2.259e-05/52.26, allocations: 7.094 kB / 11.37 GB, free: 67.65 MB / 1.464 GB Notification: Performance of simCode: created simulation system equations: time 0.01871/52.28, allocations: 5.343 MB / 11.38 GB, free: 67 MB / 1.464 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.07607/52.35, allocations: 8.861 MB / 11.39 GB, free: 66.78 MB / 1.464 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1249/52.48, allocations: 31.98 MB / 11.42 GB, free: 56.12 MB / 1.464 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03686/52.51, allocations: 12.91 MB / 11.43 GB, free: 53.66 MB / 1.464 GB Notification: Performance of SimCode: time 2.936e-06/52.51, allocations: 0 / 11.43 GB, free: 53.66 MB / 1.464 GB Notification: Performance of Templates: time 2.859/55.37, allocations: 454.9 MB / 11.87 GB, free: 239.5 MB / 1.464 GB