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.5515/0.5515, allocations: 111.6 MB / 131.4 MB, free: 4.91 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/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 3.016e-06/3.016e-06, allocations: 0 / 176.4 MB, free: 9.07 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.717e-05/3.019e-05, allocations: 9.484 kB / 176.4 MB, free: 9.062 MB / 170.7 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.079/1.079, allocations: 257.2 MB / 433.7 MB, free: 84 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02724/1.106, allocations: 32.81 MB / 466.5 MB, free: 15.15 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/1.107, allocations: 0 / 466.5 MB, free: 15.15 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:19:3-20:78: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:19:3-20:80: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:36:3-37:80: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:38:3-39:78: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.0003838/1.107, allocations: 123.2 kB / 466.6 MB, free: 15.03 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002477/1.107, allocations: 154.9 kB / 466.7 MB, free: 14.88 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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:525:9-525: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:708:9-708: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:51:3-51: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:51:3-51: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:118:3-118:151: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:118:3-118:151: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.0169/1.124, allocations: 9.966 MB / 476.7 MB, free: 4.863 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004261/1.125, allocations: 474.4 kB / 477.2 MB, free: 4.398 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/1.125, allocations: 140.7 kB / 477.3 MB, free: 4.258 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002809/1.125, allocations: 283.2 kB / 477.6 MB, free: 3.98 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/1.125, allocations: 123.6 kB / 477.7 MB, free: 3.859 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.838e-05/1.125, allocations: 24 kB / 477.7 MB, free: 3.836 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2099/1.335, allocations: 16.79 MB / 494.5 MB, free: 8.773 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 9.88e-05/1.335, allocations: 68.12 kB / 494.6 MB, free: 8.773 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/1.335, allocations: 114 kB / 494.7 MB, free: 8.773 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01231/1.348, allocations: 10.8 MB / 0.4936 GB, free: 5.145 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/1.348, allocations: 1.344 kB / 0.4936 GB, free: 5.145 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.152e-06/1.348, allocations: 0 / 0.4936 GB, free: 5.145 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.6e-06/1.348, allocations: 0 / 0.4936 GB, free: 5.145 MB / 426.7 MB 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.002456/1.35, allocations: 1.651 MB / 0.4953 GB, free: 3.988 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/1.35, allocations: 14.14 kB / 0.4953 GB, free: 3.984 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/1.35, allocations: 68.94 kB / 0.4953 GB, free: 3.953 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/1.35, allocations: 209.3 kB / 0.4955 GB, free: 3.762 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.03e-05/1.35, allocations: 72 kB / 0.4956 GB, free: 3.691 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/1.35, allocations: 23.75 kB / 0.4956 GB, free: 3.684 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002086/1.351, allocations: 283.8 kB / 0.4959 GB, free: 3.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/1.351, allocations: 2.094 kB / 0.4959 GB, free: 3.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/1.351, allocations: 11.53 kB / 0.4959 GB, free: 3.473 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/1.351, allocations: 17.3 kB / 0.4959 GB, free: 3.465 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.795e-05/1.351, allocations: 99.5 kB / 0.496 GB, free: 3.441 MB / 426.7 MB 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.007221/1.358, allocations: 5.59 MB / 0.5015 GB, free: 0.9102 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/1.358, allocations: 126.4 kB / 0.5016 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.96e-05/1.358, allocations: 61.03 kB / 0.5017 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06977/1.428, allocations: 42.32 MB / 0.543 GB, free: 7.004 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/1.428, allocations: 175.3 kB / 0.5432 GB, free: 6.832 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 1.513e-06/1.428, allocations: 4 kB / 0.5432 GB, free: 6.828 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.0005545/1.429, allocations: 314.1 kB / 0.5435 GB, free: 6.52 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/1.429, allocations: 81.05 kB / 0.5435 GB, free: 6.422 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/1.429, allocations: 274.3 kB / 0.5438 GB, free: 6.16 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/1.429, allocations: 29.7 kB / 0.5438 GB, free: 6.125 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.137e-05/1.429, allocations: 221.8 kB / 0.544 GB, free: 5.91 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.362e-05/1.429, allocations: 167.5 kB / 0.5442 GB, free: 5.758 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.215e-05/1.429, allocations: 75.97 kB / 0.5443 GB, free: 5.684 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/1.429, allocations: 0.5222 MB / 0.5448 GB, free: 5.164 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.833e-05/1.429, allocations: 40.7 kB / 0.5448 GB, free: 5.125 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.93e-05/1.43, allocations: 113.2 kB / 0.5449 GB, free: 5.008 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/1.43, allocations: 177.2 kB / 0.5451 GB, free: 4.824 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/1.43, allocations: 0 / 0.5451 GB, free: 4.824 MB / 474.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000354/1.43, allocations: 320.2 kB / 0.5454 GB, free: 4.516 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/1.43, allocations: 8 kB / 0.5454 GB, free: 4.508 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/1.43, allocations: 3.938 kB / 0.5454 GB, free: 4.504 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003938/1.43, allocations: 142.4 kB / 0.5456 GB, free: 4.359 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.27e-05/1.431, allocations: 27.67 kB / 0.5456 GB, free: 4.336 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/1.432, allocations: 2.951 MB / 0.5485 GB, free: 1.266 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/1.432, allocations: 36.41 kB / 0.5485 GB, free: 1.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/1.432, allocations: 12 kB / 0.5485 GB, free: 1.219 MB / 474.7 MB 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.libre,$whenCondition1,$whenCondition2,sourceP1.C.b,puitsP1.C.a,checkValve.C1.a,checkValve.C2.b) * 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 9.356e-05/1.432, allocations: 166.9 kB / 0.5487 GB, free: 1.051 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/1.432, allocations: 35.81 kB / 0.5487 GB, free: 1.016 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003795/1.433, allocations: 454.2 kB / 0.5491 GB, free: 0.5391 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004608/1.433, allocations: 241.2 kB / 0.5494 GB, free: 304 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/1.433, allocations: 0 / 0.5494 GB, free: 304 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/1.433, allocations: 0 / 0.5494 GB, free: 304 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006707/1.434, allocations: 0.7206 MB / 0.5501 GB, free: 15.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/1.434, allocations: 0 / 0.5501 GB, free: 15.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/1.434, allocations: 63.53 kB / 0.5501 GB, free: 15.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001483/1.434, allocations: 74.83 kB / 0.5502 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/1.434, allocations: 8 kB / 0.5502 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002981/1.434, allocations: 0.8451 MB / 0.551 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.434, allocations: 4.938 kB / 0.551 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004008/1.435, allocations: 0.5051 MB / 0.5515 GB, free: 14.06 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.77e-05/1.435, allocations: 55.66 kB / 0.5516 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/1.435, allocations: 7.953 kB / 0.5516 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.962e-05/1.435, allocations: 11.98 kB / 0.5516 GB, free: 13.98 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.386e-05/1.435, allocations: 31.94 kB / 0.5516 GB, free: 13.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/1.435, allocations: 8 kB / 0.5516 GB, free: 13.95 MB / 490.7 MB Notification: Performance of sorting global known variables: time 9.437e-05/1.435, allocations: 204.6 kB / 0.5518 GB, free: 13.75 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/1.435, allocations: 0 / 0.5518 GB, free: 13.75 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002245/1.437, allocations: 1.231 MB / 0.553 GB, free: 12.52 MB / 490.7 MB 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.002951/1.44, allocations: 2.008 MB / 0.555 GB, free: 10.73 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004467/1.441, allocations: 417.7 kB / 0.5554 GB, free: 10.32 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/1.441, allocations: 0 / 0.5554 GB, free: 10.32 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001627/1.441, allocations: 139 kB / 0.5555 GB, free: 10.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/1.441, allocations: 127 kB / 0.5556 GB, free: 10.06 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/1.442, allocations: 0.7501 MB / 0.5564 GB, free: 9.309 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.421e-05/1.442, allocations: 113.8 kB / 0.5565 GB, free: 9.176 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.781e-05/1.442, allocations: 25.67 kB / 0.5565 GB, free: 9.156 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004144/1.443, allocations: 158.1 kB / 0.5567 GB, free: 9 MB / 490.7 MB Notification: Performance of SimCode: time 6.11e-07/1.443, allocations: 0 / 0.5567 GB, free: 9 MB / 490.7 MB Notification: Performance of Templates: time 0.04888/1.492, allocations: 51.59 MB / 0.607 GB, free: 5.684 MB / 0.5261 GB " [Timeout remaining time 658] 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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.066547794267535]