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.009537/0.009537, allocations: 107.4 kB / 15.74 MB, free: 6.02 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.002399/0.002399, allocations: 193.2 kB / 16.67 MB, free: 5.934 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08995/0.08995, allocations: 22.32 MB / 312.8 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.91 kB / 437 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1139, allocations: 54.95 MB / 492 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003267/0.1172, allocations: 2.015 MB / 494 MB, free: 2.699 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.1183, allocations: 0.6195 MB / 494.6 MB, free: 2.074 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.1185, allocations: 7.938 kB / 494.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003227/0.1188, allocations: 51.53 kB / 494.7 MB, free: 2.016 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.119, allocations: 43.64 kB / 494.7 MB, free: 1.973 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.0003017/0.1193, allocations: 119.8 kB / 494.8 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003686/0.1197, allocations: 328 kB / 495.2 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.1199, allocations: 98.25 kB / 495.3 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.1201, allocations: 131.5 kB / 495.4 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.1203, allocations: 143.3 kB / 495.5 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.1204, allocations: 28 kB / 495.5 MB, free: 1.141 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.133e-05/0.1204, allocations: 24 kB / 495.6 MB, free: 1.117 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.1205, allocations: 87.73 kB / 495.7 MB, free: 1.031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.1207, allocations: 127.2 kB / 495.8 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.121, allocations: 270.7 kB / 496 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.121, allocations: 0 / 496 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.121, allocations: 0 / 496 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.121, allocations: 0 / 496 MB, free: 0.6406 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.001269/0.1223, allocations: 0.6429 MB / 496.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1223, allocations: 12.03 kB / 496.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.561e-05/0.1224, allocations: 40.75 kB / 496.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004812/0.1229, allocations: 299.5 kB / 497 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.123, allocations: 28.88 kB / 497.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.265e-05/0.123, allocations: 32.31 kB / 497.1 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004991/0.1235, allocations: 302.5 kB / 497.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1235, allocations: 0 / 497.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.1236, allocations: 12 kB / 497.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1236, allocations: 4 kB / 497.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004294/0.124, allocations: 222 kB / 497.6 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.1259, allocations: 1.183 MB / 498.8 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004186/0.1263, allocations: 207.2 kB / 499 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.1265, allocations: 101.3 kB / 499.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.165e-05/0.1266, allocations: 8.203 kB / 499.1 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.1266, allocations: 42.67 kB / 499.2 MB, free: 13.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.362e-06/0.1266, allocations: 0 / 499.2 MB, free: 13.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006806/0.1273, allocations: 325.4 kB / 499.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.1273, allocations: 55.41 kB / 499.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004059/0.1277, allocations: 286.5 kB / 499.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.1278, allocations: 33.64 kB / 499.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.1279, allocations: 172.7 kB / 0.4883 GB, free: 12.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.702e-05/0.128, allocations: 103.2 kB / 0.4884 GB, free: 12.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.1281, allocations: 74.06 kB / 0.4885 GB, free: 12.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1282, allocations: 342.8 kB / 0.4888 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.1284, allocations: 100.8 kB / 0.4889 GB, free: 11.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.1287, allocations: 180.7 kB / 0.4891 GB, free: 11.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.1305, allocations: 0.6218 MB / 0.4897 GB, free: 10.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1305, allocations: 0 / 0.4897 GB, free: 10.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005757/0.1311, allocations: 368.7 kB / 0.49 GB, free: 10.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1311, allocations: 11.94 kB / 0.49 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1311, allocations: 0 / 0.49 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.1311, allocations: 8 kB / 0.49 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005843/0.1317, allocations: 99.88 kB / 0.4901 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.1317, allocations: 8.25 kB / 0.4901 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/0.132, allocations: 59.7 kB / 0.4902 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.132, allocations: 12 kB / 0.4902 GB, free: 10.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.0001832/0.1322, allocations: 158.9 kB / 0.4904 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.481e-05/0.1323, allocations: 31.75 kB / 0.4904 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005066/0.1328, allocations: 309.5 kB / 0.4907 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1328, allocations: 4 kB / 0.4907 GB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1328, allocations: 7.922 kB / 0.4907 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1328, allocations: 0 / 0.4907 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005215/0.1334, allocations: 377.3 kB / 0.4911 GB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1334, allocations: 0 / 0.4911 GB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003681/0.1338, allocations: 63.91 kB / 0.4911 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.1338, allocations: 3.938 kB / 0.4911 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.1338, allocations: 19.98 kB / 0.4911 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.1338, allocations: 4 kB / 0.4911 GB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1338, allocations: 4 kB / 0.4911 GB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006194/0.1345, allocations: 483.1 kB / 0.4916 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.037e-05/0.1345, allocations: 116.7 kB / 0.4917 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.23e-05/0.1346, allocations: 4 kB / 0.4917 GB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.1349, allocations: 23.97 kB / 0.4917 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.648e-05/0.1349, allocations: 23.97 kB / 0.4918 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.135, allocations: 15.98 kB / 0.4918 GB, free: 8.688 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00034/0.1353, allocations: 197.9 kB / 0.492 GB, free: 8.496 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1353, allocations: 0 / 0.492 GB, free: 8.496 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003323/0.1357, allocations: 59.95 kB / 0.492 GB, free: 8.438 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.0001261/0.1358, allocations: 105.2 kB / 0.4921 GB, free: 8.328 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005293/0.1363, allocations: 275.7 kB / 0.4924 GB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1363, allocations: 0 / 0.4924 GB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002028/0.1365, allocations: 123.9 kB / 0.4925 GB, free: 7.938 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.1369, allocations: 32.55 kB / 0.4925 GB, free: 7.902 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.1382, allocations: 0.7029 MB / 0.4932 GB, free: 7.176 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.1386, allocations: 0.7792 MB / 0.494 GB, free: 6.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.1387, allocations: 42.95 kB / 0.494 GB, free: 6.328 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.004e-05/0.1388, allocations: 31.44 kB / 0.4941 GB, free: 6.297 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1388, allocations: 0 / 0.4941 GB, free: 6.297 MB / 382.1 MB Notification: Performance of Templates: time 0.006045/0.1449, allocations: 2.685 MB / 0.4967 GB, free: 3.621 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 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)