Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build AES_AES.ProcessComponents.Thermal.DistrictHeating.TwinPipeSubstation_PriValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0003009/0.0003009, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.0006101/0.0009109, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000313/0.000313, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.001128/0.001441, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.1269/0.1269, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.05426/0.1812, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.01196/0.01196, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.00638/0.01834, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: simulate(AES.ProcessComponents.Thermal.DistrictHeating.TwinPipeSubstation_PriValve,startTime=0,stopTime=1,tolerance=1e-06,numberOfIntervals=500,outputFormat="empty",variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Thermal.DistrictHeating.TwinPipeSubstation_PriValve",simflags="-lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=240 -lv LOG_STATS") simulate(AES.ProcessComponents.Thermal.DistrictHeating.TwinPipeSubstation_PriValve,startTime=0,stopTime=1,tolerance=1e-06,numberOfIntervals=500,outputFormat="empty",variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Thermal.DistrictHeating.TwinPipeSubstation_PriValve",simflags="-lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=240 -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 4.41e-07/4.41e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.961e-05/2.005e-05, allocations: 0 / 0, free: 0 / 0 [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoTwinPorts_pwh.mo:4:3-4:45:writable] Warning: The model can't be instantiated due to top-level outer element 'system', it may only be used as part of a simulation model. [Non-standard Modelica: --allowNonStandardModelica=nonStdTopLevelOuter] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoTwinPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoTwinPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Thermal.DistrictHeating.TwinPipeSubstation_PriValve): time 0.003463/0.003483, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.000916/0.004399, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.004552, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.004705, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0003756/0.005081, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.000232/0.005313, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.000346/0.005659, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0005237/0.006182, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.0005693/0.006752, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.000276/0.007027, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 5.579e-05/0.007083, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.007236, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 8.864e-05/0.007325, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.007463, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0004127/0.007876, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 6.011e-05/0.007936, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 1.272e-06/0.007937, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 4.378e-06/0.007941, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.000819/0.00876, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 6.744e-05/0.008828, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 9.643e-05/0.008924, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.009263, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.995e-05/0.009313, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.009374, allocations: 0 / 0, free: 0 / 0 Error: An independent subset of the model has imbalanced number of equations (90) and variables (89). variables: ToutPri sTpo.oT sTpo.pwh_a.h sTpo.pwh_a.w sTpo.pwh_a.p ValveP.x ValveP.hbo ValveP.hao ValveP.hbi ValveP.hai ValveP.w ValveP.dp ValveP.pwh_b.h ValveP.pwh_b.w ValveP.pwh_b.p ValveP.pwh_a.h ValveP.pwh_a.w ValveP.pwh_a.p Pc Ph dplC.hbo dplC.hao dplC.hbi dplC.hai dplC.w dplC.dp dplC.pwh_b.h dplC.pwh_b.w dplC.pwh_b.p dplC.pwh_a.h dplC.pwh_a.w dplC.pwh_a.p HE.Ploss HE.Pc HE.Ph HE.Tco HE.Tho HE.Tci HE.Thi HE.coldOut.h HE.coldOut.w HE.hotIn.h HE.hotIn.w HE.hotIn.p HE.coldIn.h HE.coldIn.w HE.hotOut.h HE.hotOut.w HE.hotOut.p split_b.pwh_C.h split_b.pwh_C.w split_b.pwh_C.p split_b.pwh_H.h split_b.pwh_H.w split_b.pwh_H.p split_b.pwhTwin_HC.C.h split_b.pwhTwin_HC.C.w split_b.pwhTwin_HC.C.p split_b.pwhTwin_HC.H.h split_b.pwhTwin_HC.H.w split_b.pwhTwin_HC.H.p splt_a.pwh_C.h splt_a.pwh_C.w splt_a.pwh_C.p splt_a.pwh_H.h splt_a.pwh_H.w splt_a.pwh_H.p splt_a.pwhTwin_HC.C.h splt_a.pwhTwin_HC.C.w splt_a.pwhTwin_HC.C.p splt_a.pwhTwin_HC.H.h splt_a.pwhTwin_HC.H.w splt_a.pwhTwin_HC.H.p pwh_C.h pwh_C.w pwh_H.h pwh_H.w tpwh_b.C.h tpwh_b.C.w tpwh_b.C.p tpwh_b.H.h tpwh_b.H.w tpwh_b.H.p tpwh_a.C.h tpwh_a.C.w tpwh_a.C.p tpwh_a.H.h tpwh_a.H.w tpwh_a.H.p equations: 1 : splt_a.pwh_H.p = splt_a.pwhTwin_HC.H.p 2 : (-splt_a.pwh_H.w) - splt_a.pwhTwin_HC.H.w = 0.0 3 : splt_a.pwh_H.h = tpwh_a.H.h 4 : splt_a.pwhTwin_HC.H.h = $OMC$inStreamDiv(($OMC$PositiveMax(-split_b.pwh_H.w, 1e-7) * split_b.pwh_H.h + $OMC$PositiveMax(-ValveP.pwh_a.w, 1e-7) * ValveP.pwh_a.h) / ($OMC$PositiveMax(-split_b.pwh_H.w, 1e-7) + $OMC$PositiveMax(-ValveP.pwh_a.w, 1e-7)), splt_a.pwh_H.h) 5 : splt_a.pwhTwin_HC.C.p = splt_a.pwh_C.p 6 : (-splt_a.pwhTwin_HC.C.w) - splt_a.pwh_C.w = 0.0 7 : splt_a.pwhTwin_HC.C.h = $OMC$inStreamDiv(($OMC$PositiveMax(-dplC.pwh_b.w, 1e-7) * dplC.pwh_b.h + $OMC$PositiveMax(-split_b.pwh_C.w, 1e-7) * split_b.pwh_C.h) / ($OMC$PositiveMax(-dplC.pwh_b.w, 1e-7) + $OMC$PositiveMax(-split_b.pwh_C.w, 1e-7)), splt_a.pwh_C.h) 8 : splt_a.pwh_C.h = tpwh_a.C.h 9 : split_b.pwh_H.p = split_b.pwhTwin_HC.H.p 10 : (-split_b.pwh_H.w) - split_b.pwhTwin_HC.H.w = 0.0 11 : split_b.pwh_H.h = tpwh_b.H.h 12 : split_b.pwhTwin_HC.H.h = $OMC$inStreamDiv(($OMC$PositiveMax(-splt_a.pwh_H.w, 1e-7) * splt_a.pwh_H.h + $OMC$PositiveMax(-ValveP.pwh_a.w, 1e-7) * ValveP.pwh_a.h) / ($OMC$PositiveMax(-splt_a.pwh_H.w, 1e-7) + $OMC$PositiveMax(-ValveP.pwh_a.w, 1e-7)), split_b.pwh_H.h) 13 : split_b.pwhTwin_HC.C.p = split_b.pwh_C.p 14 : (-split_b.pwhTwin_HC.C.w) - split_b.pwh_C.w = 0.0 15 : split_b.pwhTwin_HC.C.h = $OMC$inStreamDiv(($OMC$PositiveMax(-splt_a.pwh_C.w, 1e-7) * splt_a.pwh_C.h + $OMC$PositiveMax(-dplC.pwh_b.w, 1e-7) * dplC.pwh_b.h) / ($OMC$PositiveMax(-splt_a.pwh_C.w, 1e-7) + $OMC$PositiveMax(-dplC.pwh_b.w, 1e-7)), split_b.pwh_C.h) 16 : split_b.pwh_C.h = tpwh_b.C.h 17 : HE.coldOut.w - pwh_H.w = 0.0 18 : HE.coldOut.h = pwh_H.h 19 : HE.coldIn.h = pwh_C.h 20 : tpwh_a.C.p = splt_a.pwhTwin_HC.C.p 21 : splt_a.pwhTwin_HC.C.w - tpwh_a.C.w = 0.0 22 : splt_a.pwhTwin_HC.C.h = tpwh_a.C.h 23 : tpwh_a.H.p = splt_a.pwhTwin_HC.H.p 24 : splt_a.pwhTwin_HC.H.w - tpwh_a.H.w = 0.0 25 : splt_a.pwhTwin_HC.H.h = tpwh_a.H.h 26 : ValveP.pwh_a.p = splt_a.pwh_H.p 27 : ValveP.pwh_a.p = split_b.pwh_H.p 28 : HE.hotOut.p = sTpo.pwh_a.p 29 : HE.hotOut.p = dplC.pwh_a.p 30 : split_b.pwh_C.p = dplC.pwh_b.p 31 : split_b.pwh_C.p = splt_a.pwh_C.p 32 : split_b.pwhTwin_HC.C.p = tpwh_b.C.p 33 : split_b.pwhTwin_HC.C.h = tpwh_b.C.h 34 : split_b.pwhTwin_HC.H.p = tpwh_b.H.p 35 : split_b.pwhTwin_HC.H.h = tpwh_b.H.h 36 : ValveP.pwh_b.p = HE.hotIn.p 37 : cmdVpri = ValveP.x 38 : sTpo.oT = ToutPri 39 : tpwh_a.H.w = 0.0 40 : tpwh_a.C.w = 0.0 41 : tpwh_b.H.w = 0.0 42 : tpwh_b.C.w = 0.0 43 : pwh_H.w = 0.0 44 : pwh_C.w = 0.0 45 : dplC.pwh_b.w + split_b.pwh_C.w + splt_a.pwh_C.w = 0.0 46 : split_b.pwhTwin_HC.H.w - tpwh_b.H.w = 0.0 47 : split_b.pwhTwin_HC.C.w - tpwh_b.C.w = 0.0 48 : ValveP.pwh_a.w + split_b.pwh_H.w + splt_a.pwh_H.w = 0.0 49 : HE.coldIn.w - pwh_C.w = 0.0 50 : sTpo.pwh_a.w + dplC.pwh_a.w + HE.hotOut.w = 0.0 51 : ValveP.pwh_b.w + HE.hotIn.w = 0.0 52 : 41860.0 * der(HE.Tho) = 4186.0 * HE.hotIn.w * (HE.Thi - HE.Tho) - HE.Ph 53 : 41860.0 * der(HE.Tco) = 4186.0 * HE.coldIn.w * (HE.Tci - HE.Tco) + HE.Pc 54 : HE.Ph = 18.983136646945294 * (HE.Thi + HE.Tho + (-HE.Tci) - HE.Tco) 55 : HE.Pc = 0.85 * HE.Ph 56 : HE.Ploss = HE.Ph - HE.Pc 57 : HE.Thi = (if HE.hotIn.w > 0.0 then ValveP.pwh_b.h else HE.hotIn.h) / 4186.0 58 : HE.Tci = (if HE.coldIn.w > 0.0 then pwh_C.h else HE.coldIn.h) / 4186.0 59 : HE.hotIn.p = HE.hotOut.p 60 : HE.hotIn.w + HE.hotOut.w = 0.0 61 : HE.hotIn.h = 4186.0 * HE.Tho 62 : HE.hotOut.h = 4186.0 * HE.Tho 63 : HE.coldIn.w + HE.coldOut.w = 0.0 64 : HE.coldIn.h = 4186.0 * HE.Tho 65 : HE.coldOut.h = 4186.0 * HE.Tho 66 : dplC.w = dplC.kv * dplC.dp 67 : dplC.hao = dplC.hbi 68 : dplC.hbo = dplC.hai 69 : dplC.dp = if dplC.pbhi then dplC.pwh_b.p - dplC.pwh_a.p else dplC.pwh_a.p - dplC.pwh_b.p 70 : 0.0 = dplC.pwh_a.w + dplC.pwh_b.w 71 : dplC.w = dplC.pwh_a.w 72 : dplC.hai = $OMC$inStreamDiv(($OMC$PositiveMax(-sTpo.pwh_a.w, 1e-7) * sTpo.pwh_a.h + $OMC$PositiveMax(-HE.hotOut.w, 1e-7) * HE.hotOut.h) / ($OMC$PositiveMax(-sTpo.pwh_a.w, 1e-7) + $OMC$PositiveMax(-HE.hotOut.w, 1e-7)), dplC.pwh_a.h) 73 : dplC.hao = dplC.pwh_a.h 74 : dplC.hbi = $OMC$inStreamDiv(($OMC$PositiveMax(-splt_a.pwh_C.w, 1e-7) * splt_a.pwh_C.h + $OMC$PositiveMax(-split_b.pwh_C.w, 1e-7) * split_b.pwh_C.h) / ($OMC$PositiveMax(-splt_a.pwh_C.w, 1e-7) + $OMC$PositiveMax(-split_b.pwh_C.w, 1e-7)), dplC.pwh_b.h) 75 : dplC.hbo = dplC.pwh_b.h 76 : ValveP.w = max(1e-12, min(ValveP.x, 1.0)) * ValveP.kv * AES.Functions.sqrtReg(ValveP.dp, 0.01) 77 : ValveP.hao = ValveP.hbi 78 : ValveP.hbo = ValveP.hai 79 : ValveP.dp = if ValveP.pbhi then ValveP.pwh_b.p - ValveP.pwh_a.p else ValveP.pwh_a.p - ValveP.pwh_b.p 80 : 0.0 = ValveP.pwh_a.w + ValveP.pwh_b.w 81 : ValveP.w = ValveP.pwh_a.w 82 : ValveP.hai = $OMC$inStreamDiv(($OMC$PositiveMax(-split_b.pwh_H.w, 1e-7) * split_b.pwh_H.h + $OMC$PositiveMax(-splt_a.pwh_H.w, 1e-7) * splt_a.pwh_H.h) / ($OMC$PositiveMax(-split_b.pwh_H.w, 1e-7) + $OMC$PositiveMax(-splt_a.pwh_H.w, 1e-7)), ValveP.pwh_a.h) 83 : ValveP.hao = ValveP.pwh_a.h 84 : ValveP.hbi = HE.hotIn.h 85 : ValveP.hbo = ValveP.pwh_b.h 86 : sTpo.pwh_a.w = 0.0 87 : sTpo.pwh_a.h = -1.0 88 : sTpo.oT = $OMC$inStreamDiv(($OMC$PositiveMax(-dplC.pwh_a.w, 1e-7) * dplC.pwh_a.h + $OMC$PositiveMax(-HE.hotOut.w, 1e-7) * HE.hotOut.h) / ($OMC$PositiveMax(-dplC.pwh_a.w, 1e-7) + $OMC$PositiveMax(-HE.hotOut.w, 1e-7)), sTpo.pwh_a.h) / 4186.0 + sTpo.pwh_a.p / 4.186e6 89 : Ph = 4186.0 * HE.hotIn.w * (HE.Thi - HE.Tho) 90 : Pc = 4186.0 * HE.coldIn.w * (HE.Tco - HE.Tci) Notification: Performance of preOpt clockPartitioning (simulation) : time 0.0005258/0.0099, allocations: 0 / 0, free: 0 / 0 Error: pre-optimization module clockPartitioning (simulation) failed. " [Timeout remaining time 900] [Calling sys.exit(0), Time elapsed: 0.5876246141269803]