Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.5169/0.5169, allocations: 111.6 MB / 131.5 MB, free: 4.934 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.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 3.938 kB / 176.6 MB, free: 8.938 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.087e-05/1.213e-05, allocations: 5.047 kB / 176.6 MB, free: 8.934 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.SimpleExamples.TestDynamicCheckValve): time 1.039/1.039, allocations: 263.1 MB / 439.7 MB, free: 14.86 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02709/1.066, allocations: 33.31 MB / 473 MB, free: 13.43 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/1.067, allocations: 8 kB / 473 MB, free: 13.42 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.0003341/1.067, allocations: 127.2 kB / 473.1 MB, free: 13.29 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002175/1.067, allocations: 158.8 kB / 473.3 MB, free: 13.14 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.01618/1.083, allocations: 10.05 MB / 483.4 MB, free: 3.039 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004058/1.084, allocations: 466.5 kB / 483.8 MB, free: 2.582 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/1.084, allocations: 142.8 kB / 483.9 MB, free: 2.445 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002655/1.084, allocations: 287.1 kB / 484.2 MB, free: 2.164 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/1.084, allocations: 119.6 kB / 484.3 MB, free: 2.047 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.496e-05/1.084, allocations: 24 kB / 484.4 MB, free: 2.023 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1948/1.279, allocations: 16.79 MB / 0.4894 GB, free: 8.012 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/1.279, allocations: 74.84 kB / 0.4895 GB, free: 8.012 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/1.279, allocations: 112.8 kB / 0.4896 GB, free: 8.012 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01397/1.293, allocations: 10.8 MB / 0.5001 GB, free: 3.027 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/1.293, allocations: 0 / 0.5001 GB, free: 3.027 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.422e-06/1.293, allocations: 0 / 0.5001 GB, free: 3.027 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.873e-06/1.293, allocations: 0 / 0.5001 GB, free: 3.027 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.002927/1.296, allocations: 1.477 MB / 0.5016 GB, free: 2.031 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/1.296, allocations: 12.98 kB / 0.5016 GB, free: 2.027 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/1.296, allocations: 51.45 kB / 0.5016 GB, free: 2.008 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/1.297, allocations: 186.1 kB / 0.5018 GB, free: 1.848 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.418e-05/1.297, allocations: 78.17 kB / 0.5019 GB, free: 1.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/1.297, allocations: 25.59 kB / 0.5019 GB, free: 1.762 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/1.297, allocations: 270.2 kB / 0.5022 GB, free: 1.578 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/1.297, allocations: 4.344 kB / 0.5022 GB, free: 1.578 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/1.297, allocations: 6.906 kB / 0.5022 GB, free: 1.574 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/1.297, allocations: 16.2 kB / 0.5022 GB, free: 1.566 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.806e-05/1.297, allocations: 104.8 kB / 0.5023 GB, free: 1.543 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.007066/1.304, allocations: 5.091 MB / 0.5073 GB, free: 15.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002237/1.304, allocations: 153.9 kB / 0.5074 GB, free: 14.87 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.368e-05/1.304, allocations: 53.12 kB / 0.5075 GB, free: 14.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06938/1.374, allocations: 43.17 MB / 0.5496 GB, free: 3.801 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/1.374, allocations: 159.2 kB / 0.5498 GB, free: 3.648 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 1.904e-06/1.374, allocations: 4 kB / 0.5498 GB, free: 3.645 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.000496/1.374, allocations: 278.4 kB / 0.55 GB, free: 3.371 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/1.375, allocations: 81.11 kB / 0.5501 GB, free: 3.273 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/1.375, allocations: 210.5 kB / 0.5503 GB, free: 3.078 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/1.375, allocations: 33.7 kB / 0.5504 GB, free: 3.039 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.123e-05/1.375, allocations: 153.1 kB / 0.5505 GB, free: 2.891 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.611e-05/1.375, allocations: 162.5 kB / 0.5507 GB, free: 2.742 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.935e-05/1.375, allocations: 64.06 kB / 0.5507 GB, free: 2.684 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.482e-05/1.375, allocations: 347 kB / 0.5511 GB, free: 2.352 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.944e-05/1.375, allocations: 43.55 kB / 0.5511 GB, free: 2.309 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.53e-05/1.375, allocations: 93.67 kB / 0.5512 GB, free: 2.211 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/1.375, allocations: 157.2 kB / 0.5513 GB, free: 2.055 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.375, allocations: 0 / 0.5513 GB, free: 2.055 MB / 474.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0002932/1.375, allocations: 243.9 kB / 0.5516 GB, free: 1.816 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/1.375, allocations: 8.125 kB / 0.5516 GB, free: 1.809 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/1.375, allocations: 7.984 kB / 0.5516 GB, free: 1.801 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003613/1.376, allocations: 123.6 kB / 0.5517 GB, free: 1.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.998e-05/1.376, allocations: 23.98 kB / 0.5517 GB, free: 1.656 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/1.377, allocations: 2.022 MB / 0.5537 GB, free: 15.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.692e-05/1.377, allocations: 31.73 kB / 0.5537 GB, free: 15.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/1.377, allocations: 12.06 kB / 0.5537 GB, free: 15.52 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.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 8.221e-05/1.377, allocations: 128.2 kB / 0.5539 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/1.377, allocations: 15.98 kB / 0.5539 GB, free: 15.37 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003149/1.378, allocations: 384.5 kB / 0.5542 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001475/1.378, allocations: 195.7 kB / 0.5544 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/1.378, allocations: 4 kB / 0.5544 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/1.378, allocations: 0 / 0.5544 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005614/1.378, allocations: 0.6155 MB / 0.555 GB, free: 14.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/1.378, allocations: 4 kB / 0.555 GB, free: 14.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001438/1.379, allocations: 60.16 kB / 0.5551 GB, free: 14.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001397/1.379, allocations: 65.59 kB / 0.5552 GB, free: 14.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/1.379, allocations: 15.98 kB / 0.5552 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002293/1.379, allocations: 0.5743 MB / 0.5557 GB, free: 13.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/1.379, allocations: 0 / 0.5557 GB, free: 13.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/1.379, allocations: 438.1 kB / 0.5562 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/1.379, allocations: 43.8 kB / 0.5562 GB, free: 12.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/1.379, allocations: 17.08 kB / 0.5562 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.582e-05/1.379, allocations: 12.06 kB / 0.5562 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/1.379, allocations: 35.92 kB / 0.5563 GB, free: 12.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/1.379, allocations: 8 kB / 0.5563 GB, free: 12.89 MB / 490.7 MB Notification: Performance of sorting global known variables: time 5.774e-05/1.38, allocations: 79.17 kB / 0.5563 GB, free: 12.82 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/1.38, allocations: 0 / 0.5563 GB, free: 12.82 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0021/1.382, allocations: 1.235 MB / 0.5575 GB, free: 11.58 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * 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.003029/1.385, allocations: 2.04 MB / 0.5595 GB, free: 9.773 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004063/1.385, allocations: 350.5 kB / 0.5599 GB, free: 9.422 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/1.385, allocations: 4 kB / 0.5599 GB, free: 9.418 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002812/1.385, allocations: 126.6 kB / 0.56 GB, free: 9.301 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/1.386, allocations: 130.6 kB / 0.5601 GB, free: 9.176 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/1.387, allocations: 0.7462 MB / 0.5608 GB, free: 8.426 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.027e-05/1.387, allocations: 109.8 kB / 0.561 GB, free: 8.297 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.746e-05/1.387, allocations: 27.84 kB / 0.561 GB, free: 8.273 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/1.387, allocations: 132.8 kB / 0.5611 GB, free: 8.145 MB / 490.7 MB Notification: Performance of SimCode: time 5.21e-07/1.387, allocations: 0 / 0.5611 GB, free: 8.145 MB / 490.7 MB Notification: Performance of Templates: time 0.04571/1.433, allocations: 50.84 MB / 0.6108 GB, free: 5.625 MB / 0.5261 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.34422552306205]