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.001397/0.001397, allocations: 105.1 kB / 16.45 MB, free: 6.512 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.001426/0.001426, allocations: 199.8 kB / 19.41 MB, free: 3.668 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.508/1.508, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.1008/0.1008, allocations: 22.7 MB / 325.4 MB, free: 3.547 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.002313/0.002313, allocations: 63.89 kB / 457.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1385, allocations: 58.02 MB / 0.5036 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.004135/0.1427, allocations: 2.02 MB / 0.5056 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.1441, allocations: 0.6233 MB / 0.5062 GB, free: 4.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002113/0.1444, allocations: 7.938 kB / 0.5062 GB, free: 4.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004361/0.1448, allocations: 55.45 kB / 0.5062 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002379/0.145, allocations: 43.66 kB / 0.5063 GB, free: 4.371 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.00037/0.1454, allocations: 127.8 kB / 0.5064 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005342/0.1459, allocations: 332 kB / 0.5067 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.1461, allocations: 66.2 kB / 0.5068 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002743/0.1464, allocations: 131.5 kB / 0.5069 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003118/0.1467, allocations: 151.3 kB / 0.507 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.11e-05/0.1468, allocations: 31.94 kB / 0.5071 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.837e-05/0.1469, allocations: 28 kB / 0.5071 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.147, allocations: 87.72 kB / 0.5072 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.1472, allocations: 127.2 kB / 0.5073 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004356/0.1476, allocations: 274.7 kB / 0.5076 GB, free: 3.039 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1476, allocations: 0 / 0.5076 GB, free: 3.039 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1476, allocations: 0 / 0.5076 GB, free: 3.039 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1476, allocations: 0 / 0.5076 GB, free: 3.039 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.001883/0.1495, allocations: 0.6312 MB / 0.5082 GB, free: 2.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.21e-05/0.1496, allocations: 12.03 kB / 0.5082 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.1497, allocations: 36.73 kB / 0.5082 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006701/0.1504, allocations: 303.6 kB / 0.5085 GB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.1504, allocations: 20.94 kB / 0.5085 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.644e-05/0.1505, allocations: 36.31 kB / 0.5086 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.1512, allocations: 302.5 kB / 0.5089 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.1512, allocations: 0 / 0.5089 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.723e-05/0.1512, allocations: 12 kB / 0.5089 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.1512, allocations: 8 kB / 0.5089 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005507/0.1518, allocations: 222 kB / 0.5091 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002487/0.1543, allocations: 1.183 MB / 0.5102 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2884/0.4426, allocations: 198 kB / 0.5104 GB, free: 16.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002708/0.4429, allocations: 96.3 kB / 0.5105 GB, free: 16.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.205e-05/0.443, allocations: 3.766 kB / 0.5105 GB, free: 16.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.443, allocations: 39.25 kB / 0.5106 GB, free: 16.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.875e-06/0.443, allocations: 0.625 kB / 0.5106 GB, free: 16.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0008743/0.4439, allocations: 325.7 kB / 0.5109 GB, free: 16.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.4439, allocations: 54.75 kB / 0.5109 GB, free: 16.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005483/0.4444, allocations: 287 kB / 0.5112 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.4445, allocations: 30.7 kB / 0.5112 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.4446, allocations: 177.7 kB / 0.5114 GB, free: 15.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.996e-05/0.4446, allocations: 99.38 kB / 0.5115 GB, free: 15.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.4448, allocations: 84.55 kB / 0.5116 GB, free: 15.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.483e-05/0.4449, allocations: 341 kB / 0.5119 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.4451, allocations: 99.5 kB / 0.512 GB, free: 15.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/0.4453, allocations: 184.1 kB / 0.5122 GB, free: 15.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/0.4471, allocations: 0.6121 MB / 0.5128 GB, free: 15.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4471, allocations: 0 / 0.5128 GB, free: 15.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005541/0.4477, allocations: 370.8 kB / 0.5131 GB, free: 15.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.4477, allocations: 8.375 kB / 0.5131 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4477, allocations: 2.594 kB / 0.5131 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.4477, allocations: 6.156 kB / 0.5131 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00062/0.4483, allocations: 105.9 kB / 0.5132 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.4484, allocations: 4.641 kB / 0.5133 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002789/0.4486, allocations: 59.39 kB / 0.5133 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/0.4487, allocations: 18.09 kB / 0.5133 GB, free: 15.13 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.0002014/0.4489, allocations: 156.8 kB / 0.5135 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.367e-05/0.4489, allocations: 25.59 kB / 0.5135 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005332/0.4495, allocations: 301.7 kB / 0.5138 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.4495, allocations: 3.906 kB / 0.5138 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4495, allocations: 0 / 0.5138 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.4495, allocations: 4.547 kB / 0.5138 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005137/0.45, allocations: 379.8 kB / 0.5142 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.45, allocations: 1.75 kB / 0.5142 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000388/0.4504, allocations: 70.84 kB / 0.5142 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4504, allocations: 1.375 kB / 0.5142 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.4504, allocations: 8.062 kB / 0.5142 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.4504, allocations: 0 / 0.5142 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4504, allocations: 0.9375 kB / 0.5142 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006037/0.451, allocations: 0.4888 MB / 0.5147 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.4511, allocations: 108 kB / 0.5148 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.131e-05/0.4511, allocations: 14.8 kB / 0.5148 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.4514, allocations: 24.3 kB / 0.5149 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.221e-05/0.4515, allocations: 21.28 kB / 0.5149 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.4515, allocations: 9.906 kB / 0.5149 GB, free: 14.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003167/0.4518, allocations: 199.6 kB / 0.5151 GB, free: 14.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4518, allocations: 0 / 0.5151 GB, free: 14.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003762/0.4522, allocations: 62.16 kB / 0.5151 GB, free: 14.41 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.000112/0.4523, allocations: 110.2 kB / 0.5152 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000527/0.4528, allocations: 248.1 kB / 0.5155 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4528, allocations: 0 / 0.5155 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.453, allocations: 135 kB / 0.5156 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.4534, allocations: 32.14 kB / 0.5156 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.4548, allocations: 0.6984 MB / 0.5163 GB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.4551, allocations: 0.7787 MB / 0.5171 GB, free: 13.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.4552, allocations: 50.56 kB / 0.5171 GB, free: 13.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.4553, allocations: 29.47 kB / 0.5172 GB, free: 13.27 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4553, allocations: 0 / 0.5172 GB, free: 13.27 MB / 382.1 MB Notification: Performance of Templates: time 0.008035/0.4634, allocations: 2.718 MB / 0.5198 GB, free: 13.12 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.266211972106248] Failed to read output from testmodel.py, exit status != 0: 0.47215108200907707 0.48242081400000003 0.332270758 Calling exit ...