Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.908/0.908, allocations: 153.8 MB / 173.4 MB, free: 4.883 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.000574/0.000574, allocations: 19.97 kB / 251 MB, free: 3.938 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.1895, allocations: 33.36 MB / 284.3 MB, free: 2.066 MB / 222.1 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.TestCheckValve): time 1.979/2.168, allocations: 307.5 MB / 0.578 GB, free: 17.36 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03485/2.203, allocations: 30.58 MB / 0.6079 GB, free: 2.781 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003061/2.204, allocations: 2.812 kB / 0.6079 GB, free: 2.781 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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:33:3-34:47: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/CheckValve.mo:38:3-39:49: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/CheckValve.mo:40:3-41:47: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.0004584/2.204, allocations: 108.1 kB / 0.608 GB, free: 2.734 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003448/2.204, allocations: 120.5 kB / 0.6081 GB, free: 2.652 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:783:9-783: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:850:9-850: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:1088:9-1088: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:69:3-69: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:69:3-69: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:167:3-170:49: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:167:3-170:49: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.02664/2.231, allocations: 9.696 MB / 0.6176 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007301/2.232, allocations: 378.2 kB / 0.6179 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/2.232, allocations: 105.3 kB / 0.618 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003225/2.232, allocations: 171.3 kB / 0.6182 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/2.232, allocations: 109.6 kB / 0.6183 GB, free: 12.2 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.354e-05/2.233, allocations: 20 kB / 0.6183 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03512/2.268, allocations: 16.76 MB / 0.6347 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001046/2.268, allocations: 47.78 kB / 0.6347 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002048/2.268, allocations: 119.5 kB / 0.6348 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02053/2.288, allocations: 8.47 MB / 0.6431 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/2.288, allocations: 0 / 0.6431 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.094e-06/2.288, allocations: 4 kB / 0.6431 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.716e-06/2.289, allocations: 0 / 0.6431 GB, free: 2.746 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00457/2.293, allocations: 1.447 MB / 0.6445 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/2.293, allocations: 12.03 kB / 0.6445 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.325e-05/2.293, allocations: 33.61 kB / 0.6446 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/2.293, allocations: 178.7 kB / 0.6447 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.782e-05/2.294, allocations: 50.08 kB / 0.6448 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/2.294, allocations: 20 kB / 0.6448 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005353/2.294, allocations: 326.5 kB / 0.6451 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/2.294, allocations: 5.594 kB / 0.6451 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/2.294, allocations: 8 kB / 0.6451 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/2.294, allocations: 13.22 kB / 0.6451 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004037/2.295, allocations: 196.4 kB / 0.6453 GB, free: 392 kB / 0.4981 GB 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.02012/2.315, allocations: 5.96 MB / 0.6512 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/2.315, allocations: 130.8 kB / 0.6513 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/2.315, allocations: 98.23 kB / 0.6514 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1732/2.488, allocations: 48.42 MB / 0.6987 GB, free: 9.668 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004422/2.489, allocations: 202.4 kB / 0.6989 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=43): time 2.063e-06/2.489, allocations: 0 / 0.6989 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of matching and sorting (n=43): time 0.001142/2.49, allocations: 448 kB / 0.6993 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/2.49, allocations: 85.09 kB / 0.6994 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/2.49, allocations: 166.4 kB / 0.6995 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/2.49, allocations: 33.7 kB / 0.6996 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/2.49, allocations: 156.6 kB / 0.6997 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/2.491, allocations: 134.8 kB / 0.6998 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.039e-05/2.491, allocations: 61.66 kB / 0.6999 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001647/2.491, allocations: 331.7 kB / 0.7002 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/2.491, allocations: 100.4 kB / 0.7003 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/2.491, allocations: 165.5 kB / 0.7005 GB, free: 7.719 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/2.493, allocations: 0.5231 MB / 0.701 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/2.493, allocations: 0 / 0.701 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006916/2.493, allocations: 363.9 kB / 0.7013 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/2.493, allocations: 8 kB / 0.7013 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/2.493, allocations: 0 / 0.7013 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005969/2.494, allocations: 126.1 kB / 0.7014 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/2.494, allocations: 29.3 kB / 0.7015 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005679/2.495, allocations: 0.6037 MB / 0.7021 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/2.495, allocations: 35.77 kB / 0.7021 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/2.495, allocations: 11.94 kB / 0.7021 GB, free: 5.973 MB / 0.5606 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.C1.a,puitsP1.C.a,sourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002023/2.495, allocations: 149.2 kB / 0.7023 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.247e-05/2.495, allocations: 23.84 kB / 0.7023 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00083/2.496, allocations: 0.4988 MB / 0.7028 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005408/2.496, allocations: 330.2 kB / 0.7031 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/2.496, allocations: 1.188 kB / 0.7031 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/2.496, allocations: 0 / 0.7031 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/2.498, allocations: 0.7534 MB / 0.7038 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/2.498, allocations: 8 kB / 0.7038 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/2.498, allocations: 28.86 kB / 0.7038 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005915/2.498, allocations: 128.7 kB / 0.704 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/2.498, allocations: 4 kB / 0.704 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005291/2.499, allocations: 0.6276 MB / 0.7046 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/2.499, allocations: 9.062 kB / 0.7046 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006789/2.5, allocations: 447.9 kB / 0.705 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.898e-05/2.5, allocations: 39.77 kB / 0.7051 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.102e-05/2.5, allocations: 11.94 kB / 0.7051 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/2.5, allocations: 11.98 kB / 0.7051 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/2.5, allocations: 17.09 kB / 0.7051 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/2.5, allocations: 12.84 kB / 0.7051 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001722/2.5, allocations: 166.8 kB / 0.7053 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/2.5, allocations: 4 kB / 0.7053 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003195/2.503, allocations: 1.224 MB / 0.7065 GB, free: 1.367 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004642/2.508, allocations: 1.737 MB / 0.7082 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007771/2.509, allocations: 309.4 kB / 0.7085 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/2.509, allocations: 0 / 0.7085 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003464/2.509, allocations: 135.9 kB / 0.7086 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007404/2.51, allocations: 118.9 kB / 0.7087 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/2.511, allocations: 0.5958 MB / 0.7093 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001866/2.511, allocations: 185.2 kB / 0.7095 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.344e-05/2.511, allocations: 24.23 kB / 0.7095 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of SimCode: time 3.41e-07/2.511, allocations: 0 / 0.7095 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of Templates: time 0.03974/2.551, allocations: 25.2 MB / 0.7341 GB, free: 5.445 MB / 0.5919 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.836331454105675] Failed to read output from testmodel.py, exit status != 0: 2.73778432328254 2.752144499 0.46051160900000004 Calling exit ...