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 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7967/0.7967, allocations: 152.6 MB / 169.6 MB, free: 15.14 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 0.0004774/0.0004774, allocations: 23.09 kB / 245.6 MB, free: 15.59 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05463/0.0551, allocations: 33.06 MB / 278.7 MB, free: 0.6289 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve): time 1.58/1.636, allocations: 301.4 MB / 0.5665 GB, free: 2.375 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0442/1.68, allocations: 35 MB / 0.6007 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/1.68, allocations: 4 kB / 0.6007 GB, free: 15.23 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16: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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51: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.0004859/1.68, allocations: 151.2 kB / 0.6008 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000416/1.681, allocations: 158.9 kB / 0.601 GB, free: 14.92 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.02319/1.704, allocations: 9.902 MB / 0.6106 GB, free: 5.004 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006529/1.705, allocations: 458.6 kB / 0.6111 GB, free: 4.551 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/1.705, allocations: 128.6 kB / 0.6112 GB, free: 4.43 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002532/1.705, allocations: 183.2 kB / 0.6114 GB, free: 4.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/1.705, allocations: 171.2 kB / 0.6115 GB, free: 4.082 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.201e-05/1.705, allocations: 28 kB / 0.6116 GB, free: 4.055 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0296/1.735, allocations: 17.9 MB / 0.6291 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001333/1.735, allocations: 67.75 kB / 0.6291 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002384/1.735, allocations: 175 kB / 0.6293 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01705/1.753, allocations: 8.513 MB / 0.6376 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.532e-05/1.753, allocations: 3.984 kB / 0.6376 GB, free: 9.352 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.193e-06/1.753, allocations: 0 / 0.6376 GB, free: 9.352 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.133e-06/1.753, allocations: 0 / 0.6376 GB, free: 9.352 MB / 0.5137 GB 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.004124/1.757, allocations: 1.599 MB / 0.6392 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/1.757, allocations: 12.03 kB / 0.6392 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.194e-05/1.757, allocations: 43.66 kB / 0.6392 GB, free: 7.641 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/1.757, allocations: 270.3 kB / 0.6395 GB, free: 7.336 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.519e-05/1.757, allocations: 50.2 kB / 0.6395 GB, free: 7.281 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/1.757, allocations: 27.98 kB / 0.6396 GB, free: 7.254 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005294/1.758, allocations: 350.8 kB / 0.6399 GB, free: 6.883 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/1.758, allocations: 3.938 kB / 0.6399 GB, free: 6.879 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/1.758, allocations: 12 kB / 0.6399 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/1.758, allocations: 15.92 kB / 0.6399 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004091/1.758, allocations: 225.8 kB / 0.6401 GB, free: 6.633 MB / 0.5137 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.02014/1.778, allocations: 10.05 MB / 0.6499 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006447/1.779, allocations: 250.8 kB / 0.6502 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/1.779, allocations: 123.1 kB / 0.6503 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3259/2.105, allocations: 85.98 MB / 0.7343 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003315/2.105, allocations: 221.2 kB / 0.7345 GB, free: 210 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.523e-06/2.105, allocations: 1.812 kB / 0.7345 GB, free: 210 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001067/2.106, allocations: 0.571 MB / 0.735 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/2.106, allocations: 83.39 kB / 0.7351 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/2.107, allocations: 250.1 kB / 0.7354 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/2.107, allocations: 28.83 kB / 0.7354 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.115e-05/2.107, allocations: 171.8 kB / 0.7355 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.506e-05/2.107, allocations: 162 kB / 0.7357 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.9e-05/2.107, allocations: 66.66 kB / 0.7358 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.435e-05/2.107, allocations: 343.7 kB / 0.7361 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/2.107, allocations: 108.8 kB / 0.7362 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/2.107, allocations: 167.3 kB / 0.7364 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/2.108, allocations: 289.2 kB / 0.7366 GB, free: 209 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/2.108, allocations: 0 / 0.7366 GB, free: 209 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006566/2.108, allocations: 434.1 kB / 0.737 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/2.108, allocations: 3.625 kB / 0.737 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/2.108, allocations: 3.5 kB / 0.737 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008827/2.109, allocations: 189 kB / 0.7372 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/2.109, allocations: 31.7 kB / 0.7373 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001777/2.111, allocations: 2.424 MB / 0.7396 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/2.111, allocations: 43.39 kB / 0.7397 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/2.111, allocations: 17.39 kB / 0.7397 GB, free: 206.7 MB / 0.5919 GB 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.0001165/2.111, allocations: 157 kB / 0.7398 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/2.111, allocations: 33.03 kB / 0.7399 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006201/2.112, allocations: 0.5453 MB / 0.7404 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004176/2.112, allocations: 362.1 kB / 0.7407 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/2.112, allocations: 0 / 0.7407 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/2.112, allocations: 0 / 0.7407 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/2.113, allocations: 0.9762 MB / 0.7417 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/2.113, allocations: 0 / 0.7417 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/2.114, allocations: 66.53 kB / 0.7418 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002942/2.114, allocations: 101 kB / 0.7419 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/2.114, allocations: 7.719 kB / 0.7419 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003152/2.114, allocations: 0.6394 MB / 0.7425 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/2.114, allocations: 3.938 kB / 0.7425 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007424/2.115, allocations: 0.6517 MB / 0.7431 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.529e-05/2.115, allocations: 131.1 kB / 0.7433 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/2.115, allocations: 15.59 kB / 0.7433 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/2.115, allocations: 18.36 kB / 0.7433 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.364e-05/2.115, allocations: 35.94 kB / 0.7433 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/2.115, allocations: 10.56 kB / 0.7433 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001457/2.116, allocations: 220.4 kB / 0.7435 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/2.116, allocations: 1.531 kB / 0.7435 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002368/2.118, allocations: 1.225 MB / 0.7447 GB, free: 204.7 MB / 0.5919 GB 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.003635/2.122, allocations: 1.748 MB / 0.7464 GB, free: 204.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007534/2.122, allocations: 464.7 kB / 0.7469 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/2.122, allocations: 0 / 0.7469 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003366/2.123, allocations: 169.5 kB / 0.7471 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006616/2.123, allocations: 126.1 kB / 0.7472 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/2.125, allocations: 0.9173 MB / 0.7481 GB, free: 203.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/2.125, allocations: 0.813 MB / 0.7489 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.427e-05/2.125, allocations: 34.67 kB / 0.7489 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of SimCode: time 3.61e-07/2.125, allocations: 6.719 kB / 0.7489 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.02753/2.152, allocations: 26.89 MB / 0.7752 GB, free: 177.8 MB / 0.5919 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=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.899467404931784] Failed to read output from testmodel.py, exit status != 0: 2.2653174188453704 2.273147796 0.5186859060000001 Calling exit ...