Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.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.001481/0.001481, allocations: 109.4 kB / 17.14 MB, free: 6.043 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.001691/0.001691, allocations: 207.2 kB / 20.11 MB, free: 3.086 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.564/1.564, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1061/0.1061, 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.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") translateModel(AES.Coursework.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") [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.002066/0.002066, allocations: 68.47 kB / 468.9 MB, free: 31.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1348, allocations: 59.55 MB / 0.516 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.00387/0.1387, allocations: 2.022 MB / 0.518 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.1401, allocations: 0.6699 MB / 0.5187 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.1403, allocations: 15.88 kB / 0.5187 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003758/0.1406, allocations: 47.52 kB / 0.5187 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.1408, allocations: 43.66 kB / 0.5188 GB, free: 8.977 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.1411, allocations: 123.8 kB / 0.5189 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005172/0.1416, allocations: 324 kB / 0.5192 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.1418, allocations: 84.58 kB / 0.5193 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002051/0.142, allocations: 131.5 kB / 0.5194 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.1423, allocations: 155.3 kB / 0.5196 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.464e-05/0.1423, allocations: 24 kB / 0.5196 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.71e-05/0.1424, allocations: 28 kB / 0.5196 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.1425, allocations: 83.72 kB / 0.5197 GB, free: 8.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.1427, allocations: 127.2 kB / 0.5198 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003691/0.143, allocations: 274.7 kB / 0.5201 GB, free: 7.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.143, allocations: 0 / 0.5201 GB, free: 7.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.143, allocations: 4 kB / 0.5201 GB, free: 7.648 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.143, allocations: 3.938 kB / 0.5201 GB, free: 7.645 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001456/0.1445, allocations: 0.6313 MB / 0.5207 GB, free: 6.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.1446, allocations: 8.625 kB / 0.5207 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.809e-05/0.1446, allocations: 36.73 kB / 0.5207 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005581/0.1452, allocations: 307.4 kB / 0.521 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.1452, allocations: 24.94 kB / 0.5211 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.341e-05/0.1453, allocations: 36.27 kB / 0.5211 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006408/0.146, allocations: 298.5 kB / 0.5214 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.146, allocations: 4 kB / 0.5214 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.146, allocations: 12 kB / 0.5214 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.146, allocations: 11.98 kB / 0.5214 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004939/0.1465, allocations: 218 kB / 0.5216 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.1487, allocations: 1.183 MB / 0.5228 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004589/0.1491, allocations: 199.1 kB / 0.523 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.1494, allocations: 97.28 kB / 0.523 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.1494, allocations: 8.219 kB / 0.5231 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.1494, allocations: 42.67 kB / 0.5231 GB, free: 4.355 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.554e-06/0.1494, allocations: 0 / 0.5231 GB, free: 4.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007601/0.1502, allocations: 324.7 kB / 0.5234 GB, free: 4.035 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.027e-05/0.1503, allocations: 51.41 kB / 0.5235 GB, free: 3.973 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004994/0.1508, allocations: 294.4 kB / 0.5237 GB, free: 3.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.1508, allocations: 29.7 kB / 0.5238 GB, free: 3.641 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.1509, allocations: 172.7 kB / 0.5239 GB, free: 3.469 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.364e-05/0.151, allocations: 103.1 kB / 0.524 GB, free: 3.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.1512, allocations: 74.06 kB / 0.5241 GB, free: 3.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1513, allocations: 338.8 kB / 0.5244 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.1515, allocations: 100.8 kB / 0.5245 GB, free: 2.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002756/0.1518, allocations: 188.7 kB / 0.5247 GB, free: 2.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001979/0.1538, allocations: 0.6148 MB / 0.5253 GB, free: 1.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.1538, allocations: 4 kB / 0.5253 GB, free: 1.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007911/0.1546, allocations: 368.7 kB / 0.5257 GB, free: 1.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.1546, allocations: 11.94 kB / 0.5257 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.1546, allocations: 0 / 0.5257 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.1546, allocations: 4 kB / 0.5257 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006049/0.1553, allocations: 103.9 kB / 0.5258 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.1553, allocations: 11.92 kB / 0.5258 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.1555, allocations: 52.06 kB / 0.5258 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.1556, allocations: 16 kB / 0.5258 GB, free: 1.414 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: y_filter.y:VARIABLE(flow=false start = y_filter.y_start fixed = true ) \"Connector of Real output signal\" type: Real 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: 11 * Number of states: 0 () * Number of discrete variables: 9 (not1.y,PI_2.LOsat,PI_2.HIsat,PI_1.LOsat,PI_1.HIsat,PI_2.iNoDec,PI_2.iNoInc,PI_1.iNoDec,PI_1.iNoInc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002424/0.1558, allocations: 154.9 kB / 0.526 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.162e-05/0.1559, allocations: 31.75 kB / 0.526 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006895/0.1566, allocations: 301.8 kB / 0.5263 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.1566, allocations: 4 kB / 0.5263 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.1566, allocations: 0 / 0.5263 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1566, allocations: 0 / 0.5263 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000625/0.1572, allocations: 389.1 kB / 0.5267 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1572, allocations: 4 kB / 0.5267 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003851/0.1576, allocations: 67.89 kB / 0.5268 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.1576, allocations: 3.938 kB / 0.5268 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.1576, allocations: 11.94 kB / 0.5268 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1576, allocations: 0 / 0.5268 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.1576, allocations: 8 kB / 0.5268 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007414/0.1584, allocations: 483.4 kB / 0.5272 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.707e-05/0.1585, allocations: 108.8 kB / 0.5273 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.295e-05/0.1585, allocations: 11.98 kB / 0.5274 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.1588, allocations: 23.97 kB / 0.5274 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.281e-05/0.1589, allocations: 23.97 kB / 0.5274 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.1589, allocations: 8 kB / 0.5274 GB, free: 15.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003383/0.1592, allocations: 201.9 kB / 0.5276 GB, free: 15.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1592, allocations: 0 / 0.5276 GB, free: 15.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.1595, allocations: 63.89 kB / 0.5277 GB, free: 15.46 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (PI_1.xfb,PI_1.xBias,PI_1.u,PI_1.csfil,PI_2.xfb,PI_2.xBias,PI_2.u,PI_2.csfil,Process.x_scaled[1],Process.x_scaled[2],y_filter.y) * Number of discrete variables: 5 (PI_1.HIsat,PI_1.LOsat,PI_2.HIsat,PI_2.LOsat,not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001526/0.1597, allocations: 107.2 kB / 0.5278 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005567/0.1603, allocations: 263.8 kB / 0.528 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1603, allocations: 0 / 0.528 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.1605, allocations: 123.9 kB / 0.5281 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.1608, allocations: 38.58 kB / 0.5282 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.1622, allocations: 0.6898 MB / 0.5288 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004577/0.1627, allocations: 0.7753 MB / 0.5296 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001436/0.1628, allocations: 46.94 kB / 0.5296 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.478e-05/0.1629, allocations: 31.44 kB / 0.5297 GB, free: 13.34 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1629, allocations: 0 / 0.5297 GB, free: 13.34 MB / 398.1 MB Notification: Performance of Templates: time 0.006878/0.1698, allocations: 2.704 MB / 0.5323 GB, free: 10.63 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.sim & ./AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.095110487192869] Failed to read output from testmodel.py, exit status != 0: 0.17858212627470493 0.19158967400000002 0.045738789 Calling exit ...