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.001461/0.001461, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001663/0.001663, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.49/1.49, allocations: 230.6 MB / 256 MB, free: 8 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.1079/0.1079, allocations: 24.11 MB / 336.6 MB, free: 11.45 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.002908/0.002908, allocations: 67.89 kB / 473.3 MB, free: 6.418 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3771, allocations: 59.6 MB / 0.5204 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003308/0.3804, allocations: 1.781 MB / 0.5221 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.3818, allocations: 0.7249 MB / 0.5229 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.382, allocations: 5.062 kB / 0.5229 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003722/0.3823, allocations: 72.67 kB / 0.5229 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002235/0.3825, allocations: 85.92 kB / 0.523 GB, free: 8.328 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000624/0.3832, allocations: 167.4 kB / 0.5232 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006457/0.3838, allocations: 317.3 kB / 0.5235 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.384, allocations: 26.39 kB / 0.5235 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002605/0.3842, allocations: 128.1 kB / 0.5236 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003722/0.3846, allocations: 162.4 kB / 0.5238 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.191e-05/0.3846, allocations: 17.28 kB / 0.5238 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.3848, allocations: 94.36 kB / 0.5239 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.3849, allocations: 67.83 kB / 0.5239 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.385, allocations: 85.22 kB / 0.524 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003178/0.3854, allocations: 238.6 kB / 0.5243 GB, free: 7.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3854, allocations: 0 / 0.5243 GB, free: 7.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.3854, allocations: 0 / 0.5243 GB, free: 7.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3854, allocations: 0 / 0.5243 GB, free: 7.832 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.001308/0.3867, allocations: 0.5465 MB / 0.5248 GB, free: 7.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.3867, allocations: 11.11 kB / 0.5248 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.015e-05/0.3868, allocations: 45.34 kB / 0.5248 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.453e-05/0.3868, allocations: 27.88 kB / 0.5249 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006243/0.3875, allocations: 263.5 kB / 0.5251 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.3875, allocations: 8.688 kB / 0.5251 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.3875, allocations: 11.72 kB / 0.5251 GB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003145/0.3878, allocations: 161.8 kB / 0.5253 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.3878, allocations: 1.188 kB / 0.5253 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.3879, allocations: 8.969 kB / 0.5253 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.3879, allocations: 2.219 kB / 0.5253 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002959/0.3882, allocations: 138.6 kB / 0.5254 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008647/0.389, allocations: 467.9 kB / 0.5259 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004548/0.3895, allocations: 189.3 kB / 0.5261 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.3897, allocations: 94.16 kB / 0.5262 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.3897, allocations: 1.625 kB / 0.5262 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003457/0.39, allocations: 187.5 kB / 0.5263 GB, free: 6.527 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.39, allocations: 0 / 0.5263 GB, free: 6.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001292/0.3913, allocations: 0.5009 MB / 0.5268 GB, free: 6.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.3913, allocations: 85.66 kB / 0.5269 GB, free: 6.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000532/0.3919, allocations: 312.5 kB / 0.5272 GB, free: 6.098 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.3919, allocations: 30.98 kB / 0.5272 GB, free: 6.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.047e-05/0.392, allocations: 133.4 kB / 0.5274 GB, free: 5.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.48e-05/0.392, allocations: 64.77 kB / 0.5274 GB, free: 5.895 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.299e-05/0.3921, allocations: 34.67 kB / 0.5275 GB, free: 5.871 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.14e-05/0.3921, allocations: 343.5 kB / 0.5278 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.3923, allocations: 80.19 kB / 0.5279 GB, free: 5.523 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.3924, allocations: 84.81 kB / 0.5279 GB, free: 5.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/0.3938, allocations: 0.5776 MB / 0.5285 GB, free: 5.254 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3938, allocations: 0 / 0.5285 GB, free: 5.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006535/0.3944, allocations: 396.7 kB / 0.5289 GB, free: 5.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.286e-05/0.3945, allocations: 45 kB / 0.5289 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.3945, allocations: 0 / 0.5289 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002245/0.3947, allocations: 56.11 kB / 0.529 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.3948, allocations: 24.23 kB / 0.529 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.396, allocations: 1.505 MB / 0.5305 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.3963, allocations: 32.83 kB / 0.5305 GB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.3963, allocations: 9.734 kB / 0.5305 GB, free: 3.637 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.0002259/0.3965, allocations: 196.3 kB / 0.5307 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.115e-05/0.3966, allocations: 28.02 kB / 0.5307 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.75e-05/0.3966, allocations: 37.81 kB / 0.5308 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.3966, allocations: 5.844 kB / 0.5308 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.3966, allocations: 5.375 kB / 0.5308 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.3966, allocations: 5.062 kB / 0.5308 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.3969, allocations: 262.9 kB / 0.531 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3969, allocations: 0 / 0.531 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.397, allocations: 16.34 kB / 0.531 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001723/0.3972, allocations: 54.95 kB / 0.5311 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.3972, allocations: 10.02 kB / 0.5311 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.3982, allocations: 1.497 MB / 0.5326 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3982, allocations: 0 / 0.5326 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009379/0.3992, allocations: 0.5353 MB / 0.5331 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/0.3992, allocations: 26.41 kB / 0.5331 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.449e-05/0.3993, allocations: 13.16 kB / 0.5331 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.3995, allocations: 27.77 kB / 0.5332 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.769e-05/0.3996, allocations: 18.97 kB / 0.5332 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.3996, allocations: 5.578 kB / 0.5332 GB, free: 1.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005402/0.4002, allocations: 243.1 kB / 0.5334 GB, free: 1.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4002, allocations: 0 / 0.5334 GB, free: 1.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003901/0.4006, allocations: 65.19 kB / 0.5335 GB, free: 1.434 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.001262/0.4018, allocations: 1.105 MB / 0.5346 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007826/0.4026, allocations: 403.9 kB / 0.5349 GB, free: 412 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4026, allocations: 0 / 0.5349 GB, free: 412 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003823/0.403, allocations: 298.2 kB / 0.5352 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.4033, allocations: 28.94 kB / 0.5353 GB, free: 180 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005107/0.4084, allocations: 2.948 MB / 0.5381 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004516/0.4089, allocations: 0.7588 MB / 0.5389 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.409, allocations: 32.38 kB / 0.5389 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.4091, allocations: 65.7 kB / 0.539 GB, free: 13.69 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4091, allocations: 0 / 0.539 GB, free: 13.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03785/0.447, allocations: 5.587 MB / 0.5444 GB, free: 12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.21, allocations: 6.062 kB / 0.5444 GB, free: 12 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.003258240001742] Failed to read output from testmodel.py, exit status != 0: 12.322146619000705 12.336167264 11.947280908 Calling exit ...