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.000853/0.000853, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.001195/0.001195, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.8931/0.8931, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.06324/0.06324, allocations: 18.12 MB / 278.1 MB, free: 11.52 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.163e-05/2.349e-05, allocations: 6.219 kB / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002358/0.002381, allocations: 1.211 MB / 416.3 MB, free: 11.96 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.004208, allocations: 1.421 MB / 417.7 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.004368, allocations: 8.062 kB / 417.7 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004345/0.004803, allocations: 100.8 kB / 417.8 MB, free: 10.9 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003107/0.005114, allocations: 130 kB / 417.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006876/0.005801, allocations: 326.5 kB / 418.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004832/0.006284, allocations: 367.8 kB / 418.6 MB, free: 10.56 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.006455, allocations: 50.14 kB / 418.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.006689, allocations: 164.2 kB / 418.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003649/0.007054, allocations: 211.2 kB / 419 MB, free: 10.43 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.177e-05/0.007136, allocations: 26.47 kB / 419.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.576e-05/0.007182, allocations: 27.22 kB / 419.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.007329, allocations: 131.7 kB / 419.2 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.007432, allocations: 86.88 kB / 419.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004203/0.007853, allocations: 339 kB / 419.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.007858, allocations: 0 / 419.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.00786, allocations: 0 / 419.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.00787, allocations: 5.219 kB / 419.6 MB, free: 10.18 MB / 330.7 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.002117/0.009987, allocations: 0.7969 MB / 420.4 MB, free: 9.723 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.01004, allocations: 13.7 kB / 420.4 MB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.595e-05/0.01011, allocations: 52.16 kB / 420.5 MB, free: 9.668 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.01021, allocations: 39.67 kB / 420.5 MB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.01131, allocations: 433.6 kB / 421 MB, free: 9.422 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.01134, allocations: 19.45 kB / 421 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/0.01138, allocations: 16.86 kB / 421 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004577/0.01184, allocations: 212.1 kB / 421.2 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.01186, allocations: 8.141 kB / 421.2 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.01189, allocations: 13.25 kB / 421.2 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.0119, allocations: 4.781 kB / 421.2 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004866/0.01238, allocations: 229.8 kB / 421.4 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.0138, allocations: 0.6591 MB / 422.1 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007218/0.01452, allocations: 322.3 kB / 422.4 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.01475, allocations: 134.5 kB / 422.5 MB, free: 8.707 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.01477, allocations: 2.344 kB / 422.6 MB, free: 8.707 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.01479, allocations: 37.58 kB / 422.6 MB, free: 8.664 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 2.725e-06/0.01479, allocations: 0 / 422.6 MB, free: 8.664 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.001581/0.01638, allocations: 0.6255 MB / 423.2 MB, free: 8.465 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.0164, allocations: 54.39 kB / 423.3 MB, free: 8.402 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007362/0.01714, allocations: 0.5034 MB / 423.8 MB, free: 8.215 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.01716, allocations: 30.8 kB / 423.8 MB, free: 8.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.166e-05/0.01723, allocations: 175.2 kB / 424 MB, free: 8.027 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.736e-05/0.01729, allocations: 107 kB / 424.1 MB, free: 7.941 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.647e-05/0.01736, allocations: 49.17 kB / 424.1 MB, free: 7.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.512e-05/0.01742, allocations: 349 kB / 424.5 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.01756, allocations: 118.4 kB / 424.6 MB, free: 7.535 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.0177, allocations: 110.6 kB / 424.7 MB, free: 7.504 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.01904, allocations: 0.7182 MB / 425.4 MB, free: 7.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.01905, allocations: 1.625 kB / 425.4 MB, free: 7.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005944/0.01964, allocations: 483 kB / 425.9 MB, free: 7.125 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.01967, allocations: 8.766 kB / 425.9 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.01967, allocations: 0 / 425.9 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002365/0.01991, allocations: 103.2 kB / 426 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.02003, allocations: 48.62 kB / 426 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.02151, allocations: 2.971 MB / 429 MB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002811/0.02179, allocations: 82.22 kB / 429.1 MB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.02181, allocations: 9.625 kB / 429.1 MB, free: 4.355 MB / 330.7 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.0001935/0.022, allocations: 191.1 kB / 429.3 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.285e-05/0.02204, allocations: 32.25 kB / 429.3 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.975e-05/0.02209, allocations: 52.12 kB / 429.4 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.02209, allocations: 6.469 kB / 429.4 MB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.0221, allocations: 1.938 kB / 429.4 MB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.02211, allocations: 5.672 kB / 429.4 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002962/0.02241, allocations: 329 kB / 429.7 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.02241, allocations: 4 kB / 429.7 MB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000129/0.02254, allocations: 34.3 kB / 429.7 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002034/0.02274, allocations: 107.8 kB / 429.8 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.02276, allocations: 7.875 kB / 429.9 MB, free: 3.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001285/0.02405, allocations: 2.974 MB / 432.8 MB, free: 1.152 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.02405, allocations: 1.375 kB / 432.8 MB, free: 1.152 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007233/0.02477, allocations: 0.6594 MB / 433.5 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.322e-05/0.02482, allocations: 51.41 kB / 433.5 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.02485, allocations: 10.08 kB / 433.5 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.02512, allocations: 71.16 kB / 433.6 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.518e-05/0.0252, allocations: 25.53 kB / 433.6 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.02521, allocations: 4.594 kB / 433.6 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005952/0.0258, allocations: 405.7 kB / 434 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0258, allocations: 0 / 434 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003312/0.02613, allocations: 84.08 kB / 434.1 MB, free: 0.6055 MB / 330.7 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.0009411/0.02707, allocations: 1.201 MB / 435.3 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007221/0.0278, allocations: 0.5273 MB / 435.9 MB, free: 15.43 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.0278, allocations: 5 kB / 435.9 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003602/0.02816, allocations: 399.3 kB / 436.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.0285, allocations: 58.25 kB / 436.3 MB, free: 15.12 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005211/0.03371, allocations: 3.977 MB / 440.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/0.03393, allocations: 216.7 kB / 440.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001947/0.03413, allocations: 76.72 kB / 440.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.03428, allocations: 110.9 kB / 440.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of SimCode: time 1.944e-06/0.03428, allocations: 0 / 440.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02561/0.05989, allocations: 8.749 MB / 449.4 MB, free: 5.633 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.125/7.185, allocations: 18.61 kB / 449.4 MB, free: 5.617 MB / 346.7 MB " [Timeout remaining time 653] (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: 9.10778292734176] Failed to read output from testmodel.py, exit status != 0: 7.269449811428785 7.278288908 7.268187778 Calling exit ...