Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.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.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle") translateModel(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 115.2 kB / 16.42 MB, free: 6.488 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.001275/0.001275, allocations: 185.7 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002111/0.002111, allocations: 283.6 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9123/0.9123, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 95.84 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3656, allocations: 86.97 MB / 0.767 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle): time 0.06278/0.4284, allocations: 70.19 MB / 0.8356 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02141/0.4498, allocations: 16.2 MB / 0.8514 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002425/0.4523, allocations: 103.4 kB / 0.8515 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.4546, allocations: 0.9626 MB / 0.8524 GB, free: 12.14 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.005633/0.4602, allocations: 2.593 MB / 0.855 GB, free: 9.539 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004124/0.4644, allocations: 1.929 MB / 0.8568 GB, free: 7.629 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.009857/0.4742, allocations: 9.864 MB / 0.8665 GB, free: 13.74 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004793/0.479, allocations: 4.101 MB / 0.8705 GB, free: 9.578 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005351/0.4844, allocations: 3.291 MB / 0.8737 GB, free: 6.297 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00387/0.4883, allocations: 2.77 MB / 0.8764 GB, free: 3.516 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0005555/0.4889, allocations: 384 kB / 0.8768 GB, free: 3.141 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002547/0.4914, allocations: 1.385 MB / 0.8781 GB, free: 1.754 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0007657/0.4922, allocations: 0.958 MB / 0.8791 GB, free: 0.793 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001899/0.4941, allocations: 2.011 MB / 0.881 GB, free: 14.77 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005124/0.4992, allocations: 5.869 MB / 0.8868 GB, free: 8.891 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.4992, allocations: 0 / 0.8868 GB, free: 8.891 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.353e-06/0.4993, allocations: 0 / 0.8868 GB, free: 8.891 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.639e-05/0.4993, allocations: 0 / 0.8868 GB, free: 8.891 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 640 * Number of variables: 640 Notification: Performance of Generate backend data structure: time 0.005454/0.5048, allocations: 3.903 MB / 0.8906 GB, free: 4.914 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.5048, allocations: 8.031 kB / 0.8906 GB, free: 4.906 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/0.5058, allocations: 396.6 kB / 0.8909 GB, free: 4.516 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004319/0.5102, allocations: 3.118 MB / 0.894 GB, free: 1.352 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.5103, allocations: 189.1 kB / 0.8942 GB, free: 1.164 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003195/0.5106, allocations: 244 kB / 0.8944 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004975/0.5156, allocations: 3.423 MB / 0.8977 GB, free: 13.36 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.935e-05/0.5157, allocations: 7.906 kB / 0.8978 GB, free: 13.35 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.5159, allocations: 107.9 kB / 0.8979 GB, free: 13.25 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.797e-05/0.516, allocations: 79.92 kB / 0.8979 GB, free: 13.17 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003972/0.52, allocations: 2.7 MB / 0.9006 GB, free: 10.45 MB / 0.67 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.01369/0.5337, allocations: 12.74 MB / 0.913 GB, free: 13.12 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/0.5357, allocations: 1.55 MB / 0.9145 GB, free: 11.57 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001358/0.5371, allocations: 1.102 MB / 0.9156 GB, free: 10.47 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007562/0.5379, allocations: 1.01 MB / 0.9166 GB, free: 9.242 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001357/0.5392, allocations: 0.9272 MB / 0.9175 GB, free: 8.293 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=134): time 3.296e-06/0.5392, allocations: 0 / 0.9175 GB, free: 8.293 MB / 0.6856 GB Notification: Performance of matching and sorting (n=134): time 0.003516/0.5428, allocations: 2.379 MB / 0.9198 GB, free: 5.902 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.5428, allocations: 102.4 kB / 0.9199 GB, free: 5.785 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002992/0.5458, allocations: 2.542 MB / 0.9224 GB, free: 3.227 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.546, allocations: 49.7 kB / 0.9224 GB, free: 3.172 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.547, allocations: 1.346 MB / 0.9238 GB, free: 1.809 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004205/0.5475, allocations: 473.3 kB / 0.9242 GB, free: 1.34 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004404/0.5479, allocations: 331.2 kB / 0.9245 GB, free: 1.008 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.771e-05/0.548, allocations: 301.1 kB / 0.9248 GB, free: 0.7109 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.549, allocations: 0.7339 MB / 0.9255 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001378/0.5504, allocations: 1.246 MB / 0.9267 GB, free: 14.5 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006339/0.5568, allocations: 3.686 MB / 0.9303 GB, free: 10.57 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.5568, allocations: 4 kB / 0.9303 GB, free: 10.57 MB / 0.7012 GB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003486/0.5603, allocations: 2.401 MB / 0.9327 GB, free: 8.148 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 4.65e-05/0.5603, allocations: 49.64 kB / 0.9327 GB, free: 8.094 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.5604, allocations: 16 kB / 0.9328 GB, free: 8.078 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.032e-05/0.5604, allocations: 24 kB / 0.9328 GB, free: 8.055 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/0.5619, allocations: 428 kB / 0.9332 GB, free: 7.637 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.4e-05/0.5619, allocations: 35.86 kB / 0.9332 GB, free: 7.602 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.5635, allocations: 245.5 kB / 0.9335 GB, free: 7.359 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.5636, allocations: 79.98 kB / 0.9335 GB, free: 7.281 MB / 0.7012 GB Warning: Assuming fixed start value for the following 7 variables: storage.vol[1].dynBal.U:VARIABLE(start = storage.vol[1].dynBal.fluidVolume * storage.vol[1].dynBal.rho_start * BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.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 = 1e5 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[2].dynBal.U:VARIABLE(start = storage.vol[2].dynBal.fluidVolume * storage.vol[2].dynBal.rho_start * BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.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 = 1e5 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[3].dynBal.U:VARIABLE(start = storage.vol[3].dynBal.fluidVolume * storage.vol[3].dynBal.rho_start * BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.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 = 1e5 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[4].dynBal.U:VARIABLE(start = storage.vol[4].dynBal.fluidVolume * storage.vol[4].dynBal.rho_start * BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.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 = 1e5 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol_HX_1.dynBal.U:VARIABLE(start = storage.vol_HX_1.dynBal.fluidVolume * storage.vol_HX_1.dynBal.rho_start * BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.storage.vol_HX_1.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.storage.vol_HX_1.dynBal.Medium.setState_pTX(storage.vol_HX_1.dynBal.p_start, storage.vol_HX_1.dynBal.T_start, {})) + (storage.vol_HX_1.dynBal.T_start - 273.15) * 0.0 unit = "J" fixed = true nominal = 1e5 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.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.storage.vol_bot.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.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 = 1e5 protected = true ) "Internal energy of fluid" type: Real storage.vol_top.dynBal.U:VARIABLE(start = storage.vol_top.dynBal.fluidVolume * storage.vol_top.dynBal.rho_start * BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.storage.vol_top.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.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 = 1e5 protected = true ) "Internal energy of fluid" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.logicControl.y,logicControl.y,consumptionProfile.nextEventScaled,consumptionProfile.nextEvent,$PRE.consumptionProfile.nextEvent,consumptionProfile.last,consumptionProfile.b,consumptionProfile.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001616/0.5652, allocations: 1.272 MB / 0.9348 GB, free: 5.996 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004021/0.5656, allocations: 256.9 kB / 0.935 GB, free: 5.742 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003027/0.5687, allocations: 2.012 MB / 0.937 GB, free: 3.723 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002235/0.5709, allocations: 1.613 MB / 0.9386 GB, free: 2.094 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5709, allocations: 0 / 0.9386 GB, free: 2.094 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008836/0.5718, allocations: 0.5718 MB / 0.9391 GB, free: 1.5 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003244/0.5722, allocations: 28 kB / 0.9391 GB, free: 1.473 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.5735, allocations: 75.92 kB / 0.9392 GB, free: 1.398 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.5737, allocations: 85.12 kB / 0.9393 GB, free: 1.312 MB / 0.7012 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003398/0.5771, allocations: 2.044 MB / 0.9413 GB, free: 15.24 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004089/0.5812, allocations: 3.193 MB / 0.9444 GB, free: 12.02 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001034/0.5822, allocations: 0.8574 MB / 0.9452 GB, free: 11.17 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002371/0.5846, allocations: 1.78 MB / 0.947 GB, free: 9.379 MB / 0.7169 GB Notification: Performance of Backend: time 3.41e-07/0.5846, allocations: 0 / 0.947 GB, free: 9.379 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003373/0.588, allocations: 1.751 MB / 0.9487 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of SimCode: time 0.01161/0.5996, allocations: 6.826 MB / 0.9554 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of Templates: time 0.3436/0.9432, allocations: 55.43 MB / 1.009 GB, free: 137.4 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.sim & ./BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.pipe 2>&1)