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.002034/0.002034, 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.002012/0.002012, allocations: 208.9 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.579/1.579, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1571/0.1571, 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: 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.002164/0.002164, allocations: 63.91 kB / 474.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4458/0.448, allocations: 59.58 MB / 0.5214 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002506/0.4505, allocations: 1.02 MB / 0.5224 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.4524, allocations: 1.278 MB / 0.5236 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.4526, allocations: 6.312 kB / 0.5236 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003825/0.453, allocations: 52.78 kB / 0.5237 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002534/0.4532, allocations: 65.48 kB / 0.5237 GB, free: 8.844 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003704/0.4536, allocations: 125.7 kB / 0.5239 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005603/0.4541, allocations: 356.3 kB / 0.5242 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.4543, allocations: 34.86 kB / 0.5242 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.4545, allocations: 137.2 kB / 0.5244 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002668/0.4548, allocations: 161.9 kB / 0.5245 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.622e-05/0.4549, allocations: 18.25 kB / 0.5245 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.72e-05/0.4549, allocations: 22.56 kB / 0.5246 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.455, allocations: 94.02 kB / 0.5247 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.095e-05/0.4551, allocations: 75.39 kB / 0.5247 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000322/0.4554, allocations: 231.8 kB / 0.5249 GB, free: 8.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4555, allocations: 0 / 0.5249 GB, free: 8.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4555, allocations: 0 / 0.5249 GB, free: 8.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.4555, allocations: 0 / 0.5249 GB, free: 8.363 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.001787/0.4573, allocations: 0.5975 MB / 0.5255 GB, free: 7.984 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.4573, allocations: 10.83 kB / 0.5255 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.4574, allocations: 29 kB / 0.5256 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008862/0.4583, allocations: 305 kB / 0.5259 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.4583, allocations: 9.781 kB / 0.5259 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.4583, allocations: 16.2 kB / 0.5259 GB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003416/0.4587, allocations: 173.8 kB / 0.526 GB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.4587, allocations: 2.344 kB / 0.5261 GB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.4587, allocations: 5.312 kB / 0.5261 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.4587, allocations: 2.969 kB / 0.5261 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003533/0.4591, allocations: 168.3 kB / 0.5262 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.4602, allocations: 0.5233 MB / 0.5267 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003454/0.4605, allocations: 204.3 kB / 0.5269 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.4607, allocations: 109.5 kB / 0.527 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.4607, allocations: 3.828 kB / 0.527 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.508e-05/0.4607, allocations: 35.97 kB / 0.5271 GB, free: 7.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.824e-06/0.4607, allocations: 1.406 kB / 0.5271 GB, free: 7.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.00178/0.4625, allocations: 0.5788 MB / 0.5276 GB, free: 6.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.574e-05/0.4625, allocations: 57.88 kB / 0.5277 GB, free: 6.922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000807/0.4633, allocations: 340.5 kB / 0.528 GB, free: 6.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.4633, allocations: 30.83 kB / 0.528 GB, free: 6.734 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.504e-05/0.4634, allocations: 140.8 kB / 0.5282 GB, free: 6.609 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.028e-05/0.4635, allocations: 74.41 kB / 0.5282 GB, free: 6.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.691e-05/0.4636, allocations: 44.8 kB / 0.5283 GB, free: 6.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.878e-05/0.4636, allocations: 334.2 kB / 0.5286 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.4638, allocations: 94.11 kB / 0.5287 GB, free: 6.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.464, allocations: 93.7 kB / 0.5288 GB, free: 6.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00204/0.466, allocations: 0.6185 MB / 0.5294 GB, free: 5.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.466, allocations: 1.094 kB / 0.5294 GB, free: 5.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001007/0.467, allocations: 398.1 kB / 0.5298 GB, free: 5.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.467, allocations: 8.438 kB / 0.5298 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.467, allocations: 1 kB / 0.5298 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003795/0.4674, allocations: 94.31 kB / 0.5299 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.4676, allocations: 35.09 kB / 0.5299 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.4696, allocations: 1.703 MB / 0.5316 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003746/0.47, allocations: 56.16 kB / 0.5316 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.47, allocations: 7.75 kB / 0.5316 GB, free: 4.363 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.000204/0.4702, allocations: 159.5 kB / 0.5318 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.217e-05/0.4703, allocations: 22.92 kB / 0.5318 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.685e-05/0.4704, allocations: 40.45 kB / 0.5318 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.4704, allocations: 6.828 kB / 0.5318 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.4704, allocations: 0.9062 kB / 0.5319 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.4704, allocations: 2.047 kB / 0.5319 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.4707, allocations: 240.2 kB / 0.5321 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4707, allocations: 0.5 kB / 0.5321 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002006/0.4709, allocations: 23.09 kB / 0.5321 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002903/0.4712, allocations: 90.42 kB / 0.5322 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.4713, allocations: 16.62 kB / 0.5322 GB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/0.4727, allocations: 1.708 MB / 0.5339 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4727, allocations: 1.344 kB / 0.5339 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009443/0.4737, allocations: 0.5681 MB / 0.5344 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.038e-05/0.4737, allocations: 28.81 kB / 0.5345 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.4738, allocations: 9.109 kB / 0.5345 GB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003673/0.4742, allocations: 43.98 kB / 0.5345 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/0.4742, allocations: 18.78 kB / 0.5345 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.4742, allocations: 8.562 kB / 0.5345 GB, free: 2.223 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006897/0.4749, allocations: 268.9 kB / 0.5348 GB, free: 2.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4749, allocations: 0.9688 kB / 0.5348 GB, free: 2.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003747/0.4753, allocations: 58.72 kB / 0.5348 GB, free: 2.098 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.0001058/0.4754, allocations: 103.9 kB / 0.5349 GB, free: 2.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000696/0.4761, allocations: 372.7 kB / 0.5353 GB, free: 1.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4761, allocations: 1.094 kB / 0.5353 GB, free: 1.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003728/0.4765, allocations: 249.2 kB / 0.5355 GB, free: 1.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.4769, allocations: 43.66 kB / 0.5356 GB, free: 1.629 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009939/0.4779, allocations: 0.5596 MB / 0.5361 GB, free: 1.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.4781, allocations: 160 kB / 0.5363 GB, free: 1.234 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001561/0.4782, allocations: 52.78 kB / 0.5363 GB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.074e-05/0.4783, allocations: 18.98 kB / 0.5364 GB, free: 1.219 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4783, allocations: 0 / 0.5364 GB, free: 1.219 MB / 382.1 MB Notification: Performance of Templates: time 0.008298/0.4866, allocations: 3.392 MB / 0.5397 GB, free: 480 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: 5.402965011075139] Failed to read output from testmodel.py, exit status != 0: 0.49626281671226025 0.5129088239999999 0.054028869 Calling exit ...