Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.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.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 1.004/1.004, allocations: 150.9 MB / 167.2 MB, free: 14.27 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.677e-05/3.67e-05, allocations: 6.391 kB / 237.8 MB, free: 1.84 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.TestDynamicCheckValve): time 1.901/1.901, allocations: 295.1 MB / 0.5204 GB, free: 12.92 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2436/2.145, allocations: 187.8 MB / 0.7038 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003672/2.145, allocations: 7.938 kB / 0.7039 GB, free: 0.6523 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/DynamicCheckValve.mo:56:3-57: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/DynamicCheckValve.mo:58:3-59:65:writable] Warning: Connector C2 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.0002516/2.146, allocations: 63.44 kB / 0.7039 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003931/2.146, allocations: 146.8 kB / 0.7041 GB, free: 456 kB / 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.3818/2.528, allocations: 11.72 MB / 0.7155 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007919/2.529, allocations: 0.5439 MB / 0.716 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003405/2.529, allocations: 254 kB / 0.7163 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/2.529, allocations: 200.3 kB / 0.7165 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000274/2.53, allocations: 223.9 kB / 0.7167 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.281e-05/2.53, allocations: 40.94 kB / 0.7167 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03929/2.569, allocations: 19.24 MB / 0.7355 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.0008359/2.57, allocations: 0.6952 MB / 0.7362 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.0002245/2.57, allocations: 432.5 kB / 0.7366 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001421/2.57, allocations: 80.75 kB / 0.7367 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of FrontEnd: time 0.0001458/2.57, allocations: 14.97 kB / 0.7367 GB, free: 1.691 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 (95) * Number of variables: 95 (95) Notification: Performance of Bindings: time 0.001995/2.572, allocations: 2.107 MB / 0.7387 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 0.0002358/2.573, allocations: 163.9 kB / 0.7389 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.001175/2.574, allocations: 1.184 MB / 0.7401 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of simplify1: time 8.457e-05/2.574, allocations: 84.97 kB / 0.7401 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of Alias: time 0.002625/2.577, allocations: 2.44 MB / 0.7425 GB, free: 184 kB / 0.5762 GB Notification: Performance of simplify2: time 4.975e-05/2.577, allocations: 39.25 kB / 0.7426 GB, free: 184 kB / 0.5762 GB Notification: Performance of Detect States: time 0.0002133/2.577, allocations: 161.7 kB / 0.7427 GB, free: 140 kB / 0.5762 GB Notification: Performance of Events: time 0.0001953/2.577, allocations: 117.1 kB / 0.7428 GB, free: 124 kB / 0.5762 GB Notification: Performance of Partitioning: time 0.0002385/2.577, allocations: 219.9 kB / 0.743 GB, free: 80 kB / 0.5762 GB Notification: Performance of Causalize: time 0.001068/2.578, allocations: 0.855 MB / 0.7439 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of After Index Reduction Inline: time 0.0005466/2.579, allocations: 0.5807 MB / 0.7444 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of Inline: time 0.001103/2.58, allocations: 0.9995 MB / 0.7454 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of Partitioning: time 6.577e-05/2.58, allocations: 55.44 kB / 0.7455 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of Cleanup: time 3.571e-05/2.58, allocations: 35.53 kB / 0.7455 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of Causalize: time 0.001304/2.581, allocations: 1.203 MB / 0.7467 GB, free: 15.46 MB / 0.5919 GB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)if checkValve.libre then [----] [SCAL] (1) checkValve.J * checkValve.a = checkValve.Ct ($RES_SIM_10) [----] else [----] [SCAL] (1) checkValve.a = 0.0 ($RES_SIM_11) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!