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.001281/0.001281, allocations: 109.2 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.001483/0.001483, allocations: 219 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 7.965 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.1067/0.1067, allocations: 24.12 MB / 336.6 MB, free: 11.42 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.002098/0.002098, allocations: 71.89 kB / 473.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3658, allocations: 59.6 MB / 0.5204 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002031/0.3679, allocations: 0.9895 MB / 0.5214 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.3692, allocations: 1.261 MB / 0.5226 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.671e-05/0.3693, allocations: 1.906 kB / 0.5226 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002906/0.3696, allocations: 35.56 kB / 0.5226 GB, free: 8.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.3698, allocations: 50.22 kB / 0.5227 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.37, allocations: 79.62 kB / 0.5228 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003415/0.3703, allocations: 247.9 kB / 0.523 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.3704, allocations: 24.66 kB / 0.523 GB, free: 8.391 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.3706, allocations: 94.23 kB / 0.5231 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.3708, allocations: 103.7 kB / 0.5232 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.665e-05/0.3708, allocations: 11.56 kB / 0.5232 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.314e-05/0.3709, allocations: 10.34 kB / 0.5232 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.321e-05/0.3709, allocations: 62.33 kB / 0.5233 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.033e-05/0.371, allocations: 59.66 kB / 0.5234 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.3712, allocations: 129.4 kB / 0.5235 GB, free: 8.199 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3712, allocations: 0 / 0.5235 GB, free: 8.199 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3712, allocations: 0 / 0.5235 GB, free: 8.199 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.852e-06/0.3712, allocations: 1.156 kB / 0.5235 GB, free: 8.199 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.001077/0.3723, allocations: 461.8 kB / 0.5239 GB, free: 7.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3723, allocations: 14.77 kB / 0.5239 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.251e-05/0.3724, allocations: 40.14 kB / 0.524 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.3724, allocations: 20.8 kB / 0.524 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000522/0.3729, allocations: 225.3 kB / 0.5242 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.3729, allocations: 7.125 kB / 0.5242 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.373, allocations: 10.27 kB / 0.5242 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/0.3732, allocations: 114.2 kB / 0.5243 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.3732, allocations: 1.906 kB / 0.5243 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.3732, allocations: 4 kB / 0.5243 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.3732, allocations: 6.031 kB / 0.5243 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002372/0.3734, allocations: 106.1 kB / 0.5244 GB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006998/0.3741, allocations: 421.2 kB / 0.5248 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004166/0.3746, allocations: 153 kB / 0.525 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.3747, allocations: 67.72 kB / 0.5251 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.3747, allocations: 1.125 kB / 0.5251 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.3747, allocations: 32.3 kB / 0.5251 GB, free: 7.113 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.273e-06/0.3747, allocations: 0 / 0.5251 GB, free: 7.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001067/0.3758, allocations: 329.9 kB / 0.5254 GB, free: 6.992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.038e-05/0.3758, allocations: 53.45 kB / 0.5255 GB, free: 6.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000476/0.3763, allocations: 253.8 kB / 0.5257 GB, free: 6.793 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.3763, allocations: 26.89 kB / 0.5257 GB, free: 6.762 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.015e-05/0.3763, allocations: 118.6 kB / 0.5258 GB, free: 6.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.283e-05/0.3764, allocations: 41.17 kB / 0.5259 GB, free: 6.621 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.805e-05/0.3764, allocations: 29.05 kB / 0.5259 GB, free: 6.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.392e-05/0.3765, allocations: 327.9 kB / 0.5262 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.3766, allocations: 50.81 kB / 0.5263 GB, free: 6.262 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.3767, allocations: 52.19 kB / 0.5263 GB, free: 6.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.3778, allocations: 347 kB / 0.5266 GB, free: 6.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3778, allocations: 0 / 0.5266 GB, free: 6.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004676/0.3783, allocations: 242.2 kB / 0.5269 GB, free: 6.039 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3783, allocations: 5.469 kB / 0.5269 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3783, allocations: 3.984 kB / 0.5269 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002104/0.3785, allocations: 53.36 kB / 0.5269 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.3786, allocations: 18.47 kB / 0.527 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.3797, allocations: 1.495 MB / 0.5284 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.38, allocations: 34.16 kB / 0.5284 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.38, allocations: 8.312 kB / 0.5285 GB, free: 4.645 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.0001736/0.3801, allocations: 133.6 kB / 0.5286 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.598e-05/0.3802, allocations: 15.17 kB / 0.5286 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.539e-05/0.3802, allocations: 26.94 kB / 0.5286 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3802, allocations: 6.359 kB / 0.5286 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3803, allocations: 1.406 kB / 0.5286 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3803, allocations: 5.125 kB / 0.5286 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000282/0.3805, allocations: 219.5 kB / 0.5288 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3805, allocations: 3.938 kB / 0.5288 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.3807, allocations: 19.84 kB / 0.5289 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/0.3808, allocations: 51.17 kB / 0.5289 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.3809, allocations: 9.984 kB / 0.5289 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.3821, allocations: 1.494 MB / 0.5304 GB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3821, allocations: 0 / 0.5304 GB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007017/0.3828, allocations: 383 kB / 0.5307 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.615e-05/0.3828, allocations: 24.33 kB / 0.5308 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.3828, allocations: 2.828 kB / 0.5308 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002641/0.3831, allocations: 34.17 kB / 0.5308 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.655e-05/0.3832, allocations: 13.28 kB / 0.5308 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.3832, allocations: 3.328 kB / 0.5308 GB, free: 2.648 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004239/0.3836, allocations: 195.9 kB / 0.531 GB, free: 2.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3836, allocations: 0 / 0.531 GB, free: 2.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003296/0.3839, allocations: 30.88 kB / 0.531 GB, free: 2.547 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.0008052/0.3847, allocations: 0.9049 MB / 0.5319 GB, free: 1.797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005306/0.3853, allocations: 254.7 kB / 0.5322 GB, free: 1.645 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3853, allocations: 0 / 0.5322 GB, free: 1.645 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.3855, allocations: 197 kB / 0.5324 GB, free: 1.504 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.3858, allocations: 24.5 kB / 0.5324 GB, free: 1.496 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003463/0.3893, allocations: 2.27 MB / 0.5346 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.3897, allocations: 0.7292 MB / 0.5353 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.3898, allocations: 30.8 kB / 0.5353 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.75e-05/0.3899, allocations: 41.75 kB / 0.5354 GB, free: 15.23 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3899, allocations: 0.5938 kB / 0.5354 GB, free: 15.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03457/0.4245, allocations: 3.975 MB / 0.5393 GB, free: 14.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.93, allocations: 1.188 kB / 0.5393 GB, free: 14.67 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_base_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 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.851563349999196] Failed to read output from testmodel.py, exit status != 0: 12.041466993003269 12.057066433 11.682596913 Calling exit ...