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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 108.2 kB / 17.15 MB, free: 6.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 208.5 kB / 20.11 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.572/1.572, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1076/0.1076, allocations: 24.02 MB / 333.6 MB, free: 1.566 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 61.34 kB / 468.4 MB, free: 31.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.09629, allocations: 59.55 MB / 0.5156 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003848/0.1001, allocations: 2.026 MB / 0.5175 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.1015, allocations: 0.6738 MB / 0.5182 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001887/0.1017, allocations: 7.938 kB / 0.5182 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003612/0.1021, allocations: 55.45 kB / 0.5183 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002254/0.1023, allocations: 39.66 kB / 0.5183 GB, free: 9.492 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.0003723/0.1027, allocations: 123.8 kB / 0.5184 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005223/0.1032, allocations: 328 kB / 0.5187 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.1034, allocations: 78.19 kB / 0.5188 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/0.1037, allocations: 135.5 kB / 0.5189 GB, free: 8.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.1039, allocations: 155.3 kB / 0.5191 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.891e-05/0.104, allocations: 28 kB / 0.5191 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.942e-05/0.1041, allocations: 24 kB / 0.5191 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.1042, allocations: 79.75 kB / 0.5192 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.1044, allocations: 135.2 kB / 0.5193 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000408/0.1048, allocations: 266.8 kB / 0.5196 GB, free: 8.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1048, allocations: 0 / 0.5196 GB, free: 8.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1048, allocations: 0 / 0.5196 GB, free: 8.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.1048, allocations: 0 / 0.5196 GB, free: 8.168 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.001691/0.1065, allocations: 0.639 MB / 0.5202 GB, free: 7.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.1065, allocations: 12.62 kB / 0.5202 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.899e-05/0.1066, allocations: 62.73 kB / 0.5203 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.225e-05/0.1067, allocations: 32.75 kB / 0.5203 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000611/0.1073, allocations: 307.4 kB / 0.5206 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/0.1074, allocations: 20.94 kB / 0.5206 GB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/0.1074, allocations: 36.33 kB / 0.5207 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005492/0.108, allocations: 306.3 kB / 0.521 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.108, allocations: 3.938 kB / 0.521 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.108, allocations: 8 kB / 0.521 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.108, allocations: 8 kB / 0.521 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004665/0.1085, allocations: 222 kB / 0.5212 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.1107, allocations: 1.187 MB / 0.5224 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.1111, allocations: 195.2 kB / 0.5225 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.1113, allocations: 97.28 kB / 0.5226 GB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.898e-05/0.1114, allocations: 4.234 kB / 0.5226 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.1114, allocations: 34.73 kB / 0.5227 GB, free: 4.812 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.423e-06/0.1114, allocations: 0 / 0.5227 GB, free: 4.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007627/0.1122, allocations: 328.6 kB / 0.523 GB, free: 4.488 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.1122, allocations: 59.41 kB / 0.523 GB, free: 4.418 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004665/0.1127, allocations: 286.4 kB / 0.5233 GB, free: 4.129 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.1127, allocations: 29.7 kB / 0.5233 GB, free: 4.094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1129, allocations: 172.7 kB / 0.5235 GB, free: 3.922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.113, allocations: 107.1 kB / 0.5236 GB, free: 3.816 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.1131, allocations: 78.06 kB / 0.5237 GB, free: 3.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.1133, allocations: 338.8 kB / 0.524 GB, free: 3.391 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.1135, allocations: 96.77 kB / 0.5241 GB, free: 3.297 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.1138, allocations: 180.7 kB / 0.5243 GB, free: 3.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001963/0.1157, allocations: 0.6187 MB / 0.5249 GB, free: 2.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1158, allocations: 4 kB / 0.5249 GB, free: 2.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006698/0.1164, allocations: 368.6 kB / 0.5252 GB, free: 2.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1164, allocations: 10.34 kB / 0.5252 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.1165, allocations: 4 kB / 0.5252 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1165, allocations: 4 kB / 0.5252 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006442/0.1171, allocations: 104.2 kB / 0.5253 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.1171, allocations: 7.938 kB / 0.5254 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003175/0.1174, allocations: 59.73 kB / 0.5254 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.051e-05/0.1175, allocations: 15.98 kB / 0.5254 GB, free: 1.863 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.0002322/0.1177, allocations: 158.9 kB / 0.5256 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.331e-05/0.1178, allocations: 35.75 kB / 0.5256 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006463/0.1184, allocations: 305.2 kB / 0.5259 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.1184, allocations: 4 kB / 0.5259 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1184, allocations: 0 / 0.5259 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1184, allocations: 3.938 kB / 0.5259 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006274/0.1191, allocations: 381.3 kB / 0.5263 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1191, allocations: 3.938 kB / 0.5263 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003949/0.1195, allocations: 67.89 kB / 0.5263 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.1195, allocations: 4 kB / 0.5263 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.1195, allocations: 12 kB / 0.5264 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1195, allocations: 7.938 kB / 0.5264 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1195, allocations: 0 / 0.5264 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007436/0.1202, allocations: 480 kB / 0.5268 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.682e-05/0.1203, allocations: 108.8 kB / 0.5269 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.195e-05/0.1204, allocations: 7.984 kB / 0.5269 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.1206, allocations: 31.97 kB / 0.527 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.1207, allocations: 19.97 kB / 0.527 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.87e-05/0.1207, allocations: 12 kB / 0.527 GB, free: 160 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000376/0.1211, allocations: 197.9 kB / 0.5272 GB, free: 15.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1211, allocations: 0 / 0.5272 GB, free: 15.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003571/0.1215, allocations: 59.89 kB / 0.5272 GB, free: 15.91 MB / 398.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.001092/0.1226, allocations: 1.028 MB / 0.5282 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005181/0.1231, allocations: 247.8 kB / 0.5285 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1231, allocations: 4 kB / 0.5285 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002288/0.1233, allocations: 133 kB / 0.5286 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.1237, allocations: 36.55 kB / 0.5286 GB, free: 14.44 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004823/0.1285, allocations: 3.154 MB / 0.5317 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.1289, allocations: 0.7831 MB / 0.5325 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000155/0.1291, allocations: 46.95 kB / 0.5325 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.1292, allocations: 95.41 kB / 0.5326 GB, free: 10.2 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1292, allocations: 0 / 0.5326 GB, free: 10.2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03045/0.1597, allocations: 5.778 MB / 0.5383 GB, free: 4.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.266/8.425, allocations: 8.5 kB / 0.5383 GB, free: 4.488 MB / 398.1 MB " [Timeout remaining time 652] (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.442779996898025] Failed to read output from testmodel.py, exit status != 0: 8.496757556917146 8.512608988 8.404756708 Calling exit ...