Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.001381/0.001381, 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.001579/0.001579, allocations: 185 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.489/1.489, 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.09957/0.09957, allocations: 22.7 MB / 329 MB, free: 2.332 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.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable")
translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002764/0.002764, allocations: 67.89 kB / 463.1 MB, free: 14.6 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.162, allocations: 58.06 MB / 0.5089 GB, free: 4.43 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.004295/0.1663, allocations: 1.77 MB / 0.5107 GB, free: 2.641 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00183/0.1682, allocations: 0.6973 MB / 0.5114 GB, free: 1.938 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.1683, allocations: 4 kB / 0.5114 GB, free: 1.934 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003909/0.1687, allocations: 79.64 kB / 0.5114 GB, free: 1.855 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.1689, allocations: 95.64 kB / 0.5115 GB, free: 1.762 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007133/0.1696, allocations: 159.6 kB / 0.5117 GB, free: 1.605 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005787/0.1702, allocations: 307.4 kB / 0.512 GB, free: 1.305 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.1703, allocations: 29.66 kB / 0.512 GB, free: 1.273 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.1705, allocations: 127.6 kB / 0.5121 GB, free: 1.148 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002882/0.1708, allocations: 171.5 kB / 0.5123 GB, free: 0.9805 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.083e-05/0.1709, allocations: 19.94 kB / 0.5123 GB, free: 0.9609 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.171, allocations: 83.92 kB / 0.5124 GB, free: 0.8789 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.1711, allocations: 63.81 kB / 0.5124 GB, free: 0.8164 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.1713, allocations: 87.41 kB / 0.5125 GB, free: 0.7305 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.1716, allocations: 243 kB / 0.5128 GB, free: 0.4922 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1717, allocations: 0 / 0.5128 GB, free: 0.4922 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.783e-06/0.1717, allocations: 0 / 0.5128 GB, free: 0.4922 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.33e-05/0.1717, allocations: 3.984 kB / 0.5128 GB, free: 500 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: 24
 * Number of variables: 24
Notification: Performance of Generate backend data structure: time 0.3448/0.5164, allocations: 0.5483 MB / 0.5133 GB, free: 15.38 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.5165, allocations: 9.969 kB / 0.5133 GB, free: 15.38 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.5166, allocations: 24.86 kB / 0.5133 GB, free: 15.36 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007563/0.5174, allocations: 257.9 kB / 0.5136 GB, free: 15.21 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.5174, allocations: 5.812 kB / 0.5136 GB, free: 15.21 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.5174, allocations: 10.94 kB / 0.5136 GB, free: 15.21 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.5178, allocations: 150.8 kB / 0.5137 GB, free: 15.18 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.5178, allocations: 1.844 kB / 0.5137 GB, free: 15.18 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.5178, allocations: 9.281 kB / 0.5137 GB, free: 15.18 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.5179, allocations: 2.5 kB / 0.5137 GB, free: 15.18 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003153/0.5182, allocations: 135.1 kB / 0.5139 GB, free: 15.18 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008565/0.519, allocations: 481.4 kB / 0.5143 GB, free: 14.94 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004841/0.5195, allocations: 179.8 kB / 0.5145 GB, free: 14.92 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.5197, allocations: 96.45 kB / 0.5146 GB, free: 14.91 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.165e-05/0.5197, allocations: 3.609 kB / 0.5146 GB, free: 14.91 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002896/0.52, allocations: 181.3 kB / 0.5148 GB, free: 14.83 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=19): time 1.944e-06/0.52, allocations: 2.031 kB / 0.5148 GB, free: 14.83 MB / 382.1 MB
Notification: Performance of matching and sorting (n=19): time 0.001361/0.5214, allocations: 0.4982 MB / 0.5153 GB, free: 14.74 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/0.5214, allocations: 89.98 kB / 0.5154 GB, free: 14.65 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005745/0.522, allocations: 315.1 kB / 0.5157 GB, free: 14.54 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.522, allocations: 30.39 kB / 0.5157 GB, free: 14.51 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.91e-05/0.5221, allocations: 135.3 kB / 0.5158 GB, free: 14.43 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.99e-05/0.5222, allocations: 62.12 kB / 0.5159 GB, free: 14.39 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.925e-05/0.5222, allocations: 34.55 kB / 0.5159 GB, free: 14.38 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 7.329e-05/0.5223, allocations: 339.6 kB / 0.5162 GB, free: 14.07 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.5224, allocations: 82.52 kB / 0.5163 GB, free: 14.07 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.5226, allocations: 86.59 kB / 0.5164 GB, free: 14.07 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001262/0.5238, allocations: 0.5778 MB / 0.517 GB, free: 13.93 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.5238, allocations: 2.844 kB / 0.517 GB, free: 13.93 MB / 382.1 MB
Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006026/0.5244, allocations: 393 kB / 0.5173 GB, free: 13.84 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.512e-05/0.5245, allocations: 37.3 kB / 0.5174 GB, free: 13.81 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.5245, allocations: 1.344 kB / 0.5174 GB, free: 13.81 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002219/0.5247, allocations: 52.34 kB / 0.5174 GB, free: 13.8 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.5248, allocations: 25.12 kB / 0.5174 GB, free: 13.8 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.5259, allocations: 1.5 MB / 0.5189 GB, free: 12.57 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.5262, allocations: 42.59 kB / 0.5189 GB, free: 12.57 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.5262, allocations: 5.406 kB / 0.5189 GB, free: 12.57 MB / 382.1 MB
Warning: Assuming fixed start value for the following 3 variables:
         C.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [1]
         Process.x_scaled[2]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [2]
         Process.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: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (15):
 * Single equations (assignments): 13
 * Array equations: 0
 * Algorithm blocks: 1
 * 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,3,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0002033/0.5264, allocations: 189.4 kB / 0.5191 GB, free: 12.42 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.5265, allocations: 25.34 kB / 0.5192 GB, free: 12.41 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.244e-05/0.5265, allocations: 31.77 kB / 0.5192 GB, free: 12.39 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.5265, allocations: 11.53 kB / 0.5192 GB, free: 12.39 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.5265, allocations: 3.719 kB / 0.5192 GB, free: 12.39 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.5265, allocations: 2.75 kB / 0.5192 GB, free: 12.39 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.5268, allocations: 266.2 kB / 0.5195 GB, free: 12.23 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.5268, allocations: 0 / 0.5195 GB, free: 12.23 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.5269, allocations: 18.97 kB / 0.5195 GB, free: 12.23 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001634/0.5271, allocations: 50.64 kB / 0.5195 GB, free: 12.22 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.5271, allocations: 9.266 kB / 0.5195 GB, free: 12.22 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.5282, allocations: 1.5 MB / 0.521 GB, free: 11 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5282, allocations: 64 / 0.521 GB, free: 11 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009277/0.5291, allocations: 0.5412 MB / 0.5215 GB, free: 10.79 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.397e-05/0.5292, allocations: 29.86 kB / 0.5216 GB, free: 10.77 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.101e-05/0.5292, allocations: 5.75 kB / 0.5216 GB, free: 10.77 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.5295, allocations: 43.97 kB / 0.5216 GB, free: 10.75 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.519e-05/0.5296, allocations: 11.55 kB / 0.5216 GB, free: 10.75 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.5296, allocations: 9.969 kB / 0.5216 GB, free: 10.75 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0004913/0.5301, allocations: 237.6 kB / 0.5218 GB, free: 10.64 MB / 382.1 MB
Notification: Performance of sort global known variables: time 9.1e-08/0.5301, allocations: 1.344 kB / 0.5218 GB, free: 10.64 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.000333/0.5304, allocations: 72.17 kB / 0.5219 GB, free: 10.63 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1])
 * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled)
 * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (11):
 * Single equations (assignments): 9
 * Array equations: 0
 * Algorithm blocks: 1
 * 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,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.0001807/0.5306, allocations: 130.8 kB / 0.522 GB, free: 10.53 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0007023/0.5313, allocations: 395.2 kB / 0.5224 GB, free: 10.3 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.5313, allocations: 1.344 kB / 0.5224 GB, free: 10.3 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.5317, allocations: 294.2 kB / 0.5227 GB, free: 10.09 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.532, allocations: 39.72 kB / 0.5227 GB, free: 10.07 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009153/0.5329, allocations: 499.4 kB / 0.5232 GB, free: 9.797 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.5331, allocations: 0.7568 MB / 0.524 GB, free: 9.094 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.000109/0.5333, allocations: 35.06 kB / 0.524 GB, free: 9.086 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.261e-05/0.5333, allocations: 16.25 kB / 0.524 GB, free: 9.078 MB / 382.1 MB
Notification: Performance of SimCode: time 3.21e-07/0.5333, allocations: 0 / 0.524 GB, free: 9.078 MB / 382.1 MB
Notification: Performance of Templates: time 0.008649/0.5419, allocations: 2.978 MB / 0.5269 GB, free: 8.906 MB / 382.1 MB
"
[Timeout remaining time 659]
make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile [Timeout 660]
(rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.360993353649974]
Failed to read output from testmodel.py, exit status != 0:
0.5536726592108607 0.5645631910000001 0.390070817
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f094ca997b0>