Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.94/0.94, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.416e-05/3.468e-05, allocations: 5.734 kB / 237.7 MB, free: 1.82 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.887/1.887, allocations: 294.8 MB / 0.52 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04597/1.933, allocations: 34.75 MB / 0.554 GB, free: 10.5 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000361/1.934, allocations: 4.688 kB / 0.554 GB, free: 10.5 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C 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/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C 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/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43:writable] Warning: Connector C1 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/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 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.0006938/1.934, allocations: 180.5 kB / 0.5541 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005279/1.935, allocations: 171.1 kB / 0.5543 GB, free: 10.15 MB / 446.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.03946/1.974, allocations: 9.904 MB / 0.564 GB, free: 248 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/1.976, allocations: 434.3 kB / 0.5644 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003675/1.976, allocations: 132.3 kB / 0.5645 GB, free: 15.69 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004234/1.976, allocations: 171.3 kB / 0.5647 GB, free: 15.52 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003397/1.977, allocations: 147.3 kB / 0.5648 GB, free: 15.38 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.344e-05/1.977, allocations: 23.94 kB / 0.5648 GB, free: 15.35 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04041/2.017, allocations: 17.36 MB / 0.5818 GB, free: 13.97 MB / 478.1 MB Notification: Performance of combineBinaries: time 0.0007342/2.018, allocations: 466.4 kB / 0.5822 GB, free: 13.51 MB / 478.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002466/2.018, allocations: 311.2 kB / 0.5825 GB, free: 13.2 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/2.018, allocations: 47.88 kB / 0.5826 GB, free: 13.15 MB / 478.1 MB Notification: Performance of FrontEnd: time 0.0001088/2.019, allocations: 11.88 kB / 0.5826 GB, free: 13.14 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 (50) * Number of variables: 77 (77) Notification: Performance of Bindings: time 0.00201/2.021, allocations: 1.727 MB / 0.5843 GB, free: 11.32 MB / 478.1 MB Notification: Performance of FunctionAlias: time 0.0002818/2.021, allocations: 232.6 kB / 0.5845 GB, free: 11.09 MB / 478.1 MB Notification: Performance of Early Inline: time 0.001467/2.022, allocations: 1.199 MB / 0.5857 GB, free: 9.863 MB / 478.1 MB Notification: Performance of simplify1: time 6.738e-05/2.022, allocations: 71.89 kB / 0.5857 GB, free: 9.793 MB / 478.1 MB Notification: Performance of Alias: time 0.002077/2.024, allocations: 1.634 MB / 0.5873 GB, free: 8.008 MB / 478.1 MB Notification: Performance of simplify2: time 4.843e-05/2.025, allocations: 43.94 kB / 0.5874 GB, free: 7.965 MB / 478.1 MB Notification: Performance of Detect States: time 0.0002318/2.025, allocations: 220.9 kB / 0.5876 GB, free: 7.734 MB / 478.1 MB Notification: Performance of Events: time 0.0001043/2.025, allocations: 63.94 kB / 0.5876 GB, free: 7.672 MB / 478.1 MB Error: Internal error NBVariable.getVarPointer failed for $FUN_2.x, because of wrong InstNode (not VAR_NODE). Show lowering errors with -d=failtrace.