Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9529/0.9529, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.167e-05/3.195e-05, allocations: 5.469 kB / 237.8 MB, free: 1.762 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestCHPEngineBarkantineSystem): time 2.061/2.061, allocations: 301.5 MB / 0.5267 GB, free: 6.309 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.7551/2.816, allocations: 195.7 MB / 0.7177 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002171/2.818, allocations: 28.34 kB / 0.7177 GB, free: 2.043 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Combustion/BoundaryConditions/FuelSourcePQ.mo:26:3-28:26:writable] Warning: Connector C is not balanced: The number of potential variables (13) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/InternalCombustionEngine.mo:125:3-127:24:writable] Warning: Connector Cfuel is not balanced: The number of potential variables (13) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/InternalCombustionEngine.mo:128:3-130:75:writable] Warning: Connector Cair is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/InternalCombustionEngine.mo:131:3-133:73:writable] Warning: Connector Cfg is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/InternalCombustionEngine.mo:134:3-136:75:writable] Warning: Connector Cws1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/InternalCombustionEngine.mo:137:3-139:73:writable] Warning: Connector Cws2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:73:3-74:65:writable] Warning: Connector Ec is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:75:3-76:67:writable] Warning: Connector Ef is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:77:3-78:64:writable] Warning: Connector Sf is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:79:3-80:63:writable] Warning: Connector Sc is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/Sink.mo:39:3-40:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:73:3-74:65:writable] Warning: Connector Ec is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:75:3-76:67:writable] Warning: Connector Ef is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:77:3-78:64:writable] Warning: Connector Sf is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:79:3-80:63:writable] Warning: Connector Sc is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SingularPressureLoss.mo:27:3-28:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SingularPressureLoss.mo:29:3-30:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/CHPEngineBarkantineSystem.mo:85:3-86:66:writable] Warning: Connector outletWaterSteam is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/CHPEngineBarkantineSystem.mo:87:3-88:68:writable] Warning: Connector inletWaterSteam is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/Sink.mo:39:3-40:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.00086/2.819, allocations: 279 kB / 0.718 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002568/2.822, allocations: 0.7422 MB / 0.7187 GB, free: 2.043 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.05249/2.874, allocations: 14.24 MB / 0.7326 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006432/2.881, allocations: 3.492 MB / 0.7361 GB, free: 1.742 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003379/2.884, allocations: 1.75 MB / 0.7378 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003367/2.888, allocations: 1.212 MB / 0.7389 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003228/2.891, allocations: 1.332 MB / 0.7402 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001377/2.892, allocations: 365.3 kB / 0.7406 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04838/2.941, allocations: 22.05 MB / 0.7621 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of combineBinaries: time 0.005347/2.946, allocations: 4.054 MB / 0.7661 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of replaceArrayConstructors: time 0.002068/2.948, allocations: 2.402 MB / 0.7684 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002225/2.95, allocations: 0.5013 MB / 0.7689 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of FrontEnd: time 0.001057/2.951, allocations: 85.78 kB / 0.769 GB, free: 11.2 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: 610 (610) * Number of variables: 610 (609) Notification: Performance of Bindings: time 0.01872/2.97, allocations: 12.45 MB / 0.7812 GB, free: 2.691 MB / 0.5919 GB Notification: Performance of FunctionAlias: time 0.003937/2.974, allocations: 2.466 MB / 0.7836 GB, free: 288 kB / 0.5919 GB Notification: Performance of Early Inline: time 0.01551/2.99, allocations: 8.973 MB / 0.7923 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of simplify1: time 0.001179/2.991, allocations: 0.5484 MB / 0.7929 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of Alias: time 0.03653/3.027, allocations: 18.67 MB / 0.8111 GB, free: 3.074 MB / 0.6231 GB Notification: Performance of simplify2: time 0.0008096/3.028, allocations: 252.6 kB / 0.8113 GB, free: 2.832 MB / 0.6231 GB Notification: Performance of Detect States: time 0.00143/3.03, allocations: 0.7778 MB / 0.8121 GB, free: 2.051 MB / 0.6231 GB Notification: Performance of Events: time 0.0011/3.031, allocations: 0.5222 MB / 0.8126 GB, free: 1.535 MB / 0.6231 GB Notification: Performance of Partitioning: time 0.002148/3.033, allocations: 1.268 MB / 0.8139 GB, free: 204 kB / 0.6231 GB Notification: Performance of Causalize: time 0.009046/3.042, allocations: 6.167 MB / 0.8199 GB, free: 9.965 MB / 0.6387 GB Notification: Performance of After Index Reduction Inline: time 0.004958/3.047, allocations: 3.428 MB / 0.8232 GB, free: 6.531 MB / 0.6387 GB Notification: Performance of Inline: time 0.01172/3.059, allocations: 7.413 MB / 0.8305 GB, free: 15.07 MB / 0.6544 GB Notification: Performance of Partitioning: time 0.0005898/3.06, allocations: 327.4 kB / 0.8308 GB, free: 14.72 MB / 0.6544 GB Notification: Performance of Cleanup: time 0.0006044/3.06, allocations: 256.7 kB / 0.831 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of Causalize: time 0.01406/3.074, allocations: 9.159 MB / 0.84 GB, free: 5.199 MB / 0.6544 GB Error: Internal error NBDifferentiate.differentiateCall failed for: {Modelica.Media.IdealGases.Common.Functions.h_T(({Modelica.Media.IdealGases.Common.DataRecord("N2", 0.0280134, 0.0, 309498.4543111511, 1000.0, {22103.71497, -381.846182, 6.08273836, -0.00853091441, 1.384646189e-5, -9.62579362e-9, 2.519705809e-12}, {710.846086, -10.76003744}, {587712.406, -2239.249073, 6.06694922, -6.1396855e-4, 1.491806679e-7, -1.923105485e-11, 1.061954386e-15}, {12832.10415, -15.86640027}, 296.8033869505308), Modelica.Media.IdealGases.Common.DataRecord("O2", 0.0319988, 0.0, 271263.4223783392, 1000.0, {-34255.6342, 484.700097, 1.119010961, 0.00429388924, -6.83630052e-7, -2.0233727e-9, 1.039040018e-12}, {-3391.45487, 18.4969947}, {-1.037939022e6, 2344.830282, 1.819732036, 0.001267847582, -2.188067988e-7, 2.053719572e-11, -8.193467050000001e-16}, {-16890.10929, 17.38716506}, 259.8369938872708), Modelica.Media.IdealGases.Common.DataRecord("H2O", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), Modelica.Media.IdealGases.Common.DataRecord("CO2", 0.0440095, -8.941478544405185e6, 212805.6215135368, 1000.0, {49436.5054, -626.411601, 5.30172524, 0.002503813816, -2.127308728e-7, -7.68998878e-10, 2.849677801e-13}, {-45281.9846, -7.04827944}, {117696.2419, -1788.791477, 8.29152319, -9.22315678e-5, 4.86367688e-9, -1.891053312e-12, 6.330036589999999e-16}, {-39083.5059, -26.52669281}, 188.9244822140674), Modelica.Media.IdealGases.Common.DataRecord("SO2", 0.0640638, -4.633037690552231e6, 164650.3485587805, 1000.0, {-53108.4214, 909.031167, -2.356891244, 0.02204449885, -2.510781471e-5, 1.446300484e-8, -3.36907094e-12}, {-41137.52080000001, 40.45512519}, {-112764.0116, -825.226138, 7.61617863, -1.99932761e-4, 5.65563143e-8, -5.45431661e-12, 2.918294102e-16}, {-33513.0869, -16.55776085}, 129.7842463294403)})[i], T, exclEnthForm, refChoice, h_off) for i in 1:5} Error: Internal error NBInitialization.main failed to apply modules!