Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 108 kB / 16.42 MB, free: 6.453 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.001067/0.001067, allocations: 190 kB / 17.36 MB, free: 5.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9908/0.9908, allocations: 91.19 MB / 382.4 MB, free: 7.562 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.514e-05/3.515e-05, allocations: 2.281 kB / 0.5174 GB, free: 4.203 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.7077/0.7078, allocations: 225.1 MB / 0.7372 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.6076/1.315, allocations: 24.98 MB / 0.7616 GB, free: 1.105 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004897/1.32, allocations: 81.84 kB / 0.7617 GB, free: 1.105 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.007573/1.328, allocations: 1.661 MB / 0.7633 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01367/1.342, allocations: 2.607 MB / 0.7659 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.01072/1.353, allocations: 1.908 MB / 0.7677 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01273/1.365, allocations: 4.425 MB / 0.7721 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00491/1.37, allocations: 1.198 MB / 0.7732 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007039/1.377, allocations: 1.704 MB / 0.7749 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006733/1.384, allocations: 1.992 MB / 0.7768 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.002278/1.387, allocations: 293.7 kB / 0.7771 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01997/1.407, allocations: 4.245 MB / 0.7813 GB, free: 16.66 MB / 0.5919 GB Notification: Performance of combineBinaries: time 0.01306/1.42, allocations: 4.709 MB / 0.7859 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of replaceArrayConstructors: time 0.005224/1.425, allocations: 2.993 MB / 0.7888 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002907/1.428, allocations: 493.7 kB / 0.7893 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of FrontEnd: time 0.001379/1.429, allocations: 182.4 kB / 0.7894 GB, free: 12.19 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 496 (452) * Number of variables: 496 (464) Notification: Performance of Bindings: time 0.02392/1.453, allocations: 14.15 MB / 0.8033 GB, free: 6.984 MB / 0.5919 GB Notification: Performance of FunctionAlias: time 0.003259/1.457, allocations: 2.052 MB / 0.8053 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of Early Inline: time 0.009438/1.466, allocations: 7.554 MB / 0.8126 GB, free: 6.109 MB / 0.5919 GB Notification: Performance of simplify1: time 0.0007379/1.467, allocations: 459.7 kB / 0.8131 GB, free: 6.102 MB / 0.5919 GB Notification: Performance of Alias: time 0.01606/1.483, allocations: 10.47 MB / 0.8233 GB, free: 0.668 MB / 0.5919 GB Notification: Performance of simplify2: time 0.0008832/1.484, allocations: 336.1 kB / 0.8236 GB, free: 0.5117 MB / 0.5919 GB Notification: Performance of Events: time 0.0008884/1.485, allocations: 0.5732 MB / 0.8242 GB, free: 124 kB / 0.5919 GB Notification: Performance of Detect States: time 0.003185/1.488, allocations: 2.328 MB / 0.8265 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of Partitioning: time 0.003656/1.492, allocations: 2.253 MB / 0.8287 GB, free: 12.56 MB / 0.6075 GB Error: Internal error NBSlice.resolveDependency (single dependency) failed because list of scalar variables(4) {switch.splitterT2_1.splitterN.outlets[1].state.T, switch.splitterT2_1.splitterN.outlets[2].state.T}, does not fit the equation size 2. Error: Internal error NBSlice.resolveDependency failed for: switch.splitterT2_1.splitterN.outlets.state.T. Error: Internal error NBAdjacency.Matrix.upgradeRow failed for: [FOR-] (4) ($RES_SIM_148) [----] for $i1 in 1:2 loop [----] [RECD] (2) switch.splitterT2_1.splitterN.outlets[$i1].state = switch.splitterT2_1.splitterN.inlet.state ($RES_SIM_149) [----] end for;