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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 108.3 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.09657/0.09657, allocations: 22.69 MB / 325.4 MB, free: 3.559 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.00198/0.00198, allocations: 67.89 kB / 457.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1044, allocations: 58.02 MB / 0.5031 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002594/0.107, allocations: 1.306 MB / 0.5044 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.1088, allocations: 1.42 MB / 0.5058 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.806e-05/0.1089, allocations: 0 / 0.5058 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003988/0.1093, allocations: 99.39 kB / 0.5059 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003059/0.1096, allocations: 119.4 kB / 0.506 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003871/0.11, allocations: 207.6 kB / 0.5062 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005993/0.1106, allocations: 0.5069 MB / 0.5067 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.1108, allocations: 48.72 kB / 0.5067 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/0.111, allocations: 227.2 kB / 0.5069 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000346/0.1114, allocations: 259 kB / 0.5072 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.894e-05/0.1114, allocations: 28 kB / 0.5072 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.474e-05/0.1115, allocations: 28 kB / 0.5072 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.1117, allocations: 127.5 kB / 0.5074 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.1118, allocations: 147 kB / 0.5075 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003456/0.1122, allocations: 334.5 kB / 0.5078 GB, free: 2.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1122, allocations: 4 kB / 0.5078 GB, free: 2.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1122, allocations: 3.938 kB / 0.5078 GB, free: 2.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1122, allocations: 0 / 0.5078 GB, free: 2.805 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.00224/0.1144, allocations: 0.8685 MB / 0.5087 GB, free: 1.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.1145, allocations: 12.03 kB / 0.5087 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.603e-05/0.1145, allocations: 46.73 kB / 0.5087 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.97e-05/0.1146, allocations: 40.7 kB / 0.5088 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.1158, allocations: 0.4943 MB / 0.5093 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.1158, allocations: 12.7 kB / 0.5093 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.964e-05/0.1159, allocations: 16.38 kB / 0.5093 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003701/0.1162, allocations: 212.2 kB / 0.5095 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.1163, allocations: 11.98 kB / 0.5095 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.1163, allocations: 8 kB / 0.5095 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.1163, allocations: 4 kB / 0.5095 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004204/0.1167, allocations: 228.4 kB / 0.5097 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1978/0.3145, allocations: 0.7557 MB / 0.5105 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007524/0.3152, allocations: 316.3 kB / 0.5108 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.3155, allocations: 128.2 kB / 0.5109 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.3155, allocations: 2.969 kB / 0.5109 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.3155, allocations: 37.41 kB / 0.5109 GB, free: 15.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 2.184e-06/0.3155, allocations: 2.062 kB / 0.5109 GB, free: 15.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001758/0.3172, allocations: 0.7842 MB / 0.5117 GB, free: 15.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.3173, allocations: 57.38 kB / 0.5117 GB, free: 15.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/0.3183, allocations: 0.5042 MB / 0.5122 GB, free: 15.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.3183, allocations: 31.17 kB / 0.5123 GB, free: 15.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.162e-05/0.3184, allocations: 177.6 kB / 0.5124 GB, free: 15.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.637e-05/0.3185, allocations: 103.5 kB / 0.5125 GB, free: 15.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.927e-05/0.3185, allocations: 49.12 kB / 0.5126 GB, free: 15.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.098e-05/0.3186, allocations: 345.3 kB / 0.5129 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.3188, allocations: 109.9 kB / 0.513 GB, free: 15.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.3189, allocations: 118.9 kB / 0.5131 GB, free: 15.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/0.3209, allocations: 0.7159 MB / 0.5138 GB, free: 14.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3209, allocations: 3.75 kB / 0.5138 GB, free: 14.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007216/0.3216, allocations: 484.7 kB / 0.5143 GB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3216, allocations: 7.844 kB / 0.5143 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.3216, allocations: 0.7969 kB / 0.5143 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003192/0.3219, allocations: 111.4 kB / 0.5144 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.3221, allocations: 39.28 kB / 0.5144 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/0.3243, allocations: 3.195 MB / 0.5176 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004744/0.3247, allocations: 88.61 kB / 0.5177 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.3247, allocations: 5.781 kB / 0.5177 GB, free: 12.18 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.0002166/0.325, allocations: 175.5 kB / 0.5178 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.074e-05/0.325, allocations: 43.28 kB / 0.5179 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.16e-05/0.3251, allocations: 55.55 kB / 0.5179 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3251, allocations: 2.469 kB / 0.5179 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.3251, allocations: 2.344 kB / 0.5179 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3251, allocations: 0.9375 kB / 0.5179 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004207/0.3256, allocations: 394.2 kB / 0.5183 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3256, allocations: 3.938 kB / 0.5183 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002086/0.3258, allocations: 28.45 kB / 0.5183 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002887/0.3261, allocations: 116.4 kB / 0.5184 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.3261, allocations: 8.688 kB / 0.5185 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001914/0.328, allocations: 3.202 MB / 0.5216 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.328, allocations: 0 / 0.5216 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.329, allocations: 0.66 MB / 0.5222 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.931e-05/0.3291, allocations: 129.4 kB / 0.5223 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.3292, allocations: 12.78 kB / 0.5224 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000498/0.3296, allocations: 64.42 kB / 0.5224 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.24e-05/0.3297, allocations: 20.62 kB / 0.5224 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.3297, allocations: 14.53 kB / 0.5225 GB, free: 8.316 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000942/0.3307, allocations: 407.1 kB / 0.5228 GB, free: 8.172 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3307, allocations: 2.5 kB / 0.5228 GB, free: 8.172 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003595/0.331, allocations: 71.86 kB / 0.5229 GB, free: 8.16 MB / 382.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.001171/0.3322, allocations: 1.201 MB / 0.5241 GB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000829/0.333, allocations: 0.5142 MB / 0.5246 GB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.333, allocations: 5 kB / 0.5246 GB, free: 7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004577/0.3335, allocations: 404.8 kB / 0.525 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.3339, allocations: 67.38 kB / 0.525 GB, free: 6.699 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00637/0.3403, allocations: 4.001 MB / 0.5289 GB, free: 4.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.3406, allocations: 0.8169 MB / 0.5297 GB, free: 3.969 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.3407, allocations: 70.36 kB / 0.5298 GB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.3409, allocations: 109.7 kB / 0.5299 GB, free: 3.879 MB / 382.1 MB Notification: Performance of SimCode: time 5.92e-07/0.3409, allocations: 4 kB / 0.5299 GB, free: 3.875 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03778/0.3787, allocations: 7.834 MB / 0.5376 GB, free: 1.656 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.858/10.24, allocations: 5.516 kB / 0.5376 GB, free: 1.652 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.70010127313435] Failed to read output from testmodel.py, exit status != 0: 10.317883040755987 10.332437014 10.217628714 Calling exit ...