Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.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.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8577/0.8577, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.625e-05/2.601e-05, allocations: 3.531 kB / 237.7 MB, free: 1.832 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.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe): time 1.838/1.838, allocations: 297 MB / 0.5222 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.7085/2.546, allocations: 192.9 MB / 0.7105 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/2.547, allocations: 17.94 kB / 0.7105 GB, free: 1.992 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:233:3-234:54: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/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:237:3-238:52: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/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). Notification: Performance of NFTyping.typeComponents: time 0.001043/2.548, allocations: 293.6 kB / 0.7108 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001696/2.55, allocations: 0.643 MB / 0.7114 GB, free: 1.992 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. Notification: Performance of NFTyping.typeClassSections: time 0.04968/2.6, allocations: 12.83 MB / 0.724 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005074/2.605, allocations: 2.198 MB / 0.7261 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/2.606, allocations: 0.622 MB / 0.7267 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002159/2.608, allocations: 1.083 MB / 0.7278 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/2.609, allocations: 0.9313 MB / 0.7287 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002045/2.609, allocations: 119 kB / 0.7288 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04514/2.655, allocations: 17.18 MB / 0.7456 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.003327/2.658, allocations: 2.095 MB / 0.7476 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.001107/2.659, allocations: 1.325 MB / 0.7489 GB, free: 188 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000344/2.66, allocations: 150.8 kB / 0.7491 GB, free: 188 kB / 0.5762 GB Notification: Performance of FrontEnd: time 0.0003209/2.66, allocations: 22.69 kB / 0.7491 GB, free: 188 kB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1484 (185) * Number of variables: 6304 (228) Notification: Performance of Bindings: time 0.009388/2.669, allocations: 7.794 MB / 0.7567 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of FunctionAlias: time 0.001937/2.671, allocations: 1.44 MB / 0.7581 GB, free: 12.56 MB / 0.5919 GB Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.T Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.d Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.u Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.s Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.cp Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.ddhp Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.ddph Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.duph Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.duhp Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_7.x Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.T Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.d Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.u Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.s Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.cp Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.ddhp Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.ddph Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.duph Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.duhp Error: Internal error NBVariable.VariablePointers.getVarSafe failed for $FUN_21.x Notification: Performance of Early Inline: time 0.007324/2.679, allocations: 6.433 MB / 0.7644 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of simplify1: time 0.0002078/2.679, allocations: 105.9 kB / 0.7645 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of Alias: time 0.007393/2.686, allocations: 4.587 MB / 0.769 GB, free: 8.77 MB / 0.5919 GB Notification: Performance of simplify2: time 0.0001896/2.686, allocations: 67.64 kB / 0.769 GB, free: 8.719 MB / 0.5919 GB Notification: Performance of Detect States: time 0.001692/2.688, allocations: 1.031 MB / 0.77 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of Events: time 0.001429/2.69, allocations: 1.001 MB / 0.771 GB, free: 7.25 MB / 0.5919 GB Error: Internal error NBVariable.getVarPointer failed for $FUN_27.x, because of wrong InstNode (not VAR_NODE). Show lowering errors with -d=failtrace.