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.001507/0.001507, allocations: 110.4 kB / 16.42 MB, free: 6.508 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.001762/0.001763, allocations: 185.5 kB / 17.35 MB, free: 5.738 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.278/1.278, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002157/0.002157, allocations: 283.4 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9182/0.9182, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 91.84 kB / 0.6821 GB, free: 7.016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3668/0.3687, allocations: 86.97 MB / 0.767 GB, free: 4.121 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle): time 0.06456/0.4333, allocations: 70.19 MB / 0.8356 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02201/0.4553, allocations: 16.2 MB / 0.8514 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002842/0.4582, allocations: 99.44 kB / 0.8515 GB, free: 13.34 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002492/0.4607, allocations: 0.9861 MB / 0.8524 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006099/0.4669, allocations: 2.712 MB / 0.8551 GB, free: 9.629 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004252/0.4711, allocations: 1.937 MB / 0.857 GB, free: 7.707 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.009652/0.4808, allocations: 9.884 MB / 0.8666 GB, free: 13.8 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004682/0.4855, allocations: 4.09 MB / 0.8706 GB, free: 9.652 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005496/0.491, allocations: 3.313 MB / 0.8739 GB, free: 6.352 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003843/0.4949, allocations: 2.782 MB / 0.8766 GB, free: 3.559 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0008037/0.4957, allocations: 384 kB / 0.8769 GB, free: 3.184 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003227/0.4989, allocations: 1.369 MB / 0.8783 GB, free: 1.812 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.00109/0.5, allocations: 0.962 MB / 0.8792 GB, free: 0.8477 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002264/0.5023, allocations: 2.015 MB / 0.8812 GB, free: 14.82 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005421/0.5077, allocations: 5.869 MB / 0.8869 GB, free: 8.941 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.5077, allocations: 0 / 0.8869 GB, free: 8.941 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.242e-06/0.5077, allocations: 0 / 0.8869 GB, free: 8.941 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.888e-05/0.5078, allocations: 0 / 0.8869 GB, free: 8.941 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.005753/0.5135, allocations: 3.899 MB / 0.8907 GB, free: 4.969 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.5136, allocations: 12.03 kB / 0.8907 GB, free: 4.957 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.5146, allocations: 396.6 kB / 0.8911 GB, free: 4.566 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004774/0.5194, allocations: 3.1 MB / 0.8941 GB, free: 1.414 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.5195, allocations: 197.1 kB / 0.8943 GB, free: 1.219 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003287/0.5199, allocations: 244 kB / 0.8946 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004918/0.5248, allocations: 3.423 MB / 0.8979 GB, free: 13.41 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.578e-05/0.5249, allocations: 11.84 kB / 0.8979 GB, free: 13.4 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002357/0.5251, allocations: 104 kB / 0.898 GB, free: 13.3 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-05/0.5252, allocations: 75.98 kB / 0.8981 GB, free: 13.23 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003914/0.5291, allocations: 2.7 MB / 0.9007 GB, free: 10.51 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.0137/0.5428, allocations: 12.74 MB / 0.9132 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002046/0.5449, allocations: 1.562 MB / 0.9147 GB, free: 11.62 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.5463, allocations: 1.098 MB / 0.9158 GB, free: 10.52 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007131/0.547, allocations: 1.007 MB / 0.9168 GB, free: 9.297 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/0.5483, allocations: 0.9274 MB / 0.9177 GB, free: 8.348 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=134): time 3.326e-06/0.5483, allocations: 0 / 0.9177 GB, free: 8.348 MB / 0.6856 GB Notification: Performance of matching and sorting (n=134): time 0.003445/0.5518, allocations: 2.375 MB / 0.92 GB, free: 5.961 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.5519, allocations: 98.42 kB / 0.9201 GB, free: 5.848 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/0.5548, allocations: 2.542 MB / 0.9226 GB, free: 3.289 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.555, allocations: 49.7 kB / 0.9226 GB, free: 3.234 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.556, allocations: 1.35 MB / 0.9239 GB, free: 1.867 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003888/0.5564, allocations: 473.3 kB / 0.9244 GB, free: 1.398 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004418/0.5569, allocations: 335.2 kB / 0.9247 GB, free: 1.062 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.153e-05/0.557, allocations: 313.1 kB / 0.925 GB, free: 0.7539 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.558, allocations: 0.7299 MB / 0.9257 GB, free: 24 kB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.5593, allocations: 1.246 MB / 0.9269 GB, free: 14.55 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006311/0.5657, allocations: 3.686 MB / 0.9305 GB, free: 10.62 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.5657, allocations: 4 kB / 0.9305 GB, free: 10.61 MB / 0.7012 GB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003343/0.569, allocations: 2.393 MB / 0.9329 GB, free: 8.203 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 4.408e-05/0.5691, allocations: 45.69 kB / 0.9329 GB, free: 8.152 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.5691, allocations: 16.88 kB / 0.9329 GB, free: 8.137 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.164e-05/0.5692, allocations: 24 kB / 0.9329 GB, free: 8.113 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.5706, allocations: 435.4 kB / 0.9334 GB, free: 7.688 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.124e-05/0.5707, allocations: 35.86 kB / 0.9334 GB, free: 7.652 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.5722, allocations: 241.5 kB / 0.9336 GB, free: 7.414 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.5723, allocations: 80 kB / 0.9337 GB, free: 7.336 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.001485/0.5738, allocations: 1.274 MB / 0.9349 GB, free: 6.051 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000381/0.5742, allocations: 256.9 kB / 0.9352 GB, free: 5.797 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002952/0.5772, allocations: 2.005 MB / 0.9371 GB, free: 3.785 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002179/0.5794, allocations: 1.621 MB / 0.9387 GB, free: 2.148 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.5794, allocations: 0 / 0.9387 GB, free: 2.148 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.5804, allocations: 0.564 MB / 0.9393 GB, free: 1.562 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003195/0.5807, allocations: 31.94 kB / 0.9393 GB, free: 1.531 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.582, allocations: 79.84 kB / 0.9394 GB, free: 1.453 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.5822, allocations: 85.14 kB / 0.9395 GB, free: 1.367 MB / 0.7012 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003302/0.5855, allocations: 2.052 MB / 0.9415 GB, free: 15.29 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003971/0.5895, allocations: 3.193 MB / 0.9446 GB, free: 12.07 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001003/0.5905, allocations: 0.8573 MB / 0.9454 GB, free: 11.21 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002251/0.5928, allocations: 1.776 MB / 0.9472 GB, free: 9.43 MB / 0.7169 GB Notification: Performance of Backend: time 2.2e-07/0.5928, allocations: 0 / 0.9472 GB, free: 9.43 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003311/0.5961, allocations: 1.751 MB / 0.9489 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of SimCode: time 0.0109/0.607, allocations: 6.816 MB / 0.9555 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of Templates: time 0.3472/0.9542, allocations: 55.44 MB / 1.01 GB, free: 137.7 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)