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.001738/0.001738, allocations: 108.5 kB / 16.45 MB, free: 6.457 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.00166/0.00166, allocations: 198.8 kB / 19.41 MB, free: 3.645 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.643/1.643, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.1028/0.1028, allocations: 22.7 MB / 325.4 MB, free: 3.539 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.002053/0.002053, allocations: 67.88 kB / 457.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1225, allocations: 58.03 MB / 0.5036 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002633/0.1252, allocations: 1.057 MB / 0.5046 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.1271, allocations: 1.264 MB / 0.5059 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.1272, allocations: 4 kB / 0.5059 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004989/0.1277, allocations: 55.64 kB / 0.5059 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.128, allocations: 71.61 kB / 0.506 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.1283, allocations: 99.84 kB / 0.5061 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004604/0.1287, allocations: 295.5 kB / 0.5064 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.1289, allocations: 33.66 kB / 0.5064 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.1291, allocations: 131.5 kB / 0.5065 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003068/0.1294, allocations: 167.4 kB / 0.5067 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.102e-05/0.1295, allocations: 20 kB / 0.5067 GB, free: 3.926 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.07e-05/0.1295, allocations: 24 kB / 0.5067 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.1297, allocations: 91.72 kB / 0.5068 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.1298, allocations: 99.38 kB / 0.5069 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002964/0.1301, allocations: 223 kB / 0.5071 GB, free: 3.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1301, allocations: 0 / 0.5071 GB, free: 3.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1301, allocations: 4 kB / 0.5071 GB, free: 3.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1301, allocations: 0 / 0.5071 GB, free: 3.492 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.0018/0.1319, allocations: 0.6698 MB / 0.5078 GB, free: 2.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.132, allocations: 8.031 kB / 0.5078 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.621e-05/0.132, allocations: 32.69 kB / 0.5078 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000958/0.133, allocations: 370.8 kB / 0.5082 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.133, allocations: 12.38 kB / 0.5082 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/0.1331, allocations: 12.38 kB / 0.5082 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003524/0.1334, allocations: 171.1 kB / 0.5084 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.1334, allocations: 7.938 kB / 0.5084 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.1335, allocations: 8 kB / 0.5084 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.1335, allocations: 0 / 0.5084 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/0.1338, allocations: 171.8 kB / 0.5085 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.135, allocations: 0.6252 MB / 0.5091 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/0.1354, allocations: 202.5 kB / 0.5093 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.1356, allocations: 112.8 kB / 0.5095 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.1357, allocations: 0 / 0.5095 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.1357, allocations: 38.56 kB / 0.5095 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.333e-06/0.1357, allocations: 0 / 0.5095 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001976/0.1377, allocations: 0.6423 MB / 0.5101 GB, free: 248 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.1377, allocations: 55.34 kB / 0.5102 GB, free: 180 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2336/0.3713, allocations: 339.8 kB / 0.5105 GB, free: 16.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.702e-05/0.3713, allocations: 30.95 kB / 0.5105 GB, free: 16.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.718e-05/0.3714, allocations: 135.5 kB / 0.5107 GB, free: 16.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.851e-05/0.3715, allocations: 78.08 kB / 0.5107 GB, free: 16.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-05/0.3716, allocations: 41.27 kB / 0.5108 GB, free: 16.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.816e-05/0.3717, allocations: 339.2 kB / 0.5111 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.3718, allocations: 85.78 kB / 0.5112 GB, free: 15.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.372, allocations: 90.2 kB / 0.5113 GB, free: 15.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002053/0.3741, allocations: 0.617 MB / 0.5119 GB, free: 15.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3741, allocations: 0 / 0.5119 GB, free: 15.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0009051/0.375, allocations: 407.1 kB / 0.5122 GB, free: 15.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.375, allocations: 4.562 kB / 0.5123 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.375, allocations: 0.9375 kB / 0.5123 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/0.3753, allocations: 88.64 kB / 0.5123 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/0.3755, allocations: 37.89 kB / 0.5124 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001549/0.3771, allocations: 1.846 MB / 0.5142 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003543/0.3774, allocations: 62.11 kB / 0.5142 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.3774, allocations: 3.875 kB / 0.5142 GB, free: 14.28 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.0002026/0.3776, allocations: 161.8 kB / 0.5144 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.706e-05/0.3777, allocations: 29.11 kB / 0.5144 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.658e-05/0.3778, allocations: 44.42 kB / 0.5145 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3778, allocations: 2.875 kB / 0.5145 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.3778, allocations: 1.031 kB / 0.5145 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.3778, allocations: 0 / 0.5145 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.3781, allocations: 330.9 kB / 0.5148 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.3781, allocations: 2.906 kB / 0.5148 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.3783, allocations: 25.92 kB / 0.5148 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002794/0.3786, allocations: 99.42 kB / 0.5149 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.3786, allocations: 9.484 kB / 0.5149 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00132/0.3799, allocations: 1.84 MB / 0.5167 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3799, allocations: 0 / 0.5167 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008752/0.3808, allocations: 0.5534 MB / 0.5172 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-05/0.3808, allocations: 109.6 kB / 0.5174 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.569e-05/0.3809, allocations: 8.281 kB / 0.5174 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003781/0.3813, allocations: 49.86 kB / 0.5174 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.007e-05/0.3813, allocations: 14.31 kB / 0.5174 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.3813, allocations: 5.859 kB / 0.5174 GB, free: 12.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006755/0.382, allocations: 269.1 kB / 0.5177 GB, free: 12.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.382, allocations: 0 / 0.5177 GB, free: 12.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003843/0.3824, allocations: 62.58 kB / 0.5177 GB, free: 12.22 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.0001315/0.3825, allocations: 111 kB / 0.5179 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007256/0.3833, allocations: 359.9 kB / 0.5182 GB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3833, allocations: 0 / 0.5182 GB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.3836, allocations: 250.1 kB / 0.5184 GB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.384, allocations: 45.28 kB / 0.5185 GB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009326/0.3849, allocations: 0.5687 MB / 0.519 GB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.3851, allocations: 0.7742 MB / 0.5198 GB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.3853, allocations: 48.98 kB / 0.5198 GB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.107e-05/0.3853, allocations: 18.06 kB / 0.5199 GB, free: 10.8 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3853, allocations: 1.5 kB / 0.5199 GB, free: 10.8 MB / 382.1 MB Notification: Performance of Templates: time 0.008667/0.394, allocations: 3.113 MB / 0.5229 GB, free: 10.62 MB / 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.250854481942952] Failed to read output from testmodel.py, exit status != 0: 0.4027750021778047 0.41454258699999996 0.281598485 Calling exit ...