Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.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_zeroMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008879/0.0008881, allocations: 169.6 kB / 16.12 MB, free: 5.672 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.358/1.358, allocations: 205 MB / 221.9 MB, free: 9.141 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.0008623/0.0008623, allocations: 90.36 kB / 269.9 MB, free: 8.668 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.6957/0.6957, allocations: 90.51 MB / 408.3 MB, free: 3.949 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - Absyn->SCode: time 1.972e-05/2e-05, allocations: 2.281 kB / 484.9 MB, free: 7.215 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow): time 0.3749/0.3749, allocations: 207.6 MB / 0.6762 GB, free: 5.281 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.2834/0.6583, allocations: 16.38 MB / 0.6922 GB, free: 1.41 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009121/0.6593, allocations: 17.31 kB / 0.6922 GB, free: 1.41 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.6604, allocations: 397.3 kB / 0.6926 GB, free: 1.406 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002877/0.6633, allocations: 1.082 MB / 0.6936 GB, free: 1.398 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005037/0.6683, allocations: 1.963 MB / 0.6956 GB, free: 1.375 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.001377/0.6697, allocations: 1.29 MB / 0.6968 GB, free: 1.375 MB / 490.7 MB Notification: Performance of NFFlatten.resolveArrayConnections: time 0.4482/1.118, allocations: 259.5 MB / 0.9503 GB, free: 136.9 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002437/1.12, allocations: 0.9448 MB / 0.9512 GB, free: 136.7 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/1.121, allocations: 430.3 kB / 0.9516 GB, free: 136.6 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 6.577e-05/1.121, allocations: 44.12 kB / 0.9516 GB, free: 136.6 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006733/1.128, allocations: 4.265 MB / 0.9558 GB, free: 135.5 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0007106/1.128, allocations: 0.6252 MB / 0.9564 GB, free: 135.4 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.969e-06/1.128, allocations: 0 / 0.9564 GB, free: 135.4 MB / 0.6355 GB Notification: Performance of Bindings: time 0.001625/1.13, allocations: 2.049 MB / 0.9584 GB, free: 134.9 MB / 0.6355 GB Notification: Performance of simplify: time 0.0001105/1.13, allocations: 115 kB / 0.9585 GB, free: 134.8 MB / 0.6355 GB Notification: Performance of RemoveSimpleEquations: time 0.001635/1.132, allocations: 2.017 MB / 0.9605 GB, free: 134.1 MB / 0.6355 GB Notification: Performance of Events: time 0.000202/1.132, allocations: 218 kB / 0.9607 GB, free: 134.1 MB / 0.6355 GB Notification: Performance of DetectStates: time 0.0002364/1.132, allocations: 232.4 kB / 0.9609 GB, free: 134 MB / 0.6355 GB Notification: Performance of Partitioning: time 0.0007595/1.133, allocations: 0.7968 MB / 0.9617 GB, free: 133.8 MB / 0.6355 GB Notification: Performance of Causalize: time 0.001161/1.134, allocations: 1.787 MB / 0.9635 GB, free: 133.6 MB / 0.6355 GB Notification: Performance of Partitioning: time 0.001278/1.135, allocations: 1.323 MB / 0.9647 GB, free: 133.2 MB / 0.6355 GB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [RECD] (2) counterFlowNTU.outletB.state = multiSensor_Tpm2.inlet.state ($RES_SIM_11) slice: {97}; [SCAL] (1) counterFlowNTU.cpB_in = ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.counterFlowNTU.MediumB.specificHeatCapacityCp(counterFlowNTU.inletB.state) ($RES_BND_150) ; [SCAL] (1) counterFlowNTU.p_B = ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.counterFlowNTU.MediumB.pressure(counterFlowNTU.inletB.state) ($RES_BND_145) ; [SCAL] (1) counterFlowNTU.p_A = ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.counterFlowNTU.MediumA.pressure(counterFlowNTU.inletA.state) ($RES_BND_144) ; [RECD] (2) flowResistanceA.inlet.state = multiSensor_Tpm.outlet.state ($RES_SIM_14) slice: {135}; Error: Internal error NBResolveSingularities.balanceInitialization failed because following non-fixable variables could not be solved: [ALGB] (1) input Real sinkA.p0_var = sinkA.p0_var, [DER-] (1) Real $DER.counterFlowNTU.h_out_A, [DER-] (1) Real $DER.counterFlowNTU.h_out_B, [ALGB] (1) Real counterFlowNTU.dh_B, [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.001358/1.137, allocations: 1.977 MB / 0.9667 GB, free: 132.9 MB / 0.6355 GB Notification: Performance of Tearing: time 0.0004008/1.137, allocations: 0.5066 MB / 0.9672 GB, free: 132.5 MB / 0.6355 GB Notification: Performance of Categorize: time 8.216e-06/1.137, allocations: 4.5 kB / 0.9672 GB, free: 132.5 MB / 0.6355 GB Error: Internal error NBStrongComponent.toSolvedEquation failed because strong component could not be solved explicitely: BLOCK: Torn Algebraic Loop (Linear = false, Mixed = false) ---------------------------------------- Strict Tearing Set **************************************** ### Iteration Variables: protected Real counterFlowNTU.q_flowB ### Residual Equations: [SCAL] (1) $RES_SIM_53 = (counterFlowNTU.q_flowB * counterFlowNTU.m_flow_B) / counterFlowNTU.m_flow_B ^ 2.0 + (counterFlowNTU.m_flow_reg / 10.0) ^ 2.0 - counterFlowNTU.dh_B ($RES_SIM_53) ; ### Inner Equations: ################################################################################ [NLS] Jacobian ODE_EVT_IMP_JAC_2: NLS ################################################################################ Partial Derivative Variables (1/1) **************************************** (1) [JACV] (1) Real $pDER_ODE_EVT_IMP_JAC_2.$RES_SIM_53 Seed Variables (1/1) **************************************** (1) [SEED] (1) Real $SEED_ODE_EVT_IMP_JAC_2.counterFlowNTU.q_flowB BLOCK 1: Single Equation (status = Solve.EXPLICIT) ---------------------------------------- ### Variable: Real $pDER_ODE_EVT_IMP_JAC_2.$RES_SIM_53 ### Equation: [SCAL] (1) $pDER_ODE_EVT_IMP_JAC_2.$RES_SIM_53 = $SEED_ODE_EVT_IMP_JAC_2.counterFlowNTU.q_flowB * counterFlowNTU.m_flow_B * (counterFlowNTU.m_flow_B ^ 2.0 + (counterFlowNTU.m_flow_reg / 10.0) ^ 2.0) - 2.0 * counterFlowNTU.m_flow_B ^ 1.0 * 0.0 + 2.0 * (counterFlowNTU.m_flow_reg / 10.0) ^ 1.0 * (counterFlowNTU.m_flow_reg * 0.0 - 0.0 * 10.0 / 10.0 ^ 2.0) * counterFlowNTU.q_flowB * counterFlowNTU.m_flow_B / (counterFlowNTU.m_flow_B ^ 2.0 + (counterFlowNTU.m_flow_reg / 10.0) ^ 2.0) ^ 2.0 ($RES_ODE_EVT_IMP_JAC_2_0) ======================================== Sparsity Pattern (nnz: 1) ======================================== ### Columns ### ---------------------------------------- (counterFlowNTU.q_flowB) affects: {$RES_SIM_53} ##### Rows ##### ---------------------------------------- ($RES_SIM_53) depends on: {counterFlowNTU.q_flowB} ======================================== Sparsity Coloring ======================================== Color (1) - Column: {counterFlowNTU.q_flowB} - Row: {$RES_SIM_53}