Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.9002/0.9002, allocations: 153.8 MB / 173.4 MB, free: 4.922 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.000547/0.000547, allocations: 11.98 kB / 251 MB, free: 3.996 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.1993, allocations: 33.36 MB / 284.4 MB, free: 2.148 MB / 222.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.985/2.184, allocations: 307.6 MB / 0.5782 GB, free: 16.06 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03651/2.221, allocations: 35.11 MB / 0.6125 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004612/2.221, allocations: 4.688 kB / 0.6125 GB, free: 14.07 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.000577/2.222, allocations: 153.8 kB / 0.6126 GB, free: 14 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003911/2.222, allocations: 147.7 kB / 0.6128 GB, free: 13.9 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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. Notification: Performance of NFTyping.typeClassSections: time 0.03436/2.256, allocations: 10 MB / 0.6225 GB, free: 7.938 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009611/2.257, allocations: 463.9 kB / 0.623 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002594/2.258, allocations: 125.2 kB / 0.6231 GB, free: 7.359 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003604/2.258, allocations: 199.2 kB / 0.6233 GB, free: 7.164 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002787/2.258, allocations: 177.2 kB / 0.6234 GB, free: 6.992 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/2.258, allocations: 27.94 kB / 0.6235 GB, free: 6.965 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03935/2.298, allocations: 17.93 MB / 0.641 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.00021/2.298, allocations: 71.75 kB / 0.641 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003042/2.298, allocations: 171.1 kB / 0.6412 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02511/2.323, allocations: 8.537 MB / 0.6495 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/2.323, allocations: 4 kB / 0.6496 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.603e-06/2.323, allocations: 0 / 0.6496 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.047e-06/2.323, allocations: 0 / 0.6496 GB, free: 12.21 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004974/2.328, allocations: 1.56 MB / 0.6511 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/2.328, allocations: 8.031 kB / 0.6511 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002088/2.328, allocations: 51.7 kB / 0.6511 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/2.329, allocations: 212.5 kB / 0.6513 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.426e-05/2.329, allocations: 75.84 kB / 0.6514 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.063e-05/2.329, allocations: 24.56 kB / 0.6514 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005618/2.329, allocations: 354.3 kB / 0.6518 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/2.33, allocations: 4.75 kB / 0.6518 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/2.33, allocations: 8 kB / 0.6518 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/2.33, allocations: 13.22 kB / 0.6518 GB, free: 9.816 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003992/2.33, allocations: 235.1 kB / 0.652 GB, free: 9.59 MB / 0.5137 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.01944/2.349, allocations: 6.576 MB / 0.6584 GB, free: 2.836 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007363/2.35, allocations: 249.6 kB / 0.6587 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002709/2.35, allocations: 124.9 kB / 0.6588 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1699/2.52, allocations: 48.24 MB / 0.7059 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005342/2.521, allocations: 227.9 kB / 0.7061 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 1.864e-06/2.521, allocations: 0 / 0.7061 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.00127/2.522, allocations: 492.6 kB / 0.7066 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/2.522, allocations: 89.08 kB / 0.7067 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/2.522, allocations: 245.9 kB / 0.7069 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/2.523, allocations: 29.7 kB / 0.7069 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/2.523, allocations: 169.1 kB / 0.7071 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/2.523, allocations: 163.3 kB / 0.7073 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/2.523, allocations: 61.92 kB / 0.7073 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001802/2.523, allocations: 350.7 kB / 0.7077 GB, free: 308 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/2.523, allocations: 116.7 kB / 0.7078 GB, free: 192 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/2.524, allocations: 159.7 kB / 0.7079 GB, free: 16 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004908/2.524, allocations: 295.2 kB / 0.7082 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/2.524, allocations: 1.125 kB / 0.7082 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009277/2.525, allocations: 430.7 kB / 0.7086 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/2.525, allocations: 4.844 kB / 0.7086 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/2.525, allocations: 0 / 0.7086 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/2.526, allocations: 205.5 kB / 0.7088 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/2.526, allocations: 23.97 kB / 0.7088 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002704/2.529, allocations: 2.329 MB / 0.7111 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/2.529, allocations: 47.88 kB / 0.7112 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/2.529, allocations: 8 kB / 0.7112 GB, free: 12.52 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001893/2.529, allocations: 153.7 kB / 0.7113 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/2.53, allocations: 36.55 kB / 0.7113 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009126/2.53, allocations: 0.5601 MB / 0.7119 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005738/2.531, allocations: 362.3 kB / 0.7122 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/2.531, allocations: 0 / 0.7122 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/2.531, allocations: 0 / 0.7122 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/2.533, allocations: 0.9484 MB / 0.7132 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/2.533, allocations: 8 kB / 0.7132 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/2.533, allocations: 59.91 kB / 0.7132 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000394/2.533, allocations: 106.5 kB / 0.7133 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/2.533, allocations: 9.688 kB / 0.7133 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006109/2.534, allocations: 0.6304 MB / 0.7139 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/2.534, allocations: 0 / 0.7139 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/2.535, allocations: 0.6632 MB / 0.7146 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/2.535, allocations: 61.72 kB / 0.7147 GB, free: 8.785 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.833e-05/2.535, allocations: 11.95 kB / 0.7147 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/2.535, allocations: 15.98 kB / 0.7147 GB, free: 8.758 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.996e-05/2.535, allocations: 35.94 kB / 0.7147 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/2.536, allocations: 4 kB / 0.7147 GB, free: 8.719 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002463/2.536, allocations: 223.1 kB / 0.7149 GB, free: 8.504 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/2.536, allocations: 3.938 kB / 0.7149 GB, free: 8.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003778/2.54, allocations: 1.235 MB / 0.7161 GB, free: 7.262 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.omega,checkValve.theta) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006584/2.546, allocations: 1.748 MB / 0.7179 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001244/2.547, allocations: 480.4 kB / 0.7183 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/2.547, allocations: 3.938 kB / 0.7183 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004761/2.548, allocations: 175.4 kB / 0.7185 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008422/2.549, allocations: 128.3 kB / 0.7186 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/2.551, allocations: 0.9149 MB / 0.7195 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/2.551, allocations: 0.8079 MB / 0.7203 GB, free: 3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.612e-05/2.551, allocations: 35.42 kB / 0.7203 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of SimCode: time 6.61e-07/2.551, allocations: 0 / 0.7203 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of Templates: time 0.04681/2.598, allocations: 27 MB / 0.7467 GB, free: 8.387 MB / 0.6075 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 13.571177465841174] Failed to read output from testmodel.py, exit status != 0: 2.812843850115314 3.060530122 0.734485803 Calling exit ...