Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009851/0.0009854, allocations: 166.1 kB / 16.11 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205 MB / 221.9 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007467/0.0007469, allocations: 90.38 kB / 269.9 MB, free: 8.664 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6753/0.6753, allocations: 90.51 MB / 408.3 MB, free: 3.934 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.058e-05, allocations: 2.281 kB / 484.9 MB, free: 7.207 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.7171/0.7171, allocations: 245.1 MB / 0.7129 GB, free: 1.258 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.02373/0.7409, allocations: 24.31 MB / 0.7366 GB, free: 0.7852 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001714/0.7427, allocations: 29.66 kB / 0.7367 GB, free: 0.7852 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.7443, allocations: 0.6137 MB / 0.7373 GB, free: 0.7578 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004539/0.7489, allocations: 1.697 MB / 0.7389 GB, free: 0.6875 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008417/0.7573, allocations: 3.112 MB / 0.742 GB, free: 0.5664 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.002494/0.7598, allocations: 2.132 MB / 0.744 GB, free: 0.5625 MB / 490.7 MB Notification: Performance of NFFlatten.resolveArrayConnections: time 1.241/2.001, allocations: 0.7125 GB / 1.457 GB, free: 132.7 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003823/2.005, allocations: 1.179 MB / 1.458 GB, free: 131.8 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008095/2.006, allocations: 0.7071 MB / 1.458 GB, free: 131.3 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0001175/2.006, allocations: 68 kB / 1.458 GB, free: 131.2 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01055/2.016, allocations: 6.723 MB / 1.465 GB, free: 125 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.0009627/2.017, allocations: 1.053 MB / 1.466 GB, free: 124.4 MB / 0.6667 GB Notification: Performance of FrontEnd: time 5.11e-06/2.017, allocations: 0 / 1.466 GB, free: 124.4 MB / 0.6667 GB Notification: Performance of Bindings: time 0.002277/2.02, allocations: 3.475 MB / 1.469 GB, free: 121.1 MB / 0.6667 GB Notification: Performance of simplify: time 0.0001635/2.02, allocations: 215.5 kB / 1.47 GB, free: 120.9 MB / 0.6667 GB Notification: Performance of RemoveSimpleEquations: time 0.002724/2.023, allocations: 4 MB / 1.474 GB, free: 116.7 MB / 0.6667 GB Notification: Performance of Events: time 0.0002861/2.023, allocations: 445.6 kB / 1.474 GB, free: 116.3 MB / 0.6667 GB Notification: Performance of DetectStates: time 0.0003286/2.023, allocations: 439.5 kB / 1.474 GB, free: 115.9 MB / 0.6667 GB Notification: Performance of Partitioning: time 0.001619/2.025, allocations: 1.705 MB / 1.476 GB, free: 114.2 MB / 0.6667 GB Notification: Performance of Causalize: time 0.001816/2.027, allocations: 3.242 MB / 1.479 GB, free: 110.9 MB / 0.6667 GB Notification: Performance of Partitioning: time 0.002701/2.029, allocations: 2.749 MB / 1.482 GB, free: 108.2 MB / 0.6667 GB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [RECD] (2) flowResistanceB.inlet.state = sourceB.outlet.state ($RES_SIM_18) slice: {176}; [-IF-] (6) if noEvent($SEV_0) then [----] [SCAL] (1) $DER.counterFlowNTU.h_out_B * counterFlowNTU.TC = counterFlowNTU.h_in_B - (counterFlowNTU.h_out_B + counterFlowNTU.dh_B) ($RES_SIM_166) [----] [SCAL] (1) $DER.counterFlowNTU.h_out_A * counterFlowNTU.TC = counterFlowNTU.h_in_A - (counterFlowNTU.h_out_A + counterFlowNTU.dh_A) ($RES_SIM_167) [----] [SCAL] (1) counterFlowNTU.dh_B = (counterFlowNTU.q_flowB * counterFlowNTU.m_flow_B) / counterFlowNTU.m_flow_B ^ 2.0 + (counterFlowNTU.m_flow_reg / 10.0) ^ 2.0 ($RES_SIM_168) [----] [SCAL] (1) counterFlowNTU.q_flowB = -counterFlowNTU.q_flowA ($RES_SIM_169) [----] [SCAL] (1) counterFlowNTU.q_flowA = counterFlowNTU.m_flow_A * counterFlowNTU.dh_A ($RES_SIM_170) [----] [-IF-] (1) if $SEV_1 then [----] [----] [SCAL] (1) counterFlowNTU.dh_A = 0.0 ($RES_SIM_172) [----] [----] else [----] [----] [SCAL] (1) counterFlowNTU.dh_A = counterFlowNTU.cp_A * counterFlowNTU.Delta_T_max * counterFlowNTU.effectiveness ($RES_SIM_173) [----] [----] end if; [----] else [----] [SCAL] (1) $DER.counterFlowNTU.h_out_B * counterFlowNTU.TC = counterFlowNTU.h_in_B - (counterFlowNTU.h_out_B + counterFlowNTU.dh_B) ($RES_SIM_174) [----] [SCAL] (1) $DER.counterFlowNTU.h_out_A * counterFlowNTU.TC = counterFlowNTU.h_in_A - (counterFlowNTU.h_out_A + counterFlowNTU.dh_A) ($RES_SIM_175) [----] [SCAL] (1) counterFlowNTU.dh_A = (counterFlowNTU.q_flowA * counterFlowNTU.m_flow_A) / counterFlowNTU.m_flow_A ^ 2.0 + (counterFlowNTU.m_flow_reg / 10.0) ^ 2.0 ($RES_SIM_176) [----] [SCAL] (1) counterFlowNTU.q_flowA = -counterFlowNTU.q_flowB ($RES_SIM_177) [----] [SCAL] (1) counterFlowNTU.q_flowB = counterFlowNTU.m_flow_B * counterFlowNTU.dh_B ($RES_SIM_178) [----] [-IF-] (1) if noEvent($SEV_2) and noEvent($SEV_3) then [----] [----] [SCAL] (1) counterFlowNTU.dh_B = 0.0 ($RES_SIM_180) [----] [----] else [----] [----] [SCAL] (1) counterFlowNTU.dh_B = -counterFlowNTU.cp_B * counterFlowNTU.Delta_T_max * counterFlowNTU.effectiveness ($RES_SIM_181) [----] [----] end if; [----] end if; slice: {201, 202, 203, 204}; [SCAL] (1) mCV.p_in = ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.mCV.Medium.pressure(mCV.inlet.state) ($RES_BND_277) ; Error: Internal error NBResolveSingularities.balanceInitialization failed because following non-fixable variables could not be solved: [DER-] (1) Real $DER.counterFlowNTU.h_out_B, [ALGB] (1) Real counterFlowNTU.dh_B, [DER-] (1) Real $DER.counterFlowNTU.h_out_A, [ALGB] (1) Real counterFlowNTU.dh_A, [ALGB] (1) protected Real counterFlowNTU.q_flowB, [ALGB] (1) protected Real counterFlowNTU.q_flowA Error: Internal error NBInitialization.main failed! Notification: Performance of Initialization: time 0.002357/2.032, allocations: 3.649 MB / 1.485 GB, free: 104.5 MB / 0.6667 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFType.mo:1105:13-1106:80:writable] Error: Internal error NFType.subscript got unsubscriptable type Real