Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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.001601/0.001601, allocations: 110 kB / 18.93 MB, free: 2.945 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.001578/0.001578, allocations: 192.3 kB / 22.23 MB, free: 5.16 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.519/1.519, allocations: 225.6 MB / 251 MB, free: 13.01 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.09953/0.09953, allocations: 22.7 MB / 329 MB, free: 2.363 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.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002")
translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002571/0.002571, allocations: 67.83 kB / 463.1 MB, free: 14.61 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1696/0.1722, allocations: 58.06 MB / 0.5089 GB, free: 4.449 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.005476/0.1777, allocations: 3.373 MB / 0.5122 GB, free: 1.047 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00248/0.1801, allocations: 0.9508 MB / 0.5132 GB, free: 92 kB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003117/0.1804, allocations: 15.88 kB / 0.5132 GB, free: 76 kB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.2642/0.4447, allocations: 101.2 kB / 0.5133 GB, free: 11.88 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0007506/0.4454, allocations: 258.8 kB / 0.5135 GB, free: 11.88 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005719/0.446, allocations: 191.2 kB / 0.5137 GB, free: 11.88 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001183/0.4472, allocations: 1.246 MB / 0.5149 GB, free: 11.87 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0007073/0.4479, allocations: 0.6582 MB / 0.5156 GB, free: 11.82 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004825/0.4484, allocations: 492.7 kB / 0.516 GB, free: 11.79 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0006377/0.449, allocations: 0.5861 MB / 0.5166 GB, free: 11.72 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001579/0.4492, allocations: 133 kB / 0.5167 GB, free: 11.72 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.4494, allocations: 133.1 kB / 0.5169 GB, free: 11.72 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0003067/0.4497, allocations: 397.7 kB / 0.5172 GB, free: 11.69 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004717/0.4501, allocations: 0.5352 MB / 0.5178 GB, free: 11.57 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001508/0.4516, allocations: 1.47 MB / 0.5192 GB, free: 11.32 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.4516, allocations: 0 / 0.5192 GB, free: 11.32 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.433e-06/0.4516, allocations: 0 / 0.5192 GB, free: 11.32 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.711e-05/0.4517, allocations: 0.6562 kB / 0.5192 GB, free: 11.32 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: 182
 * Number of variables: 182
Notification: Performance of Generate backend data structure: time 0.002728/0.4544, allocations: 1.229 MB / 0.5204 GB, free: 10.65 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.4544, allocations: 9.531 kB / 0.5204 GB, free: 10.65 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.4546, allocations: 96 kB / 0.5205 GB, free: 10.6 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008553/0.4555, allocations: 0.5084 MB / 0.521 GB, free: 10.28 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.251e-05/0.4556, allocations: 78.11 kB / 0.5211 GB, free: 10.23 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.4557, allocations: 87.81 kB / 0.5212 GB, free: 10.2 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001664/0.4574, allocations: 0.9265 MB / 0.5221 GB, free: 9.82 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.4574, allocations: 0 / 0.5221 GB, free: 9.82 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.189e-05/0.4575, allocations: 30.06 kB / 0.5221 GB, free: 9.797 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.4575, allocations: 17.88 kB / 0.5221 GB, free: 9.797 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.4588, allocations: 0.8086 MB / 0.5229 GB, free: 9.488 MB / 382.1 MB
Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(pipeline.fluidStream.w) = 0.0 -> 0.0 = 0.0
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00555/0.4644, allocations: 3.917 MB / 0.5267 GB, free: 7.043 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002712/0.4671, allocations: 1.011 MB / 0.5277 GB, free: 6.715 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005896/0.4677, allocations: 407.8 kB / 0.5281 GB, free: 6.539 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.77e-05/0.4677, allocations: 14.92 kB / 0.5281 GB, free: 6.535 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.4677, allocations: 37.09 kB / 0.5281 GB, free: 6.492 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=58): time 2.394e-06/0.4677, allocations: 0 / 0.5281 GB, free: 6.492 MB / 382.1 MB
Notification: Performance of matching and sorting (n=58): time 0.003757/0.4715, allocations: 1.613 MB / 0.5297 GB, free: 5.824 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.4715, allocations: 59.66 kB / 0.5298 GB, free: 5.758 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005083/0.472, allocations: 414.9 kB / 0.5302 GB, free: 5.547 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.784e-05/0.4721, allocations: 36.55 kB / 0.5302 GB, free: 5.508 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.4723, allocations: 334.9 kB / 0.5305 GB, free: 5.242 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002111/0.4725, allocations: 238.3 kB / 0.5308 GB, free: 5.062 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002334/0.4727, allocations: 126.4 kB / 0.5309 GB, free: 5 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 9.557e-05/0.4728, allocations: 371.1 kB / 0.5312 GB, free: 4.66 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006657/0.4735, allocations: 461.8 kB / 0.5317 GB, free: 4.469 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006547/0.4742, allocations: 0.4947 MB / 0.5322 GB, free: 4.238 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.007071/0.4812, allocations: 2.358 MB / 0.5345 GB, free: 3.469 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.4812, allocations: 0 / 0.5345 GB, free: 3.469 MB / 382.1 MB
Notification: Performance of matching and sorting (n=89) (initialization): time 0.002486/0.4837, allocations: 1.346 MB / 0.5358 GB, free: 2.848 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.4837, allocations: 10.09 kB / 0.5358 GB, free: 2.844 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.4837, allocations: 1.656 kB / 0.5358 GB, free: 2.844 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.4848, allocations: 338.2 kB / 0.5361 GB, free: 2.688 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008694/0.4857, allocations: 192.3 kB / 0.5363 GB, free: 2.672 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.4968, allocations: 14.12 MB / 0.5501 GB, free: 4.785 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000912/0.4977, allocations: 79.69 kB / 0.5501 GB, free: 4.727 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002121/0.4979, allocations: 20.91 kB / 0.5502 GB, free: 4.723 MB / 398.1 MB
Warning: Assuming fixed start value for the following 2 variables:
         CH.Ec:VARIABLE(flow=false fixed = true )  type: Real
         CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = \"K\" fixed = true nominal = 300.0 )  \"outlet fluid temp\" type: Real
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 7
 * Number of states: 0 ()
 * Number of discrete variables: 1 (Hon.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (79):
 * Single equations (assignments): 69
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 10
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 10 systems
   {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0008853/0.4988, allocations: 282.4 kB / 0.5504 GB, free: 4.5 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000248/0.4991, allocations: 53.8 kB / 0.5505 GB, free: 4.473 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/0.5016, allocations: 1.137 MB / 0.5516 GB, free: 3.754 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.5016, allocations: 5 kB / 0.5516 GB, free: 3.754 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/0.5016, allocations: 8.5 kB / 0.5516 GB, free: 3.75 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.5016, allocations: 5.016 kB / 0.5516 GB, free: 3.746 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004187/0.5058, allocations: 2.1 MB / 0.5537 GB, free: 2.336 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.5058, allocations: 1.156 kB / 0.5537 GB, free: 2.336 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.5069, allocations: 166.1 kB / 0.5538 GB, free: 2.301 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0009491/0.5078, allocations: 309.4 kB / 0.5541 GB, free: 2.102 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.508, allocations: 35.89 kB / 0.5542 GB, free: 2.082 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0133/0.5213, allocations: 13.7 MB / 0.5675 GB, free: 4.41 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.929e-06/0.5213, allocations: 5.375 kB / 0.5675 GB, free: 4.406 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004298/0.5256, allocations: 1.595 MB / 0.5691 GB, free: 3.418 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003706/0.5259, allocations: 71.86 kB / 0.5692 GB, free: 3.363 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/0.5262, allocations: 30.38 kB / 0.5692 GB, free: 3.348 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006217/0.5268, allocations: 38.98 kB / 0.5692 GB, free: 3.32 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.527, allocations: 59 kB / 0.5693 GB, free: 3.281 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.241e-05/0.5271, allocations: 19.86 kB / 0.5693 GB, free: 3.273 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0005031/0.5276, allocations: 294.4 kB / 0.5696 GB, free: 3.09 MB / 414.1 MB
Notification: Performance of sort global known variables: time 9.1e-08/0.5276, allocations: 0 / 0.5696 GB, free: 3.09 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.00159/0.5292, allocations: 298.9 kB / 0.5699 GB, free: 3.031 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 5
 * Number of states: 22 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3])
 * 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 (49):
 * Single equations (assignments): 39
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 10
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 10 systems
   {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0002874/0.5295, allocations: 139.7 kB / 0.57 GB, free: 2.918 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.003421/0.5329, allocations: 2.019 MB / 0.572 GB, free: 1.293 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.5329, allocations: 3.188 kB / 0.572 GB, free: 1.293 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002025/0.5349, allocations: 1.54 MB / 0.5735 GB, free: 15.9 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.5361, allocations: 168 kB / 0.5736 GB, free: 15.82 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006493/0.5426, allocations: 3.092 MB / 0.5767 GB, free: 13.7 MB / 430.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009707/0.5435, allocations: 1.009 MB / 0.5776 GB, free: 12.66 MB / 430.1 MB
Notification: Performance of simCode: alias equations: time 0.0006931/0.5442, allocations: 168.6 kB / 0.5778 GB, free: 12.5 MB / 430.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002258/0.5445, allocations: 43.44 kB / 0.5779 GB, free: 12.45 MB / 430.1 MB
Notification: Performance of SimCode: time 1.082e-06/0.5445, allocations: 0 / 0.5779 GB, free: 12.45 MB / 430.1 MB
Notification: Performance of Templates: time 0.02828/0.5727, allocations: 13.66 MB / 0.5912 GB, free: 14.95 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile [Timeout 660]
(rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.8853142485022545]
Failed to read output from testmodel.py, exit status != 0:
0.5834278948605061 0.5965443939999999 0.14180522899999995
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f7e313bd7b0>