Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.001389/0.001389, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001636/0.001636, allocations: 207.6 kB / 23.01 MB, free: 4.621 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.509/1.509, 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.1089/0.1089, allocations: 24.03 MB / 337.2 MB, free: 11.34 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_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",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.003289/0.003289, allocations: 72.16 kB / 473.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3762, allocations: 59.57 MB / 0.5209 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002496/0.3787, allocations: 1.731 MB / 0.5226 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.3798, allocations: 0.6728 MB / 0.5232 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.686e-05/0.3798, allocations: 6.219 kB / 0.5233 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003004/0.3801, allocations: 72.95 kB / 0.5233 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.3803, allocations: 85.45 kB / 0.5234 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004487/0.3808, allocations: 161.2 kB / 0.5236 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.3812, allocations: 316 kB / 0.5239 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.388e-05/0.3813, allocations: 25.5 kB / 0.5239 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.3814, allocations: 124.7 kB / 0.524 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.3817, allocations: 158.1 kB / 0.5242 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.891e-05/0.3817, allocations: 14.75 kB / 0.5242 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.3819, allocations: 84.64 kB / 0.5242 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.278e-05/0.3819, allocations: 66.23 kB / 0.5243 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.468e-05/0.382, allocations: 68.47 kB / 0.5244 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002678/0.3823, allocations: 238.1 kB / 0.5246 GB, free: 7.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3823, allocations: 5.375 kB / 0.5246 GB, free: 7.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3823, allocations: 0 / 0.5246 GB, free: 7.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.3823, allocations: 0 / 0.5246 GB, free: 7.926 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001138/0.3835, allocations: 0.5547 MB / 0.5251 GB, free: 7.516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3835, allocations: 11.02 kB / 0.5252 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.852e-05/0.3835, allocations: 40.5 kB / 0.5252 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.117e-05/0.3836, allocations: 29.27 kB / 0.5252 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005712/0.3842, allocations: 259.7 kB / 0.5255 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.3842, allocations: 8.781 kB / 0.5255 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.3842, allocations: 6.875 kB / 0.5255 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.3845, allocations: 187.8 kB / 0.5257 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3845, allocations: 0 / 0.5257 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.3845, allocations: 5.891 kB / 0.5257 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3845, allocations: 2.219 kB / 0.5257 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002766/0.3848, allocations: 169 kB / 0.5258 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007297/0.3855, allocations: 452.9 kB / 0.5263 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000433/0.386, allocations: 217.9 kB / 0.5265 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.3861, allocations: 131.1 kB / 0.5266 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.3861, allocations: 2.469 kB / 0.5266 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002407/0.3864, allocations: 212.3 kB / 0.5268 GB, free: 6.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.433e-06/0.3864, allocations: 0 / 0.5268 GB, free: 6.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001218/0.3876, allocations: 0.5696 MB / 0.5274 GB, free: 6.203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.3876, allocations: 88.91 kB / 0.5274 GB, free: 6.105 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005097/0.3881, allocations: 314.1 kB / 0.5277 GB, free: 5.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.3881, allocations: 26.89 kB / 0.5278 GB, free: 5.922 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.399e-05/0.3882, allocations: 133.6 kB / 0.5279 GB, free: 5.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.419e-05/0.3883, allocations: 68.22 kB / 0.528 GB, free: 5.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.257e-05/0.3883, allocations: 36.41 kB / 0.528 GB, free: 5.727 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.179e-05/0.3884, allocations: 339.3 kB / 0.5283 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.3885, allocations: 112 kB / 0.5284 GB, free: 5.348 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.3887, allocations: 121.7 kB / 0.5285 GB, free: 5.289 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.39, allocations: 0.5838 MB / 0.5291 GB, free: 5.035 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.39, allocations: 0 / 0.5291 GB, free: 5.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006572/0.3906, allocations: 438.8 kB / 0.5295 GB, free: 4.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.3907, allocations: 34.88 kB / 0.5296 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.3907, allocations: 1.281 kB / 0.5296 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002033/0.3909, allocations: 55.88 kB / 0.5296 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.391, allocations: 27.55 kB / 0.5296 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.3921, allocations: 1.496 MB / 0.5311 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.3923, allocations: 29.06 kB / 0.5311 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.3923, allocations: 9.156 kB / 0.5311 GB, free: 3.398 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: C.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: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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.0002083/0.3926, allocations: 205 kB / 0.5313 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.333e-05/0.3926, allocations: 25.14 kB / 0.5314 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.3926, allocations: 36.58 kB / 0.5314 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3927, allocations: 6.562 kB / 0.5314 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3927, allocations: 4.547 kB / 0.5314 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.3927, allocations: 1.766 kB / 0.5314 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.3929, allocations: 234.2 kB / 0.5316 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3929, allocations: 4.656 kB / 0.5316 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.393, allocations: 18.8 kB / 0.5317 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001586/0.3932, allocations: 52.39 kB / 0.5317 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.3932, allocations: 13.69 kB / 0.5317 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009908/0.3942, allocations: 1.487 MB / 0.5332 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3942, allocations: 4.062 kB / 0.5332 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009315/0.3951, allocations: 0.5918 MB / 0.5338 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.867e-05/0.3952, allocations: 26.55 kB / 0.5338 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.875e-05/0.3952, allocations: 13.09 kB / 0.5338 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.3954, allocations: 32.16 kB / 0.5338 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.109e-05/0.3955, allocations: 11.31 kB / 0.5338 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.3955, allocations: 13.64 kB / 0.5338 GB, free: 1.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005005/0.396, allocations: 243.2 kB / 0.5341 GB, free: 1.141 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.396, allocations: 0 / 0.5341 GB, free: 1.141 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003233/0.3964, allocations: 67.12 kB / 0.5341 GB, free: 1.129 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],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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.001109/0.3975, allocations: 1.174 MB / 0.5353 GB, free: 276 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006897/0.3982, allocations: 470.1 kB / 0.5357 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3982, allocations: 0 / 0.5357 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004113/0.3986, allocations: 328.8 kB / 0.536 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.3988, allocations: 29.12 kB / 0.5361 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005021/0.4039, allocations: 3.12 MB / 0.5391 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.404, allocations: 148.8 kB / 0.5393 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.4041, allocations: 32.41 kB / 0.5393 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.4042, allocations: 65.31 kB / 0.5394 GB, free: 13.67 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4042, allocations: 0 / 0.5394 GB, free: 13.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03606/0.4403, allocations: 6.064 MB / 0.5453 GB, free: 11.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.24, allocations: 3.562 kB / 0.5453 GB, free: 11.51 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.083030619192868] Failed to read output from testmodel.py, exit status != 0: 12.350329283159226 12.36473218 11.97914978 Calling exit ...