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.8697/0.8697, allocations: 120.4 MB / 140.1 MB, free: 40 kB / 126.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.0005948/0.0005948, allocations: 15.98 kB / 217.7 MB, free: 13.04 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05887/0.05947, allocations: 33.37 MB / 251 MB, free: 11.61 MB / 238.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.83/1.889, allocations: 254.1 MB / 0.4933 GB, free: 14.77 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04481/1.934, allocations: 30.89 MB / 0.5235 GB, free: 24 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002379/1.934, allocations: 4 kB / 0.5235 GB, free: 20 kB / 478.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.0004748/1.935, allocations: 121.6 kB / 0.5236 GB, free: 15.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003448/1.935, allocations: 154.5 kB / 0.5238 GB, free: 15.75 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.02614/1.961, allocations: 9.868 MB / 0.5334 GB, free: 5.875 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007548/1.962, allocations: 458.7 kB / 0.5338 GB, free: 5.426 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/1.962, allocations: 140.7 kB / 0.534 GB, free: 5.285 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000386/1.963, allocations: 195.2 kB / 0.5342 GB, free: 5.094 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002673/1.963, allocations: 155.2 kB / 0.5343 GB, free: 4.941 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.502e-05/1.963, allocations: 24 kB / 0.5343 GB, free: 4.918 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03229/1.995, allocations: 16.77 MB / 0.5507 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001508/1.995, allocations: 63.77 kB / 0.5508 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002226/1.996, allocations: 143.2 kB / 0.5509 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01925/2.015, allocations: 8.54 MB / 0.5593 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/2.015, allocations: 4 kB / 0.5593 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.593e-06/2.015, allocations: 0 / 0.5593 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.767e-06/2.015, allocations: 0 / 0.5593 GB, free: 11.35 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.004308/2.019, allocations: 1.556 MB / 0.5608 GB, free: 9.754 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/2.019, allocations: 8.031 kB / 0.5608 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/2.019, allocations: 51.7 kB / 0.5608 GB, free: 9.695 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/2.02, allocations: 212.5 kB / 0.561 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.609e-05/2.02, allocations: 75.84 kB / 0.5611 GB, free: 9.375 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.668e-05/2.02, allocations: 20 kB / 0.5611 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005923/2.021, allocations: 358.5 kB / 0.5615 GB, free: 8.98 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/2.021, allocations: 4 kB / 0.5615 GB, free: 8.977 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/2.021, allocations: 12 kB / 0.5615 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/2.021, allocations: 12 kB / 0.5615 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004279/2.021, allocations: 229.9 kB / 0.5617 GB, free: 8.73 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.02026/2.041, allocations: 6.029 MB / 0.5676 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007217/2.042, allocations: 243 kB / 0.5678 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/2.042, allocations: 125.2 kB / 0.568 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1784/2.221, allocations: 48.42 MB / 0.6152 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004544/2.221, allocations: 225 kB / 0.6155 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 1.874e-06/2.221, allocations: 0 / 0.6155 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.001226/2.222, allocations: 490.1 kB / 0.6159 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/2.222, allocations: 81.05 kB / 0.616 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/2.223, allocations: 229.7 kB / 0.6162 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/2.223, allocations: 29.7 kB / 0.6163 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/2.223, allocations: 172.9 kB / 0.6164 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/2.223, allocations: 158.5 kB / 0.6166 GB, free: 388 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/2.223, allocations: 65.91 kB / 0.6166 GB, free: 316 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002215/2.223, allocations: 342.8 kB / 0.617 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/2.224, allocations: 112.7 kB / 0.6171 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/2.224, allocations: 163.7 kB / 0.6172 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005157/2.224, allocations: 296.2 kB / 0.6175 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/2.224, allocations: 0 / 0.6175 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009091/2.225, allocations: 436 kB / 0.6179 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/2.225, allocations: 4 kB / 0.6179 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/2.225, allocations: 0 / 0.6179 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/2.226, allocations: 197.5 kB / 0.6181 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/2.226, allocations: 31.97 kB / 0.6181 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/2.229, allocations: 2.297 MB / 0.6204 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002375/2.229, allocations: 39.75 kB / 0.6204 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/2.229, allocations: 11.98 kB / 0.6204 GB, free: 12.21 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.0001938/2.23, allocations: 151.9 kB / 0.6206 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/2.23, allocations: 23.81 kB / 0.6206 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009291/2.231, allocations: 0.5728 MB / 0.6212 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000606/2.231, allocations: 360.5 kB / 0.6215 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/2.231, allocations: 0 / 0.6215 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/2.231, allocations: 0 / 0.6215 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/2.233, allocations: 0.8669 MB / 0.6224 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/2.233, allocations: 3.984 kB / 0.6224 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000311/2.233, allocations: 55.92 kB / 0.6224 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004058/2.233, allocations: 104.8 kB / 0.6225 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/2.233, allocations: 11.98 kB / 0.6225 GB, free: 9.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006104/2.234, allocations: 0.6423 MB / 0.6231 GB, free: 9.312 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/2.234, allocations: 64 / 0.6231 GB, free: 9.312 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/2.235, allocations: 0.6529 MB / 0.6238 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/2.235, allocations: 51.75 kB / 0.6238 GB, free: 8.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.031e-05/2.235, allocations: 15.88 kB / 0.6238 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/2.236, allocations: 15.98 kB / 0.6239 GB, free: 8.559 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.58e-05/2.236, allocations: 35.92 kB / 0.6239 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/2.236, allocations: 12 kB / 0.6239 GB, free: 8.512 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002163/2.236, allocations: 193.2 kB / 0.6241 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.236, allocations: 4.062 kB / 0.6241 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003226/2.239, allocations: 1.239 MB / 0.6253 GB, free: 7.078 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.005577/2.245, allocations: 1.752 MB / 0.627 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001123/2.246, allocations: 476.1 kB / 0.6275 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/2.246, allocations: 0 / 0.6275 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004676/2.246, allocations: 174 kB / 0.6276 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007724/2.247, allocations: 120.2 kB / 0.6278 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001712/2.249, allocations: 0.8791 MB / 0.6286 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/2.249, allocations: 204.2 kB / 0.6288 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001417/2.249, allocations: 30.28 kB / 0.6288 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.049e-05/2.249, allocations: 24.5 kB / 0.6289 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of SimCode: time 1.012e-06/2.249, allocations: 3.938 kB / 0.6289 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of Templates: time 0.06995/2.319, allocations: 43.68 MB / 0.6715 GB, free: 7.785 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 -s ida -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 14.080773781985044] Failed to read output from testmodel.py, exit status != 0: 2.598410938982852 2.615103013 0.596580181 Calling exit ...