Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_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.001386/0.001386, allocations: 110.2 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.001532/0.001532, allocations: 192.4 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.475/1.475, allocations: 225.6 MB / 251 MB, free: 13 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.344 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.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof")
translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 71.88 kB / 463.1 MB, free: 14.6 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1454, allocations: 58.06 MB / 0.5089 GB, free: 4.434 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002632/0.148, allocations: 1.154 MB / 0.5101 GB, free: 3.27 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001857/0.1499, allocations: 1.311 MB / 0.5114 GB, free: 1.941 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.15, allocations: 3.938 kB / 0.5114 GB, free: 1.938 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004132/0.1504, allocations: 79.55 kB / 0.5114 GB, free: 1.859 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002415/0.1506, allocations: 83.58 kB / 0.5115 GB, free: 1.777 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003561/0.151, allocations: 159.7 kB / 0.5117 GB, free: 1.621 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006098/0.1516, allocations: 475.1 kB / 0.5121 GB, free: 1.156 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.1517, allocations: 44.56 kB / 0.5122 GB, free: 1.113 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.152, allocations: 171.5 kB / 0.5123 GB, free: 0.9453 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.1523, allocations: 215.3 kB / 0.5125 GB, free: 0.7344 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.343e-05/0.1523, allocations: 24 kB / 0.5125 GB, free: 0.7109 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.83e-05/0.1524, allocations: 20 kB / 0.5126 GB, free: 0.6914 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.1525, allocations: 111.6 kB / 0.5127 GB, free: 0.582 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000132/0.1527, allocations: 119.2 kB / 0.5128 GB, free: 476 kB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.153, allocations: 278.7 kB / 0.5131 GB, free: 196 kB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.153, allocations: 0 / 0.5131 GB, free: 196 kB / 382.1 MB
Notification: Performance of FrontEnd: time 1.764e-06/0.153, allocations: 0 / 0.5131 GB, free: 196 kB / 382.1 MB
Notification: Performance of Transformations before backend: time 6.772e-06/0.153, allocations: 0 / 0.5131 GB, free: 196 kB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 33
 * Number of variables: 33
Notification: Performance of Generate backend data structure: time 0.2826/0.4356, allocations: 0.6777 MB / 0.5137 GB, free: 15.33 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.4357, allocations: 9.672 kB / 0.5137 GB, free: 15.33 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.4358, allocations: 31.84 kB / 0.5138 GB, free: 15.32 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.437, allocations: 357.8 kB / 0.5141 GB, free: 15.16 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.263e-05/0.437, allocations: 13.38 kB / 0.5141 GB, free: 15.16 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.633e-05/0.4371, allocations: 16.19 kB / 0.5141 GB, free: 15.16 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004645/0.4376, allocations: 193.4 kB / 0.5143 GB, free: 15.13 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.4376, allocations: 6.203 kB / 0.5143 GB, free: 15.13 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.4376, allocations: 8.438 kB / 0.5143 GB, free: 15.13 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.4376, allocations: 5.562 kB / 0.5143 GB, free: 15.13 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004858/0.4381, allocations: 200.2 kB / 0.5145 GB, free: 15.13 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.4396, allocations: 0.6642 MB / 0.5152 GB, free: 14.88 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006714/0.4402, allocations: 262 kB / 0.5154 GB, free: 14.86 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.4405, allocations: 124.8 kB / 0.5155 GB, free: 14.85 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.4405, allocations: 4.359 kB / 0.5155 GB, free: 14.85 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.4405, allocations: 35.84 kB / 0.5156 GB, free: 14.81 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=23): time 2.805e-06/0.4405, allocations: 0.5156 kB / 0.5156 GB, free: 14.81 MB / 382.1 MB
Notification: Performance of matching and sorting (n=23): time 0.002035/0.4426, allocations: 0.607 MB / 0.5162 GB, free: 14.75 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.4426, allocations: 60.67 kB / 0.5162 GB, free: 14.69 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009249/0.4435, allocations: 412.5 kB / 0.5166 GB, free: 14.59 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.4436, allocations: 28.61 kB / 0.5166 GB, free: 14.55 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.053e-05/0.4436, allocations: 154.9 kB / 0.5168 GB, free: 14.46 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 7.839e-05/0.4437, allocations: 89.3 kB / 0.5169 GB, free: 14.41 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.485e-05/0.4438, allocations: 49.34 kB / 0.5169 GB, free: 14.39 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001208/0.4439, allocations: 339.5 kB / 0.5173 GB, free: 14.08 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.4441, allocations: 106.3 kB / 0.5174 GB, free: 14.08 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.4443, allocations: 103.1 kB / 0.5175 GB, free: 14.08 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002349/0.4467, allocations: 0.7113 MB / 0.5181 GB, free: 14.06 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.4467, allocations: 3.938 kB / 0.5181 GB, free: 14.05 MB / 382.1 MB
Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009684/0.4476, allocations: 443.5 kB / 0.5186 GB, free: 13.99 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.4477, allocations: 6.25 kB / 0.5186 GB, free: 13.99 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.4477, allocations: 0 / 0.5186 GB, free: 13.99 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004184/0.4481, allocations: 100.7 kB / 0.5187 GB, free: 13.98 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.4483, allocations: 40.97 kB / 0.5187 GB, free: 13.98 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001948/0.4502, allocations: 1.749 MB / 0.5204 GB, free: 12.62 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/0.4507, allocations: 70.77 kB / 0.5205 GB, free: 12.6 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.4507, allocations: 4.312 kB / 0.5205 GB, free: 12.6 MB / 382.1 MB
Warning: Assuming fixed start value for the following 7 variables:
         Cff.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [1]
         M.x_scaled[2]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
         M.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
         HF.x_scaled[2]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
         HF.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
         P.x_scaled[2]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
         P.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 (25):
 * Single equations (assignments): 24
 * 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): 1 system
   {(1,5,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0002233/0.4509, allocations: 179.9 kB / 0.5207 GB, free: 12.46 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.418e-05/0.451, allocations: 29.19 kB / 0.5207 GB, free: 12.45 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.873e-05/0.4511, allocations: 46.42 kB / 0.5207 GB, free: 12.41 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4511, allocations: 3.312 kB / 0.5207 GB, free: 12.41 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.4511, allocations: 2.438 kB / 0.5207 GB, free: 12.41 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4511, allocations: 1.312 kB / 0.5207 GB, free: 12.41 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004121/0.4515, allocations: 329.5 kB / 0.5211 GB, free: 12.19 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.4515, allocations: 4 kB / 0.5211 GB, free: 12.19 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.4518, allocations: 38.05 kB / 0.5211 GB, free: 12.18 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002896/0.452, allocations: 90.19 kB / 0.5212 GB, free: 12.16 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.4521, allocations: 8.75 kB / 0.5212 GB, free: 12.16 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.4536, allocations: 1.745 MB / 0.5229 GB, free: 10.71 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4536, allocations: 1.156 kB / 0.5229 GB, free: 10.71 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.4547, allocations: 0.612 MB / 0.5235 GB, free: 10.42 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.497e-05/0.4548, allocations: 35.59 kB / 0.5235 GB, free: 10.4 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.491e-05/0.4548, allocations: 8.625 kB / 0.5235 GB, free: 10.39 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004826/0.4553, allocations: 59.61 kB / 0.5236 GB, free: 10.39 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.441e-05/0.4554, allocations: 16.11 kB / 0.5236 GB, free: 10.39 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.4554, allocations: 8.578 kB / 0.5236 GB, free: 10.38 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0009362/0.4563, allocations: 334.7 kB / 0.5239 GB, free: 10.25 MB / 382.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.4563, allocations: 0 / 0.5239 GB, free: 10.25 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0003893/0.4567, allocations: 65.33 kB / 0.524 GB, free: 10.24 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18):
 * Single equations (assignments): 17
 * 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): 1 system
   {(1,5,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001519/0.4569, allocations: 107.6 kB / 0.5241 GB, free: 10.14 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008221/0.4577, allocations: 409.7 kB / 0.5245 GB, free: 9.945 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4577, allocations: 0 / 0.5245 GB, free: 9.945 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0004148/0.4581, allocations: 267.2 kB / 0.5247 GB, free: 9.789 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004264/0.4586, allocations: 43.64 kB / 0.5248 GB, free: 9.77 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.4599, allocations: 0.6953 MB / 0.5255 GB, free: 9.406 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.4602, allocations: 0.7895 MB / 0.5262 GB, free: 8.703 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0001837/0.4604, allocations: 66.55 kB / 0.5263 GB, free: 8.703 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.696e-05/0.4605, allocations: 23.66 kB / 0.5263 GB, free: 8.691 MB / 382.1 MB
Notification: Performance of SimCode: time 3.71e-07/0.4605, allocations: 1.188 kB / 0.5263 GB, free: 8.691 MB / 382.1 MB
Notification: Performance of Templates: time 0.009514/0.47, allocations: 3.698 MB / 0.5299 GB, free: 8.484 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.makefile [Timeout 660]
(rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.235876723192632]
Failed to read output from testmodel.py, exit status != 0:
0.4786869836971164 0.49135910600000005 0.335611922
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f9546ab97b0>