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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 106.2 kB / 16.4 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 192.6 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 245.1 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09971/0.09971, allocations: 22.34 MB / 319.6 MB, free: 6.785 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 67.89 kB / 445.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1128, allocations: 54.94 MB / 0.4885 GB, free: 1.641 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003289/0.1161, allocations: 2.022 MB / 0.4904 GB, free: 15.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.1173, allocations: 0.6273 MB / 0.4911 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1174, allocations: 0 / 0.4911 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003011/0.1177, allocations: 55.41 kB / 0.4911 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.1179, allocations: 43.64 kB / 0.4912 GB, free: 14.87 MB / 382.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.0002785/0.1182, allocations: 123.8 kB / 0.4913 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003931/0.1186, allocations: 328 kB / 0.4916 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.1188, allocations: 102.2 kB / 0.4917 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.119, allocations: 119.6 kB / 0.4918 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.1192, allocations: 151.3 kB / 0.4919 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.974e-05/0.1193, allocations: 24 kB / 0.492 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.912e-05/0.1193, allocations: 28 kB / 0.492 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.1195, allocations: 83.73 kB / 0.4921 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.1196, allocations: 131.2 kB / 0.4922 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003279/0.1199, allocations: 270.7 kB / 0.4925 GB, free: 13.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.12, allocations: 0 / 0.4925 GB, free: 13.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.12, allocations: 4 kB / 0.4925 GB, free: 13.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.12, allocations: 0 / 0.4925 GB, free: 13.53 MB / 382.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.001331/0.1213, allocations: 0.6352 MB / 0.4931 GB, free: 12.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1214, allocations: 8.031 kB / 0.4931 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.382e-05/0.1214, allocations: 58.73 kB / 0.4931 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.588e-05/0.1215, allocations: 36.73 kB / 0.4932 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.122, allocations: 303.5 kB / 0.4935 GB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.1221, allocations: 20.94 kB / 0.4935 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.79e-05/0.1221, allocations: 32.38 kB / 0.4935 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.1227, allocations: 302.3 kB / 0.4938 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.1227, allocations: 0 / 0.4938 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.1227, allocations: 12 kB / 0.4938 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.1227, allocations: 8 kB / 0.4938 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004566/0.1232, allocations: 222 kB / 0.494 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002079/0.1253, allocations: 1.198 MB / 0.4952 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004603/0.1258, allocations: 203.2 kB / 0.4954 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.126, allocations: 98 kB / 0.4955 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.126, allocations: 4.234 kB / 0.4955 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.1261, allocations: 38.73 kB / 0.4955 GB, free: 10.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.884e-06/0.1261, allocations: 0 / 0.4955 GB, free: 10.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.000719/0.1268, allocations: 333.7 kB / 0.4959 GB, free: 9.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.1269, allocations: 55.41 kB / 0.4959 GB, free: 9.785 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004504/0.1273, allocations: 278.5 kB / 0.4962 GB, free: 9.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.1274, allocations: 33.7 kB / 0.4962 GB, free: 9.461 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.1275, allocations: 176.6 kB / 0.4964 GB, free: 9.285 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.091e-05/0.1276, allocations: 107.1 kB / 0.4965 GB, free: 9.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.1277, allocations: 78.06 kB / 0.4965 GB, free: 9.094 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1279, allocations: 342.8 kB / 0.4969 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.1281, allocations: 96.69 kB / 0.497 GB, free: 8.656 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.1284, allocations: 180.8 kB / 0.4971 GB, free: 8.445 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001961/0.1304, allocations: 0.6179 MB / 0.4977 GB, free: 7.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1304, allocations: 0 / 0.4977 GB, free: 7.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006716/0.1311, allocations: 376.6 kB / 0.4981 GB, free: 7.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1311, allocations: 4 kB / 0.4981 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.1311, allocations: 4.312 kB / 0.4981 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.1312, allocations: 11.98 kB / 0.4981 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006336/0.1318, allocations: 95.89 kB / 0.4982 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.1318, allocations: 7.984 kB / 0.4982 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.1321, allocations: 59.64 kB / 0.4983 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.014e-05/0.1322, allocations: 12 kB / 0.4983 GB, free: 7.227 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.0002695/0.1324, allocations: 170.9 kB / 0.4985 GB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.66e-05/0.1325, allocations: 31.75 kB / 0.4985 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005992/0.1331, allocations: 297.7 kB / 0.4988 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.1331, allocations: 4 kB / 0.4988 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.1332, allocations: 0 / 0.4988 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.1332, allocations: 0 / 0.4988 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006594/0.1338, allocations: 369.3 kB / 0.4991 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1338, allocations: 0 / 0.4991 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003937/0.1342, allocations: 79.83 kB / 0.4992 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1343, allocations: 0 / 0.4992 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.61e-05/0.1343, allocations: 12 kB / 0.4992 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1343, allocations: 0 / 0.4992 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1343, allocations: 0 / 0.4992 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007808/0.1351, allocations: 487.1 kB / 0.4997 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.1352, allocations: 112.8 kB / 0.4998 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.1353, allocations: 8 kB / 0.4998 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002754/0.1356, allocations: 27.97 kB / 0.4998 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.266e-05/0.1357, allocations: 19.97 kB / 0.4998 GB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.1357, allocations: 12 kB / 0.4998 GB, free: 5.531 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003642/0.1361, allocations: 197.9 kB / 0.5 GB, free: 5.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1361, allocations: 0 / 0.5 GB, free: 5.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003598/0.1364, allocations: 63.89 kB / 0.5001 GB, free: 5.277 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.001164/0.1376, allocations: 1.021 MB / 0.5011 GB, free: 4.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005749/0.1382, allocations: 268.5 kB / 0.5014 GB, free: 3.969 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1382, allocations: 3.938 kB / 0.5014 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002183/0.1384, allocations: 143.9 kB / 0.5015 GB, free: 3.824 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.1388, allocations: 33.3 kB / 0.5015 GB, free: 3.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004943/0.1438, allocations: 3.178 MB / 0.5046 GB, free: 488 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2027/0.3465, allocations: 0.7794 MB / 0.5054 GB, free: 20.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002087/0.3468, allocations: 46.33 kB / 0.5054 GB, free: 20.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3469, allocations: 99.8 kB / 0.5055 GB, free: 20.32 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3469, allocations: 1.812 kB / 0.5055 GB, free: 20.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.3762, allocations: 5.721 MB / 0.5111 GB, free: 19.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.131/8.508, allocations: 10 kB / 0.5111 GB, free: 19.83 MB / 382.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.189410121995024] Failed to read output from testmodel.py, exit status != 0: 8.578940200968646 8.59858086 8.474879745 Calling exit ...