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.005289/0.005289, allocations: 100.1 kB / 15.73 MB, free: 6.004 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.001152/0.001152, allocations: 191.5 kB / 16.67 MB, free: 5.926 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09115/0.09115, allocations: 22.33 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.91 kB / 437 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1292, allocations: 54.96 MB / 492 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003485/0.1327, allocations: 2.016 MB / 494 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.1339, allocations: 0.6195 MB / 494.6 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.134, allocations: 4 kB / 494.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003849/0.1344, allocations: 51.47 kB / 494.7 MB, free: 2.016 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001779/0.1346, allocations: 43.66 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.0002675/0.1349, allocations: 123.8 kB / 494.8 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003915/0.1353, allocations: 336 kB / 495.2 MB, free: 1.523 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002325/0.1355, allocations: 86.28 kB / 495.2 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.1357, allocations: 127.5 kB / 495.4 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.136, allocations: 155.3 kB / 495.5 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.446e-05/0.136, allocations: 24 kB / 495.5 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.181e-05/0.1361, allocations: 28 kB / 495.6 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.1362, allocations: 75.75 kB / 495.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.1364, allocations: 135.2 kB / 495.8 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.1367, allocations: 270.9 kB / 496 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1367, allocations: 0 / 496 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1367, allocations: 0 / 496 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.1367, allocations: 0 / 496 MB, free: 0.6367 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.001351/0.1381, allocations: 0.6316 MB / 496.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.1381, allocations: 8.031 kB / 496.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.174e-05/0.1382, allocations: 32.56 kB / 496.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005383/0.1388, allocations: 307.3 kB / 497 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.1388, allocations: 20.94 kB / 497 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.612e-05/0.1389, allocations: 36.38 kB / 497.1 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.1394, allocations: 298.5 kB / 497.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.1394, allocations: 0 / 497.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.1395, allocations: 15.94 kB / 497.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.1395, allocations: 8 kB / 497.4 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004336/0.1399, allocations: 218 kB / 497.6 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.1419, allocations: 1.19 MB / 498.8 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004195/0.1423, allocations: 203.1 kB / 499 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.1425, allocations: 101.3 kB / 499.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.1425, allocations: 4.234 kB / 499.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.1426, allocations: 38.73 kB / 499.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.1426, allocations: 0 / 499.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006648/0.1432, allocations: 333.1 kB / 499.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.1433, allocations: 55.41 kB / 499.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004067/0.1437, allocations: 278.5 kB / 499.8 MB, free: 12.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.1437, allocations: 33.7 kB / 499.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.1438, allocations: 168.4 kB / 500 MB, free: 12.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.412e-05/0.1439, allocations: 102.5 kB / 0.4884 GB, free: 12.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.144, allocations: 82 kB / 0.4884 GB, free: 12.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1442, allocations: 338.8 kB / 0.4888 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.1443, allocations: 92.77 kB / 0.4888 GB, free: 11.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002321/0.1446, allocations: 188.8 kB / 0.489 GB, free: 11.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001776/0.1464, allocations: 0.6179 MB / 0.4896 GB, free: 10.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1464, allocations: 0 / 0.4896 GB, free: 10.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005835/0.147, allocations: 368.5 kB / 0.49 GB, free: 10.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.147, allocations: 16.19 kB / 0.49 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.147, allocations: 4 kB / 0.49 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.147, allocations: 4 kB / 0.49 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006045/0.1476, allocations: 99.88 kB / 0.4901 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.1477, allocations: 4 kB / 0.4901 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002734/0.148, allocations: 47.66 kB / 0.4902 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.148, allocations: 16 kB / 0.4902 GB, free: 10.43 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.0002025/0.1482, allocations: 170.8 kB / 0.4903 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.1483, allocations: 31.56 kB / 0.4904 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005103/0.1488, allocations: 293.7 kB / 0.4906 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.1488, allocations: 7.984 kB / 0.4906 GB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1488, allocations: 0 / 0.4906 GB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1488, allocations: 0 / 0.4906 GB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005542/0.1494, allocations: 389.3 kB / 0.491 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1494, allocations: 0 / 0.491 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003772/0.1498, allocations: 71.84 kB / 0.4911 GB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.1498, allocations: 3.938 kB / 0.4911 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.1498, allocations: 11.98 kB / 0.4911 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1498, allocations: 0 / 0.4911 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1498, allocations: 0 / 0.4911 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006271/0.1505, allocations: 494.8 kB / 0.4916 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.543e-05/0.1505, allocations: 104.7 kB / 0.4917 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.163e-05/0.1506, allocations: 12 kB / 0.4917 GB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002705/0.1509, allocations: 23.97 kB / 0.4917 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.1509, allocations: 19.97 kB / 0.4917 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.151, allocations: 15.98 kB / 0.4917 GB, free: 8.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003115/0.1513, allocations: 197.9 kB / 0.4919 GB, free: 8.527 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1513, allocations: 0 / 0.4919 GB, free: 8.527 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.1516, allocations: 67.84 kB / 0.492 GB, free: 8.461 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.0001147/0.1517, allocations: 105.5 kB / 0.4921 GB, free: 8.352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004734/0.1522, allocations: 263.8 kB / 0.4923 GB, free: 8.094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1522, allocations: 0 / 0.4923 GB, free: 8.094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.1524, allocations: 132.5 kB / 0.4925 GB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.1528, allocations: 35.16 kB / 0.4925 GB, free: 7.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.154, allocations: 0.68 MB / 0.4932 GB, free: 7.227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.1543, allocations: 0.7792 MB / 0.4939 GB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.1544, allocations: 42.95 kB / 0.494 GB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.967e-05/0.1545, allocations: 31.44 kB / 0.494 GB, free: 6.348 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1545, allocations: 0 / 0.494 GB, free: 6.348 MB / 382.1 MB Notification: Performance of Templates: time 0.005929/0.1604, allocations: 2.687 MB / 0.4966 GB, free: 3.668 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)