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.001615/0.001615, allocations: 110.2 kB / 19.69 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.002076/0.002076, allocations: 216.2 kB / 23.01 MB, free: 4.566 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.503/1.503, allocations: 230.6 MB / 256.8 MB, free: 8.043 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.1238/0.1238, allocations: 24.12 MB / 337.3 MB, free: 11.47 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.003358/0.003358, allocations: 71.89 kB / 474.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3687, 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_2dof): time 0.002275/0.371, allocations: 1.148 MB / 0.5228 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.3727, allocations: 1.363 MB / 0.5241 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.3728, allocations: 10.31 kB / 0.5241 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.3732, allocations: 72.97 kB / 0.5242 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.3734, allocations: 83.7 kB / 0.5242 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004015/0.3738, allocations: 161.6 kB / 0.5244 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007208/0.3746, allocations: 481.8 kB / 0.5249 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.3747, allocations: 42.16 kB / 0.5249 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.375, allocations: 170 kB / 0.5251 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003512/0.3753, allocations: 213.4 kB / 0.5253 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.908e-05/0.3754, allocations: 22.53 kB / 0.5253 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.356e-05/0.3755, allocations: 22.25 kB / 0.5253 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.3756, allocations: 113.7 kB / 0.5254 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.3758, allocations: 115.9 kB / 0.5255 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003468/0.3761, allocations: 271.9 kB / 0.5258 GB, free: 7.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3761, allocations: 1 kB / 0.5258 GB, free: 7.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3761, allocations: 0 / 0.5258 GB, free: 7.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.3761, allocations: 4 kB / 0.5258 GB, free: 7.953 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.001961/0.3781, allocations: 0.6836 MB / 0.5265 GB, free: 7.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3781, allocations: 9.672 kB / 0.5265 GB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.367e-05/0.3782, allocations: 31.45 kB / 0.5265 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009834/0.3792, allocations: 365.9 kB / 0.5268 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.3792, allocations: 10.16 kB / 0.5269 GB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.448e-05/0.3793, allocations: 18.34 kB / 0.5269 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.3796, allocations: 193.7 kB / 0.5271 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.3797, allocations: 4.609 kB / 0.5271 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.161e-05/0.3797, allocations: 5.25 kB / 0.5271 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.3797, allocations: 3.062 kB / 0.5271 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004357/0.3801, allocations: 201.6 kB / 0.5273 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.3816, allocations: 0.6612 MB / 0.5279 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006223/0.3823, allocations: 257.9 kB / 0.5282 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.3825, allocations: 124.9 kB / 0.5283 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.3825, allocations: 7.156 kB / 0.5283 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.3825, allocations: 36.7 kB / 0.5283 GB, free: 6.609 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.3825, allocations: 0 / 0.5283 GB, free: 6.609 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.002184/0.3847, allocations: 0.6147 MB / 0.5289 GB, free: 6.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.3848, allocations: 58.72 kB / 0.529 GB, free: 6.355 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.3859, allocations: 415.9 kB / 0.5294 GB, free: 6.184 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.3859, allocations: 26.95 kB / 0.5294 GB, free: 6.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.386, allocations: 157.4 kB / 0.5295 GB, free: 6.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.3861, allocations: 88.8 kB / 0.5296 GB, free: 5.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.948e-05/0.3862, allocations: 43.25 kB / 0.5297 GB, free: 5.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3863, allocations: 344.5 kB / 0.53 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.3866, allocations: 103.5 kB / 0.5301 GB, free: 5.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.3868, allocations: 105.4 kB / 0.5302 GB, free: 5.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002466/0.3892, allocations: 0.7182 MB / 0.5309 GB, free: 5.336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3892, allocations: 7.938 kB / 0.5309 GB, free: 5.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009314/0.3902, allocations: 439.3 kB / 0.5313 GB, free: 5.164 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.3902, allocations: 11.56 kB / 0.5313 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3902, allocations: 0 / 0.5313 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004345/0.3906, allocations: 90.95 kB / 0.5314 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.3909, allocations: 39.97 kB / 0.5315 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002225/0.3931, allocations: 1.742 MB / 0.5332 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005/0.3936, allocations: 71.42 kB / 0.5332 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.3936, allocations: 4.594 kB / 0.5332 GB, free: 3.66 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.0003038/0.3939, allocations: 181.1 kB / 0.5334 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.282e-05/0.394, allocations: 28.33 kB / 0.5334 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.761e-05/0.3941, allocations: 43.28 kB / 0.5335 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3941, allocations: 3.031 kB / 0.5335 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.3941, allocations: 1.281 kB / 0.5335 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3941, allocations: 6.516 kB / 0.5335 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004608/0.3946, allocations: 341.9 kB / 0.5338 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3946, allocations: 1.031 kB / 0.5338 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002063/0.3948, allocations: 31.89 kB / 0.5338 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002993/0.3951, allocations: 90.81 kB / 0.5339 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.3951, allocations: 9.312 kB / 0.5339 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/0.3968, allocations: 1.742 MB / 0.5356 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3968, allocations: 4.062 kB / 0.5356 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.398, allocations: 0.6154 MB / 0.5362 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-05/0.3981, allocations: 31.11 kB / 0.5363 GB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.3981, allocations: 8.766 kB / 0.5363 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004491/0.3985, allocations: 67.89 kB / 0.5364 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-05/0.3986, allocations: 23.81 kB / 0.5364 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.3987, allocations: 5.375 kB / 0.5364 GB, free: 1.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008629/0.3995, allocations: 329 kB / 0.5367 GB, free: 1.258 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3995, allocations: 0 / 0.5367 GB, free: 1.258 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003946/0.3999, allocations: 65.44 kB / 0.5368 GB, free: 1.246 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 0.0001202/0.4, allocations: 113.1 kB / 0.5369 GB, free: 1.145 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008368/0.4009, allocations: 404.6 kB / 0.5372 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4009, allocations: 5.188 kB / 0.5373 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004118/0.4013, allocations: 265.3 kB / 0.5375 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.4017, allocations: 46.2 kB / 0.5375 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.4032, allocations: 0.7393 MB / 0.5383 GB, free: 356 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.4037, allocations: 0.7922 MB / 0.539 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.443e-05/0.4038, allocations: 21.52 kB / 0.5391 GB, free: 15.63 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4038, allocations: 0 / 0.5391 GB, free: 15.63 MB / 398.1 MB Notification: Performance of Templates: time 0.009478/0.4133, allocations: 4.482 MB / 0.5434 GB, free: 13.87 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: 8.21091661695391] Failed to read output from testmodel.py, exit status != 0: 0.42498488002456725 0.444880828 0.06404320200000001 Calling exit ...