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.007451/0.007451, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001675/0.001675, allocations: 194.3 kB / 16.67 MB, free: 5.977 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2102/0.2102, allocations: 22.37 MB / 312.9 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 62.25 kB / 437.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1264, allocations: 54.96 MB / 492 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002959/0.1294, allocations: 2.021 MB / 494 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.1306, allocations: 0.6273 MB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.1307, allocations: 7.938 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003222/0.1311, allocations: 55.45 kB / 494.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.1313, allocations: 35.72 kB / 494.8 MB, free: 14.45 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.0002549/0.1315, allocations: 119.8 kB / 494.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003312/0.1319, allocations: 336 kB / 495.2 MB, free: 14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.1321, allocations: 94.2 kB / 495.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.1322, allocations: 131.6 kB / 495.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.1324, allocations: 139.4 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.242e-05/0.1325, allocations: 28 kB / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.015e-05/0.1325, allocations: 24 kB / 495.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.1327, allocations: 83.72 kB / 495.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1328, allocations: 135.1 kB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.1331, allocations: 274.9 kB / 496.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1331, allocations: 0 / 496.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1331, allocations: 0 / 496.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1331, allocations: 4 kB / 496.1 MB, free: 13.1 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.001263/0.1344, allocations: 0.6199 MB / 496.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1344, allocations: 8.031 kB / 496.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.578e-05/0.1345, allocations: 36.56 kB / 496.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004889/0.135, allocations: 303.4 kB / 497.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/0.135, allocations: 20.94 kB / 497.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/0.1351, allocations: 36.28 kB / 497.1 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.1356, allocations: 302.5 kB / 497.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.1356, allocations: 3.984 kB / 497.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.1356, allocations: 11.94 kB / 497.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.1356, allocations: 8 kB / 497.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004173/0.1361, allocations: 222 kB / 497.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.1379, allocations: 1.183 MB / 498.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004315/0.1383, allocations: 203.1 kB / 499 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.1385, allocations: 101.2 kB / 499.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.1386, allocations: 4.234 kB / 499.1 MB, free: 9.887 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.1386, allocations: 42.73 kB / 499.2 MB, free: 9.836 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.372e-06/0.1386, allocations: 0 / 499.2 MB, free: 9.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007042/0.1393, allocations: 324.3 kB / 499.5 MB, free: 9.516 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.1394, allocations: 51.41 kB / 499.6 MB, free: 9.453 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004634/0.1399, allocations: 282.5 kB / 499.8 MB, free: 9.164 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.1399, allocations: 29.7 kB / 499.9 MB, free: 9.129 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.1401, allocations: 184.3 kB / 0.4883 GB, free: 8.945 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.1402, allocations: 90.66 kB / 0.4884 GB, free: 8.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.1403, allocations: 77.97 kB / 0.4885 GB, free: 8.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.1405, allocations: 342.8 kB / 0.4888 GB, free: 8.426 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.1407, allocations: 100.7 kB / 0.4889 GB, free: 8.328 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.141, allocations: 180.8 kB / 0.4891 GB, free: 8.121 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.1428, allocations: 0.6141 MB / 0.4897 GB, free: 7.473 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1428, allocations: 4 kB / 0.4897 GB, free: 7.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005952/0.1434, allocations: 364.5 kB / 0.49 GB, free: 7.105 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1435, allocations: 11.94 kB / 0.49 GB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.1435, allocations: 4 kB / 0.49 GB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.1435, allocations: 4 kB / 0.49 GB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005714/0.1441, allocations: 112.1 kB / 0.4902 GB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.1441, allocations: 4 kB / 0.4902 GB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.1444, allocations: 55.58 kB / 0.4902 GB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.1444, allocations: 16 kB / 0.4902 GB, free: 6.902 MB / 366.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.0002283/0.1447, allocations: 168.9 kB / 0.4904 GB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/0.1447, allocations: 27.66 kB / 0.4904 GB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005386/0.1453, allocations: 297.5 kB / 0.4907 GB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1453, allocations: 4 kB / 0.4907 GB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1453, allocations: 0 / 0.4907 GB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.1453, allocations: 0 / 0.4907 GB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005558/0.1459, allocations: 369.3 kB / 0.4911 GB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1459, allocations: 4 kB / 0.4911 GB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003908/0.1463, allocations: 71.89 kB / 0.4911 GB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.1463, allocations: 7.938 kB / 0.4911 GB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.1463, allocations: 8 kB / 0.4911 GB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.1463, allocations: 0 / 0.4911 GB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1463, allocations: 0 / 0.4911 GB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006621/0.147, allocations: 495.2 kB / 0.4916 GB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.219e-05/0.1471, allocations: 108.6 kB / 0.4917 GB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.1471, allocations: 11.98 kB / 0.4917 GB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002623/0.1474, allocations: 27.97 kB / 0.4918 GB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.566e-05/0.1475, allocations: 27.95 kB / 0.4918 GB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.1475, allocations: 4 kB / 0.4918 GB, free: 5.207 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003076/0.1478, allocations: 205.9 kB / 0.492 GB, free: 5.008 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1478, allocations: 0 / 0.492 GB, free: 5.008 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003396/0.1482, allocations: 59.84 kB / 0.492 GB, free: 4.949 MB / 366.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.0001224/0.1483, allocations: 107.2 kB / 0.4921 GB, free: 4.836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005073/0.1488, allocations: 267.7 kB / 0.4924 GB, free: 4.574 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1488, allocations: 0 / 0.4924 GB, free: 4.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002035/0.149, allocations: 135.8 kB / 0.4925 GB, free: 4.441 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.1494, allocations: 30.91 kB / 0.4926 GB, free: 4.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.1506, allocations: 0.6952 MB / 0.4932 GB, free: 3.691 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.151, allocations: 0.7753 MB / 0.494 GB, free: 2.891 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001433/0.1512, allocations: 50.94 kB / 0.494 GB, free: 2.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.017e-05/0.1513, allocations: 27.44 kB / 0.4941 GB, free: 2.812 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1513, allocations: 0 / 0.4941 GB, free: 2.812 MB / 366.1 MB Notification: Performance of Templates: time 0.006678/0.1579, allocations: 2.763 MB / 0.4968 GB, free: 56 kB / 366.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)