Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss.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.001708/0.001708, allocations: 104.3 kB / 19.72 MB, free: 2.145 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.001694/0.001694, allocations: 211.4 kB / 23 MB, free: 4.965 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.358/1.358, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.053/3.053, 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.ASHRAEHeatLoss,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.ASHRAEHeatLoss") translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss,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.ASHRAEHeatLoss") [Timeout 300] "Notification: Performance of FrontEnd - Absyn->SCode: time 3.126e-05/3.126e-05, allocations: 4.391 kB / 1.155 GB, free: 25.27 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAEHeatLoss): time 0.003267/0.003298, allocations: 1.836 MB / 1.157 GB, free: 24.04 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.004648/0.007946, allocations: 3.406 MB / 1.16 GB, free: 21.71 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.008096, allocations: 2.094 kB / 1.16 GB, free: 21.71 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0008685/0.008965, allocations: 172.2 kB / 1.16 GB, free: 21.64 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0002184/0.009183, allocations: 72.31 kB / 1.16 GB, free: 21.6 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001563/0.009339, allocations: 49.09 kB / 1.16 GB, free: 21.57 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005555/0.009895, allocations: 348.5 kB / 1.161 GB, free: 21.44 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.01002, allocations: 24.83 kB / 1.161 GB, free: 21.43 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.01017, allocations: 107 kB / 1.161 GB, free: 21.38 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.0103, allocations: 81.91 kB / 1.161 GB, free: 21.35 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.745e-05/0.01033, allocations: 8.344 kB / 1.161 GB, free: 21.35 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003865/0.01072, allocations: 202.4 kB / 1.161 GB, free: 21.29 MB / 0.9044 GB Notification: Performance of combineBinaries: time 0.0002791/0.011, allocations: 323.5 kB / 1.161 GB, free: 21.09 MB / 0.9044 GB Notification: Performance of replaceArrayConstructors: time 0.0001199/0.01112, allocations: 207.3 kB / 1.162 GB, free: 20.95 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 2.836e-05/0.01114, allocations: 10.31 kB / 1.162 GB, free: 20.95 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.131e-05/0.01117, allocations: 7.953 kB / 1.162 GB, free: 20.95 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.0009329/0.0121, allocations: 0.9306 MB / 1.163 GB, free: 20.23 MB / 0.9044 GB Notification: Performance of [SIM] FunctionAlias: time 0.0001037/0.0122, allocations: 92.59 kB / 1.163 GB, free: 20.17 MB / 0.9044 GB Notification: Performance of [SIM] Early Inline: time 0.0004528/0.01266, allocations: 474.5 kB / 1.163 GB, free: 19.93 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 1: time 0.0001266/0.01278, allocations: 120.3 kB / 1.163 GB, free: 19.82 MB / 0.9044 GB Notification: Performance of [SIM] Alias: time 0.0004589/0.01324, allocations: 291.7 kB / 1.164 GB, free: 19.59 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 2: time 0.0001169/0.01336, allocations: 128 kB / 1.164 GB, free: 19.46 MB / 0.9044 GB Notification: Performance of [SIM] Remove Stream: time 4.743e-05/0.01341, allocations: 60.16 kB / 1.164 GB, free: 19.4 MB / 0.9044 GB Notification: Performance of [SIM] Detect States: time 0.0001174/0.01352, allocations: 141.2 kB / 1.164 GB, free: 19.25 MB / 0.9044 GB Notification: Performance of [SIM] Events: time 0.0001119/0.01363, allocations: 72.33 kB / 1.164 GB, free: 19.21 MB / 0.9044 GB Notification: Performance of [SIM] Partitioning: time 0.0002179/0.01385, allocations: 167.7 kB / 1.164 GB, free: 19.14 MB / 0.9044 GB Notification: Performance of [SIM] Causalize: time 0.0005033/0.01436, allocations: 297.6 kB / 1.164 GB, free: 19.07 MB / 0.9044 GB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0003605/0.01472, allocations: 361 kB / 1.165 GB, free: 18.91 MB / 0.9044 GB Notification: Performance of [INI] Simplify: time 0.0004717/0.01519, allocations: 317.8 kB / 1.165 GB, free: 18.67 MB / 0.9044 GB Notification: Performance of [INI] Inline: time 0.0007629/0.01595, allocations: 0.6872 MB / 1.166 GB, free: 18.34 MB / 0.9044 GB Notification: Performance of [INI] Partitioning: time 2.259e-05/0.01597, allocations: 17.77 kB / 1.166 GB, free: 18.32 MB / 0.9044 GB Notification: Performance of [INI] Cleanup: time 8.997e-05/0.01606, allocations: 78.97 kB / 1.166 GB, free: 18.29 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-] (300) ($RES_BND_23) [----] for $i1 in 1:10 loop [----] [RECD] (30) per = Buildings.Fluid.SolarCollectors.Data.GlazedFlatPlate.FP_SolahartKf(2.003, Buildings.Fluid.SolarCollectors.Types.HeatCapacity.DryMass, 0.0, 0.0038, 42.0, 0.0194, 93.89, 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.9979, 0.9913, 0.9792, 0.9597, 0.929, 0.8796, 0.7979, 0.724, 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.9979, 0.9913, 0.9792, 0.9597, 0.929, 0.8796, 0.7979, 0.724, 0.0}), 0.775, -5.103) ($RES_BND_24) [----] end for; slice: {8, 9, 10, 11, 12, 13, 14, 15, 16, 19, ...}; Error: Internal error NBSorting.tarjan failed to sort system: System Variables (28/56) ************************** (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.dT[i] for i in 1:3} * (heaLos.A_c * heaLos.slope) / 3.0 (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.slope = per.slope (fixed = true, max = 0.0) (15|25) [PRMT] (1) protected final parameter Real heaLos.TMedMin2 = heaLos.TMedMin + 1.0 (fixed = true, start = 288.15, min = 0.0, nominal = 300.0) (16|26) [PRMT] (1) parameter Real heaLos.A_c = per.A (fixed = true) (17|27) [PRMT] (1) parameter Real per.A = 2.003 (fixed = true) (18|28) [PRMT] (1) parameter enumeration Buildings.Fluid.SolarCollectors.Types.HeatCapacity(TotalCapacity, DryCapacity, DryMass) per.CTyp = Buildings.Fluid.SolarCollectors.Types.HeatCapacity.DryMass (fixed = true) (19|29) [PRMT] (1) parameter Real per.C = 0.0 (fixed = true) (20|30) [PRMT] (1) parameter Real per.V = 0.0038 (fixed = true) (21|31) [PRMT] (1) parameter Real per.mDry = 42.0 (fixed = true, min = 0.0) (22|32) [PRMT] (1) parameter Real per.mperA_flow_nominal = 0.0194 (fixed = true) (23|33) [PRMT] (1) parameter Real per.dp_nominal = 93.89 (fixed = true) (24|34) [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}) (25|44) [PRMT] (10) parameter Real[10] per.incAngModDat = {1.0, 0.9979, 0.9913, 0.9792, 0.9597, 0.929, 0.8796, 0.7979, 0.724, 0.0} (fixed = {true for $i2 in 1:10}, min = 0.0) (26|54) [PRMT] (1) final parameter Boolean per.validated = true (fixed = true) (27|55) [PRMT] (1) parameter Real per.y_intercept = 0.775 (fixed = true, min = 0.0, max = 1.0) (28|56) [PRMT] (1) parameter Real per.slope = -5.103 (fixed = true, max = 0.0) System Equations (18/26) ************************** (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.dT[$i1] * (heaLos.A_c * heaLos.slope / 3.0) ($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.slope = per.slope ($RES_BND_22) (17|25) [SCAL] (1) heaLos.TMedMin2 = heaLos.TMedMin + 1.0 ($RES_BND_21) (18|26) [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 11 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 25 var 26 --> eqn -1 var 27 --> eqn 26 var 28 --> eqn -1 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 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 11 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 56 eqn 25 --> var 25 eqn 26 --> var 27 Error: Internal error NBInitialization.main failed to apply modules! " [Timeout remaining time 300] [Calling sys.exit(0), Time elapsed: 6.376790209207684] Failed to read output from testmodel.py, exit status != 0: 0.026513630989938974 0.038844619000000004 0.024912367 Calling exit ...