Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger.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.TestDynamicMultiFluidHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8864/0.8864, allocations: 150.9 MB / 167.2 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.351e-05/2.354e-05, allocations: 3.156 kB / 237.8 MB, free: 1.777 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.TestDynamicMultiFluidHeatExchanger): time 1.957/1.957, allocations: 298.4 MB / 0.5236 GB, free: 9.645 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6901/2.647, allocations: 196.6 MB / 0.7156 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/2.649, allocations: 28.78 kB / 0.7156 GB, free: 2.094 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceQ.mo:62:3-63: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/HeatExchangers/DynamicOnePhaseFlowPipe.mo:150:3-151: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/HeatExchangers/DynamicOnePhaseFlowPipe.mo:152:3-153: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/HeatExchangers/DynamicOnePhaseFlowPipe.mo:150:3-151: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/HeatExchangers/DynamicOnePhaseFlowPipe.mo:152:3-153: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/HeatExchangers/DynamicMultiFluidHeatExchanger.mo:114:3-115:51:writable] Warning: Connector Cfg1 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/DynamicMultiFluidHeatExchanger.mo:116:3-117:53:writable] Warning: Connector Cfg2 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/DynamicMultiFluidHeatExchanger.mo:118:3-119:75:writable] Warning: Connector Cws1 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/DynamicMultiFluidHeatExchanger.mo:120:3-121:73:writable] Warning: Connector Cws2 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.0007297/2.65, allocations: 247.9 kB / 0.7159 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001958/2.651, allocations: 0.8399 MB / 0.7167 GB, free: 2.094 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.05143/2.703, allocations: 14.36 MB / 0.7307 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005413/2.708, allocations: 2.795 MB / 0.7334 GB, free: 1.789 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001942/2.71, allocations: 1.139 MB / 0.7345 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003026/2.713, allocations: 1.252 MB / 0.7358 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002347/2.716, allocations: 1.154 MB / 0.7369 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004332/2.716, allocations: 229.6 kB / 0.7371 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05846/2.775, allocations: 22.13 MB / 0.7587 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of combineBinaries: time 0.004948/2.78, allocations: 2.858 MB / 0.7615 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of replaceArrayConstructors: time 0.001895/2.782, allocations: 1.703 MB / 0.7632 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007959/2.782, allocations: 266.1 kB / 0.7634 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of FrontEnd: time 0.0004851/2.783, allocations: 48.44 kB / 0.7635 GB, free: 13.21 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: 662 (337) * Number of variables: 662 (323) Notification: Performance of Bindings: time 0.01369/2.797, allocations: 9.473 MB / 0.7727 GB, free: 9.008 MB / 0.5919 GB Notification: Performance of FunctionAlias: time 0.00333/2.8, allocations: 2.364 MB / 0.775 GB, free: 7.422 MB / 0.5919 GB Notification: Performance of Early Inline: time 0.009568/2.809, allocations: 7.214 MB / 0.7821 GB, free: 0.9219 MB / 0.5919 GB Notification: Performance of simplify1: time 0.0003246/2.81, allocations: 167.8 kB / 0.7822 GB, free: 0.7578 MB / 0.5919 GB Notification: Performance of Alias: time 0.01337/2.823, allocations: 8.947 MB / 0.791 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of simplify2: time 0.000264/2.824, allocations: 43 kB / 0.791 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of Detect States: time 0.001693/2.825, allocations: 0.8829 MB / 0.7919 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of Events: time 0.001043/2.826, allocations: 0.5646 MB / 0.7924 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of Partitioning: time 0.001937/2.828, allocations: 1.375 MB / 0.7938 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of Causalize: time 0.0219/2.85, allocations: 15.44 MB / 0.8089 GB, free: 5.828 MB / 0.6231 GB Notification: Performance of After Index Reduction Inline: time 0.00647/2.857, allocations: 5.025 MB / 0.8138 GB, free: 0.8008 MB / 0.6231 GB Notification: Performance of Inline: time 0.011/2.868, allocations: 8.553 MB / 0.8221 GB, free: 8.219 MB / 0.6387 GB Notification: Performance of Partitioning: time 0.0004665/2.868, allocations: 235.6 kB / 0.8223 GB, free: 7.965 MB / 0.6387 GB Notification: Performance of Cleanup: time 0.0005176/2.869, allocations: 337 kB / 0.8227 GB, free: 7.645 MB / 0.6387 GB Notification: Performance of Causalize: time 0.02544/2.894, allocations: 18.73 MB / 0.8409 GB, free: 5.297 MB / 0.6544 GB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1) ($RES_SIM_242)if $SEV_4[$i1] then [----] [SCAL] (1) dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.Js[$i1] = if sinkP1.diffusion then dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.gamma_s[$i1] * dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.rs[$i1] * (dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.h[$i1 + 2] - dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.h[$i1 + 1]) else 0.0 ($RES_SIM_243) [----] else [----] [SCAL] (1) dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.Js[$i1] = dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.gamma_s[$i1] * dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.rs[$i1] * (dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.h[$i1 + 2] - dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.h[$i1 + 1]) ($RES_SIM_244) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!