Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.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.FluidStorage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage") translateModel(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, 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.0009936/0.0009936, 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.275/1.275, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002133/0.002133, allocations: 289.4 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9189/0.9189, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 99.84 kB / 0.6821 GB, free: 7.004 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3891, allocations: 86.97 MB / 0.767 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage): time 0.06502/0.4542, allocations: 70.13 MB / 0.8355 GB, free: 13.57 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02175/0.476, allocations: 16.11 MB / 0.8512 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002794/0.4788, allocations: 99.44 kB / 0.8513 GB, free: 13.33 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002168/0.481, allocations: 0.9275 MB / 0.8522 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.005901/0.4869, allocations: 2.527 MB / 0.8547 GB, free: 9.855 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004205/0.4911, allocations: 1.888 MB / 0.8565 GB, free: 7.984 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.01046/0.5016, allocations: 9.846 MB / 0.8662 GB, free: 14.11 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004973/0.5066, allocations: 4.074 MB / 0.8701 GB, free: 9.977 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006045/0.5127, allocations: 3.279 MB / 0.8733 GB, free: 6.707 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004183/0.5169, allocations: 2.739 MB / 0.876 GB, free: 3.957 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0007181/0.5176, allocations: 388 kB / 0.8764 GB, free: 3.578 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003143/0.5208, allocations: 1.295 MB / 0.8776 GB, free: 2.281 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0008842/0.5216, allocations: 0.9503 MB / 0.8786 GB, free: 1.328 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002381/0.524, allocations: 1.992 MB / 0.8805 GB, free: 15.32 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005921/0.53, allocations: 5.807 MB / 0.8862 GB, free: 9.508 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.53, allocations: 0 / 0.8862 GB, free: 9.508 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.422e-06/0.53, allocations: 0 / 0.8862 GB, free: 9.508 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.733e-05/0.5301, allocations: 0 / 0.8862 GB, free: 9.508 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: 631 * Number of variables: 631 Notification: Performance of Generate backend data structure: time 0.006286/0.5364, allocations: 3.881 MB / 0.89 GB, free: 5.547 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.5364, allocations: 8.031 kB / 0.89 GB, free: 5.539 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.5375, allocations: 380.8 kB / 0.8903 GB, free: 5.164 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004721/0.5423, allocations: 3.084 MB / 0.8934 GB, free: 2.027 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/0.5424, allocations: 201 kB / 0.8936 GB, free: 1.828 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003527/0.5428, allocations: 251.9 kB / 0.8938 GB, free: 1.582 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005396/0.5482, allocations: 3.41 MB / 0.8971 GB, free: 14.03 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.141e-05/0.5482, allocations: 7.938 kB / 0.8971 GB, free: 14.02 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002526/0.5485, allocations: 104 kB / 0.8972 GB, free: 13.92 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.186e-05/0.5486, allocations: 71.98 kB / 0.8973 GB, free: 13.85 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004395/0.553, allocations: 2.723 MB / 0.9 GB, free: 11.11 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.0144/0.5674, allocations: 12.7 MB / 0.9124 GB, free: 13.81 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/0.5698, allocations: 1.585 MB / 0.9139 GB, free: 12.23 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.5713, allocations: 1.086 MB / 0.915 GB, free: 11.14 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007456/0.572, allocations: 1.011 MB / 0.916 GB, free: 9.914 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001529/0.5736, allocations: 0.909 MB / 0.9168 GB, free: 8.992 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=132): time 3.537e-06/0.5736, allocations: 0 / 0.9168 GB, free: 8.992 MB / 0.6856 GB Notification: Performance of matching and sorting (n=132): time 0.003959/0.5776, allocations: 2.307 MB / 0.9191 GB, free: 6.68 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.5776, allocations: 68.7 kB / 0.9192 GB, free: 6.598 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00308/0.5807, allocations: 2.492 MB / 0.9216 GB, free: 4.086 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.5808, allocations: 53.7 kB / 0.9216 GB, free: 4.027 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0011/0.5819, allocations: 1.338 MB / 0.9229 GB, free: 2.672 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004313/0.5824, allocations: 457.5 kB / 0.9234 GB, free: 2.219 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004471/0.5828, allocations: 339.1 kB / 0.9237 GB, free: 1.879 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.159e-05/0.5829, allocations: 301.1 kB / 0.924 GB, free: 1.582 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.5841, allocations: 0.7339 MB / 0.9247 GB, free: 0.8477 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.5856, allocations: 1.24 MB / 0.9259 GB, free: 15.4 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006923/0.5925, allocations: 3.73 MB / 0.9296 GB, free: 11.42 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.5926, allocations: 8 kB / 0.9296 GB, free: 11.41 MB / 0.7012 GB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003904/0.5965, allocations: 2.387 MB / 0.9319 GB, free: 9.004 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 5.138e-05/0.5965, allocations: 67.41 kB / 0.932 GB, free: 8.926 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.5966, allocations: 19.94 kB / 0.932 GB, free: 8.906 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.359e-05/0.5966, allocations: 24 kB / 0.932 GB, free: 8.883 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/0.5984, allocations: 475.8 kB / 0.9325 GB, free: 8.418 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.012e-05/0.5984, allocations: 31.92 kB / 0.9325 GB, free: 8.387 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.6002, allocations: 245.6 kB / 0.9327 GB, free: 8.145 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.6004, allocations: 79.98 kB / 0.9328 GB, free: 8.066 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.FluidStorage.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.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.FluidStorage.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.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.FluidStorage.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.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.FluidStorage.storage.vol.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.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.FluidStorage.storage.vol_HX_1.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.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.FluidStorage.storage.vol_bot.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.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.FluidStorage.storage.vol_top.dynBal.Medium.specificInternalEnergy(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.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: 68 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.m_flow2.count,$PRE.m_flow2.T_start,$PRE.m_flow1.count,$PRE.m_flow1.T_start,m_flow2.count,m_flow2.T_start,m_flow1.count,m_flow1.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 2 * 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.001694/0.6021, allocations: 1.22 MB / 0.934 GB, free: 6.852 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/0.6025, allocations: 249 kB / 0.9342 GB, free: 6.605 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00319/0.6057, allocations: 1.922 MB / 0.9361 GB, free: 4.676 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002375/0.6081, allocations: 1.529 MB / 0.9376 GB, free: 3.137 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.6081, allocations: 7.922 kB / 0.9376 GB, free: 3.129 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009401/0.6091, allocations: 0.5639 MB / 0.9382 GB, free: 2.543 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003272/0.6094, allocations: 31.98 kB / 0.9382 GB, free: 2.512 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001371/0.6108, allocations: 79.91 kB / 0.9383 GB, free: 2.434 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.611, allocations: 93.17 kB / 0.9384 GB, free: 2.344 MB / 0.7012 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003704/0.6147, allocations: 1.946 MB / 0.9403 GB, free: 400 kB / 0.7012 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004222/0.6189, allocations: 3.089 MB / 0.9433 GB, free: 13.27 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001128/0.6201, allocations: 0.83 MB / 0.9441 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002258/0.6223, allocations: 1.739 MB / 0.9458 GB, free: 10.7 MB / 0.7169 GB Notification: Performance of Backend: time 2.8e-07/0.6224, allocations: 0 / 0.9458 GB, free: 10.7 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003561/0.6259, allocations: 1.745 MB / 0.9475 GB, free: 8.941 MB / 0.7169 GB Notification: Performance of SimCode: time 0.0111/0.637, allocations: 6.677 MB / 0.954 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of Templates: time 0.3504/0.9875, allocations: 55.34 MB / 1.008 GB, free: 141.4 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.sim & ./BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe 2>&1)