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.4719/0.4719, allocations: 111.6 MB / 131.2 MB, free: 4.602 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 2.404e-06/2.404e-06, allocations: 3.984 kB / 176.1 MB, free: 9.238 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.157e-05/1.398e-05, allocations: 2.312 kB / 176.1 MB, free: 9.234 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.063/1.063, allocations: 257.2 MB / 433.3 MB, free: 184 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02974/1.092, allocations: 33.42 MB / 466.7 MB, free: 14.64 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000222/1.093, allocations: 4 kB / 466.7 MB, free: 14.63 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.0004177/1.093, allocations: 119.2 kB / 466.8 MB, free: 14.52 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002945/1.093, allocations: 162.8 kB / 467 MB, free: 14.36 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.01882/1.112, allocations: 9.962 MB / 477 MB, free: 4.348 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005739/1.113, allocations: 470.4 kB / 477.4 MB, free: 3.887 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004929/1.113, allocations: 136.8 kB / 477.6 MB, free: 3.75 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003745/1.114, allocations: 287.2 kB / 477.8 MB, free: 3.469 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/1.114, allocations: 123.6 kB / 478 MB, free: 3.348 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.431e-05/1.114, allocations: 24 kB / 478 MB, free: 3.324 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2101/1.324, allocations: 16.79 MB / 494.8 MB, free: 8.266 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/1.324, allocations: 66.89 kB / 494.8 MB, free: 8.266 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/1.324, allocations: 114 kB / 494.9 MB, free: 8.266 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01825/1.342, allocations: 10.81 MB / 0.4939 GB, free: 4.34 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/1.342, allocations: 0 / 0.4939 GB, free: 4.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.683e-06/1.342, allocations: 0 / 0.4939 GB, free: 4.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/1.342, allocations: 1.469 kB / 0.4939 GB, free: 4.34 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.00347/1.346, allocations: 1.642 MB / 0.4955 GB, free: 3.156 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/1.346, allocations: 10.89 kB / 0.4955 GB, free: 3.152 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/1.346, allocations: 68.25 kB / 0.4956 GB, free: 3.121 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002029/1.346, allocations: 216.2 kB / 0.4958 GB, free: 2.926 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.286e-05/1.346, allocations: 69.03 kB / 0.4959 GB, free: 2.855 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.637e-05/1.346, allocations: 30.06 kB / 0.4959 GB, free: 2.848 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003252/1.347, allocations: 295.5 kB / 0.4962 GB, free: 2.625 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/1.347, allocations: 3.281 kB / 0.4962 GB, free: 2.625 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/1.347, allocations: 16.67 kB / 0.4962 GB, free: 2.613 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/1.347, allocations: 17.02 kB / 0.4962 GB, free: 2.605 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/1.347, allocations: 125.9 kB / 0.4963 GB, free: 2.57 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.009307/1.356, allocations: 6.326 MB / 0.5025 GB, free: 15.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/1.357, allocations: 141.1 kB / 0.5026 GB, free: 15.54 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.626e-05/1.357, allocations: 68.83 kB / 0.5027 GB, free: 15.51 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08545/1.442, allocations: 48.63 MB / 0.5502 GB, free: 15.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003332/1.442, allocations: 178.8 kB / 0.5504 GB, free: 15.07 MB / 490.7 MB Notification: Performance of pre-optimization done (n=48): time 1.753e-06/1.443, allocations: 0 / 0.5504 GB, free: 15.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=48): time 0.0006912/1.443, allocations: 353.1 kB / 0.5507 GB, free: 14.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/1.443, allocations: 81.11 kB / 0.5508 GB, free: 14.63 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/1.443, allocations: 272.2 kB / 0.551 GB, free: 14.34 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/1.443, allocations: 33.7 kB / 0.5511 GB, free: 14.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/1.444, allocations: 218.7 kB / 0.5513 GB, free: 14.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.318e-05/1.444, allocations: 163.7 kB / 0.5514 GB, free: 13.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.283e-05/1.444, allocations: 75.56 kB / 0.5515 GB, free: 13.85 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/1.444, allocations: 0.5118 MB / 0.552 GB, free: 13.32 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.8e-05/1.444, allocations: 56.73 kB / 0.5521 GB, free: 13.27 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/1.444, allocations: 125.8 kB / 0.5522 GB, free: 13.12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002021/1.444, allocations: 191.1 kB / 0.5524 GB, free: 12.92 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/1.444, allocations: 0 / 0.5524 GB, free: 12.92 MB / 490.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0004644/1.445, allocations: 336.7 kB / 0.5527 GB, free: 12.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/1.445, allocations: 7.938 kB / 0.5527 GB, free: 12.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/1.445, allocations: 0 / 0.5527 GB, free: 12.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004768/1.445, allocations: 143.2 kB / 0.5528 GB, free: 12.44 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.596e-05/1.445, allocations: 31.36 kB / 0.5529 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001939/1.447, allocations: 2.997 MB / 0.5558 GB, free: 9.273 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/1.447, allocations: 31.8 kB / 0.5558 GB, free: 9.242 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/1.447, allocations: 12 kB / 0.5558 GB, free: 9.23 MB / 490.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.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.0001119/1.447, allocations: 173.5 kB / 0.556 GB, free: 9.055 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.012e-05/1.448, allocations: 39.75 kB / 0.556 GB, free: 9.016 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004469/1.448, allocations: 474.6 kB / 0.5565 GB, free: 8.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002633/1.448, allocations: 262 kB / 0.5567 GB, free: 8.234 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.073e-06/1.448, allocations: 0 / 0.5567 GB, free: 8.234 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/1.448, allocations: 4 kB / 0.5567 GB, free: 8.23 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008011/1.449, allocations: 0.7841 MB / 0.5575 GB, free: 7.422 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/1.449, allocations: 4.5 kB / 0.5575 GB, free: 7.418 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/1.449, allocations: 58.97 kB / 0.5576 GB, free: 7.363 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001779/1.449, allocations: 79.56 kB / 0.5576 GB, free: 7.281 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/1.449, allocations: 8.625 kB / 0.5576 GB, free: 7.273 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003359/1.45, allocations: 0.8558 MB / 0.5585 GB, free: 6.391 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/1.45, allocations: 0.8594 kB / 0.5585 GB, free: 6.391 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004889/1.45, allocations: 0.5268 MB / 0.559 GB, free: 5.844 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.625e-05/1.45, allocations: 51.72 kB / 0.559 GB, free: 5.793 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.881e-05/1.45, allocations: 16.52 kB / 0.5591 GB, free: 5.777 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/1.45, allocations: 11.94 kB / 0.5591 GB, free: 5.766 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.179e-05/1.45, allocations: 39.92 kB / 0.5591 GB, free: 5.727 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/1.45, allocations: 12 kB / 0.5591 GB, free: 5.715 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001208/1.451, allocations: 213.1 kB / 0.5593 GB, free: 5.504 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/1.451, allocations: 0 / 0.5593 GB, free: 5.504 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002661/1.453, allocations: 1.228 MB / 0.5605 GB, free: 4.273 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.004286/1.458, allocations: 1.917 MB / 0.5624 GB, free: 2.59 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0007143/1.458, allocations: 435.5 kB / 0.5628 GB, free: 2.145 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/1.458, allocations: 4.062 kB / 0.5628 GB, free: 2.141 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005062/1.459, allocations: 152 kB / 0.563 GB, free: 1.988 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004927/1.459, allocations: 126.7 kB / 0.5631 GB, free: 1.875 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/1.461, allocations: 0.765 MB / 0.5638 GB, free: 1.105 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.795e-05/1.461, allocations: 109.8 kB / 0.5639 GB, free: 0.9766 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.000106/1.461, allocations: 28.88 kB / 0.564 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.627e-05/1.461, allocations: 24.5 kB / 0.564 GB, free: 0.9297 MB / 490.7 MB Notification: Performance of SimCode: time 1.633e-06/1.461, allocations: 8 kB / 0.564 GB, free: 0.9219 MB / 490.7 MB Notification: Performance of Templates: time 0.05601/1.517, allocations: 54.71 MB / 0.6174 GB, free: 10.54 MB / 0.5417 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: 7.1418833252973855]