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.5093/0.5093, allocations: 111.6 MB / 131.7 MB, free: 5.066 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 1.703e-06/1.703e-06, allocations: 0 / 176.4 MB, free: 9.504 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.426e-05/1.596e-05, allocations: 5.047 kB / 176.4 MB, free: 9.5 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.046/1.046, allocations: 257.1 MB / 433.6 MB, free: 15.87 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0287/1.075, allocations: 33.31 MB / 466.9 MB, free: 14.43 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001943/1.075, allocations: 0 / 466.9 MB, free: 14.43 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.0003739/1.075, allocations: 131.1 kB / 467 MB, free: 14.3 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002317/1.075, allocations: 154.9 kB / 467.1 MB, free: 14.15 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.01673/1.092, allocations: 9.95 MB / 477.1 MB, free: 4.168 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.000451/1.093, allocations: 478.4 kB / 477.6 MB, free: 3.699 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/1.093, allocations: 136.8 kB / 477.7 MB, free: 3.562 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/1.093, allocations: 283.2 kB / 478 MB, free: 3.285 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/1.093, allocations: 131.6 kB / 478.1 MB, free: 3.156 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/1.093, allocations: 24 kB / 478.1 MB, free: 3.133 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01895/1.112, allocations: 16.8 MB / 494.9 MB, free: 2.305 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 9.895e-05/1.112, allocations: 67.75 kB / 495 MB, free: 2.238 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/1.112, allocations: 115.7 kB / 495.1 MB, free: 2.125 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2072/1.32, allocations: 10.8 MB / 0.494 GB, free: 18.85 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/1.32, allocations: 1.031 kB / 0.494 GB, free: 18.85 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.433e-06/1.32, allocations: 0 / 0.494 GB, free: 18.85 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.376e-06/1.32, allocations: 3.562 kB / 0.494 GB, free: 18.85 MB / 442.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.004611/1.324, allocations: 1.654 MB / 0.4957 GB, free: 17.87 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/1.324, allocations: 13.45 kB / 0.4957 GB, free: 17.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/1.324, allocations: 65.36 kB / 0.4957 GB, free: 17.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/1.325, allocations: 219.5 kB / 0.4959 GB, free: 17.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.6e-05/1.325, allocations: 72.53 kB / 0.496 GB, free: 17.62 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.7e-05/1.325, allocations: 27.45 kB / 0.496 GB, free: 17.62 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/1.325, allocations: 299.2 kB / 0.4963 GB, free: 17.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/1.325, allocations: 0 / 0.4963 GB, free: 17.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/1.325, allocations: 11.97 kB / 0.4963 GB, free: 17.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/1.325, allocations: 13.36 kB / 0.4963 GB, free: 17.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/1.325, allocations: 132.7 kB / 0.4965 GB, free: 17.48 MB / 442.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.009272/1.335, allocations: 6.321 MB / 0.5026 GB, free: 16.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/1.335, allocations: 181 kB / 0.5028 GB, free: 16.16 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.865e-05/1.335, allocations: 72.88 kB / 0.5029 GB, free: 16.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.081/1.416, allocations: 48.63 MB / 0.5504 GB, free: 13.11 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002791/1.416, allocations: 180.7 kB / 0.5506 GB, free: 12.94 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 1.683e-06/1.416, allocations: 0 / 0.5506 GB, free: 12.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.0006433/1.417, allocations: 344.9 kB / 0.5509 GB, free: 12.63 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/1.417, allocations: 85.11 kB / 0.551 GB, free: 12.53 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/1.417, allocations: 273 kB / 0.5512 GB, free: 12.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/1.417, allocations: 29.14 kB / 0.5512 GB, free: 12.24 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.343e-05/1.417, allocations: 219.9 kB / 0.5515 GB, free: 12.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.829e-05/1.417, allocations: 171.2 kB / 0.5516 GB, free: 11.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.99e-05/1.417, allocations: 68.02 kB / 0.5517 GB, free: 11.85 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/1.417, allocations: 0.5183 MB / 0.5522 GB, free: 11.33 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.929e-05/1.418, allocations: 52 kB / 0.5522 GB, free: 11.29 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/1.418, allocations: 121.7 kB / 0.5524 GB, free: 11.16 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001972/1.418, allocations: 202.9 kB / 0.5526 GB, free: 10.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.418, allocations: 0 / 0.5526 GB, free: 10.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000426/1.418, allocations: 326.9 kB / 0.5529 GB, free: 10.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/1.418, allocations: 7.938 kB / 0.5529 GB, free: 10.69 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-06/1.418, allocations: 128 / 0.5529 GB, free: 10.69 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004871/1.419, allocations: 166.3 kB / 0.553 GB, free: 10.53 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-05/1.419, allocations: 23.27 kB / 0.5531 GB, free: 10.51 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/1.42, allocations: 3.027 MB / 0.556 GB, free: 7.434 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/1.421, allocations: 26.59 kB / 0.556 GB, free: 7.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/1.421, allocations: 14.48 kB / 0.556 GB, free: 7.398 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.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 9.738e-05/1.421, allocations: 174.9 kB / 0.5562 GB, free: 7.227 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/1.421, allocations: 43.33 kB / 0.5563 GB, free: 7.188 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004279/1.421, allocations: 468.2 kB / 0.5567 GB, free: 6.754 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002415/1.421, allocations: 258.1 kB / 0.5569 GB, free: 6.523 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/1.421, allocations: 0 / 0.5569 GB, free: 6.523 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/1.421, allocations: 7.984 kB / 0.557 GB, free: 6.516 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000729/1.422, allocations: 0.7991 MB / 0.5577 GB, free: 5.824 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/1.422, allocations: 0 / 0.5577 GB, free: 5.824 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/1.422, allocations: 55.8 kB / 0.5578 GB, free: 5.773 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001691/1.422, allocations: 93.05 kB / 0.5579 GB, free: 5.691 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/1.422, allocations: 3.125 kB / 0.5579 GB, free: 5.691 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003073/1.423, allocations: 0.8617 MB / 0.5587 GB, free: 4.812 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/1.423, allocations: 0 / 0.5587 GB, free: 4.812 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004707/1.423, allocations: 0.5238 MB / 0.5592 GB, free: 4.32 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/1.423, allocations: 50.66 kB / 0.5593 GB, free: 4.281 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/1.423, allocations: 11.88 kB / 0.5593 GB, free: 4.273 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.105e-05/1.423, allocations: 16.61 kB / 0.5593 GB, free: 4.262 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.471e-05/1.423, allocations: 38.73 kB / 0.5593 GB, free: 4.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/1.423, allocations: 11.8 kB / 0.5594 GB, free: 4.223 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001148/1.424, allocations: 218.8 kB / 0.5596 GB, free: 4.023 MB / 474.7 MB Notification: Performance of sort global known variables: time 5e-08/1.424, allocations: 0 / 0.5596 GB, free: 4.023 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002987/1.427, allocations: 1.236 MB / 0.5608 GB, free: 2.867 MB / 474.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.003268/1.43, allocations: 1.907 MB / 0.5626 GB, free: 1.25 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0005427/1.43, allocations: 441.5 kB / 0.5631 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/1.43, allocations: 0 / 0.5631 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001975/1.431, allocations: 152.1 kB / 0.5632 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/1.431, allocations: 126.2 kB / 0.5633 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/1.432, allocations: 0.7729 MB / 0.5641 GB, free: 15.79 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.997e-05/1.432, allocations: 109.8 kB / 0.5642 GB, free: 15.66 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 7.683e-05/1.432, allocations: 27.14 kB / 0.5642 GB, free: 15.64 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.631e-05/1.432, allocations: 31.88 kB / 0.5642 GB, free: 15.61 MB / 490.7 MB Notification: Performance of SimCode: time 9.52e-07/1.432, allocations: 0 / 0.5642 GB, free: 15.61 MB / 490.7 MB Notification: Performance of Templates: time 0.03683/1.469, allocations: 44.82 MB / 0.608 GB, free: 3.082 MB / 0.5105 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: 8.89903156994842]