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.00125/0.00125, 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.0009848/0.0009848, 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.27/1.27, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0021/0.0021, allocations: 289.3 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9138/0.9138, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 92.28 kB / 0.6821 GB, free: 7.031 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/0.3769, allocations: 86.98 MB / 0.767 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage): time 0.06269/0.4397, allocations: 70.12 MB / 0.8355 GB, free: 13.57 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02002/0.4597, allocations: 16.11 MB / 0.8512 GB, free: 13.42 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002294/0.462, allocations: 99.44 kB / 0.8513 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001887/0.464, allocations: 0.951 MB / 0.8522 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.005087/0.4691, allocations: 2.648 MB / 0.8548 GB, free: 9.707 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003697/0.4728, allocations: 1.886 MB / 0.8567 GB, free: 7.836 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.008675/0.4815, allocations: 9.875 MB / 0.8663 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004046/0.4855, allocations: 4.074 MB / 0.8703 GB, free: 9.801 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00489/0.4904, allocations: 3.289 MB / 0.8735 GB, free: 6.527 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002938/0.4934, allocations: 2.731 MB / 0.8762 GB, free: 3.785 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004982/0.4939, allocations: 392 kB / 0.8765 GB, free: 3.402 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002578/0.4965, allocations: 1.299 MB / 0.8778 GB, free: 2.102 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0007874/0.4973, allocations: 0.9464 MB / 0.8787 GB, free: 1.152 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001905/0.4992, allocations: 1.999 MB / 0.8807 GB, free: 15.14 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005202/0.5044, allocations: 5.799 MB / 0.8864 GB, free: 9.332 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.5044, allocations: 0 / 0.8864 GB, free: 9.332 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.292e-06/0.5044, allocations: 0 / 0.8864 GB, free: 9.332 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.317e-05/0.5045, allocations: 0 / 0.8864 GB, free: 9.332 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.005734/0.5102, allocations: 3.885 MB / 0.8902 GB, free: 5.367 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.5102, allocations: 8.031 kB / 0.8902 GB, free: 5.359 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.5113, allocations: 380.8 kB / 0.8905 GB, free: 4.984 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004763/0.516, allocations: 3.095 MB / 0.8935 GB, free: 1.84 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.5162, allocations: 185.1 kB / 0.8937 GB, free: 1.656 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003354/0.5165, allocations: 251.9 kB / 0.894 GB, free: 1.41 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00501/0.5215, allocations: 3.407 MB / 0.8973 GB, free: 13.86 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.975e-05/0.5216, allocations: 11.94 kB / 0.8973 GB, free: 13.85 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002479/0.5219, allocations: 108 kB / 0.8974 GB, free: 13.74 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.857e-05/0.5219, allocations: 71.98 kB / 0.8975 GB, free: 13.67 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004197/0.5261, allocations: 2.723 MB / 0.9001 GB, free: 10.93 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.01367/0.5398, allocations: 12.71 MB / 0.9125 GB, free: 13.62 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.5421, allocations: 1.578 MB / 0.9141 GB, free: 12.05 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.5436, allocations: 1.086 MB / 0.9151 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007261/0.5443, allocations: 1.011 MB / 0.9161 GB, free: 9.734 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001467/0.5458, allocations: 0.9149 MB / 0.917 GB, free: 8.805 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=132): time 3.396e-06/0.5458, allocations: 0 / 0.917 GB, free: 8.805 MB / 0.6856 GB Notification: Performance of matching and sorting (n=132): time 0.003719/0.5495, allocations: 2.307 MB / 0.9193 GB, free: 6.492 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.5496, allocations: 68.72 kB / 0.9193 GB, free: 6.41 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00285/0.5524, allocations: 2.492 MB / 0.9218 GB, free: 3.898 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001109/0.5525, allocations: 57.69 kB / 0.9218 GB, free: 3.836 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009877/0.5535, allocations: 1.326 MB / 0.9231 GB, free: 2.492 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003833/0.5539, allocations: 465.5 kB / 0.9236 GB, free: 2.031 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004397/0.5544, allocations: 343.1 kB / 0.9239 GB, free: 1.688 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 7.879e-05/0.5545, allocations: 301.1 kB / 0.9242 GB, free: 1.391 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.5556, allocations: 0.7339 MB / 0.9249 GB, free: 0.6562 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.5571, allocations: 1.232 MB / 0.9261 GB, free: 15.22 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006716/0.5638, allocations: 3.726 MB / 0.9297 GB, free: 11.24 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.5639, allocations: 4 kB / 0.9297 GB, free: 11.24 MB / 0.7012 GB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003535/0.5674, allocations: 2.391 MB / 0.9321 GB, free: 8.824 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 4.572e-05/0.5675, allocations: 63.41 kB / 0.9321 GB, free: 8.75 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.5675, allocations: 19.94 kB / 0.9322 GB, free: 8.73 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.934e-05/0.5675, allocations: 24 kB / 0.9322 GB, free: 8.707 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.5692, allocations: 479.7 kB / 0.9326 GB, free: 8.238 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.203e-05/0.5693, allocations: 31.92 kB / 0.9327 GB, free: 8.207 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/0.5709, allocations: 245.6 kB / 0.9329 GB, free: 7.965 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/0.571, allocations: 83.98 kB / 0.933 GB, free: 7.883 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.001459/0.5725, allocations: 1.216 MB / 0.9342 GB, free: 6.672 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003702/0.5728, allocations: 249 kB / 0.9344 GB, free: 6.426 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00309/0.5759, allocations: 1.914 MB / 0.9363 GB, free: 4.5 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002283/0.5782, allocations: 1.533 MB / 0.9378 GB, free: 2.957 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.5782, allocations: 12 kB / 0.9378 GB, free: 2.945 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009986/0.5793, allocations: 0.564 MB / 0.9383 GB, free: 2.359 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003103/0.5796, allocations: 24 kB / 0.9384 GB, free: 2.336 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.5809, allocations: 83.89 kB / 0.9384 GB, free: 2.254 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.5811, allocations: 93.17 kB / 0.9385 GB, free: 2.164 MB / 0.7012 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003596/0.5847, allocations: 1.946 MB / 0.9404 GB, free: 216 kB / 0.7012 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004138/0.5888, allocations: 3.081 MB / 0.9434 GB, free: 13.11 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001122/0.59, allocations: 0.8357 MB / 0.9443 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002145/0.5921, allocations: 1.739 MB / 0.946 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of Backend: time 3.21e-07/0.5921, allocations: 0 / 0.946 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003278/0.5954, allocations: 1.749 MB / 0.9477 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of SimCode: time 0.01075/0.6062, allocations: 6.673 MB / 0.9542 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of Templates: time 0.3551/0.9613, allocations: 55.34 MB / 1.008 GB, free: 138.9 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)