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.0007446/0.0007446, allocations: 84.44 kB / 20.71 MB, free: 3.855 MB / 18.57 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.0007442/0.0007442, allocations: 169.2 kB / 23.98 MB, free: 0.582 MB / 18.57 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 0.8614/0.8614, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.06118/0.06118, allocations: 18.12 MB / 278.8 MB, free: 11.54 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 416.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.597e-05/2.762e-05, allocations: 2.281 kB / 416.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001613/0.00164, allocations: 1.076 MB / 417.4 MB, free: 11.83 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.002907, allocations: 1.327 MB / 418.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.823e-05/0.003006, allocations: 6.094 kB / 418.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.00334, allocations: 73.02 kB / 418.8 MB, free: 10.84 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.003523, allocations: 93.22 kB / 418.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000364/0.003887, allocations: 216.5 kB / 419.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.004177, allocations: 255.1 kB / 419.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.004313, allocations: 42.47 kB / 419.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.004474, allocations: 113.7 kB / 419.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002486/0.004723, allocations: 170.2 kB / 419.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.624e-05/0.004779, allocations: 22.88 kB / 419.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.267e-05/0.004812, allocations: 22.78 kB / 419.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.004937, allocations: 114.8 kB / 419.8 MB, free: 10.45 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.65e-05/0.005014, allocations: 75.67 kB / 419.9 MB, free: 10.41 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.005312, allocations: 276 kB / 420.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.005315, allocations: 0 / 420.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.005317, allocations: 3.938 kB / 420.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.005324, allocations: 0 / 420.2 MB, free: 10.3 MB / 330.7 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.001189/0.006512, allocations: 0.6889 MB / 420.9 MB, free: 9.883 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.006552, allocations: 10.45 kB / 420.9 MB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.209e-05/0.006614, allocations: 31.84 kB / 420.9 MB, free: 9.867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006069/0.007221, allocations: 355.2 kB / 421.2 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.007242, allocations: 11 kB / 421.3 MB, free: 9.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.007278, allocations: 18.12 kB / 421.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.007571, allocations: 185.8 kB / 421.5 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.007588, allocations: 2.125 kB / 421.5 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.007604, allocations: 9.656 kB / 421.5 MB, free: 9.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.007612, allocations: 10.59 kB / 421.5 MB, free: 9.562 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003039/0.007916, allocations: 191.4 kB / 421.7 MB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007744/0.008691, allocations: 0.5921 MB / 422.3 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.009172, allocations: 258.7 kB / 422.5 MB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.009344, allocations: 129.6 kB / 422.6 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.009365, allocations: 2.219 kB / 422.6 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/0.009384, allocations: 33.58 kB / 422.7 MB, free: 9.004 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.974e-06/0.009386, allocations: 0 / 422.7 MB, free: 9.004 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.001208/0.01059, allocations: 0.6183 MB / 423.3 MB, free: 8.816 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.01062, allocations: 57.81 kB / 423.3 MB, free: 8.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005795/0.0112, allocations: 417.3 kB / 423.8 MB, free: 8.578 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.01122, allocations: 30.73 kB / 423.8 MB, free: 8.543 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.203e-05/0.01128, allocations: 149.1 kB / 423.9 MB, free: 8.414 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.887e-05/0.01134, allocations: 87.53 kB / 424 MB, free: 8.344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-05/0.0114, allocations: 51.55 kB / 424.1 MB, free: 8.309 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.969e-05/0.01145, allocations: 341.3 kB / 424.4 MB, free: 7.984 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.01159, allocations: 103.6 kB / 424.5 MB, free: 7.953 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.01171, allocations: 109.3 kB / 424.6 MB, free: 7.918 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.01304, allocations: 0.7113 MB / 425.3 MB, free: 7.734 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.01305, allocations: 0 / 425.3 MB, free: 7.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006123/0.01366, allocations: 443.7 kB / 425.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.01368, allocations: 6.031 kB / 425.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.01368, allocations: 0 / 425.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002425/0.01393, allocations: 95.05 kB / 425.8 MB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.01404, allocations: 40.06 kB / 425.9 MB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.01521, allocations: 1.708 MB / 427.6 MB, free: 6.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/0.01542, allocations: 76.81 kB / 427.7 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.01543, allocations: 5.922 kB / 427.7 MB, free: 6.102 MB / 330.7 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.0001642/0.0156, allocations: 176.9 kB / 427.9 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.666e-05/0.01564, allocations: 36.75 kB / 427.9 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.375e-05/0.01568, allocations: 43.92 kB / 427.9 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.01568, allocations: 2.625 kB / 427.9 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.01569, allocations: 1.062 kB / 427.9 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.01569, allocations: 1.406 kB / 427.9 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.01594, allocations: 257.4 kB / 428.2 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.01594, allocations: 0.75 kB / 428.2 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.01606, allocations: 36.23 kB / 428.2 MB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001716/0.01623, allocations: 98.2 kB / 428.3 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.01625, allocations: 8.656 kB / 428.3 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009489/0.0172, allocations: 1.7 MB / 430 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.0172, allocations: 0.7969 kB / 430 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006685/0.01787, allocations: 0.6186 MB / 430.6 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.636e-05/0.01792, allocations: 44.64 kB / 430.7 MB, free: 3.934 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.01794, allocations: 12.38 kB / 430.7 MB, free: 3.926 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.01815, allocations: 52.64 kB / 430.8 MB, free: 3.926 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.454e-05/0.01821, allocations: 19.31 kB / 430.8 MB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.01823, allocations: 12.58 kB / 430.8 MB, free: 3.914 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004632/0.01869, allocations: 321.6 kB / 431.1 MB, free: 3.793 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01869, allocations: 1.312 kB / 431.1 MB, free: 3.793 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002633/0.01895, allocations: 72.81 kB / 431.2 MB, free: 3.773 MB / 330.7 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.0001123/0.01907, allocations: 107.6 kB / 431.3 MB, free: 3.672 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005449/0.01961, allocations: 399 kB / 431.7 MB, free: 3.477 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.01961, allocations: 0 / 431.7 MB, free: 3.477 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002489/0.01986, allocations: 269.4 kB / 431.9 MB, free: 3.312 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.02015, allocations: 51.39 kB / 432 MB, free: 3.289 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009383/0.02109, allocations: 0.6997 MB / 432.7 MB, free: 2.914 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001524/0.02125, allocations: 187 kB / 432.9 MB, free: 2.828 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.264e-05/0.02131, allocations: 22.53 kB / 432.9 MB, free: 2.82 MB / 330.7 MB Notification: Performance of SimCode: time 8.81e-07/0.02131, allocations: 0 / 432.9 MB, free: 2.82 MB / 330.7 MB Notification: Performance of Templates: time 0.005548/0.02686, allocations: 4.672 MB / 437.6 MB, free: 0.7812 MB / 330.7 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: 4.894603339023888] Failed to read output from testmodel.py, exit status != 0: 0.03309977054595947 0.041841721000000005 0.034724811 Calling exit ...