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.00138/0.00138, allocations: 112.8 kB / 16.46 MB, free: 6.453 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.00143/0.00143, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.486/1.486, 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.1147/0.1147, allocations: 24.1 MB / 333 MB, free: 12.65 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.002291/0.002291, allocations: 71.89 kB / 467.8 MB, free: 9.102 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.3549, allocations: 59.58 MB / 0.5151 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.003007/0.3579, allocations: 0.9762 MB / 0.516 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.3598, allocations: 1.253 MB / 0.5172 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.3599, allocations: 6.281 kB / 0.5172 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003114/0.3602, allocations: 34.72 kB / 0.5173 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.3604, allocations: 50.55 kB / 0.5173 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.3606, allocations: 67.86 kB / 0.5174 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.3609, allocations: 204.5 kB / 0.5176 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.361, allocations: 24.52 kB / 0.5176 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.3611, allocations: 86.69 kB / 0.5177 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.3613, allocations: 104.1 kB / 0.5178 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.223e-05/0.3614, allocations: 11 kB / 0.5178 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.967e-05/0.3614, allocations: 10.56 kB / 0.5178 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.282e-05/0.3615, allocations: 57.41 kB / 0.5179 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.964e-05/0.3616, allocations: 60.56 kB / 0.5179 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002049/0.3618, allocations: 128.5 kB / 0.518 GB, free: 7.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3618, allocations: 3.938 kB / 0.5181 GB, free: 7.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3618, allocations: 0 / 0.5181 GB, free: 7.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.3618, allocations: 1.312 kB / 0.5181 GB, free: 7.84 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.001141/0.363, allocations: 0.5274 MB / 0.5186 GB, free: 7.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.363, allocations: 9.25 kB / 0.5186 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.861e-05/0.363, allocations: 39.69 kB / 0.5186 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.822e-05/0.3631, allocations: 20.67 kB / 0.5186 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005883/0.3637, allocations: 293.2 kB / 0.5189 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.3637, allocations: 7.719 kB / 0.5189 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.3637, allocations: 10.02 kB / 0.5189 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.3639, allocations: 112.1 kB / 0.519 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.364, allocations: 0.5156 kB / 0.519 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.364, allocations: 6.109 kB / 0.519 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.364, allocations: 6.156 kB / 0.5191 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002875/0.3643, allocations: 106.7 kB / 0.5192 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007054/0.365, allocations: 451.4 kB / 0.5196 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004255/0.3654, allocations: 155.7 kB / 0.5197 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.3656, allocations: 64.25 kB / 0.5198 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.3656, allocations: 6.219 kB / 0.5198 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.742e-05/0.3656, allocations: 32.38 kB / 0.5198 GB, free: 6.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.3656, allocations: 0 / 0.5198 GB, free: 6.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001111/0.3667, allocations: 402.7 kB / 0.5202 GB, free: 6.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.236e-05/0.3667, allocations: 53.55 kB / 0.5203 GB, free: 6.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005047/0.3672, allocations: 248.8 kB / 0.5205 GB, free: 6.145 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.3673, allocations: 26.77 kB / 0.5205 GB, free: 6.113 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.528e-05/0.3673, allocations: 118.9 kB / 0.5206 GB, free: 6.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.3674, allocations: 40.31 kB / 0.5207 GB, free: 5.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/0.3674, allocations: 29.42 kB / 0.5207 GB, free: 5.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.326e-05/0.3675, allocations: 324.7 kB / 0.521 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3676, allocations: 53.86 kB / 0.5211 GB, free: 5.613 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.3677, allocations: 51.03 kB / 0.5211 GB, free: 5.602 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.3688, allocations: 340.5 kB / 0.5214 GB, free: 5.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3688, allocations: 0 / 0.5214 GB, free: 5.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000487/0.3693, allocations: 237.4 kB / 0.5217 GB, free: 5.406 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.3693, allocations: 5.812 kB / 0.5217 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3693, allocations: 0 / 0.5217 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002086/0.3696, allocations: 60.09 kB / 0.5217 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.3697, allocations: 17.12 kB / 0.5217 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.3709, allocations: 1.605 MB / 0.5233 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.3712, allocations: 33.53 kB / 0.5233 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.3712, allocations: 3.438 kB / 0.5233 GB, free: 3.875 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.0001717/0.3713, allocations: 142.9 kB / 0.5235 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.641e-05/0.3714, allocations: 13.94 kB / 0.5235 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.932e-05/0.3714, allocations: 30.05 kB / 0.5235 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.3714, allocations: 1.375 kB / 0.5235 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.3715, allocations: 5.281 kB / 0.5235 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3715, allocations: 0 / 0.5235 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002625/0.3717, allocations: 250.4 kB / 0.5238 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3717, allocations: 0 / 0.5238 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.3719, allocations: 16.25 kB / 0.5238 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002122/0.3721, allocations: 51.53 kB / 0.5238 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.3721, allocations: 10.19 kB / 0.5238 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.3733, allocations: 1.609 MB / 0.5254 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3733, allocations: 0 / 0.5254 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006178/0.3739, allocations: 381.6 kB / 0.5258 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.857e-05/0.3739, allocations: 102.5 kB / 0.5259 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.374, allocations: 5.188 kB / 0.5259 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.3742, allocations: 33.81 kB / 0.5259 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.314e-05/0.3743, allocations: 13.2 kB / 0.5259 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.3743, allocations: 3.375 kB / 0.5259 GB, free: 1.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004308/0.3747, allocations: 198.7 kB / 0.5261 GB, free: 1.516 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3747, allocations: 0 / 0.5261 GB, free: 1.516 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003484/0.3751, allocations: 30.16 kB / 0.5262 GB, free: 1.512 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.0008486/0.3759, allocations: 0.9025 MB / 0.527 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00058/0.3765, allocations: 251.9 kB / 0.5273 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3765, allocations: 3.938 kB / 0.5273 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.3768, allocations: 200.3 kB / 0.5275 GB, free: 476 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.3772, allocations: 24.92 kB / 0.5275 GB, free: 464 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004245/0.3814, allocations: 2.267 MB / 0.5297 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.3818, allocations: 0.7255 MB / 0.5304 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.382, allocations: 30.72 kB / 0.5304 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.3821, allocations: 47.16 kB / 0.5305 GB, free: 14.2 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3821, allocations: 0 / 0.5305 GB, free: 14.2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.4151, allocations: 3.834 MB / 0.5342 GB, free: 13.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.966/10.38, allocations: 6.922 kB / 0.5342 GB, free: 13.64 MB / 398.1 MB " [Timeout remaining time 650] (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: 13.19274418009445] Failed to read output from testmodel.py, exit status != 0: 10.468865722185 10.496364301 10.12963045 Calling exit ...