Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.001494/0.001494, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001528/0.001528, allocations: 220.6 kB / 23.01 MB, free: 4.609 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.442/1.442, allocations: 230.6 MB / 256.8 MB, free: 8.051 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.1129/0.1129, allocations: 24.13 MB / 337.3 MB, free: 11.48 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: translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") [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.002233/0.002233, allocations: 71.89 kB / 474.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.384, allocations: 59.59 MB / 0.5216 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.00228/0.3862, allocations: 1.077 MB / 0.5227 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.3878, allocations: 1.311 MB / 0.524 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.512e-05/0.3879, allocations: 9.438 kB / 0.524 GB, free: 8.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003342/0.3883, allocations: 56.56 kB / 0.524 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001942/0.3885, allocations: 60.38 kB / 0.5241 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.3888, allocations: 125.8 kB / 0.5242 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005349/0.3893, allocations: 370.7 kB / 0.5246 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.3894, allocations: 30.12 kB / 0.5246 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.3896, allocations: 137.5 kB / 0.5247 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002488/0.3899, allocations: 172 kB / 0.5249 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.805e-05/0.3899, allocations: 19.22 kB / 0.5249 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.955e-05/0.3899, allocations: 18.03 kB / 0.5249 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.3901, allocations: 91.41 kB / 0.525 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.3902, allocations: 103.6 kB / 0.5251 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002865/0.3905, allocations: 224.3 kB / 0.5253 GB, free: 8.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3905, allocations: 4.938 kB / 0.5253 GB, free: 8.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3905, allocations: 0 / 0.5253 GB, free: 8.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3905, allocations: 0 / 0.5253 GB, free: 8.184 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001637/0.3921, allocations: 0.6018 MB / 0.5259 GB, free: 7.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3922, allocations: 10.23 kB / 0.5259 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.021e-05/0.3922, allocations: 29.02 kB / 0.526 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008298/0.3931, allocations: 301 kB / 0.5262 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.3931, allocations: 8.875 kB / 0.5262 GB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.885e-05/0.3931, allocations: 22.42 kB / 0.5263 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003344/0.3935, allocations: 172.5 kB / 0.5264 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.3935, allocations: 1.766 kB / 0.5264 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.078e-05/0.3935, allocations: 5.156 kB / 0.5264 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.3935, allocations: 2.219 kB / 0.5264 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.3938, allocations: 174.5 kB / 0.5266 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.3949, allocations: 0.5924 MB / 0.5272 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003917/0.3953, allocations: 203.2 kB / 0.5274 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.3955, allocations: 114 kB / 0.5275 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.3956, allocations: 2.188 kB / 0.5275 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.3956, allocations: 31.78 kB / 0.5275 GB, free: 6.941 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.3956, allocations: 3.938 kB / 0.5275 GB, free: 6.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.00183/0.3974, allocations: 0.5694 MB / 0.5281 GB, free: 6.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.468e-05/0.3974, allocations: 57.56 kB / 0.5281 GB, free: 6.699 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007281/0.3982, allocations: 341.9 kB / 0.5285 GB, free: 6.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.3982, allocations: 25.7 kB / 0.5285 GB, free: 6.516 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.794e-05/0.3982, allocations: 137.7 kB / 0.5286 GB, free: 6.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.132e-05/0.3983, allocations: 86.11 kB / 0.5287 GB, free: 6.324 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.535e-05/0.3984, allocations: 40.53 kB / 0.5287 GB, free: 6.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.754e-05/0.3984, allocations: 334.5 kB / 0.5291 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.3986, allocations: 89.56 kB / 0.5291 GB, free: 5.949 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.3988, allocations: 91.12 kB / 0.5292 GB, free: 5.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002069/0.4008, allocations: 0.629 MB / 0.5298 GB, free: 5.754 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4008, allocations: 0 / 0.5298 GB, free: 5.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007886/0.4016, allocations: 393.3 kB / 0.5302 GB, free: 5.605 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.4016, allocations: 5.703 kB / 0.5302 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4017, allocations: 11.94 kB / 0.5302 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003346/0.402, allocations: 90.67 kB / 0.5303 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.4022, allocations: 31.02 kB / 0.5304 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.4038, allocations: 1.742 MB / 0.5321 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000359/0.4041, allocations: 57.05 kB / 0.5321 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.4041, allocations: 12.31 kB / 0.5321 GB, free: 4.094 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: M.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.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 (21): * Single equations (assignments): 20 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002006/0.4043, allocations: 161.5 kB / 0.5323 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.77e-05/0.4044, allocations: 26.23 kB / 0.5323 GB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.958e-05/0.4045, allocations: 42.09 kB / 0.5323 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4045, allocations: 1.219 kB / 0.5323 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4045, allocations: 1.219 kB / 0.5323 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.4045, allocations: 1.375 kB / 0.5323 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003706/0.4048, allocations: 299.6 kB / 0.5326 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4049, allocations: 4.75 kB / 0.5326 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.405, allocations: 28.59 kB / 0.5327 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003057/0.4054, allocations: 98.5 kB / 0.5328 GB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/0.4054, allocations: 7.578 kB / 0.5328 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001455/0.4068, allocations: 1.742 MB / 0.5345 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4068, allocations: 1.125 kB / 0.5345 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009091/0.4077, allocations: 0.5596 MB / 0.535 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.435e-05/0.4078, allocations: 26.22 kB / 0.535 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.4078, allocations: 7.906 kB / 0.535 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003727/0.4082, allocations: 46.27 kB / 0.5351 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.882e-05/0.4083, allocations: 13.77 kB / 0.5351 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.4083, allocations: 16.22 kB / 0.5351 GB, free: 1.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006522/0.4089, allocations: 269.6 kB / 0.5354 GB, free: 1.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4089, allocations: 0 / 0.5354 GB, free: 1.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003484/0.4093, allocations: 58.44 kB / 0.5354 GB, free: 1.746 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000108/0.4094, allocations: 108.6 kB / 0.5355 GB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006669/0.4101, allocations: 359.7 kB / 0.5359 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4101, allocations: 0 / 0.5359 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.4104, allocations: 254.7 kB / 0.5361 GB, free: 1.305 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.4108, allocations: 34.7 kB / 0.5362 GB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009789/0.4118, allocations: 0.6158 MB / 0.5368 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.412, allocations: 0.7654 MB / 0.5375 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.19e-05/0.4121, allocations: 18.73 kB / 0.5375 GB, free: 220 kB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4121, allocations: 5.219 kB / 0.5375 GB, free: 216 kB / 382.1 MB Notification: Performance of Templates: time 0.006824/0.4189, allocations: 3.759 MB / 0.5412 GB, free: 15.16 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.269703208003193] Failed to read output from testmodel.py, exit status != 0: 0.428079147124663 0.45099036600000003 0.055897464 Calling exit ...