Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4.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.TestJunctions4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9151/0.9151, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.769e-05/2.769e-05, allocations: 3.484 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.Fluid.Examples.SimpleExamples.TestJunctions4): time 1.906/1.907, allocations: 296.6 MB / 0.5218 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.7296/2.636, allocations: 187.9 MB / 0.7053 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006601/2.637, allocations: 17.03 kB / 0.7053 GB, free: 2.055 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Junctions/DeheaterMixer2.mo:43:3-44:74:writable] Warning: Connector Ce_mix 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/Junctions/DeheaterMixer2.mo:45:3-46:64:writable] Warning: Connector Cs 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/Junctions/DeheaterMixer2.mo:48:3-49:66:writable] Warning: Connector Ce 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/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/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/BoundaryConditions/SinkQ.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/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/Source.mo:53:3-54:52: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.0004729/2.637, allocations: 109.1 kB / 0.7054 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0009603/2.638, allocations: 283.1 kB / 0.7057 GB, free: 2.055 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.04428/2.683, allocations: 11.8 MB / 0.7172 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001984/2.685, allocations: 1.121 MB / 0.7183 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007239/2.685, allocations: 0.5986 MB / 0.7189 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005503/2.686, allocations: 419.2 kB / 0.7193 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004859/2.686, allocations: 459.3 kB / 0.7197 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001205/2.686, allocations: 98.66 kB / 0.7198 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04144/2.728, allocations: 19.51 MB / 0.7389 GB, free: 1.723 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.00186/2.73, allocations: 1.439 MB / 0.7403 GB, free: 1.246 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.0005329/2.73, allocations: 0.8916 MB / 0.7411 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003635/2.731, allocations: 174.6 kB / 0.7413 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of FrontEnd: time 0.0003023/2.731, allocations: 33.92 kB / 0.7413 GB, free: 0.7656 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 (240) * Number of variables: 240 (237) Notification: Performance of Bindings: time 0.004202/2.735, allocations: 4.246 MB / 0.7455 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of FunctionAlias: time 0.0004544/2.736, allocations: 427.2 kB / 0.7459 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of Early Inline: time 0.002518/2.738, allocations: 2.707 MB / 0.7485 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of simplify1: time 0.0001714/2.738, allocations: 196 kB / 0.7487 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of Alias: time 0.007367/2.746, allocations: 6.385 MB / 0.755 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of simplify2: time 0.0001039/2.746, allocations: 68.33 kB / 0.755 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of Detect States: time 0.0002379/2.746, allocations: 228.5 kB / 0.7552 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of Events: time 0.0002435/2.746, allocations: 146.7 kB / 0.7554 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of Partitioning: time 0.0004412/2.747, allocations: 402.7 kB / 0.7558 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of Causalize: time 0.001992/2.749, allocations: 1.813 MB / 0.7575 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of After Index Reduction Inline: time 0.00093/2.75, allocations: 0.8785 MB / 0.7584 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of Inline: time 0.002243/2.752, allocations: 1.592 MB / 0.7599 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of Partitioning: time 0.0001017/2.752, allocations: 83.48 kB / 0.76 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of Cleanup: time 6.873e-05/2.752, allocations: 54.83 kB / 0.7601 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of Causalize: time 0.002745/2.755, allocations: 2.194 MB / 0.7622 GB, free: 10.14 MB / 0.5919 GB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)if $SEV_9 then [----] [SCAL] (1) source.Q = 0.0 ($RES_SIM_137) [----] else [----] [SCAL] (1) singularPressureLoss1.C2.h_vol_1 = deheaterMixer2_1.hmax ($RES_SIM_138) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!