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.8796/0.8796, allocations: 153.9 MB / 172.7 MB, free: 4.934 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.0005475/0.0005475, allocations: 15.98 kB / 250.3 MB, free: 4.039 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1719, allocations: 33.35 MB / 283.7 MB, free: 2.172 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.924/2.096, allocations: 307.6 MB / 0.5774 GB, free: 15.91 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.06549/2.162, allocations: 35.1 MB / 0.6117 GB, free: 13.9 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004808/2.162, allocations: 2.219 kB / 0.6117 GB, free: 13.9 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.0009599/2.163, allocations: 154.6 kB / 0.6119 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009658/2.164, allocations: 149.7 kB / 0.612 GB, free: 13.73 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.05573/2.22, allocations: 10.01 MB / 0.6218 GB, free: 7.977 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001401/2.221, allocations: 450.7 kB / 0.6222 GB, free: 7.535 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004352/2.222, allocations: 134.5 kB / 0.6223 GB, free: 7.402 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006256/2.222, allocations: 203.2 kB / 0.6225 GB, free: 7.203 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004731/2.223, allocations: 174 kB / 0.6227 GB, free: 7.035 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.422e-05/2.223, allocations: 24 kB / 0.6227 GB, free: 7.012 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06396/2.287, allocations: 17.94 MB / 0.6402 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002312/2.287, allocations: 63.75 kB / 0.6403 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000444/2.288, allocations: 179 kB / 0.6405 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0337/2.321, allocations: 8.532 MB / 0.6488 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/2.321, allocations: 0 / 0.6488 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.814e-06/2.321, allocations: 0 / 0.6488 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.508e-05/2.321, allocations: 0 / 0.6488 GB, free: 12.26 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.006753/2.328, allocations: 1.568 MB / 0.6503 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/2.328, allocations: 8.875 kB / 0.6503 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003362/2.328, allocations: 51.7 kB / 0.6504 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005269/2.329, allocations: 209.1 kB / 0.6506 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/2.329, allocations: 71.84 kB / 0.6507 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.959e-05/2.329, allocations: 24 kB / 0.6507 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/2.33, allocations: 362.3 kB / 0.651 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.462e-05/2.33, allocations: 1.031 kB / 0.651 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.759e-05/2.33, allocations: 12 kB / 0.651 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.831e-05/2.33, allocations: 15.98 kB / 0.6511 GB, free: 9.848 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007766/2.331, allocations: 234.5 kB / 0.6513 GB, free: 9.621 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.03614/2.367, allocations: 6.575 MB / 0.6577 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/2.368, allocations: 251.6 kB / 0.6579 GB, free: 2.617 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003604/2.369, allocations: 124.9 kB / 0.6581 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.232/2.601, allocations: 48.23 MB / 0.7052 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005031/2.601, allocations: 229.1 kB / 0.7054 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 2.064e-06/2.601, allocations: 0 / 0.7054 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.001238/2.602, allocations: 494.7 kB / 0.7059 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/2.603, allocations: 77.11 kB / 0.7059 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/2.603, allocations: 254.8 kB / 0.7062 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/2.603, allocations: 29.7 kB / 0.7062 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/2.603, allocations: 165 kB / 0.7064 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/2.603, allocations: 170.5 kB / 0.7065 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/2.603, allocations: 61.92 kB / 0.7066 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001984/2.604, allocations: 350.8 kB / 0.7069 GB, free: 344 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/2.604, allocations: 108.7 kB / 0.707 GB, free: 236 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002554/2.604, allocations: 159.7 kB / 0.7072 GB, free: 60 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005137/2.605, allocations: 300.3 kB / 0.7075 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/2.605, allocations: 4.75 kB / 0.7075 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009504/2.605, allocations: 422.7 kB / 0.7079 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/2.605, allocations: 12.12 kB / 0.7079 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/2.605, allocations: 3.938 kB / 0.7079 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/2.607, allocations: 193.5 kB / 0.7081 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/2.607, allocations: 31.97 kB / 0.7081 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002804/2.61, allocations: 2.329 MB / 0.7104 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/2.61, allocations: 39.75 kB / 0.7104 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.906e-05/2.61, allocations: 9.516 kB / 0.7104 GB, free: 12.56 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.0002174/2.61, allocations: 153.7 kB / 0.7106 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.826e-05/2.61, allocations: 39.7 kB / 0.7106 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009625/2.611, allocations: 0.5643 MB / 0.7111 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006078/2.612, allocations: 358.3 kB / 0.7115 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/2.612, allocations: 0 / 0.7115 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/2.612, allocations: 0 / 0.7115 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/2.613, allocations: 0.9536 MB / 0.7124 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/2.613, allocations: 0.625 kB / 0.7124 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/2.614, allocations: 59.91 kB / 0.7125 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004027/2.614, allocations: 104.7 kB / 0.7126 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/2.614, allocations: 4 kB / 0.7126 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006106/2.615, allocations: 0.6403 MB / 0.7132 GB, free: 9.566 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/2.615, allocations: 0 / 0.7132 GB, free: 9.566 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/2.616, allocations: 0.6671 MB / 0.7139 GB, free: 8.879 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/2.616, allocations: 59.69 kB / 0.7139 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.595e-05/2.616, allocations: 7.953 kB / 0.7139 GB, free: 8.812 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/2.616, allocations: 20.92 kB / 0.7139 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.009e-05/2.616, allocations: 27.94 kB / 0.714 GB, free: 8.766 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/2.616, allocations: 15.98 kB / 0.714 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000256/2.617, allocations: 219 kB / 0.7142 GB, free: 8.539 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/2.617, allocations: 0 / 0.7142 GB, free: 8.539 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003271/2.62, allocations: 1.243 MB / 0.7154 GB, free: 7.293 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.005788/2.626, allocations: 1.746 MB / 0.7171 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001119/2.627, allocations: 475.5 kB / 0.7176 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/2.627, allocations: 0 / 0.7176 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004761/2.627, allocations: 179.7 kB / 0.7177 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008315/2.628, allocations: 129.5 kB / 0.7179 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/2.63, allocations: 0.8804 MB / 0.7187 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/2.63, allocations: 0.8039 MB / 0.7195 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001513/2.63, allocations: 37.42 kB / 0.7195 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.828e-05/2.63, allocations: 33.41 kB / 0.7196 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of SimCode: time 7.42e-07/2.63, allocations: 0 / 0.7196 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of Templates: time 0.07085/2.701, allocations: 44.6 MB / 0.7631 GB, free: 6.879 MB / 0.6231 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: 15.061253174208105] Failed to read output from testmodel.py, exit status != 0: 3.0633252668194473 3.073982574 0.749901317 Calling exit ...