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.001666/0.001666, allocations: 100.3 kB / 20.46 MB, free: 1.367 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.002054/0.002054, allocations: 216.7 kB / 23.77 MB, free: 4.52 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.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.1217/0.1217, allocations: 24.02 MB / 338 MB, free: 11.33 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.002171/0.002171, allocations: 71.89 kB / 475.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2946, allocations: 59.58 MB / 0.5221 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002203/0.2968, allocations: 1.012 MB / 0.5231 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.2983, allocations: 1.275 MB / 0.5244 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.471e-05/0.2984, allocations: 5.438 kB / 0.5244 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002988/0.2987, allocations: 55.83 kB / 0.5244 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000185/0.2989, allocations: 62.12 kB / 0.5245 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.2992, allocations: 129.1 kB / 0.5246 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004645/0.2996, allocations: 364.8 kB / 0.525 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.2997, allocations: 26.97 kB / 0.525 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.2999, allocations: 134.8 kB / 0.5251 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.3002, allocations: 166 kB / 0.5253 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.797e-05/0.3002, allocations: 18.47 kB / 0.5253 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.055e-05/0.3003, allocations: 19.38 kB / 0.5253 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.3004, allocations: 96.95 kB / 0.5254 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.051e-05/0.3005, allocations: 73.78 kB / 0.5255 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.3007, allocations: 227.6 kB / 0.5257 GB, free: 8.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3007, allocations: 0 / 0.5257 GB, free: 8.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3007, allocations: 4 kB / 0.5257 GB, free: 8.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.792e-06/0.3007, allocations: 0 / 0.5257 GB, free: 8.324 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.001535/0.3023, allocations: 0.5947 MB / 0.5263 GB, free: 7.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3023, allocations: 9.812 kB / 0.5263 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.3024, allocations: 29 kB / 0.5263 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008424/0.3032, allocations: 313.3 kB / 0.5266 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.3032, allocations: 4.938 kB / 0.5266 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.041e-05/0.3033, allocations: 21.17 kB / 0.5266 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003157/0.3036, allocations: 174.3 kB / 0.5268 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.3036, allocations: 1 kB / 0.5268 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.3036, allocations: 10.06 kB / 0.5268 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.3036, allocations: 2.25 kB / 0.5268 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/0.304, allocations: 169.5 kB / 0.527 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009758/0.3049, allocations: 0.5248 MB / 0.5275 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003586/0.3053, allocations: 210.5 kB / 0.5277 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001807/0.3055, allocations: 109.6 kB / 0.5278 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.3055, allocations: 2.406 kB / 0.5278 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.3055, allocations: 33.62 kB / 0.5278 GB, free: 7.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.673e-06/0.3055, allocations: 3.938 kB / 0.5278 GB, free: 7.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001748/0.3073, allocations: 0.5678 MB / 0.5284 GB, free: 6.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/0.3073, allocations: 53.47 kB / 0.5284 GB, free: 6.883 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007376/0.308, allocations: 342.5 kB / 0.5288 GB, free: 6.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.308, allocations: 31.36 kB / 0.5288 GB, free: 6.695 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.415e-05/0.3081, allocations: 140.1 kB / 0.5289 GB, free: 6.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.174e-05/0.3082, allocations: 70.84 kB / 0.529 GB, free: 6.516 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.281e-05/0.3082, allocations: 40.41 kB / 0.529 GB, free: 6.488 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.3083, allocations: 338.9 kB / 0.5293 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.3085, allocations: 89.28 kB / 0.5294 GB, free: 6.137 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.3086, allocations: 93.02 kB / 0.5295 GB, free: 6.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00194/0.3106, allocations: 0.6235 MB / 0.5301 GB, free: 5.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.3106, allocations: 1 kB / 0.5301 GB, free: 5.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007959/0.3114, allocations: 397.4 kB / 0.5305 GB, free: 5.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.3114, allocations: 5.375 kB / 0.5305 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3114, allocations: 1.031 kB / 0.5305 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003079/0.3117, allocations: 102.7 kB / 0.5306 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.3119, allocations: 30.58 kB / 0.5306 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.3133, allocations: 1.711 MB / 0.5323 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.3137, allocations: 55.55 kB / 0.5324 GB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.3137, allocations: 4.469 kB / 0.5324 GB, free: 4.324 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.00019/0.3139, allocations: 166.5 kB / 0.5325 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.558e-05/0.314, allocations: 27.22 kB / 0.5326 GB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.017e-05/0.3141, allocations: 36.28 kB / 0.5326 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3141, allocations: 2.781 kB / 0.5326 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3141, allocations: 0.5625 kB / 0.5326 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3141, allocations: 1.875 kB / 0.5326 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000321/0.3144, allocations: 250.2 kB / 0.5328 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3144, allocations: 0.5 kB / 0.5328 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.3146, allocations: 23.92 kB / 0.5329 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002693/0.3148, allocations: 88.03 kB / 0.5329 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.3149, allocations: 11.77 kB / 0.533 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001373/0.3162, allocations: 1.708 MB / 0.5346 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3162, allocations: 1.25 kB / 0.5346 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008668/0.3171, allocations: 0.5602 MB / 0.5352 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.061e-05/0.3172, allocations: 25.62 kB / 0.5352 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.691e-05/0.3172, allocations: 7.891 kB / 0.5352 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003719/0.3176, allocations: 50.41 kB / 0.5352 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.549e-05/0.3176, allocations: 13.61 kB / 0.5353 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.3177, allocations: 7.859 kB / 0.5353 GB, free: 2.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006302/0.3183, allocations: 266.2 kB / 0.5355 GB, free: 2.078 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3183, allocations: 4 kB / 0.5355 GB, free: 2.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003318/0.3186, allocations: 58.94 kB / 0.5356 GB, free: 2.062 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 9.222e-05/0.3187, allocations: 103.8 kB / 0.5357 GB, free: 1.969 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006366/0.3193, allocations: 364.9 kB / 0.536 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3193, allocations: 4 kB / 0.536 GB, free: 1.777 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003349/0.3197, allocations: 260.3 kB / 0.5363 GB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.32, allocations: 39.66 kB / 0.5363 GB, free: 1.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008685/0.3209, allocations: 0.5996 MB / 0.5369 GB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/0.3211, allocations: 160.5 kB / 0.5371 GB, free: 1.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.927e-05/0.3211, allocations: 19.55 kB / 0.5371 GB, free: 1.148 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3211, allocations: 0 / 0.5371 GB, free: 1.148 MB / 382.1 MB Notification: Performance of Templates: time 0.006131/0.3273, allocations: 3.823 MB / 0.5408 GB, free: 156 kB / 382.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: 7.816507221199572] Failed to read output from testmodel.py, exit status != 0: 0.33660946413874626 0.35102320200000003 0.047235067000000006 Calling exit ...