Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.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.8583/0.8583, allocations: 152.6 MB / 171.4 MB, free: 6.004 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.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve")
translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.0005365/0.0005365, allocations: 19.92 kB / 248.5 MB, free: 5.652 MB / 206.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1556, allocations: 33.06 MB / 281.6 MB, free: 3.566 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.TestControlValve): time 1.556/1.712, allocations: 301.2 MB / 0.5691 GB, free: 5.527 MB / 478.1 MB
Notification: Performance of NFInst.instExpressions: time 0.2583/1.97, allocations: 34.92 MB / 0.6032 GB, free: 5.656 MB / 478.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002014/1.97, allocations: 4.75 kB / 0.6032 GB, free: 5.656 MB / 478.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/ControlValve.mo:45:3-47:43: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/ControlValve.mo:48:3-50:38: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.0004681/1.971, allocations: 189.2 kB / 0.6034 GB, free: 5.582 MB / 478.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000215/1.971, allocations: 160 kB / 0.6035 GB, free: 5.504 MB / 478.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.02536/1.996, allocations: 9.992 MB / 0.6133 GB, free: 0.8828 MB / 478.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005311/1.997, allocations: 393.8 kB / 0.6137 GB, free: 0.6523 MB / 478.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/1.997, allocations: 106.8 kB / 0.6138 GB, free: 0.5859 MB / 478.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000207/1.997, allocations: 171.5 kB / 0.6139 GB, free: 500 kB / 478.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001765/1.997, allocations: 177.5 kB / 0.6141 GB, free: 400 kB / 478.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.108e-05/1.997, allocations: 19.31 kB / 0.6141 GB, free: 400 kB / 478.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.03448/2.032, allocations: 17.99 MB / 0.6317 GB, free: 0.5625 MB / 494.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001689/2.032, allocations: 75.64 kB / 0.6318 GB, free: 500 kB / 494.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002643/2.032, allocations: 163.1 kB / 0.6319 GB, free: 336 kB / 494.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.02061/2.053, allocations: 8.544 MB / 0.6403 GB, free: 7.758 MB / 0.4981 GB
Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/2.053, allocations: 0.9062 kB / 0.6403 GB, free: 7.758 MB / 0.4981 GB
Notification: Performance of FrontEnd: time 1.383e-06/2.053, allocations: 0 / 0.6403 GB, free: 7.758 MB / 0.4981 GB
Notification: Performance of Transformations before backend: time 7.384e-06/2.053, allocations: 0 / 0.6403 GB, free: 7.758 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: 77
 * Number of variables: 77
Notification: Performance of Generate backend data structure: time 0.004214/2.057, allocations: 1.51 MB / 0.6417 GB, free: 6.211 MB / 0.4981 GB
Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/2.057, allocations: 8.031 kB / 0.6418 GB, free: 6.203 MB / 0.4981 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.722e-05/2.057, allocations: 49.75 kB / 0.6418 GB, free: 6.156 MB / 0.4981 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/2.058, allocations: 220.8 kB / 0.642 GB, free: 5.918 MB / 0.4981 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/2.058, allocations: 20.38 kB / 0.642 GB, free: 5.898 MB / 0.4981 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/2.058, allocations: 16 kB / 0.642 GB, free: 5.883 MB / 0.4981 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005158/2.058, allocations: 329.2 kB / 0.6424 GB, free: 5.539 MB / 0.4981 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/2.058, allocations: 1.469 kB / 0.6424 GB, free: 5.539 MB / 0.4981 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/2.058, allocations: 12.66 kB / 0.6424 GB, free: 5.527 MB / 0.4981 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/2.058, allocations: 7.984 kB / 0.6424 GB, free: 5.52 MB / 0.4981 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/2.059, allocations: 213.7 kB / 0.6426 GB, free: 5.312 MB / 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.0381/2.097, allocations: 11.34 MB / 0.6537 GB, free: 9.82 MB / 0.5137 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.000218/2.097, allocations: 122.5 kB / 0.6538 GB, free: 9.691 MB / 0.5137 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/2.097, allocations: 88.83 kB / 0.6539 GB, free: 9.602 MB / 0.5137 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.1554/2.252, allocations: 42.47 MB / 0.6953 GB, free: 15.09 MB / 0.5606 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/2.252, allocations: 38.56 kB / 0.6954 GB, free: 15.05 MB / 0.5606 GB
Notification: Performance of pre-optimization done (n=34): time 1.814e-06/2.252, allocations: 0 / 0.6954 GB, free: 15.05 MB / 0.5606 GB
Notification: Performance of matching and sorting (n=34): time 0.001175/2.254, allocations: 418.4 kB / 0.6958 GB, free: 14.63 MB / 0.5606 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/2.254, allocations: 60 kB / 0.6958 GB, free: 14.56 MB / 0.5606 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004656/2.254, allocations: 360.4 kB / 0.6962 GB, free: 14.19 MB / 0.5606 GB
Notification: Performance of collectPreVariables (initialization): time 2.215e-05/2.254, allocations: 25.7 kB / 0.6962 GB, free: 14.16 MB / 0.5606 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001543/2.254, allocations: 184.7 kB / 0.6964 GB, free: 13.97 MB / 0.5606 GB
Notification: Performance of collectInitialBindings (initialization): time 9.647e-05/2.254, allocations: 126.8 kB / 0.6965 GB, free: 13.85 MB / 0.5606 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.279e-05/2.255, allocations: 41.7 kB / 0.6965 GB, free: 13.8 MB / 0.5606 GB
Notification: Performance of setup shared object (initialization): time 0.0001646/2.255, allocations: 350.8 kB / 0.6969 GB, free: 13.45 MB / 0.5606 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/2.255, allocations: 95.59 kB / 0.697 GB, free: 13.36 MB / 0.5606 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/2.255, allocations: 145.6 kB / 0.6971 GB, free: 13.2 MB / 0.5606 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/2.255, allocations: 251.7 kB / 0.6973 GB, free: 12.95 MB / 0.5606 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/2.255, allocations: 0 / 0.6973 GB, free: 12.95 MB / 0.5606 GB
Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005452/2.256, allocations: 349.5 kB / 0.6977 GB, free: 12.59 MB / 0.5606 GB
Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/2.256, allocations: 8 kB / 0.6977 GB, free: 12.59 MB / 0.5606 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/2.256, allocations: 0 / 0.6977 GB, free: 12.59 MB / 0.5606 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0008799/2.257, allocations: 140.8 kB / 0.6978 GB, free: 12.45 MB / 0.5606 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.167e-05/2.257, allocations: 11.98 kB / 0.6978 GB, free: 12.43 MB / 0.5606 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006328/2.257, allocations: 0.6159 MB / 0.6984 GB, free: 11.79 MB / 0.5606 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/2.258, allocations: 23.81 kB / 0.6985 GB, free: 11.77 MB / 0.5606 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/2.258, allocations: 8.062 kB / 0.6985 GB, free: 11.76 MB / 0.5606 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * Number of states: 0 ()
 * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.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 (13):
 * Single equations (assignments): 10
 * 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.0002047/2.258, allocations: 166.3 kB / 0.6986 GB, free: 11.59 MB / 0.5606 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.07e-05/2.258, allocations: 31.77 kB / 0.6986 GB, free: 11.56 MB / 0.5606 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000909/2.259, allocations: 0.6303 MB / 0.6993 GB, free: 10.86 MB / 0.5606 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004733/2.259, allocations: 263.3 kB / 0.6995 GB, free: 10.59 MB / 0.5606 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/2.259, allocations: 4.562 kB / 0.6995 GB, free: 10.59 MB / 0.5606 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/2.259, allocations: 0 / 0.6995 GB, free: 10.59 MB / 0.5606 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/2.26, allocations: 0.7925 MB / 0.7003 GB, free: 9.746 MB / 0.5606 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/2.26, allocations: 2.125 kB / 0.7003 GB, free: 9.746 MB / 0.5606 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.119e-05/2.261, allocations: 19.98 kB / 0.7003 GB, free: 9.727 MB / 0.5606 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003766/2.261, allocations: 104.8 kB / 0.7004 GB, free: 9.621 MB / 0.5606 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/2.261, allocations: 4 kB / 0.7004 GB, free: 9.617 MB / 0.5606 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005914/2.262, allocations: 0.6478 MB / 0.7011 GB, free: 8.945 MB / 0.5606 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/2.262, allocations: 64 / 0.7011 GB, free: 8.945 MB / 0.5606 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006091/2.262, allocations: 390.5 kB / 0.7014 GB, free: 8.547 MB / 0.5606 GB
Notification: Performance of postOpt removeConstants (simulation): time 9.623e-05/2.262, allocations: 39.73 kB / 0.7015 GB, free: 8.508 MB / 0.5606 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.232e-05/2.262, allocations: 16.69 kB / 0.7015 GB, free: 8.492 MB / 0.5606 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/2.262, allocations: 0 / 0.7015 GB, free: 8.492 MB / 0.5606 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.657e-05/2.262, allocations: 12.92 kB / 0.7015 GB, free: 8.48 MB / 0.5606 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/2.262, allocations: 8 kB / 0.7015 GB, free: 8.473 MB / 0.5606 GB
Notification: Performance of sorting global known variables: time 0.0004006/2.263, allocations: 335.1 kB / 0.7018 GB, free: 8.145 MB / 0.5606 GB
Notification: Performance of sort global known variables: time 8e-08/2.263, allocations: 0 / 0.7018 GB, free: 8.145 MB / 0.5606 GB
Notification: Performance of remove unused functions: time 0.00306/2.266, allocations: 1.22 MB / 0.703 GB, free: 6.922 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: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (13):
 * Single equations (assignments): 12
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * 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.004855/2.271, allocations: 1.76 MB / 0.7047 GB, free: 5.188 MB / 0.5606 GB
Notification: Performance of simCode: created initialization part: time 0.0007024/2.271, allocations: 253.5 kB / 0.705 GB, free: 4.934 MB / 0.5606 GB
Notification: Performance of simCode: created event and clocks part: time 2.715e-06/2.271, allocations: 1.031 kB / 0.705 GB, free: 4.934 MB / 0.5606 GB
Notification: Performance of simCode: created simulation system equations: time 0.0003151/2.272, allocations: 113.4 kB / 0.7051 GB, free: 4.824 MB / 0.5606 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008031/2.273, allocations: 130.5 kB / 0.7052 GB, free: 4.715 MB / 0.5606 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/2.274, allocations: 0.6722 MB / 0.7059 GB, free: 4.016 MB / 0.5606 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/2.274, allocations: 0.8106 MB / 0.7067 GB, free: 3.18 MB / 0.5606 GB
Notification: Performance of simCode: alias equations: time 0.0001132/2.274, allocations: 30.16 kB / 0.7067 GB, free: 3.152 MB / 0.5606 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.341e-05/2.274, allocations: 23.44 kB / 0.7067 GB, free: 3.129 MB / 0.5606 GB
Notification: Performance of SimCode: time 3.31e-07/2.274, allocations: 0 / 0.7067 GB, free: 3.129 MB / 0.5606 GB
Notification: Performance of Templates: time 0.06251/2.337, allocations: 43.34 MB / 0.749 GB, free: 8.238 MB / 0.6075 GB
"
[Timeout remaining time 658]
make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.makefile [Timeout 660]
(rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve  -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 8.356094781309366]
Failed to read output from testmodel.py, exit status != 0:
2.487192156724632 2.703728548 0.648221761
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f874f7397b0>