Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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.001411/0.001411, 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.001587/0.001587, allocations: 220.3 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.483/1.483, allocations: 230.6 MB / 256 MB, free: 7.988 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.1082/0.1082, allocations: 24.13 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.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",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.002294/0.002294, allocations: 67.91 kB / 473.3 MB, free: 6.414 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.4169, allocations: 59.6 MB / 0.5204 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002473/0.4194, allocations: 0.9861 MB / 0.5214 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.4209, allocations: 1.249 MB / 0.5226 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.464e-05/0.421, allocations: 2.156 kB / 0.5226 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.4213, allocations: 47 kB / 0.5226 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.4215, allocations: 47 kB / 0.5227 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.4217, allocations: 83.5 kB / 0.5228 GB, free: 8.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003995/0.4221, allocations: 247.7 kB / 0.523 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.4223, allocations: 24.3 kB / 0.523 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.4224, allocations: 91.06 kB / 0.5231 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.4226, allocations: 107.5 kB / 0.5232 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.337e-05/0.4226, allocations: 10.69 kB / 0.5232 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.581e-05/0.4227, allocations: 10.94 kB / 0.5232 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.397e-05/0.4228, allocations: 54.12 kB / 0.5233 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.407e-05/0.4228, allocations: 56.08 kB / 0.5233 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.423, allocations: 136.2 kB / 0.5235 GB, free: 8.254 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.423, allocations: 1.062 kB / 0.5235 GB, free: 8.254 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.423, allocations: 0 / 0.5235 GB, free: 8.254 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.423, allocations: 0 / 0.5235 GB, free: 8.254 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001106/0.4241, allocations: 459.1 kB / 0.5239 GB, free: 7.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.4242, allocations: 10.52 kB / 0.5239 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.838e-05/0.4242, allocations: 44.59 kB / 0.524 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.912e-05/0.4243, allocations: 23.36 kB / 0.524 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005284/0.4248, allocations: 229.2 kB / 0.5242 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.4248, allocations: 3.594 kB / 0.5242 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.961e-05/0.4248, allocations: 13.77 kB / 0.5242 GB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.4251, allocations: 120.1 kB / 0.5243 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.4251, allocations: 0 / 0.5243 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.4251, allocations: 5.875 kB / 0.5243 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4251, allocations: 1.938 kB / 0.5243 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002307/0.4253, allocations: 104.3 kB / 0.5244 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007106/0.426, allocations: 428.3 kB / 0.5249 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003865/0.4264, allocations: 157.7 kB / 0.525 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.4265, allocations: 65.14 kB / 0.5251 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.4266, allocations: 5.156 kB / 0.5251 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.465e-05/0.4266, allocations: 31.69 kB / 0.5251 GB, free: 7.156 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.4266, allocations: 0 / 0.5251 GB, free: 7.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001045/0.4276, allocations: 320.4 kB / 0.5254 GB, free: 7.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.254e-05/0.4276, allocations: 57.78 kB / 0.5255 GB, free: 6.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004498/0.4281, allocations: 253.7 kB / 0.5257 GB, free: 6.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.4281, allocations: 25.7 kB / 0.5257 GB, free: 6.809 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.235e-05/0.4282, allocations: 114.6 kB / 0.5258 GB, free: 6.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.82e-05/0.4282, allocations: 45.34 kB / 0.5259 GB, free: 6.668 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.4282, allocations: 28.38 kB / 0.5259 GB, free: 6.645 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.889e-05/0.4283, allocations: 325.4 kB / 0.5262 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.4284, allocations: 50.39 kB / 0.5263 GB, free: 6.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.4285, allocations: 51.59 kB / 0.5263 GB, free: 6.297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.4296, allocations: 336.2 kB / 0.5266 GB, free: 6.207 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.4296, allocations: 0 / 0.5266 GB, free: 6.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00046/0.4301, allocations: 237.1 kB / 0.5269 GB, free: 6.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.4301, allocations: 9.469 kB / 0.5269 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4301, allocations: 5.062 kB / 0.5269 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000214/0.4303, allocations: 57.66 kB / 0.5269 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.4304, allocations: 19.03 kB / 0.5269 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.4316, allocations: 1.505 MB / 0.5284 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.4318, allocations: 30.48 kB / 0.5284 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.4318, allocations: 3.938 kB / 0.5285 GB, free: 4.699 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.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 (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.432, allocations: 145.9 kB / 0.5286 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.261e-05/0.432, allocations: 14.66 kB / 0.5286 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.293e-05/0.4321, allocations: 27.53 kB / 0.5286 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.4321, allocations: 6.156 kB / 0.5286 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4321, allocations: 2.047 kB / 0.5286 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4321, allocations: 0.6094 kB / 0.5286 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002579/0.4323, allocations: 221.6 kB / 0.5289 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4323, allocations: 0 / 0.5289 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.4325, allocations: 14.81 kB / 0.5289 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001603/0.4326, allocations: 60.39 kB / 0.5289 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.4326, allocations: 6.531 kB / 0.5289 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.4336, allocations: 1.491 MB / 0.5304 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4336, allocations: 3.938 kB / 0.5304 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005872/0.4342, allocations: 379.3 kB / 0.5308 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.417e-05/0.4343, allocations: 24.64 kB / 0.5308 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.394e-05/0.4343, allocations: 2.844 kB / 0.5308 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.4345, allocations: 30 kB / 0.5308 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.4346, allocations: 16.64 kB / 0.5308 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.4346, allocations: 6.938 kB / 0.5308 GB, free: 2.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003901/0.435, allocations: 192.5 kB / 0.531 GB, free: 2.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.435, allocations: 1 kB / 0.531 GB, free: 2.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002769/0.4353, allocations: 30.84 kB / 0.531 GB, free: 2.598 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0007008/0.436, allocations: 0.904 MB / 0.5319 GB, free: 1.848 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004682/0.4364, allocations: 255.3 kB / 0.5322 GB, free: 1.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.4364, allocations: 4 kB / 0.5322 GB, free: 1.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002546/0.4367, allocations: 199.3 kB / 0.5324 GB, free: 1.547 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.437, allocations: 22.14 kB / 0.5324 GB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.4403, allocations: 2.264 MB / 0.5346 GB, free: 20 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.4407, allocations: 0.7298 MB / 0.5353 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.4409, allocations: 34.42 kB / 0.5353 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.967e-05/0.441, allocations: 42.27 kB / 0.5354 GB, free: 15.28 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.441, allocations: 0 / 0.5354 GB, free: 15.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04574/0.4867, allocations: 3.963 MB / 0.5393 GB, free: 14.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12, allocations: 4.562 kB / 0.5393 GB, free: 14.73 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_base_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_base.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.726858679903671] Failed to read output from testmodel.py, exit status != 0: 12.115793562028557 12.141481383 11.713776181 Calling exit ...