Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.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.001367/0.001367, allocations: 109.1 kB / 17.14 MB, free: 5.93 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.001522/0.001522, allocations: 204 kB / 20.11 MB, free: 2.977 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.486/1.486, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1043/0.1043, allocations: 24.03 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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",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.00203/0.00203, allocations: 75.08 kB / 468.4 MB, free: 31.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1068, allocations: 59.54 MB / 0.5156 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.003802/0.1106, allocations: 1.307 MB / 0.5168 GB, free: 11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003099/0.1137, allocations: 1.463 MB / 0.5183 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.1138, allocations: 3.938 kB / 0.5183 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004354/0.1142, allocations: 95.39 kB / 0.5184 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000325/0.1146, allocations: 131.3 kB / 0.5185 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003787/0.1149, allocations: 195.6 kB / 0.5187 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006119/0.1156, allocations: 0.5146 MB / 0.5192 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.1157, allocations: 59.48 kB / 0.5192 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002935/0.116, allocations: 223.3 kB / 0.5195 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004182/0.1164, allocations: 267 kB / 0.5197 GB, free: 8.055 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.169e-05/0.1165, allocations: 28 kB / 0.5197 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.364e-05/0.1166, allocations: 32 kB / 0.5198 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.1168, allocations: 123.6 kB / 0.5199 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.1169, allocations: 147 kB / 0.52 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004822/0.1174, allocations: 330.4 kB / 0.5203 GB, free: 7.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.116e-06/0.1174, allocations: 4 kB / 0.5203 GB, free: 7.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1174, allocations: 0 / 0.5203 GB, free: 7.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.146e-06/0.1174, allocations: 0 / 0.5203 GB, free: 7.402 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002611/0.12, allocations: 0.8917 MB / 0.5212 GB, free: 6.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1201, allocations: 8.625 kB / 0.5212 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.077e-05/0.1202, allocations: 46.73 kB / 0.5213 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.881e-05/0.1203, allocations: 40.7 kB / 0.5213 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.1216, allocations: 498.3 kB / 0.5218 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.1216, allocations: 12.7 kB / 0.5218 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.1216, allocations: 20.33 kB / 0.5218 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.122, allocations: 216.3 kB / 0.522 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.1221, allocations: 0 / 0.522 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.1221, allocations: 8 kB / 0.522 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.1221, allocations: 4 kB / 0.522 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.1225, allocations: 232.4 kB / 0.5223 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.124, allocations: 0.7617 MB / 0.523 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007517/0.1247, allocations: 310.4 kB / 0.5233 GB, free: 4.223 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.125, allocations: 128.8 kB / 0.5234 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.125, allocations: 4 kB / 0.5234 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.125, allocations: 38.5 kB / 0.5235 GB, free: 4.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 2.164e-06/0.125, allocations: 4 kB / 0.5235 GB, free: 4.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.002022/0.1271, allocations: 0.7861 MB / 0.5242 GB, free: 3.203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.1271, allocations: 59.34 kB / 0.5243 GB, free: 3.133 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.1283, allocations: 0.5053 MB / 0.5248 GB, free: 2.617 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.1284, allocations: 25.7 kB / 0.5248 GB, free: 2.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.1285, allocations: 180.5 kB / 0.525 GB, free: 2.402 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.1286, allocations: 103.1 kB / 0.5251 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1287, allocations: 49.7 kB / 0.5251 GB, free: 2.246 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.1289, allocations: 350.8 kB / 0.5255 GB, free: 1.895 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/0.1291, allocations: 108.2 kB / 0.5256 GB, free: 1.785 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.1293, allocations: 116.4 kB / 0.5257 GB, free: 1.672 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002316/0.1316, allocations: 0.7137 MB / 0.5264 GB, free: 0.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1316, allocations: 0 / 0.5264 GB, free: 0.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.00097/0.1326, allocations: 491.7 kB / 0.5268 GB, free: 476 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1326, allocations: 4 kB / 0.5268 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1326, allocations: 0 / 0.5268 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003728/0.133, allocations: 109.6 kB / 0.5269 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.1332, allocations: 39.92 kB / 0.527 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003214/0.1364, allocations: 3.204 MB / 0.5301 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005516/0.137, allocations: 79.89 kB / 0.5302 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.137, allocations: 15.92 kB / 0.5302 GB, free: 12.73 MB / 398.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.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: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002669/0.1373, allocations: 180.4 kB / 0.5304 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.342e-05/0.1373, allocations: 35.77 kB / 0.5304 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001224/0.1375, allocations: 51.31 kB / 0.5305 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1375, allocations: 0 / 0.5305 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.1375, allocations: 8 kB / 0.5305 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1375, allocations: 3.984 kB / 0.5305 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005/0.138, allocations: 397.2 kB / 0.5308 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.138, allocations: 0 / 0.5308 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.1382, allocations: 39.91 kB / 0.5309 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003384/0.1385, allocations: 105.6 kB / 0.531 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.1386, allocations: 7.984 kB / 0.531 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003082/0.1416, allocations: 3.196 MB / 0.5341 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1416, allocations: 4.031 kB / 0.5341 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.1429, allocations: 0.6655 MB / 0.5348 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.143, allocations: 124.8 kB / 0.5349 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.608e-05/0.143, allocations: 8 kB / 0.5349 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005503/0.1436, allocations: 75.89 kB / 0.535 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.823e-05/0.1437, allocations: 23.97 kB / 0.535 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.1437, allocations: 4 kB / 0.535 GB, free: 7.434 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001121/0.1448, allocations: 410.9 kB / 0.5354 GB, free: 7.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1448, allocations: 0 / 0.5354 GB, free: 7.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004252/0.1452, allocations: 72 kB / 0.5355 GB, free: 6.965 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00155/0.1468, allocations: 1.211 MB / 0.5366 GB, free: 5.723 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009552/0.1477, allocations: 0.5206 MB / 0.5371 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1477, allocations: 0 / 0.5371 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006033/0.1483, allocations: 401.1 kB / 0.5375 GB, free: 4.758 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.1488, allocations: 62.48 kB / 0.5376 GB, free: 4.695 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007984/0.1568, allocations: 3.994 MB / 0.5415 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005892/0.1574, allocations: 0.8185 MB / 0.5423 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001957/0.1576, allocations: 74.89 kB / 0.5424 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.1578, allocations: 111.4 kB / 0.5425 GB, free: 15.58 MB / 414.1 MB Notification: Performance of SimCode: time 1.203e-06/0.1578, allocations: 0 / 0.5425 GB, free: 15.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04134/0.1991, allocations: 7.824 MB / 0.5501 GB, free: 7.859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.42, allocations: 4.062 kB / 0.5501 GB, free: 7.855 MB / 414.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Exploiting_2dof_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.28849302791059] Failed to read output from testmodel.py, exit status != 0: 10.50489329895936 10.518951108 10.398596826 Calling exit ...