Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Obsolete.YearIndependent.FastHVAC.Examples.HeatGenerators.CHP.CHP.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/Modelica_DeviceDrivers 2.1.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/package.mo", uses=false) Using package AixLib with version 1.3.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/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(AixLib.Obsolete.YearIndependent.FastHVAC.Examples.HeatGenerators.CHP.CHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="AixLib_AixLib.Obsolete.YearIndependent.FastHVAC.Examples.HeatGenerators.CHP.CHP") translateModel(AixLib.Obsolete.YearIndependent.FastHVAC.Examples.HeatGenerators.CHP.CHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="AixLib_AixLib.Obsolete.YearIndependent.FastHVAC.Examples.HeatGenerators.CHP.CHP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 110.6 kB / 16.43 MB, free: 6.523 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.001355/0.001355, allocations: 185.5 kB / 17.35 MB, free: 5.746 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.424/1.424, allocations: 222.9 MB / 241.1 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/package.mo): time 0.07341/0.07341, allocations: 12.03 MB / 303.2 MB, free: 3.07 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0005182/0.0005183, allocations: 19.98 kB / 356.3 MB, free: 13.95 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6228:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6853:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:8435:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:9369:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:11505:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:12875:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/ThermalZones/HighOrder/Components/Examples/DryAir/DryAir_test.mo:71:18-71:405:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:2066:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:4252:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_RoofN_Roof_S.mo:5:35-5:362:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_Hor.mo:5:35-5:320:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_NE_SE_SW_NW_Hor.mo:5:35-5:324:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:588:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:3852:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/DataBase/CHP/CHPDataSimple/CHP_Cleanergy_C9G.mo:36:34-36:594:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/BoundaryConditions/InternalGains/Examples/InternalGains/Machines.mo:31:20-31:400:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/BoundaryConditions/InternalGains/Examples/InternalGains/Lights.mo:27:20-27:398:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/package.mo): time 1.569/1.569, allocations: 268.2 MB / 0.6617 GB, free: 2.578 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.045e-05/3.089e-05, allocations: 2.281 kB / 0.8879 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(AixLib.Obsolete.YearIndependent.FastHVAC.Examples.HeatGenerators.CHP.CHP): time 0.6668/0.6668, allocations: 3.529 MB / 0.8913 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003122/0.67, allocations: 1.483 MB / 0.8928 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003319/0.6704, allocations: 7.438 kB / 0.8928 GB, free: 12.95 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Pumps/FluidSource.mo:21:3-24:57:writable] Warning: Connector enthalpyPort_b is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sinks/Vessel.mo:9:3-11:41:writable] Warning: Connector enthalpyPort_a is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/TemperatureSensor.mo:16:3-18:59:writable] Warning: Connector enthalpyPort_a is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/TemperatureSensor.mo:19:3-21:57:writable] Warning: Connector enthalpyPort_b is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/TemperatureSensor.mo:16:3-18:59:writable] Warning: Connector enthalpyPort_a is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/TemperatureSensor.mo:19:3-21:57:writable] Warning: Connector enthalpyPort_b is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/BaseClasses/EnergyBalance.mo:4:3-7:59:writable] Warning: Connector enthalpyPort_a is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/BaseClasses/EnergyBalance.mo:8:3-11:57:writable] Warning: Connector enthalpyPort_b is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/BaseClasses/WorkingFluid.mo:13:3-15:71:writable] Warning: Connector enthalpyPort_b is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/BaseClasses/WorkingFluid.mo:16:3-18:73:writable] Warning: Connector enthalpyPort_a is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/HeatGenerators/CHP/CHP_PT1.mo:80:5-81:71:writable] Warning: Connector enthalpyPort_b is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/HeatGenerators/CHP/CHP_PT1.mo:83:5-84:63:writable] Warning: Connector enthalpyPort_a is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/MassFlowSensor.mo:14:3-16:59:writable] Warning: Connector enthalpyPort_a is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/MassFlowSensor.mo:17:3-19:57:writable] Warning: Connector enthalpyPort_b is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/TemperatureSensor.mo:16:3-18:59:writable] Warning: Connector enthalpyPort_a is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/TemperatureSensor.mo:19:3-21:57:writable] Warning: Connector enthalpyPort_b is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/TemperatureSensor.mo:16:3-18:59:writable] Warning: Connector enthalpyPort_a is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2/Obsolete/YearIndependent/FastHVAC/Components/Sensors/TemperatureSensor.mo:19:3-21:57:writable] Warning: Connector enthalpyPort_b is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0007432/0.6711, allocations: 133.8 kB / 0.8929 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0007518/0.6719, allocations: 227.3 kB / 0.8931 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005112/0.6724, allocations: 156.9 kB / 0.8933 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001104/0.6735, allocations: 0.7283 MB / 0.894 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005627/0.6741, allocations: 342.8 kB / 0.8943 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004082/0.6745, allocations: 258.8 kB / 0.8946 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004079/0.6749, allocations: 287.1 kB / 0.8948 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001259/0.6751, allocations: 71.72 kB / 0.8949 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004622/0.6755, allocations: 128.2 kB / 0.895 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of combineBinaries: time 0.0008323/0.6764, allocations: 0.9119 MB / 0.8959 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of replaceArrayConstructors: time 0.0003545/0.6767, allocations: 0.5508 MB / 0.8965 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.6769, allocations: 100.2 kB / 0.8966 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of FrontEnd: time 0.0001694/0.6771, allocations: 22.31 kB / 0.8966 GB, free: 11.5 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 (121) * Number of variables: 129 (117) Notification: Performance of Bindings: time 0.003057/0.6801, allocations: 3.12 MB / 0.8996 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of FunctionAlias: time 0.0001293/0.6803, allocations: 135.8 kB / 0.8998 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of Early Inline: time 0.001862/0.6821, allocations: 1.752 MB / 0.9015 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of simplify1: time 0.0001215/0.6823, allocations: 82.98 kB / 0.9015 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of Alias: time 0.005121/0.6874, allocations: 3.485 MB / 0.9049 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of simplify2: time 7.139e-05/0.6875, allocations: 30.22 kB / 0.905 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of Detect States: time 0.0004063/0.6879, allocations: 256.4 kB / 0.9052 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of Events: time 0.0002423/0.6882, allocations: 114 kB / 0.9053 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of Partitioning: time 0.0003678/0.6886, allocations: 277.3 kB / 0.9056 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of Causalize: time 0.001422/0.69, allocations: 0.9855 MB / 0.9066 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of After Index Reduction Inline: time 0.0008207/0.6908, allocations: 0.7194 MB / 0.9073 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of Inline: time 0.002412/0.6932, allocations: 2.085 MB / 0.9093 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of Partitioning: time 0.0001339/0.6934, allocations: 111.3 kB / 0.9094 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of Cleanup: time 8.324e-05/0.6935, allocations: 66.56 kB / 0.9095 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of Causalize: time 0.006032/0.6995, allocations: 4.228 MB / 0.9136 GB, free: 2.074 MB / 0.6075 GB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)if $SEV_1 then [----] [SCAL] (1) cHP_PT1_1.eff_th = cHP_PT1_1.param.b_5 * ((-273.15) + cHP_PT1_1.fluidCHP.heatCapacitor.T) ^ 2.0 + cHP_PT1_1.param.b_4 * dotm_source.k + cHP_PT1_1.param.b_3 * dotm_source.k ^ 2.0 + cHP_PT1_1.param.b_2 * (cHP_PT1_1.P_el / 1000.0) + cHP_PT1_1.param.b_1 * (cHP_PT1_1.P_el / 1000.0) ^ 2.0 + cHP_PT1_1.param.b_0 + cHP_PT1_1.param.b_6 * ((-273.15) + cHP_PT1_1.fluidCHP.heatCapacitor.T) ($RES_SIM_16) [----] elseif booleanOnOffCHP.y then [----] [SCAL] (1) cHP_PT1_1.sigma = cHP_PT1_1.eff_el / cHP_PT1_1.eff_th ($RES_SIM_17) [----] else [----] [SCAL] (1) cHP_PT1_1.eff_th = 0.0 ($RES_SIM_18) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!