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.001815/0.001815, allocations: 116.8 kB / 17.16 MB, free: 5.895 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.002328/0.002328, allocations: 212 kB / 20.13 MB, free: 2.949 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.71/1.71, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1161/0.1161, allocations: 22.93 MB / 332.5 MB, free: 2.648 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="cs",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.002809/0.002809, allocations: 63.44 kB / 466.7 MB, free: 32.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1148, allocations: 59.27 MB / 0.5137 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003635/0.1185, allocations: 2.034 MB / 0.5157 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.1199, allocations: 0.666 MB / 0.5163 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.12, allocations: 7.938 kB / 0.5163 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003226/0.1203, allocations: 51.47 kB / 0.5164 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001591/0.1205, allocations: 39.7 kB / 0.5164 GB, free: 11.19 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.0002832/0.1208, allocations: 127.8 kB / 0.5165 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004044/0.1212, allocations: 332 kB / 0.5168 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.1214, allocations: 74.19 kB / 0.5169 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.1215, allocations: 123.5 kB / 0.517 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.1217, allocations: 155.3 kB / 0.5172 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.154e-05/0.1218, allocations: 31.94 kB / 0.5172 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.623e-05/0.1218, allocations: 28 kB / 0.5172 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.122, allocations: 83.73 kB / 0.5173 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.1221, allocations: 135.2 kB / 0.5174 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003461/0.1224, allocations: 266.8 kB / 0.5177 GB, free: 9.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1224, allocations: 0 / 0.5177 GB, free: 9.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1225, allocations: 0 / 0.5177 GB, free: 9.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.1225, allocations: 0 / 0.5177 GB, free: 9.863 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.001512/0.124, allocations: 0.639 MB / 0.5183 GB, free: 9.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.124, allocations: 12.62 kB / 0.5183 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.973e-05/0.124, allocations: 4.75 kB / 0.5183 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.621e-05/0.1241, allocations: 58.73 kB / 0.5184 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.192e-05/0.1242, allocations: 36.73 kB / 0.5184 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005714/0.1248, allocations: 315.3 kB / 0.5187 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.723e-05/0.1248, allocations: 24.94 kB / 0.5188 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.36e-05/0.1249, allocations: 32.33 kB / 0.5188 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005525/0.1254, allocations: 298.1 kB / 0.5191 GB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1254, allocations: 11.98 kB / 0.5191 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.1255, allocations: 8 kB / 0.5191 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.1255, allocations: 8 kB / 0.5191 GB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004668/0.1259, allocations: 218 kB / 0.5193 GB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.1281, allocations: 1.179 MB / 0.5205 GB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000474/0.1286, allocations: 209.5 kB / 0.5207 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001886/0.1288, allocations: 93.3 kB / 0.5207 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.1288, allocations: 8.156 kB / 0.5208 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.1288, allocations: 38.8 kB / 0.5208 GB, free: 6.496 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.1288, allocations: 0 / 0.5208 GB, free: 6.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007694/0.1296, allocations: 324.6 kB / 0.5211 GB, free: 6.176 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.1296, allocations: 51.41 kB / 0.5212 GB, free: 6.113 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004712/0.1301, allocations: 294.4 kB / 0.5214 GB, free: 5.812 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.1301, allocations: 29.7 kB / 0.5215 GB, free: 5.777 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1303, allocations: 176.7 kB / 0.5216 GB, free: 5.602 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.23e-05/0.1304, allocations: 103.1 kB / 0.5217 GB, free: 5.496 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.1305, allocations: 74.06 kB / 0.5218 GB, free: 5.414 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1307, allocations: 338.8 kB / 0.5221 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.1309, allocations: 100.8 kB / 0.5222 GB, free: 4.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.1312, allocations: 180.8 kB / 0.5224 GB, free: 4.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002006/0.1332, allocations: 0.6186 MB / 0.523 GB, free: 4.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.1332, allocations: 4 kB / 0.523 GB, free: 4.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006635/0.1338, allocations: 368.7 kB / 0.5233 GB, free: 3.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.1338, allocations: 11.94 kB / 0.5234 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1339, allocations: 4 kB / 0.5234 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.642e-05/0.1339, allocations: 11.98 kB / 0.5234 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.1345, allocations: 95.89 kB / 0.5235 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.1345, allocations: 7.984 kB / 0.5235 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.1348, allocations: 52.06 kB / 0.5235 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.1349, allocations: 16 kB / 0.5235 GB, free: 3.551 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.0002328/0.1351, allocations: 154.9 kB / 0.5237 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.572e-05/0.1352, allocations: 35.75 kB / 0.5237 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005894/0.1357, allocations: 300.8 kB / 0.524 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1357, allocations: 4 kB / 0.524 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1358, allocations: 0 / 0.524 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1358, allocations: 0 / 0.524 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006314/0.1364, allocations: 381.2 kB / 0.5244 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1364, allocations: 3.938 kB / 0.5244 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004059/0.1368, allocations: 71.89 kB / 0.5244 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1368, allocations: 0 / 0.5244 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/0.1368, allocations: 8 kB / 0.5245 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.1368, allocations: 4 kB / 0.5245 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1368, allocations: 4 kB / 0.5245 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007469/0.1376, allocations: 484.2 kB / 0.5249 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.1377, allocations: 116.8 kB / 0.525 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.032e-05/0.1377, allocations: 4 kB / 0.525 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002729/0.138, allocations: 23.97 kB / 0.5251 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.094e-05/0.1381, allocations: 27.95 kB / 0.5251 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1381, allocations: 8 kB / 0.5251 GB, free: 1.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003644/0.1385, allocations: 201.9 kB / 0.5253 GB, free: 1.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1385, allocations: 0 / 0.5253 GB, free: 1.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.1388, allocations: 59.89 kB / 0.5253 GB, free: 1.602 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.001151/0.14, allocations: 1.03 MB / 0.5264 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005825/0.1405, allocations: 251.8 kB / 0.5266 GB, free: 308 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1405, allocations: 0 / 0.5266 GB, free: 308 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.1408, allocations: 132.4 kB / 0.5267 GB, free: 176 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.1412, allocations: 24.56 kB / 0.5267 GB, free: 152 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005012/0.1462, allocations: 3.171 MB / 0.5298 GB, free: 12.83 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.1466, allocations: 0.783 MB / 0.5306 GB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001657/0.1468, allocations: 46.95 kB / 0.5306 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.147, allocations: 107.3 kB / 0.5308 GB, free: 11.88 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.147, allocations: 0 / 0.5308 GB, free: 11.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.1719, allocations: 5.797 MB / 0.5364 GB, free: 6.164 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.687/8.859, allocations: 8 kB / 0.5364 GB, free: 6.156 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking_fmu --startTime=0 --stopTime=600 --stepSize=1 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking.fmu > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.928766097000334] Failed to read output from testmodel.py, exit status != 0: 8.989023776026443 9.003700223 8.878149701 Calling exit ...