Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestFlueGasesJunctions.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.Examples.SimpleExamples.TestFlueGasesJunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestFlueGasesJunctions") translateModel(ThermoSysPro.Examples.SimpleExamples.TestFlueGasesJunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestFlueGasesJunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9164/0.9164, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.313e-05/3.332e-05, allocations: 3.156 kB / 237.8 MB, free: 1.773 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.Examples.SimpleExamples.TestFlueGasesJunctions): time 1.843/1.843, allocations: 296.9 MB / 0.5221 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2327/2.076, allocations: 150 MB / 0.6687 GB, free: 4.805 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002872/2.076, allocations: 8 kB / 0.6687 GB, free: 4.797 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/Junctions/Splitter2.mo:24:3-26:16:writable] Warning: Connector Ce is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/Junctions/Splitter2.mo:27:3-28:82:writable] Warning: Connector Cs1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/Junctions/Splitter2.mo:29:3-31:17:writable] Warning: Connector Cs2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/SourceQ.mo:17:3-18:83:writable] Warning: Connector C is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:18:3-20:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:21:3-23:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/Sink.mo:15:3-17:16:writable] Warning: Connector C is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/SinkP.mo:16:3-18:16:writable] Warning: Connector C is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:18:3-20:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:21:3-23:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:18:3-20:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:21:3-23:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/Junctions/Mixer2.mo:24:3-26:24:writable] Warning: Connector Ce2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/Junctions/Mixer2.mo:27:3-28:52:writable] Warning: Connector Cs is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/Junctions/Mixer2.mo:30:3-32:17:writable] Warning: Connector Ce1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:18:3-20:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:21:3-23:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:18:3-20:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:21:3-23:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:18:3-20:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:21:3-23:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/Source.mo:16:3-17:83:writable] Warning: Connector C is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/SourceP.mo:17:3-18:83:writable] Warning: Connector C is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/SinkQ.mo:16:3-18:16:writable] Warning: Connector C is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003742/2.076, allocations: 130 kB / 0.6688 GB, free: 4.672 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004979/2.077, allocations: 281.4 kB / 0.6691 GB, free: 4.395 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001552/2.078, allocations: 0.592 MB / 0.6697 GB, free: 3.801 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0012/2.08, allocations: 1.304 MB / 0.6709 GB, free: 2.488 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000778/2.08, allocations: 0.7296 MB / 0.6716 GB, free: 1.742 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004152/2.081, allocations: 454.6 kB / 0.6721 GB, free: 1.297 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005125/2.081, allocations: 0.5563 MB / 0.6726 GB, free: 0.7383 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001304/2.081, allocations: 132 kB / 0.6727 GB, free: 0.6094 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/2.082, allocations: 0.5205 MB / 0.6733 GB, free: 92 kB / 0.545 GB Notification: Performance of combineBinaries: time 0.001252/2.084, allocations: 1.723 MB / 0.6749 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0006729/2.084, allocations: 1.035 MB / 0.6759 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002732/2.085, allocations: 211.4 kB / 0.6761 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of FrontEnd: time 0.0001622/2.085, allocations: 31.88 kB / 0.6762 GB, free: 13.06 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 319 (319) * Number of variables: 319 (319) Notification: Performance of Bindings: time 0.004656/2.09, allocations: 5.156 MB / 0.6812 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.000801/2.09, allocations: 0.9113 MB / 0.6821 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.003386/2.094, allocations: 3.732 MB / 0.6857 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of simplify1: time 0.0002458/2.094, allocations: 267.7 kB / 0.686 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of Alias: time 0.01019/2.104, allocations: 8.705 MB / 0.6945 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of simplify2: time 0.0001783/2.104, allocations: 111.8 kB / 0.6946 GB, free: 9.191 MB / 0.5762 GB Notification: Performance of Detect States: time 0.0002319/2.105, allocations: 246.2 kB / 0.6948 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of Events: time 0.0002006/2.105, allocations: 139.8 kB / 0.695 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0004783/2.105, allocations: 402.3 kB / 0.6954 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of Causalize: time 0.002307/2.108, allocations: 1.979 MB / 0.6973 GB, free: 6.402 MB / 0.5762 GB Notification: Performance of After Index Reduction Inline: time 0.001006/2.109, allocations: 1.05 MB / 0.6983 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of Inline: time 0.003199/2.112, allocations: 3.13 MB / 0.7014 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0001941/2.112, allocations: 155.7 kB / 0.7015 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of Cleanup: time 9.839e-05/2.112, allocations: 87.91 kB / 0.7016 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of Causalize: time 0.3763/2.489, allocations: 3.744 MB / 0.7053 GB, free: 27.11 MB / 0.5762 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!