Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.HeatTransfer.Conduction.BaseClasses.Examples.Temperature_u.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.HeatTransfer.Conduction.BaseClasses.Examples.Temperature_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Conduction.BaseClasses.Examples.Temperature_u") translateModel(Buildings.HeatTransfer.Conduction.BaseClasses.Examples.Temperature_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.HeatTransfer.Conduction.BaseClasses.Examples.Temperature_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001298, allocations: 106.7 kB / 16.38 MB, free: 5.984 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.001261/0.001262, allocations: 191.2 kB / 17.32 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 205.1 MB / 223.2 MB, free: 4.27 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.637/1.637, allocations: 292.3 MB / 0.5496 GB, free: 12.77 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.402e-05/2.405e-05, allocations: 2.281 kB / 0.6729 GB, free: 25.8 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Conduction.BaseClasses.Examples.Temperature_u): time 0.00246/0.002498, allocations: 1.662 MB / 0.6745 GB, free: 24.65 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001767/0.004278, allocations: 1.408 MB / 0.6759 GB, free: 23.68 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.203e-05/0.004381, allocations: 6.594 kB / 0.6759 GB, free: 23.68 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003255/0.004713, allocations: 82.84 kB / 0.6759 GB, free: 23.64 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.004832, allocations: 78.83 kB / 0.676 GB, free: 23.59 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005592/0.005404, allocations: 280.6 kB / 0.6763 GB, free: 23.49 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.00019/0.005603, allocations: 203.5 kB / 0.6765 GB, free: 23.4 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.677e-05/0.005646, allocations: 6.891 kB / 0.6765 GB, free: 23.4 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 9.426e-05/0.005746, allocations: 90.45 kB / 0.6766 GB, free: 23.36 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.987e-05/0.005841, allocations: 69.8 kB / 0.6766 GB, free: 23.34 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.00586, allocations: 4.625 kB / 0.6766 GB, free: 23.34 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004703/0.006335, allocations: 431 kB / 0.6771 GB, free: 23.2 MB / 0.5294 GB Notification: Performance of combineBinaries: time 0.0001659/0.00651, allocations: 254.1 kB / 0.6773 GB, free: 23.05 MB / 0.5294 GB Notification: Performance of replaceArrayConstructors: time 7.516e-05/0.006591, allocations: 172 kB / 0.6775 GB, free: 22.93 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.006623, allocations: 9.688 kB / 0.6775 GB, free: 22.93 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.051e-05/0.006638, allocations: 2.906 kB / 0.6775 GB, free: 22.93 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 (6) * Number of variables: 6 (6) Notification: Performance of Bindings: time 0.0006327/0.007275, allocations: 0.8885 MB / 0.6783 GB, free: 22.22 MB / 0.5294 GB Notification: Performance of FunctionAlias: time 9.88e-05/0.00738, allocations: 74.2 kB / 0.6784 GB, free: 22.18 MB / 0.5294 GB Notification: Performance of Early Inline: time 0.0002104/0.007598, allocations: 265 kB / 0.6787 GB, free: 22.02 MB / 0.5294 GB Notification: Performance of simplify1: time 1.453e-05/0.00762, allocations: 11.95 kB / 0.6787 GB, free: 22.01 MB / 0.5294 GB Notification: Performance of Alias: time 0.0002548/0.007879, allocations: 207.6 kB / 0.6789 GB, free: 21.83 MB / 0.5294 GB Notification: Performance of simplify2: time 1.094e-05/0.007899, allocations: 11.67 kB / 0.6789 GB, free: 21.83 MB / 0.5294 GB Notification: Performance of Events: time 7.6e-05/0.00798, allocations: 45.53 kB / 0.6789 GB, free: 21.81 MB / 0.5294 GB Notification: Performance of Detect States: time 7.464e-05/0.008061, allocations: 80.75 kB / 0.679 GB, free: 21.74 MB / 0.5294 GB Notification: Performance of Partitioning: time 6.355e-05/0.00813, allocations: 52.86 kB / 0.6791 GB, free: 21.71 MB / 0.5294 GB Notification: Performance of Causalize: time 0.0002728/0.008408, allocations: 278.3 kB / 0.6793 GB, free: 21.59 MB / 0.5294 GB Notification: Performance of After Index Reduction Inline: time 0.0001364/0.008553, allocations: 221.4 kB / 0.6795 GB, free: 21.45 MB / 0.5294 GB Notification: Performance of Inline: time 0.0003661/0.008925, allocations: 495.5 kB / 0.68 GB, free: 21.16 MB / 0.5294 GB Notification: Performance of Partitioning: time 2.598e-05/0.00896, allocations: 32.27 kB / 0.68 GB, free: 21.13 MB / 0.5294 GB Notification: Performance of Cleanup: time 1.29e-05/0.008977, allocations: 13.34 kB / 0.68 GB, free: 21.12 MB / 0.5294 GB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (30/90) ******************************* (1) [PRMT] (1) parameter Real dTCha = materialMonotone.TSol + materialMonotone.TLiq (fixed = true) (2) [PRMT] (1) final parameter Real materialNonMonotone.R = materialNonMonotone.x / materialNonMonotone.k (fixed = true, start = materialNonMonotone.x / materialNonMonotone.k) (3) [PRMT] (1) parameter Integer materialNonMonotone.nSta = max(1, integer(ceil(materialNonMonotone.nStaReal))) (fixed = true, start = max(1, integer(ceil(materialNonMonotone.nStaReal))), min = 1) (4) [PRMT] (1) parameter Real materialNonMonotone.piMat = materialNonMonotone.x * sqrt(9.2e5 / materialNonMonotone.k) (fixed = true, start = materialNonMonotone.x * sqrt(9.2e5 / materialNonMonotone.k)) (5) [PRMT] (1) parameter Real materialNonMonotone.nStaReal = (materialNonMonotone.piMat * materialNonMonotone.nStaRef) / materialNonMonotone.piRef (fixed = true, start = (materialNonMonotone.piMat * materialNonMonotone.nStaRef) / materialNonMonotone.piRef, min = 0.0) (6) [PRMT] (1) final parameter Real materialMonotone.R = materialMonotone.x / materialMonotone.k (fixed = true, start = materialMonotone.x / materialMonotone.k) (7) [PRMT] (1) parameter Integer materialMonotone.nSta = max(1, integer(ceil(materialMonotone.nStaReal))) (fixed = true, start = max(1, integer(ceil(materialMonotone.nStaReal))), min = 1) (8) [PRMT] (1) parameter Real materialMonotone.piMat = materialMonotone.x * sqrt(9.2e5 / materialMonotone.k) (fixed = true, start = materialMonotone.x * sqrt(9.2e5 / materialMonotone.k)) (9) [PRMT] (1) parameter Real materialMonotone.nStaReal = (materialMonotone.piMat * materialMonotone.nStaRef) / materialMonotone.piRef (fixed = true, start = (materialMonotone.piMat * materialMonotone.nStaRef) / materialMonotone.piRef, min = 0.0) (10) [ALGB] (1) Real u (11) [ALGB] (1) Real T (start = 288.15, min = 0.0, nominal = 300.0) (12) [ALGB] (1) Real TMonotone (start = 288.15, min = 0.0, nominal = 300.0) (13) [ALGB] (1) Real TExa (start = 288.15, min = 0.0, nominal = 300.0) (14) [ALGB] (1) Real errMonotone (15) [ALGB] (1) Real errNonMonotone (16) [DISC] (1) Boolean $SEV_1 (17) [DISC] (1) Boolean $SEV_0 (18) [DISC] (1) Boolean $TEV_0 (19) [PRMT] (6) Real[6] $FUN_6 (fixed = {false for $i1 in 1:6}) (20) [PRMT] (6) Real[6] $FUN_7 (fixed = {false for $i1 in 1:6}) (21) [PRMT] (6) Real[6] $FUN_8 (fixed = {false for $i1 in 1:6}) (22) [PRMT] (6) Real[6] $FUN_3 (fixed = {false for $i1 in 1:6}) (23) [PRMT] (6) Real[6] $FUN_4 (fixed = {false for $i1 in 1:6}) (24) [PRMT] (6) Real[6] $FUN_5 (fixed = {false for $i1 in 1:6}) (25) [PRMT] (6) parameter Real[6] dT_duMonotone (fixed = {false for $i1 in 1:6}) (26) [PRMT] (6) parameter Real[6] dT_du (fixed = {false for $i1 in 1:6}) (27) [PRMT] (6) parameter Real[6] TdMonotone (fixed = {false for $i1 in 1:6}, start = {288.15 for $i1 in 1:6}, min = {0.0 for $i1 in 1:6}, nominal = {300.0 for $i1 in 1:6}) (28) [PRMT] (6) parameter Real[6] Td (fixed = {false for $i1 in 1:6}, start = {288.15 for $i1 in 1:6}, min = {0.0 for $i1 in 1:6}, nominal = {300.0 for $i1 in 1:6}) (29) [PRMT] (6) parameter Real[6] udMonotone (fixed = {false for $i1 in 1:6}) (30) [PRMT] (6) parameter Real[6] ud (fixed = {false for $i1 in 1:6}) system eqns Equations (26/90) ******************************* (1) [ARRY] (6) dT_duMonotone = $FUN_8 ($RES_$AUX_22) (2) [ARRY] (6) TdMonotone = $FUN_7 ($RES_$AUX_21) (3) [ARRY] (6) udMonotone = $FUN_6 ($RES_$AUX_20) (4) [ARRY] (6) dT_du = $FUN_5 ($RES_$AUX_19) (5) [ARRY] (6) Td = $FUN_4 ($RES_$AUX_18) (6) [ARRY] (6) ud = $FUN_3 ($RES_$AUX_17) (7) [SCAL] (1) dTCha = materialMonotone.TSol + materialMonotone.TLiq ($RES_BND_34) (8) [SCAL] (1) materialNonMonotone.R = materialNonMonotone.x / materialNonMonotone.k ($RES_BND_33) (9) [SCAL] (1) materialNonMonotone.nSta = max(1, integer(ceil(materialNonMonotone.nStaReal))) ($RES_BND_32) (10) [SCAL] (1) materialNonMonotone.piMat = materialNonMonotone.x * sqrt(9.2e5 / materialNonMonotone.k) ($RES_BND_31) (11) [SCAL] (1) materialNonMonotone.nStaReal = (materialNonMonotone.piMat * materialNonMonotone.nStaRef) / materialNonMonotone.piRef ($RES_BND_30) (12) [SCAL] (1) materialMonotone.R = materialMonotone.x / materialMonotone.k ($RES_BND_29) (13) [SCAL] (1) materialMonotone.nSta = max(1, integer(ceil(materialMonotone.nStaReal))) ($RES_BND_28) (14) [SCAL] (1) materialMonotone.piMat = materialMonotone.x * sqrt(9.2e5 / materialMonotone.k) ($RES_BND_27) (15) [SCAL] (1) materialMonotone.nStaReal = (materialMonotone.piMat * materialMonotone.nStaRef) / materialMonotone.piRef ($RES_BND_26) (16) [SCAL] (1) errMonotone = (TMonotone - TExa) / dTCha ($RES_SIM_2) (17) [SCAL] (1) errNonMonotone = (T - TExa) / dTCha ($RES_SIM_3) (18) [-IF-] (1)if $TEV_0 then (18) [----] [-IF-] (1)if $SEV_0 then (18) [----] [----] [SCAL] (1) TExa = u / 920.0 ($RES_SIM_6) (18) [----] [----] elseif $SEV_1 then (18) [----] [----] [SCAL] (1) TExa = (u - materialMonotone.LHea) / 920.0 ($RES_SIM_7) (18) [----] [----] else (18) [----] [----] [SCAL] (1) TExa = (u + (materialMonotone.TSol * materialMonotone.LHea) / (materialMonotone.TLiq - materialMonotone.TSol)) / (920.0 + materialMonotone.LHea / (materialMonotone.TLiq - materialMonotone.TSol)) ($RES_SIM_8) (18) [----] [----] end if; (18) [----] else (18) [----] [SCAL] (1) TExa = T ($RES_SIM_9) (18) [----] end if; (19) [SCAL] (1) u = 2.5e5 + time * (1380.0 * ((-273.15) + materialMonotone.TLiq) + materialMonotone.LHea) ($RES_SIM_12) (20) [SCAL] (1) T = Buildings.HeatTransfer.Conduction.BaseClasses.temperature_u(ud, Td, dT_du, u) ($RES_$AUX_14) (21) [SCAL] (1) TMonotone = Buildings.HeatTransfer.Conduction.BaseClasses.temperature_u(udMonotone, TdMonotone, dT_duMonotone, u) ($RES_$AUX_13) (22) [TUPL] (18) ($FUN_3, $FUN_4, $FUN_5) = Buildings.HeatTransfer.Conduction.BaseClasses.der_temperature_u(920.0, materialNonMonotone.TSol, materialNonMonotone.TLiq, materialNonMonotone.LHea, false) ($RES_$AUX_16) (23) [TUPL] (18) ($FUN_6, $FUN_7, $FUN_8) = Buildings.HeatTransfer.Conduction.BaseClasses.der_temperature_u(920.0, materialMonotone.TSol, materialMonotone.TLiq, materialMonotone.LHea, true) ($RES_$AUX_15) (24) [SCAL] (1) $SEV_1 = u >= (920.0 * materialMonotone.TLiq + materialMonotone.LHea) ($RES_EVT_25) (25) [SCAL] (1) $SEV_0 = u <= 920.0 * materialMonotone.TSol ($RES_EVT_24) (26) [SCAL] (1) $TEV_0 = time >= 1e-5 ($RES_EVT_23) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 37 var 2 --> eqn 38 var 3 --> eqn 39 var 4 --> eqn 40 var 5 --> eqn 41 var 6 --> eqn 42 var 7 --> eqn 43 var 8 --> eqn 44 var 9 --> eqn 45 var 10 --> eqn 49 var 11 --> eqn 50 var 12 --> eqn 51 var 13 --> eqn 48 var 14 --> eqn 46 var 15 --> eqn 47 var 16 --> eqn 88 var 17 --> eqn 89 var 18 --> eqn 90 var 19 --> eqn 87 var 20 --> eqn 86 var 21 --> eqn 85 var 22 --> eqn 84 var 23 --> eqn 83 var 24 --> eqn 82 var 25 --> eqn 81 var 26 --> eqn 80 var 27 --> eqn 79 var 28 --> eqn 78 var 29 --> eqn 77 var 30 --> eqn 76 var 31 --> eqn 75 var 32 --> eqn 74 var 33 --> eqn 73 var 34 --> eqn 72 var 35 --> eqn 71 var 36 --> eqn 70 var 37 --> eqn 69 var 38 --> eqn 68 var 39 --> eqn 67 var 40 --> eqn 66 var 41 --> eqn 65 var 42 --> eqn 64 var 43 --> eqn 63 var 44 --> eqn 62 var 45 --> eqn 61 var 46 --> eqn 60 var 47 --> eqn 59 var 48 --> eqn 58 var 49 --> eqn 57 var 50 --> eqn 56 var 51 --> eqn 55 var 52 --> eqn 54 var 53 --> eqn 53 var 54 --> eqn 52 var 55 --> eqn 1 var 56 --> eqn 2 var 57 --> eqn 3 var 58 --> eqn 4 var 59 --> eqn 5 var 60 --> eqn 6 var 61 --> eqn 19 var 62 --> eqn 20 var 63 --> eqn 21 var 64 --> eqn 22 var 65 --> eqn 23 var 66 --> eqn 24 var 67 --> eqn 7 var 68 --> eqn 8 var 69 --> eqn 9 var 70 --> eqn 10 var 71 --> eqn 11 var 72 --> eqn 12 var 73 --> eqn 25 var 74 --> eqn 26 var 75 --> eqn 27 var 76 --> eqn 28 var 77 --> eqn 29 var 78 --> eqn 30 var 79 --> eqn 13 var 80 --> eqn 14 var 81 --> eqn 15 var 82 --> eqn 16 var 83 --> eqn 17 var 84 --> eqn 18 var 85 --> eqn 31 var 86 --> eqn 32 var 87 --> eqn 33 var 88 --> eqn 34 var 89 --> eqn 35 var 90 --> eqn 36 equation to variable ********************** eqn 1 --> var 55 eqn 2 --> var 56 eqn 3 --> var 57 eqn 4 --> var 58 eqn 5 --> var 59 eqn 6 --> var 60 eqn 7 --> var 67 eqn 8 --> var 68 eqn 9 --> var 69 eqn 10 --> var 70 eqn 11 --> var 71 eqn 12 --> var 72 eqn 13 --> var 79 eqn 14 --> var 80 eqn 15 --> var 81 eqn 16 --> var 82 eqn 17 --> var 83 eqn 18 --> var 84 eqn 19 --> var 61 eqn 20 --> var 62 eqn 21 --> var 63 eqn 22 --> var 64 eqn 23 --> var 65 eqn 24 --> var 66 eqn 25 --> var 73 eqn 26 --> var 74 eqn 27 --> var 75 eqn 28 --> var 76 eqn 29 --> var 77 eqn 30 --> var 78 eqn 31 --> var 85 eqn 32 --> var 86 eqn 33 --> var 87 eqn 34 --> var 88 eqn 35 --> var 89 eqn 36 --> var 90 eqn 37 --> var 1 eqn 38 --> var 2 eqn 39 --> var 3 eqn 40 --> var 4 eqn 41 --> var 5 eqn 42 --> var 6 eqn 43 --> var 7 eqn 44 --> var 8 eqn 45 --> var 9 eqn 46 --> var 14 eqn 47 --> var 15 eqn 48 --> var 13 eqn 49 --> var 10 eqn 50 --> var 11 eqn 51 --> var 12 eqn 52 --> var 54 eqn 53 --> var 53 eqn 54 --> var 52 eqn 55 --> var 51 eqn 56 --> var 50 eqn 57 --> var 49 eqn 58 --> var 48 eqn 59 --> var 47 eqn 60 --> var 46 eqn 61 --> var 45 eqn 62 --> var 44 eqn 63 --> var 43 eqn 64 --> var 42 eqn 65 --> var 41 eqn 66 --> var 40 eqn 67 --> var 39 eqn 68 --> var 38 eqn 69 --> var 37 eqn 70 --> var 36 eqn 71 --> var 35 eqn 72 --> var 34 eqn 73 --> var 33 eqn 74 --> var 32 eqn 75 --> var 31 eqn 76 --> var 30 eqn 77 --> var 29 eqn 78 --> var 28 eqn 79 --> var 27 eqn 80 --> var 26 eqn 81 --> var 25 eqn 82 --> var 24 eqn 83 --> var 23 eqn 84 --> var 22 eqn 85 --> var 21 eqn 86 --> var 20 eqn 87 --> var 19 eqn 88 --> var 16 eqn 89 --> var 17 eqn 90 --> var 18 Error: Internal error NBInitialization.main failed to apply modules!