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.001445/0.001445, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.00144/0.00144, allocations: 219.6 kB / 23.03 MB, free: 4.922 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.499/1.499, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1048/0.1048, allocations: 22.94 MB / 336.2 MB, free: 12.4 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="cs",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.002946/0.002946, allocations: 63.91 kB / 472.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.41, allocations: 59.3 MB / 0.519 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002673/0.4127, allocations: 1.208 MB / 0.5202 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.4145, allocations: 1.422 MB / 0.5216 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.4146, allocations: 5.25 kB / 0.5216 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003779/0.415, allocations: 99.41 kB / 0.5217 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002762/0.4153, allocations: 124.8 kB / 0.5218 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.4158, allocations: 239.7 kB / 0.522 GB, free: 8.699 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007508/0.4165, allocations: 0.6213 MB / 0.5226 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.4167, allocations: 55.06 kB / 0.5227 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002955/0.417, allocations: 243.7 kB / 0.5229 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003464/0.4173, allocations: 268.9 kB / 0.5232 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.738e-05/0.4174, allocations: 31.38 kB / 0.5232 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.557e-05/0.4174, allocations: 27.22 kB / 0.5232 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.4176, allocations: 131.8 kB / 0.5234 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.4177, allocations: 115.8 kB / 0.5235 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003547/0.418, allocations: 337.2 kB / 0.5238 GB, free: 7.977 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.418, allocations: 0 / 0.5238 GB, free: 7.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.418, allocations: 1.344 kB / 0.5238 GB, free: 7.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.4181, allocations: 3.938 kB / 0.5238 GB, free: 7.973 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.002464/0.4205, allocations: 0.7973 MB / 0.5246 GB, free: 7.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.367e-05/0.4206, allocations: 10.42 kB / 0.5246 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.787e-05/0.4206, allocations: 4.922 kB / 0.5246 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.548e-05/0.4207, allocations: 52.55 kB / 0.5246 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.4208, allocations: 38.27 kB / 0.5247 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.4221, allocations: 441.3 kB / 0.5251 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.4221, allocations: 11.83 kB / 0.5251 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.283e-05/0.4222, allocations: 24.27 kB / 0.5251 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.4226, allocations: 215.5 kB / 0.5253 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.4227, allocations: 0 / 0.5253 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.4227, allocations: 6.469 kB / 0.5253 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.4227, allocations: 3.812 kB / 0.5253 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004986/0.4232, allocations: 232.2 kB / 0.5256 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.4245, allocations: 0.6733 MB / 0.5262 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007154/0.4252, allocations: 317.2 kB / 0.5265 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.4254, allocations: 132 kB / 0.5267 GB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.4255, allocations: 4.047 kB / 0.5267 GB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.758e-05/0.4255, allocations: 40.69 kB / 0.5267 GB, free: 6.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.583e-06/0.4255, allocations: 0 / 0.5267 GB, free: 6.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.00191/0.4274, allocations: 0.6295 MB / 0.5273 GB, free: 6.254 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/0.4274, allocations: 61.78 kB / 0.5274 GB, free: 6.184 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.4286, allocations: 0.502 MB / 0.5279 GB, free: 5.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.4286, allocations: 31.55 kB / 0.5279 GB, free: 5.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.4287, allocations: 172.2 kB / 0.5281 GB, free: 5.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.408e-05/0.4288, allocations: 107.3 kB / 0.5282 GB, free: 5.727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.154e-05/0.4289, allocations: 48.62 kB / 0.5282 GB, free: 5.695 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.936e-05/0.429, allocations: 348.8 kB / 0.5285 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002166/0.4292, allocations: 111.9 kB / 0.5286 GB, free: 5.328 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.4295, allocations: 114.1 kB / 0.5288 GB, free: 5.293 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002505/0.432, allocations: 0.7136 MB / 0.5295 GB, free: 5.113 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.432, allocations: 3.938 kB / 0.5295 GB, free: 5.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009992/0.433, allocations: 496 kB / 0.5299 GB, free: 4.902 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.433, allocations: 6.25 kB / 0.5299 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.433, allocations: 0 / 0.5299 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003987/0.4334, allocations: 109 kB / 0.53 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.4336, allocations: 39.77 kB / 0.5301 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002468/0.4361, allocations: 2.984 MB / 0.533 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005913/0.4366, allocations: 85.72 kB / 0.5331 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.4367, allocations: 9.094 kB / 0.5331 GB, free: 2.117 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.0002826/0.437, allocations: 183 kB / 0.5333 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.991e-05/0.437, allocations: 36.08 kB / 0.5333 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.912e-05/0.4371, allocations: 54.36 kB / 0.5333 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.4371, allocations: 2.531 kB / 0.5333 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.4371, allocations: 1.312 kB / 0.5333 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.4371, allocations: 6.844 kB / 0.5334 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004375/0.4376, allocations: 319.2 kB / 0.5337 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.4376, allocations: 0.5625 kB / 0.5337 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002159/0.4378, allocations: 32.75 kB / 0.5337 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003029/0.4381, allocations: 108.9 kB / 0.5338 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.4381, allocations: 9.375 kB / 0.5338 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002475/0.4406, allocations: 2.984 MB / 0.5367 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4406, allocations: 0.7031 kB / 0.5367 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.4419, allocations: 0.6629 MB / 0.5374 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.666e-05/0.442, allocations: 47.38 kB / 0.5374 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.4421, allocations: 8.938 kB / 0.5374 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005452/0.4426, allocations: 72.03 kB / 0.5375 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.4427, allocations: 22.14 kB / 0.5375 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.4428, allocations: 4.781 kB / 0.5375 GB, free: 14.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001144/0.4439, allocations: 405.7 kB / 0.5379 GB, free: 14.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4439, allocations: 0 / 0.5379 GB, free: 14.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004435/0.4443, allocations: 76.14 kB / 0.538 GB, free: 14.39 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.001595/0.4459, allocations: 1.209 MB / 0.5392 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.4471, allocations: 0.5287 MB / 0.5397 GB, free: 13.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4471, allocations: 0 / 0.5397 GB, free: 13.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006456/0.4477, allocations: 394.9 kB / 0.54 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005047/0.4482, allocations: 62.48 kB / 0.5401 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008721/0.4569, allocations: 4.001 MB / 0.544 GB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.4572, allocations: 217.2 kB / 0.5442 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002123/0.4574, allocations: 73.11 kB / 0.5443 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/0.4576, allocations: 113.9 kB / 0.5444 GB, free: 10.62 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4576, allocations: 0 / 0.5444 GB, free: 10.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04239/0.5, allocations: 8.259 MB / 0.5525 GB, free: 6.582 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.74, allocations: 5.844 kB / 0.5525 GB, free: 6.582 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.55992631695699] Failed to read output from testmodel.py, exit status != 0: 12.908933382015675 12.931732289 12.508880286 Calling exit ...