Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 96.42 kB / 19.71 MB, free: 2.125 MB / 14.72 MB " [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.001677/0.001677, allocations: 211 kB / 23.01 MB, free: 4.938 MB / 14.72 MB " [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 1.416/1.416, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.089/3.089, allocations: 0.49 GB / 0.7958 GB, free: 35.36 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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: translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|heaLos.QLos_flow.1.|heaLos.QLos_flow.2.|heaLos.QLos_flow.3.|TEnv.y|T1.y|T2.y|T3.y",fileNamePrefix="Buildings_12_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss") translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|heaLos.QLos_flow.1.|heaLos.QLos_flow.2.|heaLos.QLos_flow.3.|TEnv.y|T1.y|T2.y|T3.y",fileNamePrefix="Buildings_12_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss") [Timeout 300] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.647e-05/1.647e-05, allocations: 2.281 kB / 1.155 GB, free: 25.22 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss): time 0.002317/0.002333, allocations: 1.864 MB / 1.157 GB, free: 23.98 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.003307/0.005641, allocations: 3.453 MB / 1.16 GB, free: 21.61 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.831e-05/0.005719, allocations: 5.781 kB / 1.16 GB, free: 21.61 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0006827/0.006402, allocations: 180.1 kB / 1.16 GB, free: 21.54 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.006569, allocations: 84.56 kB / 1.16 GB, free: 21.49 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001175/0.006687, allocations: 49.58 kB / 1.161 GB, free: 21.46 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004619/0.007149, allocations: 353.5 kB / 1.161 GB, free: 21.33 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.007254, allocations: 16.25 kB / 1.161 GB, free: 21.33 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.007385, allocations: 110.2 kB / 1.161 GB, free: 21.29 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.007502, allocations: 89.06 kB / 1.161 GB, free: 21.25 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.007525, allocations: 8.031 kB / 1.161 GB, free: 21.25 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003426/0.007868, allocations: 204.8 kB / 1.161 GB, free: 21.19 MB / 0.9044 GB Notification: Performance of combineBinaries: time 0.0002402/0.008108, allocations: 352 kB / 1.162 GB, free: 20.98 MB / 0.9044 GB Notification: Performance of replaceArrayConstructors: time 9.831e-05/0.008207, allocations: 217.3 kB / 1.162 GB, free: 20.83 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 2.657e-05/0.008233, allocations: 13.97 kB / 1.162 GB, free: 20.83 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.531e-05/0.008248, allocations: 7.344 kB / 1.162 GB, free: 20.82 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 (11) * Number of variables: 17 (9) Notification: Performance of [SIM] Bindings: time 0.0008145/0.009063, allocations: 0.9889 MB / 1.163 GB, free: 20.07 MB / 0.9044 GB Notification: Performance of [SIM] FunctionAlias: time 8.694e-05/0.00915, allocations: 91.52 kB / 1.163 GB, free: 20.01 MB / 0.9044 GB Notification: Performance of [SIM] Early Inline: time 0.0003741/0.009524, allocations: 490.2 kB / 1.163 GB, free: 19.76 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 1: time 0.0001079/0.009632, allocations: 128.2 kB / 1.163 GB, free: 19.64 MB / 0.9044 GB Notification: Performance of [SIM] Alias: time 0.000365/0.009997, allocations: 301.5 kB / 1.164 GB, free: 19.4 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 2: time 9.746e-05/0.01009, allocations: 122 kB / 1.164 GB, free: 19.29 MB / 0.9044 GB Notification: Performance of [SIM] Remove Stream: time 3.838e-05/0.01013, allocations: 60.97 kB / 1.164 GB, free: 19.22 MB / 0.9044 GB Notification: Performance of [SIM] Detect States: time 9.274e-05/0.01023, allocations: 138.8 kB / 1.164 GB, free: 19.07 MB / 0.9044 GB Notification: Performance of [SIM] Events: time 9.989e-05/0.01033, allocations: 73.95 kB / 1.164 GB, free: 19.04 MB / 0.9044 GB Notification: Performance of [SIM] Partitioning: time 0.0001744/0.0105, allocations: 164.8 kB / 1.164 GB, free: 18.97 MB / 0.9044 GB Notification: Performance of [SIM] Causalize: time 0.0004061/0.01091, allocations: 295 kB / 1.165 GB, free: 18.89 MB / 0.9044 GB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0002984/0.0112, allocations: 371 kB / 1.165 GB, free: 18.73 MB / 0.9044 GB Notification: Performance of [INI] Simplify: time 0.0003974/0.0116, allocations: 329.1 kB / 1.165 GB, free: 18.49 MB / 0.9044 GB Notification: Performance of [INI] Inline: time 0.0005866/0.01219, allocations: 0.7205 MB / 1.166 GB, free: 18.15 MB / 0.9044 GB Notification: Performance of [INI] Partitioning: time 1.935e-05/0.01221, allocations: 18.52 kB / 1.166 GB, free: 18.13 MB / 0.9044 GB Notification: Performance of [INI] Cleanup: time 7.256e-05/0.01228, allocations: 90.89 kB / 1.166 GB, free: 18.08 MB / 0.9044 GB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [FOR-] (320) ($RES_BND_24) [----] for $i1 in 1:10 loop [----] [RECD] (32) per = Buildings.Fluid.SolarCollectors.Data.GlazedFlatPlate.FP_VerificationModel(4.302, Buildings.Fluid.SolarCollectors.Types.HeatCapacity.DryMass, 0.0, 0.0044, 484.0, 0.0241, 100.0, 0.017453292519943295 * ({0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0})[$i1], {1.0, 0.9967, 0.9862, 0.9671, 0.936, 0.8868, 0.8065, 0.6686, 0.4906, 0.0}, Buildings.Fluid.SolarCollectors.Data.BaseClasses.validateAngles({0.017453292519943295 * ({0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0})[$i1] for $i0 in 1:10}, {1.0, 0.9967, 0.9862, 0.9671, 0.936, 0.8868, 0.8065, 0.6686, 0.4906, 0.0}), 0.133, 0.72, 2.8312, 0.00119) ($RES_BND_25) [----] end for; slice: {8, 9, 10, 11, 12, 13, 14, 15, 16, 19, ...}; Error: Internal error NBSorting.tarjan failed to sort system: System Variables (31/59) ************************** (1|1) [ALGB] (1) Real TEnv.y (2|2) [ALGB] (1) Real T1.y (3|3) [ALGB] (1) Real T2.y (4|4) [ALGB] (1) Real T3.y (5|5) [ALGB] (3) Real[3] heaLos.TFlu (6|8) [ALGB] (3) Real[3] heaLos.QLos_flow = {heaLos.QLos_internal[i] * smooth(1, if heaLos.TFlu[i] > heaLos.TMedMin2 then 1.0 else Buildings.Utilities.Math.Functions.smoothHeaviside(heaLos.TFlu[i] - heaLos.TMedMin, 1.0)) for i in 1:3} (7|11) [ALGB] (3) protected Real[3] heaLos.QLos_internal = heaLos.A_c / 3.0 * {heaLos.dT[i] * (heaLos.a1 - heaLos.a2 * heaLos.dT[i]) for i in 1:3} (8|14) [ALGB] (3) protected Real[3] heaLos.dT = {TEnv.y - heaLos.TFlu[i] for i in 1:3} (9|17) [DISC] (3) Boolean[3] $SEV_0 (10|20) [DISC] (1) Boolean $TEV_3 (11|21) [DISC] (1) Boolean $TEV_2 (12|22) [DISC] (1) Boolean $TEV_1 (13|23) [DISC] (1) Boolean $TEV_0 (14|24) [PRMT] (1) parameter Real heaLos.a2 = per.a2 (fixed = true, min = 0.0) (15|25) [PRMT] (1) parameter Real heaLos.a1 = per.a1 (fixed = true, min = 0.0) (16|26) [PRMT] (1) protected final parameter Real heaLos.TMedMin2 = heaLos.TMedMin + 1.0 (fixed = true, start = 288.15, min = 0.0, nominal = 300.0) (17|27) [PRMT] (1) parameter Real heaLos.A_c = per.A (fixed = true) (18|28) [PRMT] (1) parameter Real per.A = 4.302 (fixed = true) (19|29) [PRMT] (1) parameter enumeration Buildings.Fluid.SolarCollectors.Types.HeatCapacity(TotalCapacity, DryCapacity, DryMass) per.CTyp = Buildings.Fluid.SolarCollectors.Types.HeatCapacity.DryMass (fixed = true) (20|30) [PRMT] (1) parameter Real per.C = 0.0 (fixed = true) (21|31) [PRMT] (1) parameter Real per.V = 0.0044 (fixed = true) (22|32) [PRMT] (1) parameter Real per.mDry = 484.0 (fixed = true, min = 0.0) (23|33) [PRMT] (1) parameter Real per.mperA_flow_nominal = 0.0241 (fixed = true) (24|34) [PRMT] (1) parameter Real per.dp_nominal = 100.0 (fixed = true) (25|35) [PRMT] (10) parameter Real[10] per.incAngDat = {0.0, 0.17453292519943295, 0.3490658503988659, 0.5235987755982988, 0.6981317007977318, 0.8726646259971648, 1.0471975511965976, 1.2217304763960306, 1.3962634015954636, 1.5707963267948966} (fixed = {true for $i3 in 1:10}) (26|45) [PRMT] (10) parameter Real[10] per.incAngModDat = {1.0, 0.9967, 0.9862, 0.9671, 0.936, 0.8868, 0.8065, 0.6686, 0.4906, 0.0} (fixed = {true for $i2 in 1:10}, min = 0.0) (27|55) [PRMT] (1) final parameter Boolean per.validated = true (fixed = true) (28|56) [PRMT] (1) parameter Real per.IAMDiff = 0.133 (fixed = true, min = 0.0, max = 1.0) (29|57) [PRMT] (1) parameter Real per.eta0 = 0.72 (fixed = true, min = 0.0, max = 1.0) (30|58) [PRMT] (1) parameter Real per.a1 = 2.8312 (fixed = true, min = 0.0) (31|59) [PRMT] (1) parameter Real per.a2 = 0.00119 (fixed = true, min = 0.0) System Equations (19/27) ************************** (1|1) [SCAL] (1) T3.y = T3.offset + (if $TEV_3 then 0.0 else T3.amplitude * sin(T3.phase + 6.283185307179586 * (time - T3.startTime) * T3.f)) ($RES_SIM_0) (2|2) [SCAL] (1) T2.y = T2.offset + (if $TEV_2 then 0.0 else T2.amplitude * sin(T2.phase + 6.283185307179586 * (time - T2.startTime) * T2.f)) ($RES_SIM_1) (3|3) [SCAL] (1) T1.y = T1.offset + (if $TEV_1 then 0.0 else T1.amplitude * sin(T1.phase + 6.283185307179586 * (time - T1.startTime) * T1.f)) ($RES_SIM_2) (4|4) [SCAL] (1) TEnv.y = TEnv.offset + (if $TEV_0 then 0.0 else TEnv.amplitude * sin(TEnv.phase + 6.283185307179586 * (time - TEnv.startTime) * TEnv.f)) ($RES_SIM_3) (5|5) [SCAL] (1) T1.y = heaLos.TFlu[1] ($RES_SIM_4) (6|6) [SCAL] (1) T2.y = heaLos.TFlu[2] ($RES_SIM_5) (7|7) [SCAL] (1) T3.y = heaLos.TFlu[3] ($RES_SIM_6) (8|8) [FOR-] (3) ($RES_BND_12) (8|8) [----] for $i1 in 1:3 loop (8|8) [----] [SCAL] (1) heaLos.dT[$i1] = TEnv.y - heaLos.TFlu[$i1] ($RES_BND_13) (8|8) [----] end for; (9|11) [FOR-] (3) ($RES_BND_10) (9|11) [----] for $i1 in 1:3 loop (9|11) [----] [SCAL] (1) heaLos.QLos_internal[$i1] = heaLos.A_c / 3.0 * (heaLos.dT[$i1] * (heaLos.a1 - heaLos.a2 * heaLos.dT[$i1])) ($RES_BND_11) (9|11) [----] end for; (10|14) [FOR-] (3) ($RES_BND_8) (10|14) [----] for $i1 in 1:3 loop (10|14) [----] [SCAL] (1) heaLos.QLos_flow[$i1] = heaLos.QLos_internal[$i1] * smooth(1, if $SEV_0[$i1] then 1.0 else smooth(2, max(0.0, min(1.0, 0.5 + (0.5 * (heaLos.TFlu[$i1] - heaLos.TMedMin)) * (1.875 + (0.5 * (heaLos.TFlu[$i1] - heaLos.TMedMin)) * (0.5 * (heaLos.TFlu[$i1] - heaLos.TMedMin)) * ((-5.0) + 6.0 * (0.5 * (heaLos.TFlu[$i1] - heaLos.TMedMin)) * (0.5 * (heaLos.TFlu[$i1] - heaLos.TMedMin)))))))) ($RES_BND_9) (10|14) [----] end for; (11|17) [FOR-] (3) ($RES_EVT_18) (11|17) [----] for $i1 in 1:3 loop (11|17) [----] [SCAL] (1) $SEV_0[$i1] = heaLos.TFlu[$i1] > heaLos.TMedMin2 ($RES_EVT_19) (11|17) [----] end for; (12|20) [SCAL] (1) $TEV_3 = time < T3.startTime ($RES_EVT_17) (13|21) [SCAL] (1) $TEV_2 = time < T2.startTime ($RES_EVT_16) (14|22) [SCAL] (1) $TEV_1 = time < T1.startTime ($RES_EVT_15) (15|23) [SCAL] (1) $TEV_0 = time < TEnv.startTime ($RES_EVT_14) (16|24) [SCAL] (1) heaLos.a2 = per.a2 ($RES_BND_23) (17|25) [SCAL] (1) heaLos.a1 = per.a1 ($RES_BND_22) (18|26) [SCAL] (1) heaLos.TMedMin2 = heaLos.TMedMin + 1.0 ($RES_BND_21) (19|27) [SCAL] (1) heaLos.A_c = per.A ($RES_BND_20) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 4 var 2 --> eqn 3 var 3 --> eqn 2 var 4 --> eqn 1 var 5 --> eqn 5 var 6 --> eqn 6 var 7 --> eqn 7 var 8 --> eqn 14 var 9 --> eqn 15 var 10 --> eqn 16 var 11 --> eqn -1 var 12 --> eqn 12 var 13 --> eqn 13 var 14 --> eqn 8 var 15 --> eqn 9 var 16 --> eqn 10 var 17 --> eqn 17 var 18 --> eqn 18 var 19 --> eqn 19 var 20 --> eqn 20 var 21 --> eqn 21 var 22 --> eqn 22 var 23 --> eqn 23 var 24 --> eqn -1 var 25 --> eqn 11 var 26 --> eqn 26 var 27 --> eqn -1 var 28 --> eqn 27 var 29 --> eqn -1 var 30 --> eqn -1 var 31 --> eqn -1 var 32 --> eqn -1 var 33 --> eqn -1 var 34 --> eqn -1 var 35 --> eqn -1 var 36 --> eqn -1 var 37 --> eqn -1 var 38 --> eqn -1 var 39 --> eqn -1 var 40 --> eqn -1 var 41 --> eqn -1 var 42 --> eqn -1 var 43 --> eqn -1 var 44 --> eqn -1 var 45 --> eqn -1 var 46 --> eqn -1 var 47 --> eqn -1 var 48 --> eqn -1 var 49 --> eqn -1 var 50 --> eqn -1 var 51 --> eqn -1 var 52 --> eqn -1 var 53 --> eqn -1 var 54 --> eqn -1 var 55 --> eqn -1 var 56 --> eqn -1 var 57 --> eqn -1 var 58 --> eqn 25 var 59 --> eqn 24 equation to variable ********************** eqn 1 --> var 4 eqn 2 --> var 3 eqn 3 --> var 2 eqn 4 --> var 1 eqn 5 --> var 5 eqn 6 --> var 6 eqn 7 --> var 7 eqn 8 --> var 14 eqn 9 --> var 15 eqn 10 --> var 16 eqn 11 --> var 25 eqn 12 --> var 12 eqn 13 --> var 13 eqn 14 --> var 8 eqn 15 --> var 9 eqn 16 --> var 10 eqn 17 --> var 17 eqn 18 --> var 18 eqn 19 --> var 19 eqn 20 --> var 20 eqn 21 --> var 21 eqn 22 --> var 22 eqn 23 --> var 23 eqn 24 --> var 59 eqn 25 --> var 58 eqn 26 --> var 26 eqn 27 --> var 28 Error: Internal error NBInitialization.main failed to apply modules! " [Timeout remaining time 300] [Calling sys.exit(0), Time elapsed: 6.37510122731328] Failed to read output from testmodel.py, exit status != 0: 0.020592124201357365 0.031178961 0.020580843 Calling exit ...