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.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.001355/0.001355, allocations: 108.8 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.001452/0.001452, allocations: 193.4 kB / 22.23 MB, free: 5.156 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.493/1.493, allocations: 225.6 MB / 251 MB, free: 13.01 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.1025/0.1025, allocations: 22.7 MB / 329 MB, free: 2.371 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.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: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 67.89 kB / 463.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1362, allocations: 58.07 MB / 0.509 GB, free: 4.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003353/0.1396, allocations: 2.031 MB / 0.5109 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.1408, allocations: 0.6389 MB / 0.5116 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.1409, allocations: 3.938 kB / 0.5116 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003652/0.1413, allocations: 51.47 kB / 0.5116 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00017/0.1415, allocations: 39.72 kB / 0.5117 GB, free: 1.648 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.0003622/0.1418, allocations: 143.7 kB / 0.5118 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004435/0.1423, allocations: 348 kB / 0.5121 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.1425, allocations: 74.41 kB / 0.5122 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001774/0.1426, allocations: 131.6 kB / 0.5123 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.1429, allocations: 151.3 kB / 0.5125 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.502e-05/0.1429, allocations: 28 kB / 0.5125 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.34e-05/0.143, allocations: 28 kB / 0.5125 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.1431, allocations: 83.73 kB / 0.5126 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.1432, allocations: 131.2 kB / 0.5127 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003262/0.1435, allocations: 274.8 kB / 0.513 GB, free: 288 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1435, allocations: 0 / 0.513 GB, free: 288 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1435, allocations: 0 / 0.513 GB, free: 288 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1435, allocations: 0 / 0.513 GB, free: 288 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.2737/0.4172, allocations: 0.5529 MB / 0.5135 GB, free: 15.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.4173, allocations: 9.719 kB / 0.5135 GB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.796e-05/0.4174, allocations: 37.48 kB / 0.5136 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000575/0.418, allocations: 241.9 kB / 0.5138 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.457e-05/0.418, allocations: 28.55 kB / 0.5138 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.406e-05/0.4181, allocations: 32.52 kB / 0.5139 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006219/0.4187, allocations: 298 kB / 0.5141 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.4187, allocations: 0.5625 kB / 0.5141 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.175e-05/0.4188, allocations: 19.47 kB / 0.5142 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.4188, allocations: 6.125 kB / 0.5142 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/0.4193, allocations: 219.6 kB / 0.5144 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002035/0.4213, allocations: 1.153 MB / 0.5155 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004451/0.4217, allocations: 195.5 kB / 0.5157 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.4219, allocations: 97.17 kB / 0.5158 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.422, allocations: 4.844 kB / 0.5158 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.422, allocations: 40.42 kB / 0.5158 GB, free: 14.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.422, allocations: 0 / 0.5158 GB, free: 14.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.000727/0.4227, allocations: 332.5 kB / 0.5161 GB, free: 14.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.4227, allocations: 57.41 kB / 0.5162 GB, free: 14.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004184/0.4232, allocations: 277.8 kB / 0.5165 GB, free: 14.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.4232, allocations: 34.2 kB / 0.5165 GB, free: 14.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.044e-05/0.4233, allocations: 180.8 kB / 0.5167 GB, free: 14.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.562e-05/0.4233, allocations: 101.5 kB / 0.5168 GB, free: 14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.4234, allocations: 78.08 kB / 0.5168 GB, free: 13.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.114e-05/0.4235, allocations: 335.3 kB / 0.5172 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.4237, allocations: 102.8 kB / 0.5173 GB, free: 13.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.4239, allocations: 185.8 kB / 0.5174 GB, free: 13.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001883/0.4258, allocations: 0.6067 MB / 0.518 GB, free: 13.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4258, allocations: 2.906 kB / 0.518 GB, free: 13.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006121/0.4264, allocations: 374.8 kB / 0.5184 GB, free: 13.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.4264, allocations: 6.5 kB / 0.5184 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.4264, allocations: 6.812 kB / 0.5184 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.4264, allocations: 4.156 kB / 0.5184 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006275/0.4271, allocations: 103.2 kB / 0.5185 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.4271, allocations: 4.812 kB / 0.5185 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.4274, allocations: 52.98 kB / 0.5186 GB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.4274, allocations: 14 kB / 0.5186 GB, free: 13.4 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.000229/0.4276, allocations: 163.5 kB / 0.5187 GB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.58e-05/0.4277, allocations: 29.34 kB / 0.5188 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005696/0.4283, allocations: 305.7 kB / 0.519 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.4283, allocations: 4.156 kB / 0.519 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4283, allocations: 0 / 0.519 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.4283, allocations: 4 kB / 0.5191 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005584/0.4288, allocations: 344.9 kB / 0.5194 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4288, allocations: 0 / 0.5194 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003867/0.4292, allocations: 70.34 kB / 0.5194 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.4292, allocations: 2.062 kB / 0.5194 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.4293, allocations: 14.05 kB / 0.5195 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.4293, allocations: 1.219 kB / 0.5195 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4293, allocations: 0 / 0.5195 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006913/0.43, allocations: 497.6 kB / 0.5199 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.43, allocations: 29.56 kB / 0.52 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.4301, allocations: 10.44 kB / 0.52 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/0.4303, allocations: 25.05 kB / 0.52 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.352e-05/0.4304, allocations: 22.88 kB / 0.52 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.4304, allocations: 6.906 kB / 0.52 GB, free: 12.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003362/0.4308, allocations: 203.4 kB / 0.5202 GB, free: 12.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4308, allocations: 0 / 0.5202 GB, free: 12.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.4311, allocations: 55.38 kB / 0.5203 GB, free: 12.49 MB / 382.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.0001202/0.4312, allocations: 109.6 kB / 0.5204 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000621/0.4319, allocations: 249.2 kB / 0.5206 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4319, allocations: 1.219 kB / 0.5206 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002515/0.4321, allocations: 129.2 kB / 0.5207 GB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004389/0.4326, allocations: 35.8 kB / 0.5208 GB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.434, allocations: 0.7082 MB / 0.5215 GB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.4343, allocations: 0.7771 MB / 0.5222 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.4345, allocations: 50.34 kB / 0.5223 GB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.4346, allocations: 34.92 kB / 0.5223 GB, free: 11.16 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4346, allocations: 3.938 kB / 0.5223 GB, free: 11.15 MB / 382.1 MB Notification: Performance of Templates: time 0.00884/0.4435, allocations: 2.89 MB / 0.5251 GB, free: 10.99 MB / 382.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.1854517087340355] Failed to read output from testmodel.py, exit status != 0: 0.4528701975941658 0.46658631100000003 0.320093091 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f83a11717b0>