Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.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.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8565/0.8565, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.201e-05/3.203e-05, allocations: 3.609 kB / 237.8 MB, free: 1.766 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.TestThreeWayValve): time 1.937/1.937, allocations: 297.9 MB / 0.5231 GB, free: 9.965 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.7029/2.64, allocations: 190.4 MB / 0.7091 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/2.642, allocations: 25.75 kB / 0.7091 GB, free: 2.062 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/PressureLosses/ThreeWayValve.mo:66:3-67:68: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/ThreeWayValve.mo:68:3-69:66: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/ControlValve.mo:44:3-45:68: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/ControlValve.mo:46:3-47:66: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/ThreeWayValve.mo:81:3-82:54:writable] Warning: Connector C3 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/ControlValve.mo:44:3-45:68: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/ControlValve.mo:46:3-47:66: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/Volumes/VolumeA.mo:104:3-105:67:writable] Warning: Connector Ce1 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/Volumes/VolumeA.mo:106:3-108:57:writable] Warning: Connector Ce2 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/Volumes/VolumeA.mo:109:3-110:73:writable] Warning: Connector Cs1 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/Volumes/VolumeA.mo:111:3-112:75:writable] Warning: Connector Cs2 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/PipePressureLoss.mo:33:3-34: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/PipePressureLoss.mo:35:3-36: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/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.0006491/2.642, allocations: 174 kB / 0.7093 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001343/2.644, allocations: 433.2 kB / 0.7097 GB, free: 2.062 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.04306/2.687, allocations: 12.66 MB / 0.722 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003214/2.69, allocations: 1.783 MB / 0.7238 GB, free: 1.879 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001441/2.691, allocations: 1.013 MB / 0.7248 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001086/2.692, allocations: 0.6347 MB / 0.7254 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007896/2.693, allocations: 0.681 MB / 0.726 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002011/2.694, allocations: 176.1 kB / 0.7262 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04103/2.735, allocations: 19.58 MB / 0.7453 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.002999/2.738, allocations: 2.114 MB / 0.7474 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.00106/2.739, allocations: 1.286 MB / 0.7487 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006735/2.739, allocations: 265.6 kB / 0.7489 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of FrontEnd: time 0.0004296/2.74, allocations: 44.38 kB / 0.749 GB, free: 15.81 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: 329 (329) * Number of variables: 329 (325) Notification: Performance of Bindings: time 0.007359/2.747, allocations: 6.565 MB / 0.7554 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of FunctionAlias: time 0.001273/2.748, allocations: 0.9798 MB / 0.7563 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of Early Inline: time 0.005075/2.754, allocations: 4.337 MB / 0.7606 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of simplify1: time 0.0004045/2.754, allocations: 276.5 kB / 0.7608 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of Alias: time 0.01279/2.767, allocations: 9.406 MB / 0.77 GB, free: 6.328 MB / 0.5919 GB Notification: Performance of simplify2: time 0.0003512/2.767, allocations: 104.2 kB / 0.7701 GB, free: 6.262 MB / 0.5919 GB Notification: Performance of Detect States: time 0.0003943/2.768, allocations: 367.3 kB / 0.7705 GB, free: 5.961 MB / 0.5919 GB Notification: Performance of Events: time 0.0003605/2.768, allocations: 213.2 kB / 0.7707 GB, free: 5.809 MB / 0.5919 GB Notification: Performance of Partitioning: time 0.0008008/2.769, allocations: 0.6153 MB / 0.7713 GB, free: 5.395 MB / 0.5919 GB Notification: Performance of Causalize: time 0.003305/2.772, allocations: 2.806 MB / 0.774 GB, free: 3.531 MB / 0.5919 GB Notification: Performance of After Index Reduction Inline: time 0.001612/2.774, allocations: 1.384 MB / 0.7754 GB, free: 2.133 MB / 0.5919 GB Notification: Performance of Inline: time 0.003312/2.777, allocations: 2.576 MB / 0.7779 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of Partitioning: time 0.0001789/2.777, allocations: 131.5 kB / 0.778 GB, free: 15.4 MB / 0.6075 GB Notification: Performance of Cleanup: time 0.00011/2.777, allocations: 98.2 kB / 0.7781 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of Causalize: time 0.004585/2.782, allocations: 3.866 MB / 0.7819 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of Tearing: time 0.002823/2.785, allocations: 2.31 MB / 0.7841 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of Initialization: time 9.02e-07/2.785, allocations: 0 / 0.7841 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of Tearing: time 0.002856/2.788, allocations: 2.293 MB / 0.7864 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of Categorize: time 3.61e-05/2.788, allocations: 7.938 kB / 0.7864 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of Solve: time 0.0007243/2.788, allocations: 256.4 kB / 0.7866 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of Jacobian: time 4.368e-06/2.788, allocations: 0 / 0.7866 GB, free: 6.57 MB / 0.6075 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 7 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 33 (29) {SourceP1.C.diff_on_2, PuitsP1.fluid1, PuitsP1.fluid, PuitsP1.C.diff_on_1, threeWayValve.Valve1.fluid, threeWayValve.Valve2.ftype, threeWayValve.Valve2.fluid, threeWayValve.VolumeA1.fluids, threeWayValve.VolumeA1.Ce2.ftype, threeWayValve.VolumeA1.Cs1.diff_on_2, threeWayValve.VolumeA1.Cs2.diff_on_2, threeWayValve.PerteDP1.ftype, threeWayValve.PerteDP1.fluid, threeWayValve.PerteDP1.C2.diff_on_1, PuitsP2.ftype, PuitsP2.fluid1, PuitsP2.fluid, PuitsP2.C.diff_on_1, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 58 (scalar:58, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 1, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 93 (scalar:89, array:4, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 1, nonlinear:0) Notification: Performance of backend: time 7.299e-05/2.789, allocations: 42.31 kB / 0.7867 GB, free: 6.539 MB / 0.6075 GB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: ThermoSysPro.Fluid.Interfaces.PropertyInterfaces.isCompatible(threeWayValve.VolumeA1.fluids)