Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.001465/0.001465, allocations: 109.1 kB / 17.14 MB, free: 5.93 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.001636/0.001636, allocations: 204 kB / 20.11 MB, free: 2.977 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.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1029/0.1029, allocations: 24.03 MB / 333.6 MB, free: 1.598 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_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") [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.003162/0.003162, allocations: 63.06 kB / 468.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1487, allocations: 59.55 MB / 0.516 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.003111/0.1518, allocations: 1.069 MB / 0.5171 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.1542, allocations: 1.307 MB / 0.5184 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.1544, allocations: 4 kB / 0.5184 GB, free: 9.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000421/0.1548, allocations: 55.62 kB / 0.5184 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.1551, allocations: 63.67 kB / 0.5185 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.1554, allocations: 103.8 kB / 0.5186 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005962/0.156, allocations: 303.4 kB / 0.5189 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.1562, allocations: 37.66 kB / 0.5189 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002515/0.1564, allocations: 127.6 kB / 0.519 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003368/0.1567, allocations: 167.5 kB / 0.5192 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.089e-05/0.1568, allocations: 20 kB / 0.5192 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.763e-05/0.1569, allocations: 16 kB / 0.5192 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.157, allocations: 99.7 kB / 0.5193 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.1571, allocations: 95.39 kB / 0.5194 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000343/0.1575, allocations: 227 kB / 0.5196 GB, free: 8.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1575, allocations: 0 / 0.5196 GB, free: 8.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1575, allocations: 0 / 0.5196 GB, free: 8.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.1575, allocations: 8 kB / 0.5196 GB, free: 8.129 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.00192/0.1594, allocations: 0.6698 MB / 0.5203 GB, free: 7.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.1595, allocations: 8.625 kB / 0.5203 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.801e-05/0.1596, allocations: 28.75 kB / 0.5203 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009615/0.1605, allocations: 354.9 kB / 0.5207 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.1605, allocations: 12.38 kB / 0.5207 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.826e-05/0.1606, allocations: 20.31 kB / 0.5207 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003614/0.161, allocations: 171.4 kB / 0.5209 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.161, allocations: 7.938 kB / 0.5209 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.161, allocations: 8 kB / 0.5209 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.161, allocations: 0 / 0.5209 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003644/0.1614, allocations: 171.8 kB / 0.521 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.1626, allocations: 0.6252 MB / 0.5216 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.163, allocations: 202.5 kB / 0.5218 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.1632, allocations: 116.7 kB / 0.522 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.1632, allocations: 0 / 0.522 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.1633, allocations: 34.56 kB / 0.522 GB, free: 5.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.072e-06/0.1633, allocations: 7.938 kB / 0.522 GB, free: 5.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.002071/0.1653, allocations: 0.6448 MB / 0.5226 GB, free: 4.879 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.1654, allocations: 51.41 kB / 0.5227 GB, free: 4.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008932/0.1663, allocations: 340.9 kB / 0.523 GB, free: 4.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.1663, allocations: 29.7 kB / 0.523 GB, free: 4.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.1664, allocations: 140.5 kB / 0.5232 GB, free: 4.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.764e-05/0.1665, allocations: 83.31 kB / 0.5232 GB, free: 4.211 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.681e-05/0.1666, allocations: 41.7 kB / 0.5233 GB, free: 4.164 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.1668, allocations: 334.8 kB / 0.5236 GB, free: 3.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.167, allocations: 87.94 kB / 0.5237 GB, free: 3.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.1672, allocations: 95.88 kB / 0.5238 GB, free: 3.648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002019/0.1692, allocations: 0.6148 MB / 0.5244 GB, free: 3.027 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1692, allocations: 0 / 0.5244 GB, free: 3.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000862/0.1701, allocations: 402.2 kB / 0.5248 GB, free: 2.625 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.1701, allocations: 8 kB / 0.5248 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.1701, allocations: 7.922 kB / 0.5248 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000344/0.1705, allocations: 92.7 kB / 0.5249 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.1706, allocations: 31.98 kB / 0.5249 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/0.1729, allocations: 1.841 MB / 0.5267 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.1733, allocations: 59.91 kB / 0.5267 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.1733, allocations: 4 kB / 0.5268 GB, free: 452 kB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: 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 (21): * Single equations (assignments): 20 * 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.0002555/0.1735, allocations: 167.8 kB / 0.5269 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.878e-05/0.1736, allocations: 19.86 kB / 0.5269 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.1737, allocations: 46.16 kB / 0.527 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1737, allocations: 4 kB / 0.527 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.1737, allocations: 0 / 0.527 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1737, allocations: 0 / 0.527 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.1742, allocations: 325.3 kB / 0.5273 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1742, allocations: 0 / 0.5273 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.1743, allocations: 27.97 kB / 0.5273 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002945/0.1746, allocations: 96.77 kB / 0.5274 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.1747, allocations: 4 kB / 0.5274 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/0.1767, allocations: 1.864 MB / 0.5292 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1767, allocations: 3.938 kB / 0.5292 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.1778, allocations: 0.5596 MB / 0.5298 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.1779, allocations: 109 kB / 0.5299 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.1779, allocations: 7.984 kB / 0.5299 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003614/0.1783, allocations: 39.94 kB / 0.5299 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.569e-05/0.1784, allocations: 19.92 kB / 0.53 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.851e-05/0.1784, allocations: 15.92 kB / 0.53 GB, free: 12.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006933/0.1791, allocations: 264.3 kB / 0.5302 GB, free: 12.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1791, allocations: 4 kB / 0.5302 GB, free: 12.65 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003434/0.1794, allocations: 48 kB / 0.5303 GB, free: 12.61 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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.0001467/0.1796, allocations: 107.2 kB / 0.5304 GB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007916/0.1804, allocations: 362.4 kB / 0.5307 GB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1804, allocations: 0 / 0.5307 GB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004195/0.1808, allocations: 255.3 kB / 0.531 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004202/0.1812, allocations: 42.39 kB / 0.531 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.1824, allocations: 0.5679 MB / 0.5316 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004857/0.1828, allocations: 0.7674 MB / 0.5323 GB, free: 10.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001343/0.183, allocations: 58.22 kB / 0.5324 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.764e-05/0.183, allocations: 27.42 kB / 0.5324 GB, free: 10.35 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.183, allocations: 0 / 0.5324 GB, free: 10.35 MB / 398.1 MB Notification: Performance of Templates: time 0.008057/0.1911, allocations: 3.104 MB / 0.5354 GB, free: 7.254 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.070775656029582] Failed to read output from testmodel.py, exit status != 0: 0.20160477608442307 0.21493530200000002 0.054275661 Calling exit ...