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.001306/0.001306, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001473/0.001473, allocations: 221.5 kB / 22.26 MB, free: 5.125 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.474/1.474, allocations: 230.6 MB / 256 MB, free: 7.992 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.1107/0.1107, allocations: 24.12 MB / 336.6 MB, free: 11.44 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.002205/0.002205, allocations: 75.88 kB / 473.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3559, allocations: 59.59 MB / 0.5204 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.003122/0.3591, allocations: 1.316 MB / 0.5217 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002666/0.3617, allocations: 1.461 MB / 0.5231 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004679/0.3622, allocations: 11.09 kB / 0.5231 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005626/0.3628, allocations: 104.1 kB / 0.5232 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004417/0.3632, allocations: 127.2 kB / 0.5234 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007054/0.3639, allocations: 231.4 kB / 0.5236 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001182/0.3651, allocations: 0.626 MB / 0.5242 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.3653, allocations: 51.12 kB / 0.5242 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005549/0.3659, allocations: 239.3 kB / 0.5245 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006112/0.3665, allocations: 265.6 kB / 0.5247 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002262/0.3667, allocations: 27.53 kB / 0.5247 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.3668, allocations: 30.84 kB / 0.5248 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002593/0.3671, allocations: 128.5 kB / 0.5249 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002618/0.3674, allocations: 146.9 kB / 0.525 GB, free: 7.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005345/0.3679, allocations: 332.7 kB / 0.5254 GB, free: 7.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3679, allocations: 5.031 kB / 0.5254 GB, free: 7.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3679, allocations: 0.5625 kB / 0.5254 GB, free: 7.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.3679, allocations: 3.938 kB / 0.5254 GB, free: 7.18 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.002789/0.3707, allocations: 0.7967 MB / 0.5261 GB, free: 6.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.3708, allocations: 10.52 kB / 0.5262 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.427e-05/0.3708, allocations: 53.62 kB / 0.5262 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.371, allocations: 42.48 kB / 0.5262 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.3723, allocations: 434.3 kB / 0.5267 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.3723, allocations: 10.52 kB / 0.5267 GB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.3723, allocations: 25.17 kB / 0.5267 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004595/0.3728, allocations: 217.7 kB / 0.5269 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.3728, allocations: 2.375 kB / 0.5269 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.3729, allocations: 9.781 kB / 0.5269 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.3729, allocations: 2.781 kB / 0.5269 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005118/0.3734, allocations: 233 kB / 0.5271 GB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.3751, allocations: 0.7243 MB / 0.5278 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007572/0.3758, allocations: 318.2 kB / 0.5281 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.3761, allocations: 128.2 kB / 0.5283 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.3761, allocations: 3.578 kB / 0.5283 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.3761, allocations: 40.31 kB / 0.5283 GB, free: 5.648 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 2.945e-06/0.3761, allocations: 1.281 kB / 0.5283 GB, free: 5.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.002014/0.3781, allocations: 0.6253 MB / 0.5289 GB, free: 5.449 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.3782, allocations: 62.39 kB / 0.529 GB, free: 5.379 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.3794, allocations: 0.5026 MB / 0.5295 GB, free: 5.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.3794, allocations: 30.8 kB / 0.5295 GB, free: 5.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.904e-05/0.3795, allocations: 172.9 kB / 0.5297 GB, free: 5.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3797, allocations: 109.8 kB / 0.5298 GB, free: 4.918 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.3798, allocations: 56.31 kB / 0.5298 GB, free: 4.879 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.604e-05/0.3798, allocations: 344.5 kB / 0.5302 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000268/0.3801, allocations: 116.7 kB / 0.5303 GB, free: 4.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000225/0.3803, allocations: 110.7 kB / 0.5304 GB, free: 4.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002423/0.3828, allocations: 0.7165 MB / 0.5311 GB, free: 4.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.3828, allocations: 0.625 kB / 0.5311 GB, free: 4.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001009/0.3838, allocations: 483.2 kB / 0.5315 GB, free: 4.102 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3838, allocations: 9.312 kB / 0.5315 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.3838, allocations: 4 kB / 0.5315 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004148/0.3842, allocations: 110 kB / 0.5317 GB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.3844, allocations: 44.53 kB / 0.5317 GB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002394/0.3868, allocations: 2.999 MB / 0.5346 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006174/0.3874, allocations: 76.81 kB / 0.5347 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-05/0.3875, allocations: 17.56 kB / 0.5347 GB, free: 1.293 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.0003328/0.3878, allocations: 181.3 kB / 0.5349 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.3879, allocations: 39.61 kB / 0.5349 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.388, allocations: 51.66 kB / 0.535 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.388, allocations: 2.375 kB / 0.535 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.3881, allocations: 2.312 kB / 0.535 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.3881, allocations: 1.547 kB / 0.535 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004992/0.3886, allocations: 367 kB / 0.5353 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3886, allocations: 5.188 kB / 0.5353 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002423/0.3888, allocations: 33.11 kB / 0.5354 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003437/0.3892, allocations: 114.2 kB / 0.5355 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.3892, allocations: 9.234 kB / 0.5355 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003024/0.3922, allocations: 2.987 MB / 0.5384 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3922, allocations: 1.062 kB / 0.5384 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.3935, allocations: 0.6655 MB / 0.539 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001443/0.3937, allocations: 47.58 kB / 0.5391 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.808e-05/0.3937, allocations: 9.969 kB / 0.5391 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005548/0.3943, allocations: 66.52 kB / 0.5392 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.3944, allocations: 26.38 kB / 0.5392 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.3944, allocations: 5.672 kB / 0.5392 GB, free: 13.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001187/0.3956, allocations: 404.5 kB / 0.5396 GB, free: 13.55 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3956, allocations: 0 / 0.5396 GB, free: 13.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005383/0.3961, allocations: 80.95 kB / 0.5397 GB, free: 13.54 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.001647/0.3978, allocations: 1.202 MB / 0.5408 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.399, allocations: 0.5324 MB / 0.5414 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.399, allocations: 4 kB / 0.5414 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007862/0.3998, allocations: 391.3 kB / 0.5417 GB, free: 12.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005689/0.4003, allocations: 55.11 kB / 0.5418 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.4104, allocations: 4.012 MB / 0.5457 GB, free: 9.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007223/0.4112, allocations: 0.8146 MB / 0.5465 GB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003/0.4115, allocations: 76.09 kB / 0.5466 GB, free: 8.969 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003291/0.4118, allocations: 114.5 kB / 0.5467 GB, free: 8.871 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4118, allocations: 0 / 0.5467 GB, free: 8.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04782/0.4596, allocations: 8.032 MB / 0.5545 GB, free: 4.973 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.51, allocations: 11.53 kB / 0.5545 GB, free: 4.969 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.21682420396246] Failed to read output from testmodel.py, exit status != 0: 12.6218042219989 12.640444991 12.269110891 Calling exit ...