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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004452/0.004452, allocations: 103.8 kB / 15.74 MB, free: 6.445 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.00113/0.00113, allocations: 196.3 kB / 16.67 MB, free: 6.352 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1914/0.1914, allocations: 22.37 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 60.22 kB / 436.6 MB, free: 34.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.109, allocations: 54.98 MB / 491.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002894/0.112, allocations: 2.005 MB / 493.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.1132, allocations: 0.6273 MB / 494.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002179/0.1135, allocations: 7.938 kB / 494.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003533/0.1138, allocations: 59.45 kB / 494.3 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.1141, allocations: 31.73 kB / 494.3 MB, free: 14.97 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.0003238/0.1144, allocations: 123.8 kB / 494.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004243/0.1148, allocations: 332 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.1151, allocations: 98.48 kB / 494.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002209/0.1153, allocations: 127.5 kB / 494.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.1156, allocations: 139.4 kB / 495.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.549e-05/0.1156, allocations: 31.98 kB / 495.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.641e-05/0.1157, allocations: 28 kB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.1158, allocations: 79.73 kB / 495.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.116, allocations: 131.2 kB / 495.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00037/0.1163, allocations: 274.7 kB / 495.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1164, allocations: 4 kB / 495.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1164, allocations: 0 / 495.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.1164, allocations: 0 / 495.6 MB, free: 13.62 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.001538/0.1179, allocations: 0.6391 MB / 496.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.118, allocations: 8.031 kB / 496.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.011e-05/0.1181, allocations: 58.73 kB / 496.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.25e-05/0.1182, allocations: 36.7 kB / 496.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006766/0.1189, allocations: 307.5 kB / 496.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.061e-05/0.1189, allocations: 24.94 kB / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.587e-05/0.119, allocations: 32.36 kB / 496.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007898/0.1198, allocations: 302.4 kB / 497 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.1199, allocations: 0 / 497 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.291e-05/0.1199, allocations: 19.88 kB / 497 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.1199, allocations: 8 kB / 497 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004776/0.1204, allocations: 218.1 kB / 497.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/0.1228, allocations: 1.179 MB / 498.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004658/0.1233, allocations: 207.2 kB / 498.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.1235, allocations: 105.2 kB / 498.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.1235, allocations: 4.234 kB / 498.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.1236, allocations: 38.73 kB / 498.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.483e-06/0.1236, allocations: 0 / 498.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.000721/0.1243, allocations: 328.4 kB / 499.1 MB, free: 9.945 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.1244, allocations: 55.41 kB / 499.2 MB, free: 9.879 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004858/0.1249, allocations: 282.5 kB / 499.4 MB, free: 9.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.1249, allocations: 33.7 kB / 499.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.125, allocations: 168.7 kB / 499.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.238e-05/0.1251, allocations: 115.1 kB / 499.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.1253, allocations: 74.06 kB / 499.8 MB, free: 9.188 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1254, allocations: 338.8 kB / 0.4884 GB, free: 8.848 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.1257, allocations: 96.7 kB / 0.4885 GB, free: 8.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.1259, allocations: 184.8 kB / 0.4887 GB, free: 8.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001936/0.1279, allocations: 0.618 MB / 0.4893 GB, free: 7.891 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1279, allocations: 0 / 0.4893 GB, free: 7.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006668/0.1286, allocations: 372.6 kB / 0.4896 GB, free: 7.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1286, allocations: 4.312 kB / 0.4897 GB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1286, allocations: 8 kB / 0.4897 GB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.1287, allocations: 4 kB / 0.4897 GB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006026/0.1293, allocations: 107.8 kB / 0.4898 GB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.1293, allocations: 4 kB / 0.4898 GB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.1296, allocations: 55.69 kB / 0.4898 GB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.1297, allocations: 16 kB / 0.4898 GB, free: 7.324 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.0002139/0.1299, allocations: 162.9 kB / 0.49 GB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.358e-05/0.13, allocations: 35.73 kB / 0.49 GB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000545/0.1305, allocations: 297.5 kB / 0.4903 GB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1305, allocations: 0 / 0.4903 GB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1306, allocations: 0 / 0.4903 GB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1306, allocations: 4 kB / 0.4903 GB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006005/0.1312, allocations: 377.2 kB / 0.4907 GB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1312, allocations: 4 kB / 0.4907 GB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000386/0.1316, allocations: 71.83 kB / 0.4907 GB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.1316, allocations: 4 kB / 0.4908 GB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.1316, allocations: 12 kB / 0.4908 GB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1317, allocations: 0 / 0.4908 GB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1317, allocations: 0 / 0.4908 GB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007084/0.1324, allocations: 491.4 kB / 0.4912 GB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.961e-05/0.1325, allocations: 112.8 kB / 0.4913 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.1325, allocations: 12 kB / 0.4914 GB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.1328, allocations: 31.95 kB / 0.4914 GB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.218e-05/0.1329, allocations: 19.97 kB / 0.4914 GB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.92e-05/0.1329, allocations: 12 kB / 0.4914 GB, free: 5.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003272/0.1333, allocations: 197.9 kB / 0.4916 GB, free: 5.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1333, allocations: 4 kB / 0.4916 GB, free: 5.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003502/0.1336, allocations: 55.94 kB / 0.4917 GB, free: 5.363 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.001045/0.1347, allocations: 1.029 MB / 0.4927 GB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005003/0.1352, allocations: 260.7 kB / 0.4929 GB, free: 4.055 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1352, allocations: 4.188 kB / 0.4929 GB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.1354, allocations: 135.8 kB / 0.493 GB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.1358, allocations: 35.2 kB / 0.4931 GB, free: 3.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004435/0.1402, allocations: 3.176 MB / 0.4962 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.1406, allocations: 0.7831 MB / 0.4969 GB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001547/0.1408, allocations: 42.95 kB / 0.497 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/0.141, allocations: 103.3 kB / 0.4971 GB, free: 15.61 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.141, allocations: 0 / 0.4971 GB, free: 15.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.1643, allocations: 5.727 MB / 0.5027 GB, free: 9.961 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.797, allocations: 7.922 kB / 0.5027 GB, free: 9.953 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking.fmu > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)