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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002072/0.002072, allocations: 192.2 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 225.6 MB / 251 MB, free: 13.01 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.1459/0.1459, allocations: 22.7 MB / 329 MB, free: 2.359 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002647/0.002647, allocations: 67.89 kB / 463.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1436, allocations: 58.06 MB / 0.5089 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.00286/0.1465, allocations: 1.079 MB / 0.51 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.1486, allocations: 1.26 MB / 0.5112 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.1488, allocations: 7.938 kB / 0.5112 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004279/0.1492, allocations: 63.62 kB / 0.5113 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002615/0.1494, allocations: 63.67 kB / 0.5114 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.1498, allocations: 123.8 kB / 0.5115 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006653/0.1505, allocations: 363.4 kB / 0.5118 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.1506, allocations: 33.78 kB / 0.5118 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002832/0.1509, allocations: 143.5 kB / 0.512 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003335/0.1512, allocations: 175.4 kB / 0.5122 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.917e-05/0.1513, allocations: 16 kB / 0.5122 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.286e-05/0.1514, allocations: 20 kB / 0.5122 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.1516, allocations: 95.7 kB / 0.5123 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001498/0.1517, allocations: 95.39 kB / 0.5124 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003764/0.1521, allocations: 227 kB / 0.5126 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1521, allocations: 0 / 0.5126 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1521, allocations: 0 / 0.5126 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.1521, allocations: 0 / 0.5126 GB, free: 0.6719 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.002706/0.1548, allocations: 0.5984 MB / 0.5132 GB, free: 44 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.66e-05/0.1549, allocations: 8.031 kB / 0.5132 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.1551, allocations: 24.8 kB / 0.5132 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3298/0.4849, allocations: 310.2 kB / 0.5135 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.4849, allocations: 8.188 kB / 0.5135 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.24e-05/0.485, allocations: 14.62 kB / 0.5135 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004153/0.4854, allocations: 168.3 kB / 0.5137 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.4854, allocations: 4.844 kB / 0.5137 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.4855, allocations: 4.875 kB / 0.5137 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.4855, allocations: 3.438 kB / 0.5137 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004339/0.4859, allocations: 178.7 kB / 0.5139 GB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.4872, allocations: 0.5902 MB / 0.5144 GB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004201/0.4877, allocations: 209.8 kB / 0.5146 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.4879, allocations: 110 kB / 0.5147 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.4879, allocations: 2.812 kB / 0.5147 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.4879, allocations: 32.5 kB / 0.5148 GB, free: 14.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 2.164e-06/0.4879, allocations: 0.9062 kB / 0.5148 GB, free: 14.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001981/0.4899, allocations: 0.5722 MB / 0.5153 GB, free: 14.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.764e-05/0.4899, allocations: 57.06 kB / 0.5154 GB, free: 14.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007921/0.4907, allocations: 341.5 kB / 0.5157 GB, free: 14.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.4907, allocations: 26.64 kB / 0.5157 GB, free: 14.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.763e-05/0.4908, allocations: 141 kB / 0.5159 GB, free: 14.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.258e-05/0.4909, allocations: 81.52 kB / 0.516 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.07e-05/0.491, allocations: 41.14 kB / 0.516 GB, free: 14.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.259e-05/0.4911, allocations: 336 kB / 0.5163 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.4912, allocations: 87.89 kB / 0.5164 GB, free: 14.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.4914, allocations: 92.28 kB / 0.5165 GB, free: 14.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/0.4934, allocations: 0.6147 MB / 0.5171 GB, free: 14.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.4934, allocations: 1.125 kB / 0.5171 GB, free: 14.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008516/0.4943, allocations: 404.3 kB / 0.5175 GB, free: 14.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.4943, allocations: 5.312 kB / 0.5175 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.4943, allocations: 4.547 kB / 0.5175 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003786/0.4947, allocations: 97.45 kB / 0.5176 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.4949, allocations: 35.41 kB / 0.5176 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/0.4966, allocations: 1.744 MB / 0.5193 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003855/0.497, allocations: 53.42 kB / 0.5194 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.497, allocations: 8.844 kB / 0.5194 GB, free: 12.87 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.0002266/0.4972, allocations: 169.9 kB / 0.5195 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-05/0.4973, allocations: 27.06 kB / 0.5196 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.4974, allocations: 37.86 kB / 0.5196 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.4974, allocations: 1.344 kB / 0.5196 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.4974, allocations: 1.906 kB / 0.5196 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.4974, allocations: 6.438 kB / 0.5196 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003725/0.4978, allocations: 299 kB / 0.5199 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4978, allocations: 2.766 kB / 0.5199 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.498, allocations: 27.64 kB / 0.5199 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003/0.4983, allocations: 91.7 kB / 0.52 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.4983, allocations: 11.22 kB / 0.52 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.4999, allocations: 1.736 MB / 0.5217 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4999, allocations: 4 kB / 0.5217 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.5009, allocations: 0.5555 MB / 0.5223 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.058e-05/0.501, allocations: 29.08 kB / 0.5223 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.501, allocations: 8.703 kB / 0.5223 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.5015, allocations: 49.34 kB / 0.5223 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.482e-05/0.5015, allocations: 18.83 kB / 0.5224 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.5016, allocations: 3.812 kB / 0.5224 GB, free: 10.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007262/0.5023, allocations: 268.9 kB / 0.5226 GB, free: 10.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5023, allocations: 0 / 0.5226 GB, free: 10.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003843/0.5027, allocations: 62.91 kB / 0.5227 GB, free: 10.62 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.000147/0.5028, allocations: 100.2 kB / 0.5228 GB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009641/0.5038, allocations: 375.2 kB / 0.5231 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.5038, allocations: 1.094 kB / 0.5231 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004058/0.5042, allocations: 251.2 kB / 0.5234 GB, free: 10.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004144/0.5046, allocations: 46.16 kB / 0.5234 GB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.5057, allocations: 0.5567 MB / 0.524 GB, free: 9.863 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.506, allocations: 0.7734 MB / 0.5247 GB, free: 9.156 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001579/0.5061, allocations: 53.94 kB / 0.5248 GB, free: 9.152 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.5062, allocations: 17.62 kB / 0.5248 GB, free: 9.145 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5062, allocations: 0 / 0.5248 GB, free: 9.145 MB / 382.1 MB Notification: Performance of Templates: time 0.008817/0.515, allocations: 3.223 MB / 0.5279 GB, free: 8.965 MB / 382.1 MB " [Timeout remaining time 659] 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.461685894988477] Failed to read output from testmodel.py, exit status != 0: 0.5251457449048758 0.539295498 0.384058913 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fef556817b0>