Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase") translateModel(Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.112/2.112, allocations: 251.1 MB / 266.7 MB, free: 11.65 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001343/0.001343, allocations: 180.6 kB / 326.3 MB, free: 2.883 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.32/2.32, allocations: 205.4 MB / 0.5772 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009672/0.000967, allocations: 84.17 kB / 0.6817 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004772/0.0004774, allocations: 9.781 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2131, allocations: 106.3 MB / 0.8995 GB, free: 65.58 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase): time 6.491/6.704, allocations: 1.802 GB / 2.701 GB, free: 6.078 MB / 1.307 GB Notification: Performance of NFInst.instExpressions: time 2.512/9.216, allocations: 0.5243 GB / 3.226 GB, free: 6.703 MB / 1.448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.1119/9.327, allocations: 2.022 MB / 3.228 GB, free: 4.668 MB / 1.448 GB Notification: Performance of NFTyping.typeComponents: time 0.1025/9.43, allocations: 18.98 MB / 3.246 GB, free: 2.91 MB / 1.464 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Experimental/DistrictHeatingCooling/SubStations/VaporCompression/BaseClasses/getPeakLoad.mo:2:1-88:16:writable] Warning: Pure function ‘Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.getPeakLoad‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. Notification: Performance of NFTyping.typeBindings: time 0.2627/9.693, allocations: 57.73 MB / 3.303 GB, free: 3.047 MB / 1.51 GB Notification: Performance of NFTyping.typeClassSections: time 0.1483/9.841, allocations: 30.9 MB / 3.333 GB, free: 5.969 MB / 1.542 GB Notification: Performance of NFFlatten.flatten: time 2.626/12.47, allocations: 377.1 MB / 3.701 GB, free: 12 MB / 1.635 GB Notification: Performance of NFFlatten.resolveConnections: time 0.1561/12.62, allocations: 44.54 MB / 3.744 GB, free: 11.64 MB / 1.667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.1622/12.79, allocations: 46.15 MB / 3.79 GB, free: 15.8 MB / 1.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.1055/12.89, allocations: 36.71 MB / 3.825 GB, free: 2.273 MB / 1.714 GB Notification: Performance of NFPackage.collectConstants: time 0.02463/12.92, allocations: 1.992 MB / 3.827 GB, free: 288 kB / 1.714 GB Notification: Performance of NFFlatten.collectFunctions: time 0.09956/13.02, allocations: 15.11 MB / 3.842 GB, free: 4.836 MB / 1.729 GB Notification: Performance of NFScalarize.scalarize: time 0.03222/13.05, allocations: 10.85 MB / 3.853 GB, free: 12.75 MB / 1.745 GB Notification: Performance of NFVerifyModel.verify: time 0.03776/13.09, allocations: 12.44 MB / 3.865 GB, free: 5.586 MB / 1.745 GB Notification: Performance of NFConvertDAE.convert: time 0.1704/13.26, allocations: 80.42 MB / 3.943 GB, free: 3.984 MB / 1.807 GB Notification: Performance of FrontEnd - DAE generated: time 8.096e-06/13.26, allocations: 0 / 3.943 GB, free: 3.984 MB / 1.807 GB Notification: Performance of FrontEnd: time 2.514e-06/13.26, allocations: 0 / 3.943 GB, free: 3.984 MB / 1.807 GB Notification: Performance of Transformations before backend: time 0.003675/13.26, allocations: 0 / 3.943 GB, free: 3.984 MB / 1.807 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8753 * Number of variables: 8753 Notification: Performance of Generate backend data structure: time 0.2046/13.46, allocations: 52.76 MB / 3.995 GB, free: 4.145 MB / 1.854 GB Notification: Performance of prepare preOptimizeDAE: time 6.713e-05/13.46, allocations: 8.031 kB / 3.995 GB, free: 4.137 MB / 1.854 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1956/13.66, allocations: 16.76 MB / 4.011 GB, free: 3.395 MB / 1.87 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.221/13.88, allocations: 52.88 MB / 4.063 GB, free: 3.176 MB / 1.901 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.03324/13.91, allocations: 5.826 MB / 4.069 GB, free: 14.52 MB / 1.917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01559/13.93, allocations: 3.537 MB / 4.072 GB, free: 12.11 MB / 1.917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 1.669/15.6, allocations: 44.56 MB / 4.116 GB, free: 1.143 GB / 1.917 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.002361/15.6, allocations: 86.38 kB / 4.116 GB, free: 1.143 GB / 1.917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01411/15.62, allocations: 1.416 MB / 4.117 GB, free: 1.143 GB / 1.917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001768/15.62, allocations: 0.8674 MB / 4.118 GB, free: 1.143 GB / 1.917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1898/15.81, allocations: 39.62 MB / 4.157 GB, free: 1.136 GB / 1.917 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4951/16.3, allocations: 211.7 MB / 4.363 GB, free: 0.9701 GB / 1.917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2434/16.55, allocations: 42.64 MB / 4.405 GB, free: 0.9524 GB / 1.917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.06362/16.61, allocations: 14.22 MB / 4.419 GB, free: 0.942 GB / 1.917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1666/16.78, allocations: 65.23 MB / 4.483 GB, free: 0.8741 GB / 1.917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.06992/16.85, allocations: 15.89 MB / 4.498 GB, free: 0.8587 GB / 1.917 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.03019/16.88, allocations: 2.809 MB / 4.501 GB, free: 0.8561 GB / 1.917 GB Notification: Performance of pre-optimization done (n=1811): time 6.965e-05/16.88, allocations: 0 / 4.501 GB, free: 0.8561 GB / 1.917 GB Notification: Performance of matching and sorting (n=1811): time 0.4348/17.31, allocations: 64.84 MB / 4.564 GB, free: 0.7926 GB / 1.917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004086/17.31, allocations: 1.187 MB / 4.565 GB, free: 0.7912 GB / 1.917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1206/17.43, allocations: 43.11 MB / 4.607 GB, free: 0.7494 GB / 1.917 GB Notification: Performance of collectPreVariables (initialization): time 0.007096/17.44, allocations: 0.4936 MB / 4.608 GB, free: 0.7489 GB / 1.917 GB Notification: Performance of collectInitialEqns (initialization): time 0.04002/17.48, allocations: 26.83 MB / 4.634 GB, free: 0.7224 GB / 1.917 GB Notification: Performance of collectInitialBindings (initialization): time 0.01186/17.49, allocations: 6.144 MB / 4.64 GB, free: 0.7165 GB / 1.917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006145/17.5, allocations: 479.8 kB / 4.64 GB, free: 0.716 GB / 1.917 GB Notification: Performance of setup shared object (initialization): time 6.333e-05/17.5, allocations: 305.1 kB / 4.641 GB, free: 0.7157 GB / 1.917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.06227/17.56, allocations: 12.86 MB / 4.653 GB, free: 0.7031 GB / 1.917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.07221/17.63, allocations: 22.98 MB / 4.676 GB, free: 0.6765 GB / 1.917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06709/17.7, allocations: 14.87 MB / 4.69 GB, free: 0.662 GB / 1.917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002414/17.7, allocations: 71.94 kB / 4.69 GB, free: 0.6619 GB / 1.917 GB Notification: Performance of matching and sorting (n=3045) (initialization): time 0.2202/17.92, allocations: 44.08 MB / 4.733 GB, free: 0.6187 GB / 1.917 GB Notification: Performance of prepare postOptimizeDAE: time 0.00453/17.93, allocations: 7.151 MB / 4.74 GB, free: 0.6086 GB / 1.917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005326/17.93, allocations: 232 kB / 4.741 GB, free: 0.6083 GB / 1.917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0418/17.97, allocations: 7.596 MB / 4.748 GB, free: 0.6009 GB / 1.917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.05093/18.02, allocations: 6.256 MB / 4.754 GB, free: 0.5948 GB / 1.917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05309/18.07, allocations: 22.28 MB / 4.776 GB, free: 0.5725 GB / 1.917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.07932/18.15, allocations: 4.196 MB / 4.78 GB, free: 0.5684 GB / 1.917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007651/18.16, allocations: 1.296 MB / 4.781 GB, free: 0.5671 GB / 1.917 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/18.16, allocations: 4 kB / 4.781 GB, free: 0.5671 GB / 1.917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2094/18.37, allocations: 39.72 MB / 4.82 GB, free: 0.5283 GB / 1.917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005522/18.37, allocations: 232 kB / 4.82 GB, free: 0.528 GB / 1.917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04113/18.41, allocations: 7.606 MB / 4.828 GB, free: 0.5206 GB / 1.917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.05042/18.46, allocations: 6.201 MB / 4.834 GB, free: 0.5145 GB / 1.917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05335/18.51, allocations: 22.3 MB / 4.856 GB, free: 0.4922 GB / 1.917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.07642/18.59, allocations: 4.18 MB / 4.86 GB, free: 499.8 MB / 1.917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008245/18.6, allocations: 1.276 MB / 4.861 GB, free: 498.6 MB / 1.917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1046 * Number of states: 0 () * Number of discrete variables: 53 ($whenCondition8,$PRE.ret2.loa.nextTimeEvent,$whenCondition7,$PRE.apa2.loa.nextTimeEvent,$whenCondition6,$PRE.larOff4.loa.nextTimeEvent,$whenCondition5,$PRE.larOff3.loa.nextTimeEvent,$whenCondition4,$PRE.apa1.loa.nextTimeEvent,$whenCondition3,$PRE.larOff2.loa.nextTimeEvent,$whenCondition2,$PRE.ret1.loa.nextTimeEvent,$whenCondition1,$PRE.larOff1.loa.nextTimeEvent,$whenCondition10,$whenCondition9,larOff1.loa.nextTimeEvent,$PRE.larOff1.loa.nextTimeEventScaled,larOff1.loa.nextTimeEventScaled,ret1.loa.nextTimeEvent,$PRE.ret1.loa.nextTimeEventScaled,ret1.loa.nextTimeEventScaled,larOff2.loa.nextTimeEvent,$PRE.larOff2.loa.nextTimeEventScaled,larOff2.loa.nextTimeEventScaled,apa1.loa.nextTimeEvent,$PRE.apa1.loa.nextTimeEventScaled,apa1.loa.nextTimeEventScaled,larOff3.loa.nextTimeEvent,$PRE.larOff3.loa.nextTimeEventScaled,larOff3.loa.nextTimeEventScaled,larOff4.loa.nextTimeEvent,$PRE.larOff4.loa.nextTimeEventScaled,larOff4.loa.nextTimeEventScaled,apa2.loa.nextTimeEvent,$PRE.apa2.loa.nextTimeEventScaled,apa2.loa.nextTimeEventScaled,ret2.loa.nextTimeEvent,$PRE.ret2.loa.nextTimeEventScaled,ret2.loa.nextTimeEventScaled,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile,ETheCoo.local_reset,ETheHotWat.local_reset,ETheHea.local_reset,EEleCoo.local_reset,EEleHea.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2757): * Single equations (assignments): 2709 * Array equations: 24 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 24 {1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0435/18.64, allocations: 10.31 MB / 4.871 GB, free: 488.2 MB / 1.917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01844/18.66, allocations: 4.61 MB / 4.875 GB, free: 483.6 MB / 1.917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2546/18.92, allocations: 52.56 MB / 4.927 GB, free: 431.2 MB / 1.917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1946/19.11, allocations: 33.33 MB / 4.959 GB, free: 397.8 MB / 1.917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002166/19.11, allocations: 4 kB / 4.959 GB, free: 397.8 MB / 1.917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.03395/19.14, allocations: 8.877 MB / 4.968 GB, free: 388.8 MB / 1.917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0182/19.16, allocations: 348 kB / 4.968 GB, free: 388.5 MB / 1.917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0697/19.23, allocations: 3.928 MB / 4.972 GB, free: 384.6 MB / 1.917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005171/19.24, allocations: 1.173 MB / 4.973 GB, free: 383.4 MB / 1.917 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.3057/19.54, allocations: 41.99 MB / 5.014 GB, free: 341.7 MB / 1.917 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.2361/19.78, allocations: 50.98 MB / 5.064 GB, free: 290.5 MB / 1.917 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.05905/19.84, allocations: 13.86 MB / 5.078 GB, free: 276.6 MB / 1.917 GB Notification: Performance of sorting global known variables: time 0.08513/19.92, allocations: 29.24 MB / 5.106 GB, free: 247.6 MB / 1.917 GB Notification: Performance of Backend: time 1.202e-06/19.92, allocations: 0 / 5.106 GB, free: 247.6 MB / 1.917 GB Notification: Performance of simCode: created initialization part: time 0.2266/20.15, allocations: 48.69 MB / 5.154 GB, free: 200.2 MB / 1.917 GB Notification: Performance of SimCode: time 0.3472/20.5, allocations: 113 MB / 5.264 GB, free: 87.36 MB / 1.917 GB Notification: Performance of Templates: time 4.625/25.12, allocations: 0.9958 GB / 6.26 GB, free: 305.9 MB / 1.917 GB make -j1 -f Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase.makefile (rm -f Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase.pipe ; mkfifo Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase.pipe >> ../files/Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase.sim & ./Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.HeatingCoolingHotWater3ClustersBaseCase.pipe 2>&1)