Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2") translateModel(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009079/0.0009079, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008521/0.0008521, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.155/1.155, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001682/0.001682, allocations: 266.6 kB / 291.3 MB, free: 2 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.722/0.722, allocations: 144.6 MB / 487 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003736/0.0003736, allocations: 14.73 kB / 0.5683 GB, free: 38.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.117, allocations: 83.09 MB / 0.6494 GB, free: 3.605 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2): time 0.4386/0.5556, allocations: 228.1 MB / 0.8722 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.06083/0.6165, allocations: 52.02 MB / 0.923 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009492/0.626, allocations: 282.2 kB / 0.9232 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.01078/0.6368, allocations: 3.603 MB / 0.9268 GB, free: 15.75 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:124:10-124:21:writable] Warning: 'each' used when modifying non-array element ThermalConductanceHX_1. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:142:10-142:21:writable] Warning: 'each' used when modifying non-array element ThermalConductanceHX_2. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:186:10-186:27:writable] Warning: 'each' used when modifying non-array element vol_bot. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:184:10-184:30:writable] Warning: 'each' used when modifying non-array element vol_bot. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:185:10-185:22:writable] Warning: 'each' used when modifying non-array element vol_bot. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:193:10-193:27:writable] Warning: 'each' used when modifying non-array element vol_top. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:191:10-191:30:writable] Warning: 'each' used when modifying non-array element vol_top. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:192:10-192:22:writable] Warning: 'each' used when modifying non-array element vol_top. Notification: Performance of NFTyping.typeBindings: time 0.02879/0.6656, allocations: 10.88 MB / 0.9374 GB, free: 4.852 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.01667/0.6823, allocations: 6.34 MB / 0.9436 GB, free: 14.61 MB / 0.6387 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:186:10-186:27:writable] Warning: 'each' used when modifying non-array element vol_bot. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/ThermalStorages/FluidStorage.mo:193:10-193:27:writable] Warning: 'each' used when modifying non-array element vol_top. Notification: Performance of NFFlatten.flatten: time 0.03204/0.7144, allocations: 25.11 MB / 0.9681 GB, free: 5.473 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01588/0.7303, allocations: 12.78 MB / 0.9806 GB, free: 8.605 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02631/0.7566, allocations: 14.33 MB / 0.9946 GB, free: 10.29 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01337/0.77, allocations: 8.157 MB / 1.003 GB, free: 2.094 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.00298/0.773, allocations: 0.5938 MB / 1.003 GB, free: 1.5 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01696/0.79, allocations: 5.723 MB / 1.009 GB, free: 11.77 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.004899/0.7949, allocations: 2.829 MB / 1.011 GB, free: 8.93 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.005565/0.8005, allocations: 3.232 MB / 1.015 GB, free: 5.684 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.02187/0.8224, allocations: 20.44 MB / 1.035 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.8224, allocations: 4 kB / 1.035 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.134e-06/0.8224, allocations: 4 kB / 1.035 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0006262/0.823, allocations: 0 / 1.035 GB, free: 1.191 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.02749/0.8505, allocations: 14.21 MB / 1.048 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.8506, allocations: 12.03 kB / 1.048 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01404/0.8646, allocations: 3.084 MB / 1.051 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03225/0.8969, allocations: 14.43 MB / 1.066 GB, free: 1.188 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006804/0.8976, allocations: 0.862 MB / 1.066 GB, free: 312 kB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.4908/1.388, allocations: 1.05 MB / 1.067 GB, free: 276.8 MB / 0.7482 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03122/1.42, allocations: 15.12 MB / 1.082 GB, free: 275.1 MB / 0.7482 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003377/1.42, allocations: 41.67 kB / 1.082 GB, free: 275.1 MB / 0.7482 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001489/1.422, allocations: 450.4 kB / 1.083 GB, free: 274.7 MB / 0.7482 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004399/1.422, allocations: 438.1 kB / 1.083 GB, free: 274.7 MB / 0.7482 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02549/1.448, allocations: 12.94 MB / 1.096 GB, free: 269.5 MB / 0.7482 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.08221/1.53, allocations: 66.69 MB / 1.161 GB, free: 210 MB / 0.7482 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01579/1.546, allocations: 9.255 MB / 1.17 GB, free: 200.9 MB / 0.7482 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 evalFunc (simulation): time 0.03743/1.583, allocations: 20.29 MB / 1.19 GB, free: 180.1 MB / 0.7482 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008006/1.591, allocations: 4.377 MB / 1.194 GB, free: 175.7 MB / 0.7482 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006689/1.598, allocations: 0.9881 MB / 1.195 GB, free: 174.8 MB / 0.7482 GB Notification: Performance of pre-optimization done (n=618): time 1.542e-05/1.598, allocations: 0 / 1.195 GB, free: 174.8 MB / 0.7482 GB Notification: Performance of matching and sorting (n=647): time 0.05707/1.655, allocations: 25 MB / 1.219 GB, free: 149.7 MB / 0.7482 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/1.655, allocations: 193.6 kB / 1.22 GB, free: 149.5 MB / 0.7482 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01699/1.672, allocations: 11.2 MB / 1.231 GB, free: 138.3 MB / 0.7482 GB Notification: Performance of collectPreVariables (initialization): time 0.0014/1.673, allocations: 153.7 kB / 1.231 GB, free: 138.2 MB / 0.7482 GB Notification: Performance of collectInitialEqns (initialization): time 0.005964/1.679, allocations: 6.451 MB / 1.237 GB, free: 131.7 MB / 0.7482 GB Notification: Performance of collectInitialBindings (initialization): time 0.003081/1.683, allocations: 2.242 MB / 1.239 GB, free: 129.5 MB / 0.7482 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001169/1.684, allocations: 152 kB / 1.239 GB, free: 129.3 MB / 0.7482 GB Notification: Performance of setup shared object (initialization): time 0.0006175/1.684, allocations: 0.6128 MB / 1.24 GB, free: 128.7 MB / 0.7482 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007212/1.692, allocations: 3.77 MB / 1.244 GB, free: 125 MB / 0.7482 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007949/1.7, allocations: 5.981 MB / 1.249 GB, free: 118.1 MB / 0.7482 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008251/1.708, allocations: 5.035 MB / 1.254 GB, free: 113.1 MB / 0.7482 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.546e-05/1.708, allocations: 20 kB / 1.254 GB, free: 113.1 MB / 0.7482 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.02296/1.731, allocations: 12.02 MB / 1.266 GB, free: 101 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 0.005054/1.736, allocations: 36.03 MB / 1.301 GB, free: 61.73 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/1.736, allocations: 60 kB / 1.301 GB, free: 61.68 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001892/1.738, allocations: 0.994 MB / 1.302 GB, free: 60.65 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008308/1.746, allocations: 2.083 MB / 1.304 GB, free: 58.56 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/1.759, allocations: 21.25 MB / 1.325 GB, free: 35.86 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0117/1.771, allocations: 1.104 MB / 1.326 GB, free: 34.75 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001413/1.772, allocations: 380.1 kB / 1.327 GB, free: 34.38 MB / 0.7482 GB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/1.772, allocations: 5.562 kB / 1.327 GB, free: 34.38 MB / 0.7482 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01902/1.791, allocations: 10.95 MB / 1.337 GB, free: 23.34 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001494/1.791, allocations: 64 kB / 1.337 GB, free: 23.28 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001631/1.793, allocations: 0.9862 MB / 1.338 GB, free: 22.26 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008035/1.801, allocations: 2.059 MB / 1.34 GB, free: 20.2 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2753/2.076, allocations: 21.24 MB / 1.361 GB, free: 240.9 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01103/2.087, allocations: 1.064 MB / 1.362 GB, free: 240.9 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/2.089, allocations: 366 kB / 1.362 GB, free: 240.9 MB / 0.7482 GB Warning: Assuming fixed start value for the following 30 variables: pump2.vol.dynBal.U:VARIABLE(start = pump2.vol.dynBal.fluidVolume * pump2.vol.dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pump2.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pump2.vol.dynBal.Medium.setState_pTX(pump2.vol.dynBal.p_start, pump2.vol.dynBal.T_start, {})) + (pump2.vol.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real pipe4.vol[2].dynBal.U:VARIABLE(start = 1.570796326794897 * (0.5 * false) ^ 2.0 * true * pipe4.vol[2].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe4.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe4.vol.dynBal.Medium.setState_pTX(pipe4.vol[2].dynBal.p_start, pipe4.vol[2].dynBal.T_start, {})) + (pipe4.vol[2].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] pipe4.vol[1].dynBal.U:VARIABLE(start = 1.570796326794897 * (0.5 * false) ^ 2.0 * true * pipe4.vol[1].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe4.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe4.vol.dynBal.Medium.setState_pTX(pipe4.vol[1].dynBal.p_start, pipe4.vol[1].dynBal.T_start, {})) + (pipe4.vol[1].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] pipe3.vol[2].dynBal.U:VARIABLE(start = 1.570796326794897 * (0.5 * false) ^ 2.0 * true * pipe3.vol[2].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe3.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe3.vol.dynBal.Medium.setState_pTX(pipe3.vol[2].dynBal.p_start, pipe3.vol[2].dynBal.T_start, {})) + (pipe3.vol[2].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] pipe3.vol[1].dynBal.U:VARIABLE(start = 1.570796326794897 * (0.5 * false) ^ 2.0 * true * pipe3.vol[1].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe3.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe3.vol.dynBal.Medium.setState_pTX(pipe3.vol[1].dynBal.p_start, pipe3.vol[1].dynBal.T_start, {})) + (pipe3.vol[1].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] storage.vol_top.dynBal.U:VARIABLE(start = storage.vol_top.dynBal.fluidVolume * storage.vol_top.dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol_top.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol_top.dynBal.Medium.setState_pTX(storage.vol_top.dynBal.p_start, storage.vol_top.dynBal.T_start, {})) + (storage.vol_top.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol_bot.dynBal.U:VARIABLE(start = storage.vol_bot.dynBal.fluidVolume * storage.vol_bot.dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol_bot.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol_bot.dynBal.Medium.setState_pTX(storage.vol_bot.dynBal.p_start, storage.vol_bot.dynBal.T_start, {})) + (storage.vol_bot.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol[8].dynBal.U:VARIABLE(start = storage.vol[8].dynBal.fluidVolume * storage.vol[8].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.setState_pTX(storage.vol[8].dynBal.p_start, storage.vol[8].dynBal.T_start, {})) + (storage.vol[8].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [8] storage.vol[7].dynBal.U:VARIABLE(start = storage.vol[7].dynBal.fluidVolume * storage.vol[7].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.setState_pTX(storage.vol[7].dynBal.p_start, storage.vol[7].dynBal.T_start, {})) + (storage.vol[7].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [8] storage.vol[6].dynBal.U:VARIABLE(start = storage.vol[6].dynBal.fluidVolume * storage.vol[6].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.setState_pTX(storage.vol[6].dynBal.p_start, storage.vol[6].dynBal.T_start, {})) + (storage.vol[6].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [8] storage.vol[5].dynBal.U:VARIABLE(start = storage.vol[5].dynBal.fluidVolume * storage.vol[5].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.setState_pTX(storage.vol[5].dynBal.p_start, storage.vol[5].dynBal.T_start, {})) + (storage.vol[5].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [8] storage.vol[4].dynBal.U:VARIABLE(start = storage.vol[4].dynBal.fluidVolume * storage.vol[4].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.setState_pTX(storage.vol[4].dynBal.p_start, storage.vol[4].dynBal.T_start, {})) + (storage.vol[4].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [8] storage.vol[3].dynBal.U:VARIABLE(start = storage.vol[3].dynBal.fluidVolume * storage.vol[3].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.setState_pTX(storage.vol[3].dynBal.p_start, storage.vol[3].dynBal.T_start, {})) + (storage.vol[3].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [8] storage.vol[2].dynBal.U:VARIABLE(start = storage.vol[2].dynBal.fluidVolume * storage.vol[2].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.setState_pTX(storage.vol[2].dynBal.p_start, storage.vol[2].dynBal.T_start, {})) + (storage.vol[2].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [8] storage.vol[1].dynBal.U:VARIABLE(start = storage.vol[1].dynBal.fluidVolume * storage.vol[1].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.storage.vol.dynBal.Medium.setState_pTX(storage.vol[1].dynBal.p_start, storage.vol[1].dynBal.T_start, {})) + (storage.vol[1].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [8] pipe2.vol[2].dynBal.U:VARIABLE(start = 1.570796326794897 * (0.5 * false) ^ 2.0 * true * pipe2.vol[2].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe2.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe2.vol.dynBal.Medium.setState_pTX(pipe2.vol[2].dynBal.p_start, pipe2.vol[2].dynBal.T_start, {})) + (pipe2.vol[2].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] pipe2.vol[1].dynBal.U:VARIABLE(start = 1.570796326794897 * (0.5 * false) ^ 2.0 * true * pipe2.vol[1].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe2.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe2.vol.dynBal.Medium.setState_pTX(pipe2.vol[1].dynBal.p_start, pipe2.vol[1].dynBal.T_start, {})) + (pipe2.vol[1].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] pipe1.vol[2].dynBal.U:VARIABLE(start = 35342917352.88517 * false * pipe1.vol[2].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe1.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe1.vol.dynBal.Medium.setState_pTX(pipe1.vol[2].dynBal.p_start, pipe1.vol[2].dynBal.T_start, {})) + (pipe1.vol[2].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] pipe1.vol[1].dynBal.U:VARIABLE(start = 35342917352.88517 * false * pipe1.vol[1].dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe1.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe1.vol.dynBal.Medium.setState_pTX(pipe1.vol[1].dynBal.p_start, pipe1.vol[1].dynBal.T_start, {})) + (pipe1.vol[1].dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [2] collector.cp_solid[10].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] collector.cp_solid[9].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] collector.cp_solid[8].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] collector.cp_solid[7].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] collector.cp_solid[6].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] collector.cp_solid[5].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] collector.cp_solid[4].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] collector.cp_solid[3].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] collector.cp_solid[2].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] collector.cp_solid[1].T:VARIABLE(min = max(0.0, max(1.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))) max = 10000.0 start = collector.vol[1].T_start unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real [10] pump1.vol.dynBal.U:VARIABLE(start = pump1.vol.dynBal.fluidVolume * pump1.vol.dynBal.rho_start * BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pump1.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pump1.vol.dynBal.Medium.setState_pTX(pump1.vol.dynBal.p_start, pump1.vol.dynBal.T_start, {})) + (pump1.vol.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,$PRE.control.y,control.y,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (931): * Single equations (assignments): 918 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008619/2.097, allocations: 5.337 MB / 1.368 GB, free: 240.6 MB / 0.7482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00259/2.1, allocations: 1.091 MB / 1.369 GB, free: 240.6 MB / 0.7482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02007/2.12, allocations: 10.89 MB / 1.379 GB, free: 240.1 MB / 0.7482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.792e-05/2.12, allocations: 71.78 kB / 1.379 GB, free: 240.1 MB / 0.7482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.032e-05/2.12, allocations: 10.81 kB / 1.379 GB, free: 240.1 MB / 0.7482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01299/2.133, allocations: 8.486 MB / 1.388 GB, free: 239.8 MB / 0.7482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03954/2.173, allocations: 22.92 MB / 1.41 GB, free: 231.4 MB / 0.7482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/2.173, allocations: 0 / 1.41 GB, free: 231.4 MB / 0.7482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006135/2.179, allocations: 1.526 MB / 1.412 GB, free: 231.3 MB / 0.7482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001568/2.18, allocations: 0.9172 MB / 1.412 GB, free: 231 MB / 0.7482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005463/2.181, allocations: 193 kB / 1.413 GB, free: 230.9 MB / 0.7482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01229/2.193, allocations: 21.11 MB / 1.433 GB, free: 211.9 MB / 0.7482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/2.193, allocations: 0 / 1.433 GB, free: 211.9 MB / 0.7482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02307/2.216, allocations: 15.6 MB / 1.448 GB, free: 199.6 MB / 0.7482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007431/2.224, allocations: 2.541 MB / 1.451 GB, free: 197.5 MB / 0.7482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003125/2.227, allocations: 143.9 kB / 1.451 GB, free: 197.3 MB / 0.7482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01022/2.237, allocations: 1.005 MB / 1.452 GB, free: 196.4 MB / 0.7482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001207/2.238, allocations: 432.5 kB / 1.452 GB, free: 196 MB / 0.7482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009854/2.239, allocations: 291.7 kB / 1.453 GB, free: 195.7 MB / 0.7482 GB Notification: Performance of sorting global known variables: time 0.01144/2.251, allocations: 7.767 MB / 1.46 GB, free: 188 MB / 0.7482 GB Notification: Performance of sort global known variables: time 4.21e-07/2.251, allocations: 0 / 1.46 GB, free: 188 MB / 0.7482 GB Notification: Performance of remove unused functions: time 0.02124/2.272, allocations: 6.089 MB / 1.466 GB, free: 182.1 MB / 0.7482 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 36 (pump1.vol.dynBal.U,pump1.filter.s[1],pump1.filter.s[2],collector.cp_solid[1].T,collector.cp_solid[2].T,collector.cp_solid[3].T,collector.cp_solid[4].T,collector.cp_solid[5].T,collector.cp_solid[6].T,collector.cp_solid[7].T,collector.cp_solid[8].T,collector.cp_solid[9].T,collector.cp_solid[10].T,pipe1.vol[1].dynBal.U,pipe1.vol[2].dynBal.U,pipe2.vol[1].dynBal.U,pipe2.vol[2].dynBal.U,exp.m,exp.H,storage.vol[1].dynBal.U,storage.vol[2].dynBal.U,storage.vol[3].dynBal.U,storage.vol[4].dynBal.U,storage.vol[5].dynBal.U,storage.vol[6].dynBal.U,storage.vol[7].dynBal.U,storage.vol[8].dynBal.U,storage.vol_bot.dynBal.U,storage.vol_top.dynBal.U,pipe3.vol[1].dynBal.U,pipe3.vol[2].dynBal.U,pipe4.vol[1].dynBal.U,pipe4.vol[2].dynBal.U,pump2.vol.dynBal.U,pump2.filter.s[1],pump2.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,weatherData.weatherData.conTim.tNext,control.y) * Number of discrete states: 2 (control.y,weatherData.weatherData.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (618): * Single equations (assignments): 600 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004203/2.276, allocations: 1.874 MB / 1.468 GB, free: 180.9 MB / 0.7482 GB Notification: Performance of simCode: created initialization part: time 0.02665/2.303, allocations: 17.95 MB / 1.486 GB, free: 162.8 MB / 0.7482 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/2.303, allocations: 10.59 kB / 1.486 GB, free: 162.7 MB / 0.7482 GB Notification: Performance of simCode: created simulation system equations: time 0.008287/2.311, allocations: 6.05 MB / 1.492 GB, free: 156.6 MB / 0.7482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02347/2.335, allocations: 5.835 MB / 1.497 GB, free: 151.1 MB / 0.7482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04417/2.379, allocations: 32.9 MB / 1.529 GB, free: 118.4 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009241/2.388, allocations: 8.603 MB / 1.538 GB, free: 109.8 MB / 0.7482 GB Notification: Performance of simCode: alias equations: time 0.01613/2.405, allocations: 5.077 MB / 1.543 GB, free: 104.8 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003262/2.408, allocations: 0.9676 MB / 1.544 GB, free: 103.8 MB / 0.7482 GB Notification: Performance of SimCode: time 1.623e-06/2.408, allocations: 0 / 1.544 GB, free: 103.8 MB / 0.7482 GB Notification: Performance of Templates: time 0.5227/2.931, allocations: 221.8 MB / 1.76 GB, free: 143 MB / 0.7482 GB make -j1 -f BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe ; mkfifo BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe >> ../files/BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.sim & ./BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Applications.SolarThermalSystems.SolarThermalSystem2.pipe 2>&1) Environment - environmentSimulation: