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.001919/0.001919, 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.002098/0.002098, allocations: 212.6 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.602/1.602, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.1087/0.1087, allocations: 24.04 MB / 337.2 MB, free: 11.32 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.002138/0.002138, allocations: 75.89 kB / 473.8 MB, free: 6.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3789, allocations: 59.57 MB / 0.5209 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002635/0.3816, allocations: 1.212 MB / 0.5221 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.3837, allocations: 1.425 MB / 0.5235 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.3839, allocations: 7.594 kB / 0.5235 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004889/0.3844, allocations: 98.88 kB / 0.5236 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003492/0.3847, allocations: 129.8 kB / 0.5237 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005842/0.3853, allocations: 231.1 kB / 0.5239 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008687/0.3862, allocations: 0.6096 MB / 0.5245 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.3863, allocations: 46.78 kB / 0.5246 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003509/0.3867, allocations: 240.3 kB / 0.5248 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004349/0.3871, allocations: 256.8 kB / 0.525 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.173e-05/0.3872, allocations: 26.47 kB / 0.5251 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.368e-05/0.3873, allocations: 28.53 kB / 0.5251 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.3874, allocations: 130.6 kB / 0.5252 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.3876, allocations: 123.6 kB / 0.5253 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004247/0.388, allocations: 336.8 kB / 0.5257 GB, free: 7.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.388, allocations: 0 / 0.5257 GB, free: 7.453 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.388, allocations: 1.344 kB / 0.5257 GB, free: 7.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.388, allocations: 0 / 0.5257 GB, free: 7.453 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.002216/0.3902, allocations: 0.7969 MB / 0.5264 GB, free: 7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.3903, allocations: 11.23 kB / 0.5264 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.777e-05/0.3903, allocations: 55.55 kB / 0.5265 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.703e-05/0.3904, allocations: 39.23 kB / 0.5265 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.3917, allocations: 438.4 kB / 0.527 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.3917, allocations: 11.42 kB / 0.527 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.372e-05/0.3917, allocations: 26.05 kB / 0.527 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004331/0.3922, allocations: 213.3 kB / 0.5272 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.3922, allocations: 1.375 kB / 0.5272 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.3922, allocations: 5.219 kB / 0.5272 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.3922, allocations: 3.938 kB / 0.5272 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005167/0.3927, allocations: 230.6 kB / 0.5274 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.3942, allocations: 0.6773 MB / 0.5281 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007393/0.3949, allocations: 319.5 kB / 0.5284 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.3951, allocations: 128.6 kB / 0.5285 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.3952, allocations: 2.469 kB / 0.5285 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.3952, allocations: 38.23 kB / 0.5286 GB, free: 5.938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.443e-06/0.3952, allocations: 0 / 0.5286 GB, free: 5.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0019/0.3971, allocations: 0.6377 MB / 0.5292 GB, free: 5.727 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.3971, allocations: 59.23 kB / 0.5292 GB, free: 5.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.3983, allocations: 0.5013 MB / 0.5297 GB, free: 5.465 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.3983, allocations: 30.77 kB / 0.5298 GB, free: 5.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.538e-05/0.3984, allocations: 177.6 kB / 0.5299 GB, free: 5.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.23e-05/0.3985, allocations: 105.2 kB / 0.53 GB, free: 5.195 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.912e-05/0.3985, allocations: 50.16 kB / 0.5301 GB, free: 5.164 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.455e-05/0.3986, allocations: 348.6 kB / 0.5304 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.3988, allocations: 111.4 kB / 0.5305 GB, free: 4.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.399, allocations: 114.6 kB / 0.5306 GB, free: 4.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002337/0.4013, allocations: 0.7125 MB / 0.5313 GB, free: 4.582 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4013, allocations: 4.562 kB / 0.5313 GB, free: 4.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008818/0.4022, allocations: 488 kB / 0.5318 GB, free: 4.379 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.4022, allocations: 11.19 kB / 0.5318 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.4022, allocations: 0 / 0.5318 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003562/0.4026, allocations: 105.7 kB / 0.5319 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.4028, allocations: 44.92 kB / 0.5319 GB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002129/0.4049, allocations: 2.974 MB / 0.5348 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005213/0.4054, allocations: 82.38 kB / 0.5349 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.4055, allocations: 12.78 kB / 0.5349 GB, free: 1.594 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.0002427/0.4057, allocations: 177.6 kB / 0.5351 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.102e-05/0.4058, allocations: 34.7 kB / 0.5351 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.4059, allocations: 56.05 kB / 0.5352 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4059, allocations: 3.5 kB / 0.5352 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.4059, allocations: 1.062 kB / 0.5352 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.4059, allocations: 5.547 kB / 0.5352 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003962/0.4063, allocations: 322.2 kB / 0.5355 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4063, allocations: 0.7969 kB / 0.5355 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002146/0.4065, allocations: 45.14 kB / 0.5355 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003137/0.4068, allocations: 102.6 kB / 0.5356 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.778e-05/0.4069, allocations: 8.953 kB / 0.5357 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002584/0.4094, allocations: 2.986 MB / 0.5386 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4094, allocations: 0.6094 kB / 0.5386 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.4107, allocations: 0.6568 MB / 0.5392 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.4108, allocations: 47.94 kB / 0.5393 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.923e-05/0.4108, allocations: 8.391 kB / 0.5393 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005283/0.4114, allocations: 75.83 kB / 0.5393 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.422e-05/0.4114, allocations: 22.75 kB / 0.5394 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.4115, allocations: 4.75 kB / 0.5394 GB, free: 14.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001132/0.4126, allocations: 405.3 kB / 0.5398 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4126, allocations: 0 / 0.5398 GB, free: 13.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004309/0.413, allocations: 77.14 kB / 0.5398 GB, free: 13.86 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.001663/0.4147, allocations: 1.211 MB / 0.541 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.4158, allocations: 0.5277 MB / 0.5415 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4158, allocations: 5.469 kB / 0.5415 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006315/0.4164, allocations: 389.9 kB / 0.5419 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004805/0.4169, allocations: 57.75 kB / 0.542 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008306/0.4252, allocations: 4.001 MB / 0.5459 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.4254, allocations: 222.2 kB / 0.5461 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002206/0.4257, allocations: 67.73 kB / 0.5461 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.4259, allocations: 115.3 kB / 0.5462 GB, free: 9.941 MB / 398.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4259, allocations: 0 / 0.5462 GB, free: 9.941 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04789/0.4738, allocations: 8.591 MB / 0.5546 GB, free: 5.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.43, allocations: 4.953 kB / 0.5546 GB, free: 5.496 MB / 398.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Exploiting_2dof_fmu --startTime=0 --stopTime=200 --stepSize=0.4 --timeout=50 --tolerance=1e-06 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.322816456668079] Failed to read output from testmodel.py, exit status != 0: 12.549561733845621 12.573515328 12.180834868 Calling exit ...