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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00223/0.00223, allocations: 108.2 kB / 17.15 MB, free: 6.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002094/0.002094, allocations: 204.5 kB / 20.11 MB, free: 3.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.557/1.557, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1039/0.1039, allocations: 24.03 MB / 333.6 MB, free: 1.562 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 60.88 kB / 468.9 MB, free: 31.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1318, allocations: 59.55 MB / 0.516 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002696/0.1345, allocations: 1.139 MB / 0.5172 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0021/0.1366, allocations: 1.35 MB / 0.5185 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.1367, allocations: 4 kB / 0.5185 GB, free: 9.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003675/0.1371, allocations: 75.55 kB / 0.5186 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002349/0.1373, allocations: 91.58 kB / 0.5186 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003194/0.1376, allocations: 123.8 kB / 0.5188 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005061/0.1382, allocations: 399.2 kB / 0.5191 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.1383, allocations: 36.39 kB / 0.5192 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002214/0.1385, allocations: 167.5 kB / 0.5193 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.1388, allocations: 211.3 kB / 0.5195 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.826e-05/0.1389, allocations: 20 kB / 0.5196 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.947e-05/0.139, allocations: 24 kB / 0.5196 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.1391, allocations: 115.6 kB / 0.5197 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.1393, allocations: 119.2 kB / 0.5198 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.1396, allocations: 266.8 kB / 0.5201 GB, free: 7.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1396, allocations: 0 / 0.5201 GB, free: 7.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1396, allocations: 4 kB / 0.5201 GB, free: 7.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1396, allocations: 3.938 kB / 0.5201 GB, free: 7.68 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.002132/0.1417, allocations: 0.7557 MB / 0.5208 GB, free: 6.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.1418, allocations: 12.62 kB / 0.5208 GB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.309e-05/0.1419, allocations: 28.75 kB / 0.5208 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.1429, allocations: 431.4 kB / 0.5213 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.143, allocations: 8.656 kB / 0.5213 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.679e-05/0.143, allocations: 16.38 kB / 0.5213 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003678/0.1434, allocations: 188.1 kB / 0.5215 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.1434, allocations: 11.88 kB / 0.5215 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.1434, allocations: 12 kB / 0.5215 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.1434, allocations: 4 kB / 0.5215 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003932/0.1438, allocations: 200.6 kB / 0.5217 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.1451, allocations: 0.6918 MB / 0.5223 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005825/0.1457, allocations: 254.4 kB / 0.5226 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.146, allocations: 124.8 kB / 0.5227 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.146, allocations: 7.984 kB / 0.5227 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.146, allocations: 30.56 kB / 0.5227 GB, free: 4.762 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.353e-06/0.146, allocations: 0 / 0.5227 GB, free: 4.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001999/0.148, allocations: 0.6921 MB / 0.5234 GB, free: 4.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.1481, allocations: 55.41 kB / 0.5235 GB, free: 3.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009731/0.149, allocations: 418.8 kB / 0.5239 GB, free: 3.559 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.1491, allocations: 29.7 kB / 0.5239 GB, free: 3.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.1492, allocations: 156.6 kB / 0.5241 GB, free: 3.367 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.486e-05/0.1493, allocations: 87.22 kB / 0.5241 GB, free: 3.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.932e-05/0.1494, allocations: 49.7 kB / 0.5242 GB, free: 3.227 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.1496, allocations: 346.7 kB / 0.5245 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.1498, allocations: 99.94 kB / 0.5246 GB, free: 2.781 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001824/0.15, allocations: 104.9 kB / 0.5247 GB, free: 2.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002246/0.1522, allocations: 0.7188 MB / 0.5254 GB, free: 1.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1522, allocations: 0 / 0.5254 GB, free: 1.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008726/0.1531, allocations: 446 kB / 0.5258 GB, free: 1.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.1531, allocations: 7.938 kB / 0.5258 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1531, allocations: 0 / 0.5258 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003274/0.1534, allocations: 88.77 kB / 0.5259 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.1536, allocations: 39.92 kB / 0.526 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002404/0.156, allocations: 1.853 MB / 0.5278 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004329/0.1565, allocations: 67.8 kB / 0.5278 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.1565, allocations: 8 kB / 0.5278 GB, free: 15.3 MB / 398.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.0002747/0.1568, allocations: 176.4 kB / 0.528 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.614e-05/0.1568, allocations: 31.8 kB / 0.528 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.1569, allocations: 38.27 kB / 0.5281 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1569, allocations: 11.97 kB / 0.5281 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1569, allocations: 4 kB / 0.5281 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.157, allocations: 7.938 kB / 0.5281 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004583/0.1574, allocations: 361.2 kB / 0.5284 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1574, allocations: 0 / 0.5284 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.1576, allocations: 27.98 kB / 0.5285 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002943/0.1579, allocations: 92.77 kB / 0.5286 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.158, allocations: 12.17 kB / 0.5286 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001968/0.1599, allocations: 1.86 MB / 0.5304 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1599, allocations: 0 / 0.5304 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.161, allocations: 0.609 MB / 0.531 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.876e-05/0.1611, allocations: 120.8 kB / 0.5311 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.1612, allocations: 4 kB / 0.5311 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004542/0.1616, allocations: 59.97 kB / 0.5312 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.852e-05/0.1617, allocations: 23.91 kB / 0.5312 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.1617, allocations: 4 kB / 0.5312 GB, free: 11.64 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008393/0.1625, allocations: 329.8 kB / 0.5315 GB, free: 11.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1625, allocations: 0 / 0.5315 GB, free: 11.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003253/0.1629, allocations: 60 kB / 0.5316 GB, free: 11.26 MB / 398.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.0001537/0.163, allocations: 107.2 kB / 0.5317 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007957/0.1638, allocations: 406.4 kB / 0.5321 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1638, allocations: 4 kB / 0.5321 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004218/0.1642, allocations: 265.8 kB / 0.5323 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004095/0.1646, allocations: 44.86 kB / 0.5324 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.166, allocations: 0.6881 MB / 0.533 GB, free: 9.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.1665, allocations: 0.7987 MB / 0.5338 GB, free: 8.875 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001547/0.1667, allocations: 62.42 kB / 0.5339 GB, free: 8.809 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.927e-05/0.1667, allocations: 23.44 kB / 0.5339 GB, free: 8.785 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1667, allocations: 0 / 0.5339 GB, free: 8.785 MB / 398.1 MB Notification: Performance of Templates: time 0.008148/0.1749, allocations: 3.574 MB / 0.5374 GB, free: 5.219 MB / 398.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.101068073883653] Failed to read output from testmodel.py, exit status != 0: 0.18351829797029495 0.19783051000000001 0.054938886000000006 Calling exit ...