Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.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.001373/0.001373, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.001415/0.001415, allocations: 192.2 kB / 22.23 MB, free: 5.133 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.751/1.751, allocations: 225.6 MB / 251 MB, free: 13.03 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.1005/0.1005, 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.Tuning_brushup.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof")
translateModel(AES.Coursework.Tuning_brushup.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 59.91 kB / 463.1 MB, free: 14.63 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1544, allocations: 58.06 MB / 0.5089 GB, free: 4.461 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002986/0.1574, allocations: 1.328 MB / 0.5102 GB, free: 3.125 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00231/0.1597, allocations: 1.412 MB / 0.5116 GB, free: 1.695 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.1598, allocations: 4 kB / 0.5116 GB, free: 1.691 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003908/0.1602, allocations: 107.3 kB / 0.5117 GB, free: 1.586 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002989/0.1605, allocations: 127.4 kB / 0.5118 GB, free: 1.461 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004854/0.161, allocations: 235.6 kB / 0.5121 GB, free: 1.23 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0008212/0.1618, allocations: 0.6199 MB / 0.5127 GB, free: 0.6094 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.162, allocations: 52.89 kB / 0.5127 GB, free: 0.5586 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003025/0.1623, allocations: 239.3 kB / 0.513 GB, free: 332 kB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000365/0.1626, allocations: 263 kB / 0.5132 GB, free: 68 kB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.879e-05/0.1627, allocations: 24 kB / 0.5132 GB, free: 44 kB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.604e-05/0.1628, allocations: 28 kB / 0.5133 GB, free: 16 kB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.2875/0.4503, allocations: 127.2 kB / 0.5134 GB, free: 12.41 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003128/0.4506, allocations: 146 kB / 0.5135 GB, free: 12.38 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006236/0.4512, allocations: 336.4 kB / 0.5138 GB, free: 12.32 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4512, allocations: 0.5312 kB / 0.5138 GB, free: 12.32 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.472e-06/0.4512, allocations: 3.062 kB / 0.5138 GB, free: 12.32 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 2.901e-05/0.4513, allocations: 0 / 0.5138 GB, free: 12.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: 40
 * Number of variables: 40
Notification: Performance of Generate backend data structure: time 0.002882/0.4542, allocations: 0.7965 MB / 0.5146 GB, free: 11.92 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.4542, allocations: 9.375 kB / 0.5146 GB, free: 11.92 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.4543, allocations: 46.19 kB / 0.5147 GB, free: 11.9 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.4557, allocations: 430.1 kB / 0.5151 GB, free: 11.72 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/0.4557, allocations: 13.95 kB / 0.5151 GB, free: 11.72 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.805e-05/0.4558, allocations: 19.22 kB / 0.5151 GB, free: 11.72 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.4563, allocations: 213.4 kB / 0.5153 GB, free: 11.69 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.4563, allocations: 3.938 kB / 0.5153 GB, free: 11.68 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.4563, allocations: 6.031 kB / 0.5153 GB, free: 11.68 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.4563, allocations: 7.688 kB / 0.5153 GB, free: 11.68 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004832/0.4568, allocations: 233.6 kB / 0.5156 GB, free: 11.68 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.4583, allocations: 0.7231 MB / 0.5163 GB, free: 11.43 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0007249/0.459, allocations: 321.5 kB / 0.5166 GB, free: 11.41 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.4593, allocations: 129.2 kB / 0.5167 GB, free: 11.4 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.4593, allocations: 3.25 kB / 0.5167 GB, free: 11.4 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.4593, allocations: 38.78 kB / 0.5167 GB, free: 11.36 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=26): time 2.485e-06/0.4593, allocations: 2.156 kB / 0.5167 GB, free: 11.36 MB / 382.1 MB
Notification: Performance of matching and sorting (n=26): time 0.001982/0.4613, allocations: 0.6363 MB / 0.5174 GB, free: 11.28 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.4613, allocations: 58.03 kB / 0.5174 GB, free: 11.21 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/0.4627, allocations: 0.5046 MB / 0.5179 GB, free: 11.09 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.4627, allocations: 30.14 kB / 0.5179 GB, free: 11.05 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.4628, allocations: 176.3 kB / 0.5181 GB, free: 10.96 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.389e-05/0.4629, allocations: 104.5 kB / 0.5182 GB, free: 10.89 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.463, allocations: 48.38 kB / 0.5182 GB, free: 10.88 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 8.815e-05/0.4631, allocations: 348.5 kB / 0.5186 GB, free: 10.56 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.4634, allocations: 112.8 kB / 0.5187 GB, free: 10.55 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.4635, allocations: 117.5 kB / 0.5188 GB, free: 10.55 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002222/0.4658, allocations: 0.7135 MB / 0.5195 GB, free: 10.53 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4658, allocations: 5.031 kB / 0.5195 GB, free: 10.52 MB / 382.1 MB
Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008919/0.4667, allocations: 477.4 kB / 0.52 GB, free: 10.45 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.4667, allocations: 5.531 kB / 0.52 GB, free: 10.45 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.758e-06/0.4667, allocations: 0 / 0.52 GB, free: 10.45 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0003927/0.4671, allocations: 112.6 kB / 0.5201 GB, free: 10.43 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.4673, allocations: 41.23 kB / 0.5201 GB, free: 10.43 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/0.4696, allocations: 2.995 MB / 0.523 GB, free: 7.965 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005544/0.4702, allocations: 81.25 kB / 0.5231 GB, free: 7.953 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/0.4702, allocations: 8.906 kB / 0.5231 GB, free: 7.953 MB / 382.1 MB
Warning: Assuming fixed start value for the following 7 variables:
         Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [1]
         Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [1]
         Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [1]
         Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
         Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
         Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
         Process_1.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
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 (27):
 * Single equations (assignments): 25
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * 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): 2 systems
   {(1,3,100.0%), (1,3,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0002383/0.4704, allocations: 186.5 kB / 0.5233 GB, free: 7.828 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.862e-05/0.4705, allocations: 36.23 kB / 0.5233 GB, free: 7.809 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.4706, allocations: 60.19 kB / 0.5234 GB, free: 7.797 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.4706, allocations: 2.125 kB / 0.5234 GB, free: 7.797 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.4706, allocations: 2.188 kB / 0.5234 GB, free: 7.797 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.4706, allocations: 1.219 kB / 0.5234 GB, free: 7.797 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004699/0.4711, allocations: 366.6 kB / 0.5237 GB, free: 7.633 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.4711, allocations: 5.531 kB / 0.5237 GB, free: 7.633 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.4713, allocations: 29.72 kB / 0.5238 GB, free: 7.633 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003318/0.4717, allocations: 111.6 kB / 0.5239 GB, free: 7.613 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.4717, allocations: 12.84 kB / 0.5239 GB, free: 7.613 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002575/0.4743, allocations: 2.992 MB / 0.5268 GB, free: 5.004 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4743, allocations: 0 / 0.5268 GB, free: 5.004 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.4756, allocations: 0.6528 MB / 0.5275 GB, free: 4.688 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.4757, allocations: 51.52 kB / 0.5275 GB, free: 4.656 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.759e-05/0.4758, allocations: 8.75 kB / 0.5275 GB, free: 4.652 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/0.4763, allocations: 68.55 kB / 0.5276 GB, free: 4.648 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.4764, allocations: 21.34 kB / 0.5276 GB, free: 4.645 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.4765, allocations: 11.19 kB / 0.5276 GB, free: 4.641 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.001188/0.4777, allocations: 405.5 kB / 0.528 GB, free: 4.496 MB / 382.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.4777, allocations: 3.938 kB / 0.528 GB, free: 4.492 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0005107/0.4782, allocations: 80.08 kB / 0.5281 GB, free: 4.473 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.x_scaled[1])
 * 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 (20):
 * Single equations (assignments): 18
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * 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): 2 systems
   {(1,3,100.0%), (1,3,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.000176/0.4783, allocations: 106.4 kB / 0.5282 GB, free: 4.379 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.001115/0.4795, allocations: 0.532 MB / 0.5287 GB, free: 4.066 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4795, allocations: 3.938 kB / 0.5287 GB, free: 4.062 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005218/0.48, allocations: 388.7 kB / 0.5291 GB, free: 3.793 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000556/0.4805, allocations: 68.47 kB / 0.5291 GB, free: 3.766 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.4824, allocations: 0.7876 MB / 0.5299 GB, free: 3.352 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.4829, allocations: 0.8215 MB / 0.5307 GB, free: 2.645 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0002787/0.4832, allocations: 70.86 kB / 0.5308 GB, free: 2.641 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 9.134e-05/0.4833, allocations: 23.66 kB / 0.5308 GB, free: 2.633 MB / 382.1 MB
Notification: Performance of SimCode: time 4.91e-07/0.4833, allocations: 0 / 0.5308 GB, free: 2.633 MB / 382.1 MB
Notification: Performance of Templates: time 0.01294/0.4962, allocations: 4.429 MB / 0.5351 GB, free: 2.375 MB / 382.1 MB
"
[Timeout remaining time 659]
make -j1 -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.makefile [Timeout 660]
(rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.Exploiting_2dof  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.626375931315124]
Failed to read output from testmodel.py, exit status != 0:
0.5057766400277615 0.5233475519999999 0.06824585700000001
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f06b020d7b0>