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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") translateModel(AES.Coursework.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 107.8 kB / 16.41 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001858/0.001858, allocations: 184 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1029/0.1029, allocations: 22.33 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003219/0.003219, allocations: 71.89 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1196, allocations: 54.95 MB / 492.7 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003183/0.1228, allocations: 2.008 MB / 494.7 MB, free: 2.719 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.1239, allocations: 0.6273 MB / 495.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.896e-05/0.124, allocations: 0 / 495.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003061/0.1243, allocations: 59.44 kB / 495.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.1245, allocations: 39.61 kB / 495.4 MB, free: 1.988 MB / 366.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.0002842/0.1247, allocations: 131.8 kB / 495.5 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004091/0.1251, allocations: 328 kB / 495.9 MB, free: 1.539 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.1253, allocations: 66.28 kB / 495.9 MB, free: 1.473 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000173/0.1255, allocations: 127.5 kB / 496 MB, free: 1.348 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.1257, allocations: 151.3 kB / 496.2 MB, free: 1.199 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.433e-05/0.1258, allocations: 28 kB / 496.2 MB, free: 1.172 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.837e-05/0.1258, allocations: 24 kB / 496.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.1259, allocations: 83.73 kB / 496.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.126, allocations: 127.2 kB / 496.4 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003256/0.1264, allocations: 274.7 kB / 496.7 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1264, allocations: 4 kB / 496.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1264, allocations: 0 / 496.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.1264, allocations: 0 / 496.7 MB, free: 0.668 MB / 366.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.001403/0.1278, allocations: 0.6417 MB / 497.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1278, allocations: 12.03 kB / 497.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.034e-05/0.1279, allocations: 36.75 kB / 497.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005499/0.1285, allocations: 299.5 kB / 497.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.937e-05/0.1285, allocations: 24.94 kB / 497.7 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.1286, allocations: 28.38 kB / 497.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005343/0.1291, allocations: 306.5 kB / 498 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1291, allocations: 0 / 498 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.1291, allocations: 12 kB / 498.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.1291, allocations: 4 kB / 498.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/0.1296, allocations: 222 kB / 498.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.1317, allocations: 1.187 MB / 499.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004645/0.1321, allocations: 203.1 kB / 499.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.1323, allocations: 89.3 kB / 499.8 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.1323, allocations: 8.234 kB / 499.8 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.1324, allocations: 38.72 kB / 499.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.502e-06/0.1324, allocations: 7.938 kB / 499.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007096/0.1331, allocations: 321.4 kB / 0.4884 GB, free: 13.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.1331, allocations: 59.41 kB / 0.4885 GB, free: 13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004556/0.1336, allocations: 278.5 kB / 0.4887 GB, free: 12.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.1336, allocations: 37.7 kB / 0.4888 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.1338, allocations: 172.6 kB / 0.4889 GB, free: 12.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.557e-05/0.1338, allocations: 99.17 kB / 0.489 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.134, allocations: 82.06 kB / 0.4891 GB, free: 12.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1341, allocations: 338.8 kB / 0.4894 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.1343, allocations: 96.77 kB / 0.4895 GB, free: 11.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002558/0.1346, allocations: 180.8 kB / 0.4897 GB, free: 11.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001899/0.1365, allocations: 0.6295 MB / 0.4903 GB, free: 11.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1365, allocations: 0 / 0.4903 GB, free: 11.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006337/0.1371, allocations: 372.6 kB / 0.4907 GB, free: 10.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.1371, allocations: 7.938 kB / 0.4907 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1371, allocations: 4 kB / 0.4907 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.1372, allocations: 8.312 kB / 0.4907 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006171/0.1378, allocations: 99.88 kB / 0.4908 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.1378, allocations: 4 kB / 0.4908 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.1381, allocations: 51.7 kB / 0.4908 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.1381, allocations: 16 kB / 0.4908 GB, free: 10.45 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.0002331/0.1383, allocations: 170.9 kB / 0.491 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.159e-05/0.1384, allocations: 31.75 kB / 0.491 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005641/0.139, allocations: 297.6 kB / 0.4913 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.139, allocations: 0 / 0.4913 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.139, allocations: 4 kB / 0.4913 GB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.139, allocations: 3.984 kB / 0.4913 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006139/0.1396, allocations: 373.3 kB / 0.4917 GB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.1396, allocations: 0 / 0.4917 GB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003971/0.14, allocations: 71.91 kB / 0.4917 GB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.14, allocations: 7.938 kB / 0.4918 GB, free: 9.449 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.14, allocations: 15.94 kB / 0.4918 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.14, allocations: 0 / 0.4918 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.14, allocations: 3.984 kB / 0.4918 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007083/0.1407, allocations: 491.1 kB / 0.4922 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.652e-05/0.1408, allocations: 116.7 kB / 0.4924 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.098e-05/0.1409, allocations: 8 kB / 0.4924 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.1411, allocations: 27.97 kB / 0.4924 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.529e-05/0.1412, allocations: 19.97 kB / 0.4924 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.1412, allocations: 12 kB / 0.4924 GB, free: 8.734 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003403/0.1416, allocations: 197.9 kB / 0.4926 GB, free: 8.543 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1416, allocations: 0 / 0.4926 GB, free: 8.543 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003234/0.1419, allocations: 55.95 kB / 0.4927 GB, free: 8.488 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.0001327/0.142, allocations: 115.2 kB / 0.4928 GB, free: 8.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005213/0.1426, allocations: 247.8 kB / 0.493 GB, free: 8.125 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1426, allocations: 0 / 0.493 GB, free: 8.125 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002885/0.1428, allocations: 123.8 kB / 0.4931 GB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.1432, allocations: 38.67 kB / 0.4932 GB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.1445, allocations: 0.7029 MB / 0.4938 GB, free: 7.238 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.1449, allocations: 0.7792 MB / 0.4946 GB, free: 6.434 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.1451, allocations: 46.95 kB / 0.4947 GB, free: 6.387 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.631e-05/0.1452, allocations: 27.44 kB / 0.4947 GB, free: 6.359 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1452, allocations: 0 / 0.4947 GB, free: 6.359 MB / 382.1 MB Notification: Performance of Templates: time 0.006879/0.1521, allocations: 2.687 MB / 0.4973 GB, free: 3.68 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.makefile (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 -s gbode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)