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.001672/0.001672, allocations: 75.64 kB / 19.96 MB, free: 1.746 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.00201/0.00201, allocations: 171.6 kB / 23.24 MB, free: 4.855 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.605/1.605, allocations: 177.1 MB / 203.5 MB, free: 9.16 MB / 190.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.1036/0.1036, allocations: 18.15 MB / 278.1 MB, free: 15.04 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: Performance of FrontEnd - loaded program: time 2.495e-06/2.495e-06, allocations: 0 / 415.6 MB, free: 2.574 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.82e-05/4.07e-05, allocations: 6.219 kB / 415.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.003995/0.004036, allocations: 1.029 MB / 416.6 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003195/0.007231, allocations: 1.276 MB / 417.9 MB, free: 252 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.007355, allocations: 3.938 kB / 417.9 MB, free: 248 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005001/0.007855, allocations: 59.58 kB / 417.9 MB, free: 188 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003927/0.008248, allocations: 63.67 kB / 418 MB, free: 124 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007548/0.009003, allocations: 163.6 kB / 418.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005283/0.009531, allocations: 207.5 kB / 418.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.009733, allocations: 29.78 kB / 418.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002519/0.009985, allocations: 91.77 kB / 418.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004309/0.01042, allocations: 131.7 kB / 418.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.643e-05/0.0105, allocations: 20 kB / 418.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.563e-05/0.01057, allocations: 20 kB / 418.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002133/0.01078, allocations: 99.64 kB / 418.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.01094, allocations: 59.81 kB / 418.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004629/0.0114, allocations: 231.2 kB / 419 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.01141, allocations: 0 / 419 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.01141, allocations: 0 / 419 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.01142, allocations: 4 kB / 419 MB, free: 15.09 MB / 350.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.003138/0.01456, allocations: 0.5984 MB / 419.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.01461, allocations: 8.922 kB / 419.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.01472, allocations: 28.75 kB / 419.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001624/0.01635, allocations: 292.8 kB / 420 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.01638, allocations: 8.375 kB / 420 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.207e-05/0.01644, allocations: 20.27 kB / 420 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00061/0.01705, allocations: 183.6 kB / 420.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.01707, allocations: 192 / 420.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.01711, allocations: 4.375 kB / 420.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.01712, allocations: 7.938 kB / 420.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006447/0.01777, allocations: 155.9 kB / 420.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.01962, allocations: 0.5312 MB / 420.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007051/0.02032, allocations: 210.5 kB / 421.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.02068, allocations: 104.8 kB / 421.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.02071, allocations: 3.938 kB / 421.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.75e-05/0.02076, allocations: 42.56 kB / 421.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.104e-06/0.02076, allocations: 0 / 421.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.003468/0.02423, allocations: 0.5675 MB / 421.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.797e-05/0.02429, allocations: 55.41 kB / 421.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.02583, allocations: 341.8 kB / 422.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.301e-05/0.02588, allocations: 33.7 kB / 422.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.02605, allocations: 132.6 kB / 422.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.02621, allocations: 79.27 kB / 422.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.02635, allocations: 41.7 kB / 422.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000273/0.02662, allocations: 338.8 kB / 422.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.02697, allocations: 91.94 kB / 422.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.02729, allocations: 79.95 kB / 422.9 MB, free: 11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003836/0.03112, allocations: 0.6217 MB / 423.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.03113, allocations: 0 / 423.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00132/0.03245, allocations: 397.9 kB / 424 MB, free: 9.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.03247, allocations: 4 kB / 424 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.03248, allocations: 4 kB / 424 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005466/0.03303, allocations: 100.8 kB / 424.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.0333, allocations: 31.98 kB / 424.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003092/0.03639, allocations: 1.711 MB / 425.8 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/0.03689, allocations: 63.86 kB / 425.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.03691, allocations: 8 kB / 425.9 MB, free: 7.957 MB / 350.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.0003182/0.03723, allocations: 159 kB / 426 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.511e-05/0.03732, allocations: 27.8 kB / 426.1 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.03744, allocations: 42.11 kB / 426.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.03744, allocations: 0 / 426.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.03745, allocations: 3.938 kB / 426.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.03745, allocations: 4 kB / 426.1 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004909/0.03794, allocations: 229.2 kB / 426.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.03795, allocations: 192 / 426.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002747/0.03822, allocations: 27.98 kB / 426.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004066/0.03863, allocations: 96.7 kB / 426.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.983e-05/0.03867, allocations: 11.94 kB / 426.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002574/0.04124, allocations: 1.703 MB / 428.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.04124, allocations: 3.938 kB / 428.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001521/0.04276, allocations: 0.5533 MB / 428.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.159e-05/0.04286, allocations: 39.8 kB / 428.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.975e-05/0.04291, allocations: 11.94 kB / 428.8 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005981/0.04351, allocations: 47.92 kB / 428.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.696e-05/0.0436, allocations: 11.97 kB / 428.8 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.04362, allocations: 4.312 kB / 428.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008095/0.04443, allocations: 277.1 kB / 429.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.04443, allocations: 0 / 429.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003521/0.04478, allocations: 52 kB / 429.2 MB, free: 4.504 MB / 350.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.0001768/0.04496, allocations: 107.2 kB / 429.3 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000963/0.04592, allocations: 366.4 kB / 429.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.04593, allocations: 0 / 429.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004471/0.04637, allocations: 250.5 kB / 429.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.04678, allocations: 46.75 kB / 429.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.04788, allocations: 0.5372 MB / 430.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.04809, allocations: 161.2 kB / 430.6 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001373/0.04822, allocations: 53.91 kB / 430.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.756e-05/0.04829, allocations: 20.5 kB / 430.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.04829, allocations: 0 / 430.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of Templates: time 0.008367/0.05666, allocations: 3.246 MB / 433.9 MB, free: 15.69 MB / 366.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: 4.767771877348423] Failed to read output from testmodel.py, exit status != 0: 0.07015576958656311 0.082194547 0.067524602 Calling exit ...