Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.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.001398/0.001398, allocations: 96.41 kB / 20.46 MB, free: 1.379 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.00151/0.00151, allocations: 227.8 kB / 23.77 MB, free: 4.531 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.488/1.488, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.1108/0.1108, allocations: 24.03 MB / 338 MB, free: 11.36 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_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") [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.002208/0.002208, allocations: 71.89 kB / 475.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2895, allocations: 59.57 MB / 0.5221 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002085/0.2916, allocations: 1.078 MB / 0.5232 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.293, allocations: 1.323 MB / 0.5245 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.387e-05/0.2931, allocations: 2.312 kB / 0.5245 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002914/0.2934, allocations: 72.58 kB / 0.5245 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.2936, allocations: 88.72 kB / 0.5246 GB, free: 8.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.2939, allocations: 153.9 kB / 0.5248 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005212/0.2944, allocations: 468.5 kB / 0.5252 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.2945, allocations: 42.64 kB / 0.5253 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.2947, allocations: 176.3 kB / 0.5254 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002482/0.295, allocations: 202.2 kB / 0.5256 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.167e-05/0.295, allocations: 22.78 kB / 0.5256 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.276e-05/0.2951, allocations: 22.09 kB / 0.5257 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.2952, allocations: 117.5 kB / 0.5258 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.222e-05/0.2953, allocations: 93.09 kB / 0.5259 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.2956, allocations: 273.9 kB / 0.5261 GB, free: 8.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.2956, allocations: 1.125 kB / 0.5261 GB, free: 8.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2956, allocations: 0.6094 kB / 0.5261 GB, free: 8.117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.2956, allocations: 0 / 0.5261 GB, free: 8.117 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001753/0.2974, allocations: 0.6831 MB / 0.5268 GB, free: 7.707 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.2974, allocations: 10.05 kB / 0.5268 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.999e-05/0.2975, allocations: 41.66 kB / 0.5268 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009637/0.2984, allocations: 351 kB / 0.5272 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.2984, allocations: 18.16 kB / 0.5272 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.2985, allocations: 18.72 kB / 0.5272 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003235/0.2988, allocations: 190 kB / 0.5274 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2988, allocations: 5.328 kB / 0.5274 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.2988, allocations: 9.438 kB / 0.5274 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.2988, allocations: 2.375 kB / 0.5274 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003459/0.2992, allocations: 197.5 kB / 0.5276 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.3002, allocations: 0.5831 MB / 0.5282 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005067/0.3007, allocations: 257.9 kB / 0.5284 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.3009, allocations: 128.2 kB / 0.5285 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.301, allocations: 2.5 kB / 0.5285 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.313e-05/0.301, allocations: 32.64 kB / 0.5286 GB, free: 6.824 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.301, allocations: 0 / 0.5286 GB, free: 6.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001725/0.3027, allocations: 0.6162 MB / 0.5292 GB, free: 6.641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.048e-05/0.3027, allocations: 53.88 kB / 0.5292 GB, free: 6.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008786/0.3036, allocations: 416.2 kB / 0.5296 GB, free: 6.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.3036, allocations: 30.98 kB / 0.5297 GB, free: 6.371 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.87e-05/0.3037, allocations: 149.8 kB / 0.5298 GB, free: 6.242 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.642e-05/0.3038, allocations: 92.36 kB / 0.5299 GB, free: 6.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.121e-05/0.3038, allocations: 43.16 kB / 0.5299 GB, free: 6.141 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.85e-05/0.3039, allocations: 345.2 kB / 0.5303 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.3041, allocations: 103.4 kB / 0.5304 GB, free: 5.781 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.3042, allocations: 109.6 kB / 0.5305 GB, free: 5.746 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002082/0.3063, allocations: 0.7137 MB / 0.5312 GB, free: 5.559 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3063, allocations: 3.938 kB / 0.5312 GB, free: 5.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007732/0.3071, allocations: 443 kB / 0.5316 GB, free: 5.387 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3071, allocations: 6.672 kB / 0.5316 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3071, allocations: 3.938 kB / 0.5316 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003167/0.3074, allocations: 98.27 kB / 0.5317 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.3076, allocations: 41.38 kB / 0.5317 GB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.309, allocations: 1.698 MB / 0.5334 GB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004163/0.3095, allocations: 74 kB / 0.5335 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.3095, allocations: 9.719 kB / 0.5335 GB, free: 3.914 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] 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 (25): * Single equations (assignments): 24 * 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.0001729/0.3097, allocations: 178 kB / 0.5336 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.55e-05/0.3097, allocations: 27.72 kB / 0.5337 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.721e-05/0.3098, allocations: 43.3 kB / 0.5337 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3098, allocations: 2.531 kB / 0.5337 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3098, allocations: 1.25 kB / 0.5337 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3098, allocations: 3.016 kB / 0.5337 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002962/0.3101, allocations: 261 kB / 0.534 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3101, allocations: 4 kB / 0.534 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/0.3103, allocations: 36.77 kB / 0.534 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002609/0.3106, allocations: 95.09 kB / 0.5341 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.3106, allocations: 12.88 kB / 0.5341 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.3119, allocations: 1.703 MB / 0.5358 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3119, allocations: 0 / 0.5358 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000939/0.3128, allocations: 0.6237 MB / 0.5364 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.095e-05/0.3129, allocations: 35.56 kB / 0.5364 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.088e-05/0.3129, allocations: 9.094 kB / 0.5364 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004303/0.3134, allocations: 52 kB / 0.5365 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.72e-05/0.3134, allocations: 24.62 kB / 0.5365 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.3135, allocations: 7.5 kB / 0.5365 GB, free: 1.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007634/0.3142, allocations: 326 kB / 0.5368 GB, free: 1.609 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3142, allocations: 4 kB / 0.5368 GB, free: 1.605 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003335/0.3146, allocations: 65.91 kB / 0.5369 GB, free: 1.594 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18): * Single equations (assignments): 17 * 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.445e-05/0.3146, allocations: 107.8 kB / 0.537 GB, free: 1.496 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006506/0.3153, allocations: 406.4 kB / 0.5374 GB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3153, allocations: 0 / 0.5374 GB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003518/0.3157, allocations: 274.6 kB / 0.5376 GB, free: 1.125 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.316, allocations: 52.66 kB / 0.5377 GB, free: 1.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.3172, allocations: 0.7252 MB / 0.5384 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.3174, allocations: 181 kB / 0.5386 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.092e-05/0.3174, allocations: 24.86 kB / 0.5386 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3174, allocations: 1.156 kB / 0.5386 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of Templates: time 0.006646/0.3241, allocations: 4.558 MB / 0.543 GB, free: 14.91 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.826491392683238] Failed to read output from testmodel.py, exit status != 0: 0.3327996083535254 0.345817501 0.047364470000000006 Calling exit ...