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.8603/0.8603, allocations: 111.6 MB / 131 MB, free: 5.078 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.304e-06/2.304e-06, allocations: 0 / 175.7 MB, free: 9.52 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.662e-05/2.892e-05, allocations: 2.312 kB / 175.7 MB, free: 9.516 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.758/1.758, allocations: 254.8 MB / 430.5 MB, free: 272 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05173/1.81, allocations: 33.27 MB / 463.8 MB, free: 14.87 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/1.81, allocations: 0 / 463.8 MB, free: 14.87 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.0004707/1.811, allocations: 131.2 kB / 463.9 MB, free: 14.74 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003669/1.811, allocations: 154.9 kB / 464.1 MB, free: 14.59 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.02659/1.838, allocations: 9.947 MB / 474 MB, free: 4.602 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.000761/1.838, allocations: 478.3 kB / 474.5 MB, free: 4.133 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/1.839, allocations: 136.8 kB / 474.6 MB, free: 4 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004543/1.839, allocations: 283.2 kB / 474.9 MB, free: 3.723 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/1.839, allocations: 123.7 kB / 475 MB, free: 3.602 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 4.821e-05/1.839, allocations: 24 kB / 475 MB, free: 3.578 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0332/1.872, allocations: 16.8 MB / 491.8 MB, free: 2.75 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/1.873, allocations: 79.67 kB / 491.9 MB, free: 2.672 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/1.873, allocations: 115.8 kB / 492 MB, free: 2.559 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2205/2.093, allocations: 10.9 MB / 0.4911 GB, free: 19.06 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/2.093, allocations: 1.188 kB / 0.4911 GB, free: 19.06 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.322e-06/2.093, allocations: 0 / 0.4911 GB, free: 19.06 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.175e-06/2.093, allocations: 0 / 0.4911 GB, free: 19.06 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.006602/2.1, allocations: 1.696 MB / 0.4928 GB, free: 18.08 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/2.1, allocations: 14.77 kB / 0.4928 GB, free: 18.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002355/2.1, allocations: 72.78 kB / 0.4929 GB, free: 18.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/2.101, allocations: 204.8 kB / 0.4931 GB, free: 17.89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.109e-05/2.101, allocations: 73.44 kB / 0.4931 GB, free: 17.83 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/2.101, allocations: 25.62 kB / 0.4932 GB, free: 17.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/2.101, allocations: 339 kB / 0.4935 GB, free: 17.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/2.101, allocations: 1.156 kB / 0.4935 GB, free: 17.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/2.101, allocations: 11.12 kB / 0.4935 GB, free: 17.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/2.101, allocations: 17.86 kB / 0.4935 GB, free: 17.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003417/2.102, allocations: 179 kB / 0.4937 GB, free: 17.71 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.01903/2.121, allocations: 6.418 MB / 0.4999 GB, free: 16.44 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005273/2.121, allocations: 209.9 kB / 0.5001 GB, free: 16.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/2.121, allocations: 94.86 kB / 0.5002 GB, free: 16.39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1724/2.294, allocations: 48.63 MB / 0.5477 GB, free: 13.38 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004679/2.294, allocations: 211.2 kB / 0.5479 GB, free: 13.19 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 1.523e-06/2.294, allocations: 0 / 0.5479 GB, free: 13.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.001153/2.295, allocations: 426.1 kB / 0.5483 GB, free: 12.84 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.436e-05/2.295, allocations: 81.11 kB / 0.5484 GB, free: 12.75 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/2.296, allocations: 318.8 kB / 0.5487 GB, free: 12.46 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/2.296, allocations: 28.77 kB / 0.5487 GB, free: 12.43 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/2.296, allocations: 225.1 kB / 0.549 GB, free: 12.24 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/2.296, allocations: 173.5 kB / 0.5491 GB, free: 12.09 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/2.296, allocations: 85.14 kB / 0.5492 GB, free: 12.03 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002937/2.296, allocations: 0.5261 MB / 0.5497 GB, free: 11.51 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/2.297, allocations: 80.55 kB / 0.5498 GB, free: 11.46 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/2.297, allocations: 153.7 kB / 0.5499 GB, free: 11.32 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004413/2.297, allocations: 264.4 kB / 0.5502 GB, free: 11.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/2.297, allocations: 0 / 0.5502 GB, free: 11.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008576/2.298, allocations: 398 kB / 0.5506 GB, free: 10.79 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/2.298, allocations: 11.92 kB / 0.5506 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/2.298, allocations: 0 / 0.5506 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009387/2.299, allocations: 180.3 kB / 0.5508 GB, free: 10.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/2.299, allocations: 28.39 kB / 0.5508 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003321/2.303, allocations: 3.184 MB / 0.5539 GB, free: 7.445 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/2.303, allocations: 39.84 kB / 0.5539 GB, free: 7.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/2.303, allocations: 7.25 kB / 0.5539 GB, free: 7.406 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 0.0001866/2.303, allocations: 192.6 kB / 0.5541 GB, free: 7.23 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.554e-05/2.303, allocations: 39.81 kB / 0.5542 GB, free: 7.191 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000879/2.304, allocations: 0.5217 MB / 0.5547 GB, free: 6.727 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005428/2.304, allocations: 312.3 kB / 0.555 GB, free: 6.469 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/2.304, allocations: 0 / 0.555 GB, free: 6.469 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/2.304, allocations: 4.875 kB / 0.555 GB, free: 6.465 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001722/2.306, allocations: 0.9005 MB / 0.5559 GB, free: 5.535 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/2.306, allocations: 0 / 0.5559 GB, free: 5.535 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003135/2.307, allocations: 59.16 kB / 0.5559 GB, free: 5.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003109/2.307, allocations: 83.56 kB / 0.556 GB, free: 5.395 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/2.307, allocations: 12.86 kB / 0.556 GB, free: 5.383 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007492/2.308, allocations: 0.8746 MB / 0.5569 GB, free: 4.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/2.308, allocations: 4.031 kB / 0.5569 GB, free: 4.477 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/2.309, allocations: 0.6223 MB / 0.5575 GB, free: 3.836 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/2.309, allocations: 55.66 kB / 0.5575 GB, free: 3.781 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.755e-05/2.309, allocations: 8 kB / 0.5575 GB, free: 3.773 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/2.309, allocations: 16.8 kB / 0.5575 GB, free: 3.762 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/2.309, allocations: 31.94 kB / 0.5576 GB, free: 3.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/2.309, allocations: 15.98 kB / 0.5576 GB, free: 3.715 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002788/2.31, allocations: 250.6 kB / 0.5578 GB, free: 3.469 MB / 474.7 MB Notification: Performance of sort global known variables: time 1e-07/2.31, allocations: 4.031 kB / 0.5578 GB, free: 3.465 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004957/2.314, allocations: 1.231 MB / 0.559 GB, free: 2.23 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.008927/2.323, allocations: 1.905 MB / 0.5609 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001231/2.325, allocations: 0.493 MB / 0.5614 GB, free: 52 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/2.325, allocations: 1.641 kB / 0.5614 GB, free: 52 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004937/2.325, allocations: 178.8 kB / 0.5616 GB, free: 15.88 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008623/2.326, allocations: 138.9 kB / 0.5617 GB, free: 15.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/2.328, allocations: 0.7692 MB / 0.5624 GB, free: 14.97 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/2.328, allocations: 200.3 kB / 0.5626 GB, free: 14.75 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0001254/2.328, allocations: 32.25 kB / 0.5627 GB, free: 14.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.118e-05/2.328, allocations: 33.38 kB / 0.5627 GB, free: 14.7 MB / 490.7 MB Notification: Performance of SimCode: time 9.82e-07/2.328, allocations: 0 / 0.5627 GB, free: 14.7 MB / 490.7 MB Notification: Performance of Templates: time 0.07427/2.402, allocations: 44.81 MB / 0.6064 GB, free: 2.172 MB / 0.5105 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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 14.419061940978281]