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.001762/0.001762, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.002133/0.002133, allocations: 212.3 kB / 23.01 MB, free: 4.992 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.485/1.485, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.11/0.11, allocations: 24.04 MB / 337.2 MB, free: 11.33 MB / 270.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.002024/0.002024, allocations: 75.88 kB / 473.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.325, allocations: 59.57 MB / 0.5209 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002599/0.3276, allocations: 1.214 MB / 0.5221 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.3295, allocations: 1.42 MB / 0.5235 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.3297, allocations: 11.16 kB / 0.5235 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000402/0.3301, allocations: 97.14 kB / 0.5236 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002877/0.3304, allocations: 127.6 kB / 0.5237 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.3308, allocations: 232 kB / 0.5239 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007199/0.3315, allocations: 0.6142 MB / 0.5245 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.3317, allocations: 49.52 kB / 0.5246 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000274/0.332, allocations: 237.1 kB / 0.5248 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003456/0.3323, allocations: 252.7 kB / 0.525 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.368e-05/0.3324, allocations: 26.16 kB / 0.5251 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.132e-05/0.3324, allocations: 27.47 kB / 0.5251 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001569/0.3326, allocations: 135.2 kB / 0.5252 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.3327, allocations: 120.3 kB / 0.5253 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.3331, allocations: 338.1 kB / 0.5257 GB, free: 7.391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3331, allocations: 0 / 0.5257 GB, free: 7.391 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3331, allocations: 4 kB / 0.5257 GB, free: 7.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3331, allocations: 0 / 0.5257 GB, free: 7.387 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.002279/0.3354, allocations: 0.7991 MB / 0.5264 GB, free: 6.934 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.3354, allocations: 10.95 kB / 0.5264 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.914e-05/0.3355, allocations: 51.41 kB / 0.5265 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.882e-05/0.3356, allocations: 41.67 kB / 0.5265 GB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.3368, allocations: 433.1 kB / 0.527 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.3368, allocations: 11.48 kB / 0.527 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.3368, allocations: 24.98 kB / 0.527 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003772/0.3372, allocations: 214.2 kB / 0.5272 GB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.3372, allocations: 2.031 kB / 0.5272 GB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.3373, allocations: 5.406 kB / 0.5272 GB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.3373, allocations: 3.938 kB / 0.5272 GB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004345/0.3377, allocations: 238.1 kB / 0.5274 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.339, allocations: 0.6748 MB / 0.5281 GB, free: 6.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006923/0.3396, allocations: 312.2 kB / 0.5284 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.3399, allocations: 128 kB / 0.5285 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.3399, allocations: 3.781 kB / 0.5285 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.39e-05/0.3399, allocations: 39.88 kB / 0.5285 GB, free: 5.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.3399, allocations: 5.156 kB / 0.5286 GB, free: 5.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001826/0.3417, allocations: 0.6304 MB / 0.5292 GB, free: 5.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.3418, allocations: 58.72 kB / 0.5292 GB, free: 5.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/0.3429, allocations: 0.5024 MB / 0.5297 GB, free: 5.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.3429, allocations: 30.95 kB / 0.5297 GB, free: 5.367 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.151e-05/0.343, allocations: 171.8 kB / 0.5299 GB, free: 5.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.001e-05/0.3431, allocations: 107.5 kB / 0.53 GB, free: 5.137 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/0.3432, allocations: 48.39 kB / 0.5301 GB, free: 5.105 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.107e-05/0.3433, allocations: 354.2 kB / 0.5304 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.3434, allocations: 110.7 kB / 0.5305 GB, free: 4.734 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.3436, allocations: 110.5 kB / 0.5306 GB, free: 4.703 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/0.3458, allocations: 0.7213 MB / 0.5313 GB, free: 4.516 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3458, allocations: 3.938 kB / 0.5313 GB, free: 4.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008643/0.3467, allocations: 483.8 kB / 0.5318 GB, free: 4.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3467, allocations: 5.469 kB / 0.5318 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3467, allocations: 0 / 0.5318 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003544/0.3471, allocations: 112 kB / 0.5319 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.3473, allocations: 44.03 kB / 0.5319 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002204/0.3495, allocations: 2.978 MB / 0.5348 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005239/0.35, allocations: 82.2 kB / 0.5349 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.35, allocations: 12.78 kB / 0.5349 GB, free: 1.527 MB / 382.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.0002169/0.3502, allocations: 181.4 kB / 0.5351 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.59e-05/0.3503, allocations: 35.33 kB / 0.5351 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.706e-05/0.3504, allocations: 56.59 kB / 0.5352 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3504, allocations: 2.312 kB / 0.5352 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.3504, allocations: 1.906 kB / 0.5352 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.3504, allocations: 2.562 kB / 0.5352 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003998/0.3508, allocations: 324.1 kB / 0.5355 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3508, allocations: 1.781 kB / 0.5355 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/0.351, allocations: 37.03 kB / 0.5355 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003089/0.3513, allocations: 106.8 kB / 0.5356 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.3514, allocations: 8.828 kB / 0.5357 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002755/0.3541, allocations: 2.99 MB / 0.5386 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3541, allocations: 1.125 kB / 0.5386 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.3554, allocations: 0.656 MB / 0.5392 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.3555, allocations: 46.72 kB / 0.5393 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.3555, allocations: 14.44 kB / 0.5393 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005363/0.3561, allocations: 66.23 kB / 0.5393 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.164e-05/0.3561, allocations: 22.55 kB / 0.5394 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.3562, allocations: 9.391 kB / 0.5394 GB, free: 13.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001073/0.3572, allocations: 405.3 kB / 0.5398 GB, free: 13.81 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3572, allocations: 4 kB / 0.5398 GB, free: 13.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003883/0.3576, allocations: 80.42 kB / 0.5398 GB, free: 13.79 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.001517/0.3591, allocations: 1.205 MB / 0.541 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.3602, allocations: 0.5287 MB / 0.5415 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3602, allocations: 0 / 0.5415 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005939/0.3608, allocations: 391.3 kB / 0.5419 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004675/0.3613, allocations: 61.61 kB / 0.542 GB, free: 12.31 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008037/0.3693, allocations: 4.006 MB / 0.5459 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.3696, allocations: 210.5 kB / 0.5461 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001869/0.3698, allocations: 76.14 kB / 0.5461 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/0.3699, allocations: 110.5 kB / 0.5462 GB, free: 9.859 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3699, allocations: 0 / 0.5462 GB, free: 9.859 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05522/0.4252, allocations: 8.583 MB / 0.5546 GB, free: 5.422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.33, allocations: 14.08 kB / 0.5546 GB, free: 5.418 MB / 398.1 MB " [Timeout remaining time 648] (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: 15.215739219915122] Failed to read output from testmodel.py, exit status != 0: 12.446372855920345 12.475385511 12.137864248 Calling exit ...