Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.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.PressureLoss.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8272/0.8272, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.0003509, allocations: 13.23 kB / 237.7 MB, free: 1.969 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05588/0.05625, allocations: 31.35 MB / 269.1 MB, free: 7.207 MB / 222.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.PressureLoss.TestDynamicReliefValve): time 1.679/1.735, allocations: 297.6 MB / 0.5534 GB, free: 10.13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5422/2.277, allocations: 196.3 MB / 0.7451 GB, free: 1.652 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007808/2.278, allocations: 21.97 kB / 0.7451 GB, free: 1.652 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicReliefValve.mo:72:3-73: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/DynamicReliefValve.mo:74:3-76:57: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/LumpedStraightPipe.mo:54:3-55: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/LumpedStraightPipe.mo:56:3-57: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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55: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/LumpedStraightPipe.mo:56:3-57: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/Volumes/VolumeD.mo:104:3-105:67:writable] Warning: Connector Ce 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/VolumeD.mo:106:3-107: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/VolumeD.mo:108:3-109: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/Volumes/VolumeD.mo:110:3-111:71:writable] Warning: Connector Cs3 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/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). Notification: Performance of NFTyping.typeComponents: time 0.0004988/2.278, allocations: 208.7 kB / 0.7453 GB, free: 1.652 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001232/2.28, allocations: 0.5175 MB / 0.7458 GB, free: 1.645 MB / 0.5919 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.03577/2.315, allocations: 13.94 MB / 0.7594 GB, free: 1.328 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001975/2.317, allocations: 1.572 MB / 0.761 GB, free: 1.324 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000806/2.318, allocations: 0.7604 MB / 0.7617 GB, free: 1.258 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007443/2.319, allocations: 0.6213 MB / 0.7623 GB, free: 1.258 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006621/2.32, allocations: 0.7248 MB / 0.763 GB, free: 1.258 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001449/2.32, allocations: 135.5 kB / 0.7631 GB, free: 1.258 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04076/2.361, allocations: 22.75 MB / 0.7854 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005683/2.361, allocations: 344.6 kB / 0.7857 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001079/2.362, allocations: 0.6987 MB / 0.7864 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03606/2.398, allocations: 12.45 MB / 0.7985 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/2.398, allocations: 1.094 kB / 0.7985 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.844e-06/2.398, allocations: 0.625 kB / 0.7985 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.244e-05/2.398, allocations: 1.062 kB / 0.7985 GB, free: 8.07 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.008702/2.407, allocations: 3.063 MB / 0.8015 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/2.407, allocations: 8.906 kB / 0.8015 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002878/2.408, allocations: 158.2 kB / 0.8017 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/2.409, allocations: 0.6813 MB / 0.8023 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/2.409, allocations: 121.1 kB / 0.8025 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002213/2.409, allocations: 128.1 kB / 0.8026 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002048/2.411, allocations: 1.361 MB / 0.8039 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/2.411, allocations: 7.906 kB / 0.8039 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.474e-05/2.411, allocations: 52.78 kB / 0.804 GB, free: 2.449 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.082e-05/2.411, allocations: 32 kB / 0.804 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001805/2.413, allocations: 1.159 MB / 0.8051 GB, free: 1.273 MB / 0.6075 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01998/2.433, allocations: 15.79 MB / 0.8206 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/2.434, allocations: 0.8498 MB / 0.8214 GB, free: 14.96 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004493/2.435, allocations: 282.4 kB / 0.8217 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7773/3.212, allocations: 290 MB / 1.105 GB, free: 362 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006472/3.213, allocations: 380.2 kB / 1.105 GB, free: 361.7 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=59): time 2.364e-06/3.213, allocations: 0 / 1.105 GB, free: 361.7 MB / 0.8262 GB Notification: Performance of matching and sorting (n=59): time 0.003425/3.216, allocations: 1.304 MB / 1.106 GB, free: 360.6 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.285e-05/3.216, allocations: 85.67 kB / 1.107 GB, free: 360.5 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007978/3.217, allocations: 0.851 MB / 1.107 GB, free: 359.9 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/3.217, allocations: 33.58 kB / 1.107 GB, free: 359.9 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/3.217, allocations: 0.6068 MB / 1.108 GB, free: 359.5 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.7e-05/3.218, allocations: 216.1 kB / 1.108 GB, free: 359.3 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002374/3.218, allocations: 228.2 kB / 1.108 GB, free: 359.1 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.239e-05/3.218, allocations: 397.4 kB / 1.109 GB, free: 358.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004289/3.218, allocations: 284.4 kB / 1.109 GB, free: 358.6 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005518/3.219, allocations: 0.6797 MB / 1.11 GB, free: 357.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009865/3.22, allocations: 0.9915 MB / 1.111 GB, free: 357 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/3.22, allocations: 4.562 kB / 1.111 GB, free: 357 MB / 0.8262 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001641/3.222, allocations: 1.164 MB / 1.112 GB, free: 356.1 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/3.222, allocations: 9.719 kB / 1.112 GB, free: 356.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/3.222, allocations: 16 kB / 1.112 GB, free: 356.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002544/3.224, allocations: 0.5011 MB / 1.112 GB, free: 355.7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/3.225, allocations: 197.5 kB / 1.113 GB, free: 355.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008284/3.226, allocations: 0.8579 MB / 1.113 GB, free: 354.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006757/3.226, allocations: 134.4 kB / 1.114 GB, free: 354.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.898e-05/3.226, allocations: 55.8 kB / 1.114 GB, free: 354.6 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 22 (sourceP.fluid1,sourceP.C.ftype,VolumeD1.Cs1.ftype,VolumeD1.Cs3.ftype,VolumeD1.Cs2.ftype,VolumeD1.fluids[1],ReliefValve.fluid,Pipe2.fluid,Sink2.fluid,Pipe1.fluid,Sink1.fluid,ReliefValve.clapper_is_free,$whenCondition1,$whenCondition2,VolumeD1.fluid1,ReliefValve.C1.diff_on_2,VolumeD1.Cs3.diff_on_1,VolumeD1.Cs2.diff_on_1,VolumeD1.Cs1.diff_on_1,ReliefValve.C2.diff_on_1,VolumeD1.Ce.diff_on_2,VolumeD1.Cs2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003503/3.227, allocations: 300.1 kB / 1.114 GB, free: 354.4 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/3.227, allocations: 95.48 kB / 1.114 GB, free: 354.3 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/3.228, allocations: 0.8513 MB / 1.115 GB, free: 353.7 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/3.228, allocations: 8.766 kB / 1.115 GB, free: 353.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/3.228, allocations: 6.469 kB / 1.115 GB, free: 353.6 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002641/3.229, allocations: 242.8 kB / 1.115 GB, free: 353.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.867e-05/3.229, allocations: 11.88 kB / 1.115 GB, free: 353.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003682/3.229, allocations: 29.36 kB / 1.115 GB, free: 353.4 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/3.229, allocations: 56.23 kB / 1.115 GB, free: 353.3 MB / 0.8262 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001838/3.231, allocations: 0.8407 MB / 1.116 GB, free: 352.7 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001282/3.232, allocations: 1.107 MB / 1.117 GB, free: 351.8 MB / 0.8262 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003587/3.233, allocations: 245.5 kB / 1.117 GB, free: 351.6 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004876/3.233, allocations: 0.5452 MB / 1.118 GB, free: 351.2 MB / 0.8262 GB Notification: Performance of Backend: time 5.01e-07/3.233, allocations: 0 / 1.118 GB, free: 351.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.01518/3.248, allocations: 4.816 MB / 1.123 GB, free: 347.5 MB / 0.8262 GB Notification: Performance of SimCode: time 0.002632/3.251, allocations: 2.638 MB / 1.125 GB, free: 345 MB / 0.8262 GB Notification: Performance of Templates: time 0.08768/3.339, allocations: 89.63 MB / 1.213 GB, free: 256.2 MB / 0.8262 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe 2>&1)