Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.862/0.862, allocations: 152.6 MB / 171.4 MB, free: 6 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.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss")
translateModel(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.0005568/0.0005568, allocations: 15.97 kB / 248.5 MB, free: 5.656 MB / 206.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.1646, allocations: 33.05 MB / 281.6 MB, free: 3.578 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.TestSingularPressureLoss): time 1.572/1.736, allocations: 301.1 MB / 0.569 GB, free: 5.629 MB / 478.1 MB
Notification: Performance of NFInst.instExpressions: time 0.3004/2.037, allocations: 34.59 MB / 0.6028 GB, free: 6.043 MB / 478.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002952/2.037, allocations: 1.938 kB / 0.6028 GB, free: 6.043 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/SingularPressureLoss.mo:25:3-27: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/SingularPressureLoss.mo:28:3-29:52: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.0004423/2.037, allocations: 122.9 kB / 0.6029 GB, free: 5.988 MB / 478.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001988/2.038, allocations: 119.6 kB / 0.603 GB, free: 5.906 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.02802/2.066, allocations: 9.811 MB / 0.6126 GB, free: 1.414 MB / 478.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005197/2.066, allocations: 336.4 kB / 0.6129 GB, free: 1.211 MB / 478.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/2.066, allocations: 86.95 kB / 0.613 GB, free: 1.156 MB / 478.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/2.066, allocations: 142.1 kB / 0.6131 GB, free: 1.07 MB / 478.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/2.067, allocations: 104.5 kB / 0.6132 GB, free: 1.004 MB / 478.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.79e-05/2.067, allocations: 17.09 kB / 0.6132 GB, free: 1.004 MB / 478.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.03642/2.103, allocations: 17.91 MB / 0.6307 GB, free: 1.543 MB / 494.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001026/2.103, allocations: 43.8 kB / 0.6308 GB, free: 1.5 MB / 494.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002509/2.103, allocations: 128.2 kB / 0.6309 GB, free: 1.375 MB / 494.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0238/2.127, allocations: 8.415 MB / 0.6391 GB, free: 8.934 MB / 0.4981 GB
Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/2.127, allocations: 1.469 kB / 0.6391 GB, free: 8.934 MB / 0.4981 GB
Notification: Performance of FrontEnd: time 4.469e-06/2.127, allocations: 4.938 kB / 0.6391 GB, free: 8.93 MB / 0.4981 GB
Notification: Performance of Transformations before backend: time 1.843e-05/2.127, allocations: 0 / 0.6391 GB, free: 8.93 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: 74
 * Number of variables: 74
Notification: Performance of Generate backend data structure: time 0.004979/2.132, allocations: 1.398 MB / 0.6405 GB, free: 7.496 MB / 0.4981 GB
Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/2.132, allocations: 8.031 kB / 0.6405 GB, free: 7.488 MB / 0.4981 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.752e-05/2.132, allocations: 27.81 kB / 0.6405 GB, free: 7.461 MB / 0.4981 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/2.133, allocations: 174 kB / 0.6407 GB, free: 7.266 MB / 0.4981 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/2.133, allocations: 20.38 kB / 0.6407 GB, free: 7.246 MB / 0.4981 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/2.133, allocations: 16.52 kB / 0.6407 GB, free: 7.23 MB / 0.4981 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005045/2.133, allocations: 290.6 kB / 0.641 GB, free: 6.926 MB / 0.4981 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/2.133, allocations: 7.875 kB / 0.641 GB, free: 6.918 MB / 0.4981 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/2.133, allocations: 8.75 kB / 0.641 GB, free: 6.91 MB / 0.4981 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.646e-05/2.133, allocations: 17.62 kB / 0.641 GB, free: 6.895 MB / 0.4981 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002712/2.134, allocations: 157.2 kB / 0.6412 GB, free: 6.742 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.03971/2.173, allocations: 11.22 MB / 0.6521 GB, free: 11.38 MB / 0.5137 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003572/2.174, allocations: 110.4 kB / 0.6522 GB, free: 11.26 MB / 0.5137 GB
Notification: Performance of preOpt resolveLoops (simulation): time 9.669e-05/2.174, allocations: 62 kB / 0.6523 GB, free: 11.2 MB / 0.5137 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.158/2.332, allocations: 42.46 MB / 0.6938 GB, free: 0.7109 MB / 0.545 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/2.332, allocations: 34.56 kB / 0.6938 GB, free: 0.668 MB / 0.545 GB
Notification: Performance of pre-optimization done (n=32): time 2.555e-06/2.332, allocations: 0.9375 kB / 0.6938 GB, free: 0.668 MB / 0.545 GB
Notification: Performance of matching and sorting (n=32): time 0.000972/2.333, allocations: 328.6 kB / 0.6941 GB, free: 348 kB / 0.545 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/2.333, allocations: 51.41 kB / 0.6942 GB, free: 284 kB / 0.545 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/2.333, allocations: 211.8 kB / 0.6944 GB, free: 60 kB / 0.545 GB
Notification: Performance of collectPreVariables (initialization): time 1.943e-05/2.333, allocations: 25.7 kB / 0.6944 GB, free: 28 kB / 0.545 GB
Notification: Performance of collectInitialEqns (initialization): time 0.00013/2.333, allocations: 156.7 kB / 0.6945 GB, free: 15.87 MB / 0.5606 GB
Notification: Performance of collectInitialBindings (initialization): time 7.996e-05/2.333, allocations: 103.1 kB / 0.6946 GB, free: 15.77 MB / 0.5606 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.37e-05/2.333, allocations: 49.69 kB / 0.6947 GB, free: 15.71 MB / 0.5606 GB
Notification: Performance of setup shared object (initialization): time 0.0001401/2.333, allocations: 330.8 kB / 0.695 GB, free: 15.38 MB / 0.5606 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/2.334, allocations: 68.31 kB / 0.6951 GB, free: 15.31 MB / 0.5606 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/2.334, allocations: 117.5 kB / 0.6952 GB, free: 15.18 MB / 0.5606 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/2.334, allocations: 196.2 kB / 0.6954 GB, free: 14.98 MB / 0.5606 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/2.334, allocations: 1.625 kB / 0.6954 GB, free: 14.98 MB / 0.5606 GB
Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004676/2.334, allocations: 282.8 kB / 0.6956 GB, free: 14.69 MB / 0.5606 GB
Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/2.334, allocations: 4 kB / 0.6956 GB, free: 14.69 MB / 0.5606 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/2.334, allocations: 6.062 kB / 0.6956 GB, free: 14.68 MB / 0.5606 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0008957/2.335, allocations: 153.7 kB / 0.6958 GB, free: 14.53 MB / 0.5606 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.096e-05/2.335, allocations: 8 kB / 0.6958 GB, free: 14.52 MB / 0.5606 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005632/2.336, allocations: 0.607 MB / 0.6964 GB, free: 13.89 MB / 0.5606 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/2.336, allocations: 39.64 kB / 0.6964 GB, free: 13.85 MB / 0.5606 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/2.336, allocations: 4 kB / 0.6964 GB, free: 13.85 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 (singularPressureLoss.C2.b,singularPressureLoss.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 (11):
 * Single equations (assignments): 8
 * 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.0001566/2.336, allocations: 141.8 kB / 0.6966 GB, free: 13.7 MB / 0.5606 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.795e-05/2.336, allocations: 19.86 kB / 0.6966 GB, free: 13.68 MB / 0.5606 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007591/2.337, allocations: 0.5552 MB / 0.6971 GB, free: 13.06 MB / 0.5606 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003483/2.337, allocations: 199.1 kB / 0.6973 GB, free: 12.86 MB / 0.5606 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/2.337, allocations: 0 / 0.6973 GB, free: 12.86 MB / 0.5606 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/2.337, allocations: 0 / 0.6973 GB, free: 12.86 MB / 0.5606 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008489/2.338, allocations: 0.6578 MB / 0.698 GB, free: 12.15 MB / 0.5606 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/2.338, allocations: 4 kB / 0.698 GB, free: 12.14 MB / 0.5606 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.927e-05/2.338, allocations: 19.98 kB / 0.698 GB, free: 12.12 MB / 0.5606 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003808/2.339, allocations: 105.5 kB / 0.6981 GB, free: 12.02 MB / 0.5606 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/2.339, allocations: 4 kB / 0.6981 GB, free: 12.02 MB / 0.5606 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005287/2.339, allocations: 0.6371 MB / 0.6987 GB, free: 11.36 MB / 0.5606 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/2.339, allocations: 4.094 kB / 0.6987 GB, free: 11.35 MB / 0.5606 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003501/2.34, allocations: 301.2 kB / 0.699 GB, free: 11.04 MB / 0.5606 GB
Notification: Performance of postOpt removeConstants (simulation): time 5.895e-05/2.34, allocations: 27.84 kB / 0.699 GB, free: 11.01 MB / 0.5606 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/2.34, allocations: 17.02 kB / 0.699 GB, free: 11 MB / 0.5606 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/2.34, allocations: 4 kB / 0.6991 GB, free: 10.99 MB / 0.5606 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/2.34, allocations: 7.984 kB / 0.6991 GB, free: 10.98 MB / 0.5606 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/2.34, allocations: 3.938 kB / 0.6991 GB, free: 10.98 MB / 0.5606 GB
Notification: Performance of sorting global known variables: time 0.0002715/2.34, allocations: 241.2 kB / 0.6993 GB, free: 10.75 MB / 0.5606 GB
Notification: Performance of sort global known variables: time 8e-08/2.34, allocations: 0 / 0.6993 GB, free: 10.75 MB / 0.5606 GB
Notification: Performance of remove unused functions: time 0.003226/2.343, allocations: 1.189 MB / 0.7005 GB, free: 9.555 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 (11):
 * Single equations (assignments): 10
 * 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.005265/2.349, allocations: 1.753 MB / 0.7022 GB, free: 7.824 MB / 0.5606 GB
Notification: Performance of simCode: created initialization part: time 0.0006529/2.349, allocations: 205.4 kB / 0.7024 GB, free: 7.617 MB / 0.5606 GB
Notification: Performance of simCode: created event and clocks part: time 2.865e-06/2.349, allocations: 0 / 0.7024 GB, free: 7.617 MB / 0.5606 GB
Notification: Performance of simCode: created simulation system equations: time 0.0002324/2.35, allocations: 71.91 kB / 0.7024 GB, free: 7.547 MB / 0.5606 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008324/2.35, allocations: 124.1 kB / 0.7026 GB, free: 7.441 MB / 0.5606 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009275/2.351, allocations: 495.8 kB / 0.703 GB, free: 6.934 MB / 0.5606 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/2.352, allocations: 0.7597 MB / 0.7038 GB, free: 6.148 MB / 0.5606 GB
Notification: Performance of simCode: alias equations: time 9.071e-05/2.352, allocations: 20.06 kB / 0.7038 GB, free: 6.133 MB / 0.5606 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.514e-05/2.352, allocations: 19.44 kB / 0.7038 GB, free: 6.117 MB / 0.5606 GB
Notification: Performance of SimCode: time 3.6e-07/2.352, allocations: 4 kB / 0.7038 GB, free: 6.113 MB / 0.5606 GB
Notification: Performance of Templates: time 0.06128/2.413, allocations: 42.48 MB / 0.7453 GB, free: 12.08 MB / 0.6075 GB
"
[Timeout remaining time 657]
make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.makefile [Timeout 660]
(rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss  -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 8.678554233163595]
Failed to read output from testmodel.py, exit status != 0:
2.5898626586422324 2.832352308 0.7024703689999999
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fe2edb617b0>