Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchangerShell.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.TestDynamicMultiFluidHeatExchangerShell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchangerShell") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchangerShell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchangerShell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.865/0.8651, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.274e-05/3.322e-05, allocations: 2.938 kB / 237.8 MB, free: 1.941 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.TestDynamicMultiFluidHeatExchangerShell): time 1.928/1.928, allocations: 298.4 MB / 0.5237 GB, free: 9.664 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.7542/2.682, allocations: 196.6 MB / 0.7157 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001573/2.684, allocations: 27 kB / 0.7157 GB, free: 2.121 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/DynamicOnePhaseFlowShell.mo:144:3-145: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/DynamicOnePhaseFlowShell.mo:146:3-147: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/DynamicMultiFluidHeatExchangerShell.mo:96:3-97:72: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/DynamicMultiFluidHeatExchangerShell.mo:98:3-99:74: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/DynamicMultiFluidHeatExchangerShell.mo:100:3-101: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/DynamicMultiFluidHeatExchangerShell.mo:102:3-103: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.0008002/2.685, allocations: 243.6 kB / 0.7159 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002515/2.687, allocations: 0.8519 MB / 0.7168 GB, free: 2.121 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.05002/2.737, allocations: 14.36 MB / 0.7308 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00564/2.743, allocations: 2.82 MB / 0.7335 GB, free: 1.816 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002011/2.745, allocations: 1.148 MB / 0.7346 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002963/2.748, allocations: 1.263 MB / 0.7359 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002045/2.75, allocations: 1.169 MB / 0.737 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000337/2.75, allocations: 232.2 kB / 0.7372 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05387/2.804, allocations: 22.15 MB / 0.7589 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of combineBinaries: time 0.005019/2.809, allocations: 2.896 MB / 0.7617 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of replaceArrayConstructors: time 0.002102/2.811, allocations: 1.699 MB / 0.7634 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008776/2.812, allocations: 269.6 kB / 0.7636 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of FrontEnd: time 0.0004287/2.813, allocations: 46.22 kB / 0.7637 GB, free: 13.24 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: 657 (336) * Number of variables: 657 (322) Notification: Performance of Bindings: time 0.01504/2.828, allocations: 9.516 MB / 0.773 GB, free: 8.906 MB / 0.5919 GB Notification: Performance of FunctionAlias: time 0.003385/2.831, allocations: 2.426 MB / 0.7753 GB, free: 7.254 MB / 0.5919 GB Notification: Performance of Early Inline: time 0.008768/2.84, allocations: 7.234 MB / 0.7824 GB, free: 0.6875 MB / 0.5919 GB Notification: Performance of simplify1: time 0.0002863/2.84, allocations: 174.8 kB / 0.7826 GB, free: 0.5195 MB / 0.5919 GB Notification: Performance of Alias: time 0.01234/2.853, allocations: 9.02 MB / 0.7914 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of simplify2: time 0.0001468/2.853, allocations: 49.02 kB / 0.7914 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of Detect States: time 0.001211/2.854, allocations: 0.8991 MB / 0.7923 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of Events: time 0.0009393/2.855, allocations: 0.5867 MB / 0.7929 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of Partitioning: time 0.00183/2.857, allocations: 1.402 MB / 0.7942 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of Causalize: time 0.01935/2.876, allocations: 15.89 MB / 0.8098 GB, free: 5.031 MB / 0.6231 GB Notification: Performance of After Index Reduction Inline: time 0.005482/2.882, allocations: 5.096 MB / 0.8147 GB, free: 15.94 MB / 0.6387 GB Notification: Performance of Inline: time 0.01028/2.892, allocations: 8.732 MB / 0.8233 GB, free: 7.172 MB / 0.6387 GB Notification: Performance of Partitioning: time 0.0004437/2.893, allocations: 239.5 kB / 0.8235 GB, free: 6.91 MB / 0.6387 GB Notification: Performance of Cleanup: time 0.0005827/2.893, allocations: 329.4 kB / 0.8238 GB, free: 6.594 MB / 0.6387 GB Notification: Performance of Causalize: time 0.02405/2.917, allocations: 18.75 MB / 0.8421 GB, free: 4.254 MB / 0.6544 GB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)if $SEV_3[$i1] then [----] [SCAL] (1) dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.Je[$i1] = if sourceP1.diffusion then dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.gamma_e[$i1] * dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.re[$i1] * (dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.h[$i1] - dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.h[$i1 + 1]) else 0.0 ($RES_SIM_231) [----] else [----] [SCAL] (1) dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.Je[$i1] = dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.gamma_e[$i1] * dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.re[$i1] * (dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.h[$i1] - dynamicMultiFluidHeatExchangerShell.dynamicOnePhaseFlowShell.h[$i1 + 1]) ($RES_SIM_232) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!