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.001788/0.001788, allocations: 79.73 kB / 19.96 MB, free: 1.75 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.002233/0.002233, allocations: 163.9 kB / 23.23 MB, free: 4.887 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.516/1.516, allocations: 177.1 MB / 203.5 MB, free: 9.164 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.1017/0.1017, allocations: 18.13 MB / 278.1 MB, free: 15.05 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: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 415.6 MB, free: 2.574 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.575e-05/3.769e-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_2dof): time 0.003052/0.003089, allocations: 1.083 MB / 416.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002409/0.005498, allocations: 1.319 MB / 418 MB, free: 152 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.005684, allocations: 4 kB / 418 MB, free: 148 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004178/0.006102, allocations: 71.48 kB / 418 MB, free: 76 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003403/0.006442, allocations: 87.52 kB / 418.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.00701, allocations: 219.5 kB / 418.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000414/0.007424, allocations: 267.3 kB / 418.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.007574, allocations: 40.5 kB / 418.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002281/0.007802, allocations: 115.7 kB / 418.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000346/0.008148, allocations: 167.6 kB / 418.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.961e-05/0.008227, allocations: 20 kB / 418.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.8e-05/0.008285, allocations: 24 kB / 419 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.0085, allocations: 115.6 kB / 419.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.00863, allocations: 71.75 kB / 419.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.009046, allocations: 271.1 kB / 419.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.009049, allocations: 7.938 kB / 419.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.009051, allocations: 0 / 419.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.009061, allocations: 0 / 419.4 MB, free: 14.69 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.00218/0.01124, allocations: 0.6881 MB / 420.1 MB, free: 13.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.01128, allocations: 8.922 kB / 420.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.71e-05/0.01138, allocations: 32.75 kB / 420.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.01251, allocations: 349.6 kB / 420.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.01254, allocations: 12.66 kB / 420.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.01259, allocations: 16.38 kB / 420.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/0.01299, allocations: 192.3 kB / 420.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.01301, allocations: 4.125 kB / 420.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.01303, allocations: 8.312 kB / 420.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.01305, allocations: 7.938 kB / 420.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/0.01347, allocations: 196.7 kB / 420.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.01477, allocations: 0.5977 MB / 421.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000602/0.01537, allocations: 250.4 kB / 421.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.0156, allocations: 129.2 kB / 421.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.01563, allocations: 7.859 kB / 421.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.01566, allocations: 30.56 kB / 421.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.01566, allocations: 0 / 421.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00205/0.01771, allocations: 0.6163 MB / 422.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.01778, allocations: 59.41 kB / 422.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.01882, allocations: 412 kB / 423 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.01886, allocations: 33.7 kB / 423 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.01897, allocations: 148.5 kB / 423.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.932e-05/0.01907, allocations: 91.2 kB / 423.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.223e-05/0.01916, allocations: 49.7 kB / 423.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.01933, allocations: 338.8 kB / 423.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.01954, allocations: 103.9 kB / 423.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.01973, allocations: 103.3 kB / 423.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002435/0.02217, allocations: 0.7164 MB / 424.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.02217, allocations: 4 kB / 424.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009441/0.02312, allocations: 442 kB / 425 MB, free: 8.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.02313, allocations: 6.5 kB / 425 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.02314, allocations: 0 / 425 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003453/0.02348, allocations: 96.7 kB / 425.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.02368, allocations: 43.97 kB / 425.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/0.02571, allocations: 1.707 MB / 426.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004624/0.02617, allocations: 67.8 kB / 426.9 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.0262, allocations: 8.062 kB / 426.9 MB, free: 6.902 MB / 350.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.0002394/0.02644, allocations: 167.7 kB / 427.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.2e-05/0.02652, allocations: 35.75 kB / 427.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.02662, allocations: 50.34 kB / 427.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.02662, allocations: 0 / 427.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.02663, allocations: 7.938 kB / 427.2 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.02664, allocations: 3.984 kB / 427.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003764/0.02701, allocations: 257.1 kB / 427.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.02702, allocations: 0 / 427.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002232/0.02724, allocations: 27.98 kB / 427.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003082/0.02755, allocations: 104.8 kB / 427.6 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.02758, allocations: 12 kB / 427.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001909/0.02948, allocations: 1.691 MB / 429.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.02949, allocations: 3.938 kB / 429.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.03059, allocations: 0.613 MB / 429.9 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.111e-05/0.03066, allocations: 43.67 kB / 429.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.072e-05/0.0307, allocations: 8 kB / 429.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004744/0.03118, allocations: 55.91 kB / 430 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.336e-05/0.03125, allocations: 15.97 kB / 430 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.03127, allocations: 8 kB / 430 MB, free: 3.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000919/0.03219, allocations: 326.9 kB / 430.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.03219, allocations: 0 / 430.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003665/0.03256, allocations: 64 kB / 430.4 MB, free: 3.258 MB / 350.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.000149/0.0327, allocations: 111.2 kB / 430.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00086/0.03356, allocations: 405.1 kB / 430.9 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.03357, allocations: 0 / 430.9 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004599/0.03403, allocations: 266.4 kB / 431.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/0.03448, allocations: 53.08 kB / 431.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.03606, allocations: 0.6628 MB / 431.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.03628, allocations: 189.8 kB / 432.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001607/0.03644, allocations: 58.23 kB / 432.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.22e-05/0.03653, allocations: 24.5 kB / 432.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.03653, allocations: 0 / 432.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of Templates: time 0.00964/0.04617, allocations: 3.725 MB / 435.9 MB, free: 13.74 MB / 366.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: 4.797738537192345] Failed to read output from testmodel.py, exit status != 0: 0.05654798448085785 0.245269689 0.061024049000000004 Calling exit ...