Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Pumps_valve.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 110 kB / 18.94 MB, free: 2.789 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001919/0.001919, allocations: 194.8 kB / 22.23 MB, free: 5.234 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.591/1.591, allocations: 225.6 MB / 251 MB, free: 12.99 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09941/0.09941, allocations: 22.7 MB / 329 MB, free: 2.367 MB / 254.1 MB
"
[Timeout remaining time 180]
Using package AES with version  (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve")
translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 67.89 kB / 463.1 MB, free: 14.6 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1353, allocations: 58.06 MB / 0.5089 GB, free: 4.438 MB / 382.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties.
Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Pumps_valve): time 0.3213/0.4567, allocations: 23.2 MB / 0.5316 GB, free: 7.25 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001287/0.458, allocations: 393.3 kB / 0.532 GB, free: 7.184 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.4581, allocations: 2.75 kB / 0.532 GB, free: 7.184 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000104/0.4582, allocations: 50.05 kB / 0.532 GB, free: 7.156 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002344/0.4584, allocations: 106.3 kB / 0.5321 GB, free: 7.105 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.4588, allocations: 109.9 kB / 0.5322 GB, free: 7.098 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004264/0.4592, allocations: 414.6 kB / 0.5326 GB, free: 7.008 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003509/0.4596, allocations: 208.6 kB / 0.5328 GB, free: 7 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.4598, allocations: 177.1 kB / 0.533 GB, free: 6.965 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002562/0.46, allocations: 221.6 kB / 0.5332 GB, free: 6.918 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.644e-05/0.4601, allocations: 37.41 kB / 0.5332 GB, free: 6.918 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.4602, allocations: 67.72 kB / 0.5333 GB, free: 6.918 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.164e-05/0.4603, allocations: 94.56 kB / 0.5334 GB, free: 6.898 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.4605, allocations: 188.3 kB / 0.5336 GB, free: 6.848 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005481/0.461, allocations: 451 kB / 0.534 GB, free: 6.77 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.461, allocations: 1.25 kB / 0.534 GB, free: 6.77 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.653e-06/0.461, allocations: 0 / 0.534 GB, free: 6.77 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 7.454e-06/0.461, allocations: 0 / 0.534 GB, free: 6.77 MB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 63
 * Number of variables: 63
Notification: Performance of Generate backend data structure: time 0.001301/0.4623, allocations: 0.6054 MB / 0.5346 GB, free: 6.363 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.4624, allocations: 9.875 kB / 0.5346 GB, free: 6.363 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.315e-05/0.4625, allocations: 39.8 kB / 0.5346 GB, free: 6.344 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003843/0.4629, allocations: 252.2 kB / 0.5349 GB, free: 6.172 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.4629, allocations: 21.75 kB / 0.5349 GB, free: 6.168 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.4629, allocations: 28.3 kB / 0.5349 GB, free: 6.164 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006525/0.4636, allocations: 286.4 kB / 0.5352 GB, free: 6.125 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4636, allocations: 4.125 kB / 0.5352 GB, free: 6.121 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.4636, allocations: 18.47 kB / 0.5352 GB, free: 6.117 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.4636, allocations: 5.469 kB / 0.5352 GB, free: 6.117 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006952/0.4643, allocations: 265.8 kB / 0.5355 GB, free: 6.109 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.4659, allocations: 0.774 MB / 0.5362 GB, free: 5.809 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005398/0.4665, allocations: 220.5 kB / 0.5365 GB, free: 5.781 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003727/0.4668, allocations: 132.9 kB / 0.5366 GB, free: 5.773 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.4669, allocations: 6.094 kB / 0.5366 GB, free: 5.773 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.4669, allocations: 45.12 kB / 0.5366 GB, free: 5.727 MB / 382.1 MB
Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003076/0.4672, allocations: 59.56 kB / 0.5367 GB, free: 5.711 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.4672, allocations: 0 / 0.5367 GB, free: 5.711 MB / 382.1 MB
Notification: Performance of matching and sorting (n=23): time 0.003613/0.4708, allocations: 0.7444 MB / 0.5374 GB, free: 5.602 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.4709, allocations: 52.2 kB / 0.5375 GB, free: 5.539 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.4711, allocations: 285.1 kB / 0.5377 GB, free: 5.379 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.4712, allocations: 33.39 kB / 0.5378 GB, free: 5.344 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.759e-05/0.4713, allocations: 184 kB / 0.5379 GB, free: 5.184 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.811e-05/0.4713, allocations: 82.62 kB / 0.538 GB, free: 5.121 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.106e-05/0.4714, allocations: 48.12 kB / 0.5381 GB, free: 5.094 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 7.657e-05/0.4715, allocations: 344 kB / 0.5384 GB, free: 4.762 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000268/0.4718, allocations: 104.2 kB / 0.5385 GB, free: 4.73 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.472, allocations: 103.8 kB / 0.5386 GB, free: 4.703 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005455/0.4726, allocations: 227.7 kB / 0.5388 GB, free: 4.617 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.4726, allocations: 7.938 kB / 0.5388 GB, free: 4.609 MB / 382.1 MB
Notification: Performance of matching and sorting (n=27) (initialization): time 0.00173/0.4743, allocations: 0.5 MB / 0.5393 GB, free: 4.41 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.4743, allocations: 6.359 kB / 0.5393 GB, free: 4.41 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4743, allocations: 0 / 0.5393 GB, free: 4.41 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.4755, allocations: 198.2 kB / 0.5395 GB, free: 4.359 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006255/0.4762, allocations: 88.77 kB / 0.5396 GB, free: 4.355 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/0.4796, allocations: 4.567 MB / 0.544 GB, free: 112 kB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.4799, allocations: 12 kB / 0.5441 GB, free: 112 kB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.4799, allocations: 17.91 kB / 0.5441 GB, free: 104 kB / 382.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * 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 initialization (18):
 * Single equations (assignments): 14
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 3
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 0 systems
 * Non-linear Jacobian (size): 1 system
   {1}
 * Without analytic Jacobian (size): 0 systems
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,3,100.0%), (1,3,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,3)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002182/0.4802, allocations: 145.7 kB / 0.5442 GB, free: 15.96 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.642e-05/0.4802, allocations: 28.19 kB / 0.5442 GB, free: 15.95 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.4818, allocations: 0.513 MB / 0.5447 GB, free: 15.72 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.4818, allocations: 3.594 kB / 0.5447 GB, free: 15.72 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4818, allocations: 1.375 kB / 0.5447 GB, free: 15.72 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.4818, allocations: 1.594 kB / 0.5447 GB, free: 15.72 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/0.4839, allocations: 0.8956 MB / 0.5456 GB, free: 15.22 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4839, allocations: 1.125 kB / 0.5456 GB, free: 15.22 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005708/0.4845, allocations: 91.86 kB / 0.5457 GB, free: 15.21 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0007112/0.4852, allocations: 147.6 kB / 0.5459 GB, free: 15.16 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.4852, allocations: 11.5 kB / 0.5459 GB, free: 15.16 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004623/0.4898, allocations: 4.213 MB / 0.55 GB, free: 10.88 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4898, allocations: 0 / 0.55 GB, free: 10.88 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.4915, allocations: 0.556 MB / 0.5505 GB, free: 10.37 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.4916, allocations: 34.53 kB / 0.5506 GB, free: 10.34 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.358e-05/0.4917, allocations: 8.562 kB / 0.5506 GB, free: 10.33 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.4919, allocations: 16.97 kB / 0.5506 GB, free: 10.32 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.4921, allocations: 26.25 kB / 0.5506 GB, free: 10.3 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.4921, allocations: 16.5 kB / 0.5506 GB, free: 10.29 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0003558/0.4925, allocations: 208.6 kB / 0.5508 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1.11e-07/0.4925, allocations: 4 kB / 0.5508 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0007081/0.4932, allocations: 99.89 kB / 0.5509 GB, free: 10.01 MB / 398.1 MB
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 (25):
 * Single equations (assignments): 21
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 3
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 0 systems
 * Non-linear Jacobian (size): 1 system
   {1}
 * Without analytic Jacobian (size): 0 systems
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,3,100.0%), (1,3,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,4)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0002175/0.4934, allocations: 104.5 kB / 0.551 GB, free: 9.898 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.002417/0.4958, allocations: 0.6481 MB / 0.5516 GB, free: 9.312 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4958, allocations: 0 / 0.5516 GB, free: 9.312 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001086/0.4969, allocations: 441 kB / 0.5521 GB, free: 8.898 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.4973, allocations: 58.14 kB / 0.5521 GB, free: 8.848 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/0.499, allocations: 0.6316 MB / 0.5527 GB, free: 8.23 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006681/0.4997, allocations: 0.7867 MB / 0.5535 GB, free: 7.461 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0001348/0.4998, allocations: 29.23 kB / 0.5535 GB, free: 7.441 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.985e-05/0.4999, allocations: 25.45 kB / 0.5536 GB, free: 7.418 MB / 398.1 MB
Notification: Performance of SimCode: time 7.41e-07/0.4999, allocations: 0 / 0.5536 GB, free: 7.418 MB / 398.1 MB
Notification: Performance of Templates: time 0.01572/0.5156, allocations: 5.376 MB / 0.5588 GB, free: 3.055 MB / 398.1 MB
"
[Timeout remaining time 659]
make -j1 -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.makefile [Timeout 660]
(rm -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Pumps_valve.sim & ./AES_AES.Coursework.ThermSys_component_models.Pumps_valve  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.561799394898117]
Failed to read output from testmodel.py, exit status != 0:
0.5250225318595767 0.539966066 0.075827554
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f79f35cd7b0>