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.001378/0.001378, allocations: 104.2 kB / 16.45 MB, free: 6.5 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.001575/0.001575, allocations: 210.4 kB / 19.43 MB, free: 3.656 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 / 252.8 MB, free: 8.961 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.1075/0.1075, allocations: 24.11 MB / 333 MB, free: 12.61 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.002328/0.002328, allocations: 71.88 kB / 467.9 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3663, allocations: 59.56 MB / 0.5151 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002596/0.3689, allocations: 1.306 MB / 0.5163 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.371, allocations: 1.458 MB / 0.5178 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.3711, allocations: 8.219 kB / 0.5178 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005018/0.3716, allocations: 100.7 kB / 0.5179 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002989/0.3719, allocations: 123.9 kB / 0.518 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.3724, allocations: 202.2 kB / 0.5182 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007107/0.3731, allocations: 0.511 MB / 0.5187 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.3733, allocations: 53.64 kB / 0.5187 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003241/0.3736, allocations: 221.2 kB / 0.5189 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004468/0.3741, allocations: 270.8 kB / 0.5192 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.096e-05/0.3742, allocations: 27.09 kB / 0.5192 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.279e-05/0.3742, allocations: 26.88 kB / 0.5192 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.3744, allocations: 123.4 kB / 0.5194 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.3746, allocations: 147.3 kB / 0.5195 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004275/0.375, allocations: 332.9 kB / 0.5198 GB, free: 6.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.375, allocations: 2.016 kB / 0.5198 GB, free: 6.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.375, allocations: 0 / 0.5198 GB, free: 6.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.375, allocations: 0 / 0.5198 GB, free: 6.785 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.002281/0.3773, allocations: 0.8766 MB / 0.5207 GB, free: 6.234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.3773, allocations: 9.469 kB / 0.5207 GB, free: 6.234 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.201e-05/0.3774, allocations: 51.7 kB / 0.5207 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.288e-05/0.3775, allocations: 42.42 kB / 0.5208 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.3787, allocations: 0.4966 MB / 0.5213 GB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.3787, allocations: 11.52 kB / 0.5213 GB, free: 5.855 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.899e-05/0.3788, allocations: 24.44 kB / 0.5213 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.3791, allocations: 216.4 kB / 0.5215 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.3792, allocations: 0 / 0.5215 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.3792, allocations: 6.312 kB / 0.5215 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.3792, allocations: 3.75 kB / 0.5215 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004246/0.3796, allocations: 228.9 kB / 0.5217 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.381, allocations: 0.7566 MB / 0.5225 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007544/0.3817, allocations: 317.1 kB / 0.5228 GB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002382/0.382, allocations: 128.7 kB / 0.5229 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.382, allocations: 3.172 kB / 0.5229 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.382, allocations: 31.69 kB / 0.5229 GB, free: 5.066 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.663e-06/0.382, allocations: 1.125 kB / 0.5229 GB, free: 5.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.00204/0.3841, allocations: 0.7957 MB / 0.5237 GB, free: 4.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.3841, allocations: 59.09 kB / 0.5238 GB, free: 4.594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001254/0.3854, allocations: 0.5061 MB / 0.5243 GB, free: 4.398 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.3854, allocations: 30.86 kB / 0.5243 GB, free: 4.363 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.3855, allocations: 172.2 kB / 0.5245 GB, free: 4.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.3856, allocations: 99.38 kB / 0.5245 GB, free: 4.137 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.824e-05/0.3857, allocations: 47.7 kB / 0.5246 GB, free: 4.105 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.193e-05/0.3858, allocations: 348.8 kB / 0.5249 GB, free: 3.777 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/0.386, allocations: 111.8 kB / 0.525 GB, free: 3.738 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.3862, allocations: 118.8 kB / 0.5251 GB, free: 3.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/0.3884, allocations: 0.7126 MB / 0.5258 GB, free: 3.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3884, allocations: 0 / 0.5258 GB, free: 3.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009756/0.3894, allocations: 491.2 kB / 0.5263 GB, free: 3.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.3894, allocations: 6.234 kB / 0.5263 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3894, allocations: 0 / 0.5263 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003898/0.3898, allocations: 106.8 kB / 0.5264 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.39, allocations: 42.06 kB / 0.5265 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/0.3923, allocations: 3.211 MB / 0.5296 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005667/0.3929, allocations: 79.14 kB / 0.5297 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.3929, allocations: 10.09 kB / 0.5297 GB, free: 272 kB / 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.0002678/0.3932, allocations: 184.9 kB / 0.5299 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.466e-05/0.3932, allocations: 35.98 kB / 0.5299 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.3933, allocations: 53.2 kB / 0.5299 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3933, allocations: 7.156 kB / 0.5299 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.3934, allocations: 2.188 kB / 0.5299 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3934, allocations: 0 / 0.5299 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005662/0.3939, allocations: 406.8 kB / 0.5303 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3939, allocations: 1.094 kB / 0.5303 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002382/0.3942, allocations: 32.41 kB / 0.5304 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004321/0.3946, allocations: 107.4 kB / 0.5305 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.918e-05/0.3946, allocations: 9.297 kB / 0.5305 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003562/0.3982, allocations: 3.204 MB / 0.5336 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.3982, allocations: 4.641 kB / 0.5336 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.3996, allocations: 0.6639 MB / 0.5343 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.3998, allocations: 123.7 kB / 0.5344 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.07e-05/0.3998, allocations: 8.922 kB / 0.5344 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000544/0.4004, allocations: 71.12 kB / 0.5345 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.4005, allocations: 21.77 kB / 0.5345 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.4005, allocations: 4.312 kB / 0.5345 GB, free: 12.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001181/0.4017, allocations: 409.4 kB / 0.5349 GB, free: 12.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4017, allocations: 0 / 0.5349 GB, free: 12.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000527/0.4022, allocations: 72.41 kB / 0.5349 GB, free: 12.12 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.001839/0.404, allocations: 1.202 MB / 0.5361 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.4052, allocations: 0.5248 MB / 0.5366 GB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4052, allocations: 0 / 0.5366 GB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006492/0.4058, allocations: 403.2 kB / 0.537 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000611/0.4064, allocations: 63.5 kB / 0.5371 GB, free: 10.63 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009314/0.4158, allocations: 3.998 MB / 0.541 GB, free: 8.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006582/0.4164, allocations: 0.818 MB / 0.5418 GB, free: 7.871 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000243/0.4167, allocations: 77.31 kB / 0.5418 GB, free: 7.855 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.4169, allocations: 114 kB / 0.542 GB, free: 7.77 MB / 398.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4169, allocations: 0 / 0.542 GB, free: 7.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04279/0.4597, allocations: 7.813 MB / 0.5496 GB, free: 4.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.92, allocations: 1.438 kB / 0.5496 GB, free: 4.055 MB / 398.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Exploiting_2dof_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 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: 13.650495731970295] Failed to read output from testmodel.py, exit status != 0: 11.011839758139104 11.028385914 10.650136092 Calling exit ...