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.0007643/0.0007643, allocations: 75.7 kB / 20.8 MB, free: 3.711 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.0007949/0.0007949, allocations: 166.3 kB / 24.09 MB, free: 424 kB / 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.9229/0.9229, allocations: 177.1 MB / 204.4 MB, free: 5.699 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.06348/0.06348, allocations: 18.12 MB / 279 MB, free: 11.48 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_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.575e-06/2.575e-06, allocations: 0 / 416.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.189e-05/3.447e-05, allocations: 2.281 kB / 416.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002483/0.002517, allocations: 1.025 MB / 417.6 MB, free: 11.69 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.004335, allocations: 1.276 MB / 418.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.004463, allocations: 2.312 kB / 418.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003969/0.00486, allocations: 55.61 kB / 418.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.005083, allocations: 62.05 kB / 419 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004583/0.005541, allocations: 170.7 kB / 419.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000351/0.005892, allocations: 202.2 kB / 419.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.006032, allocations: 30.56 kB / 419.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001698/0.006202, allocations: 92.28 kB / 419.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002601/0.006462, allocations: 138.5 kB / 419.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.276e-05/0.006525, allocations: 21.86 kB / 419.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.608e-05/0.006571, allocations: 18.41 kB / 419.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.006703, allocations: 86.7 kB / 419.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.676e-05/0.0068, allocations: 62.92 kB / 419.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003155/0.007116, allocations: 229 kB / 420 MB, free: 10.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.00712, allocations: 5.656 kB / 420 MB, free: 10.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.00712, allocations: 0 / 420 MB, free: 10.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.007128, allocations: 0 / 420 MB, free: 10.32 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001482/0.00861, allocations: 0.5992 MB / 420.6 MB, free: 9.938 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.00865, allocations: 11.27 kB / 420.6 MB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.139e-05/0.008722, allocations: 28.41 kB / 420.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007419/0.009464, allocations: 304.2 kB / 420.9 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.009487, allocations: 10.55 kB / 420.9 MB, free: 9.727 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.596e-05/0.009543, allocations: 16.61 kB / 421 MB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.009897, allocations: 170.5 kB / 421.1 MB, free: 9.645 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.009917, allocations: 4.844 kB / 421.1 MB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.009938, allocations: 5.656 kB / 421.1 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.009948, allocations: 8.438 kB / 421.2 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003765/0.01032, allocations: 164.7 kB / 421.3 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.01143, allocations: 0.5267 MB / 421.8 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004017/0.01183, allocations: 206 kB / 422 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002093/0.01204, allocations: 113.9 kB / 422.2 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.01207, allocations: 2.406 kB / 422.2 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.01209, allocations: 38.27 kB / 422.2 MB, free: 9.113 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.944e-06/0.01209, allocations: 0 / 422.2 MB, free: 9.113 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.001781/0.01387, allocations: 0.5654 MB / 422.8 MB, free: 8.945 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.0139, allocations: 53.72 kB / 422.8 MB, free: 8.883 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006871/0.01458, allocations: 346.6 kB / 423.1 MB, free: 8.727 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.0146, allocations: 27.23 kB / 423.2 MB, free: 8.695 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.243e-05/0.01468, allocations: 136.7 kB / 423.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.588e-05/0.01475, allocations: 86.52 kB / 423.4 MB, free: 8.504 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.974e-05/0.01483, allocations: 40.2 kB / 423.4 MB, free: 8.477 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.772e-05/0.01489, allocations: 334.5 kB / 423.8 MB, free: 8.156 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.01508, allocations: 89.66 kB / 423.8 MB, free: 8.129 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.01525, allocations: 94.03 kB / 423.9 MB, free: 8.098 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00184/0.01709, allocations: 0.6164 MB / 424.6 MB, free: 7.941 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.01709, allocations: 0 / 424.6 MB, free: 7.941 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007956/0.01789, allocations: 402.3 kB / 424.9 MB, free: 7.785 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.01791, allocations: 7.531 kB / 425 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.01792, allocations: 2.484 kB / 425 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003472/0.01826, allocations: 91.78 kB / 425 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.01843, allocations: 31.12 kB / 425.1 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.02015, allocations: 1.713 MB / 426.8 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003169/0.02046, allocations: 54.62 kB / 426.8 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.536e-05/0.02049, allocations: 7.578 kB / 426.8 MB, free: 6.328 MB / 330.7 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.0001831/0.02067, allocations: 161.5 kB / 427 MB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.729e-05/0.02073, allocations: 26.75 kB / 427 MB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.093e-05/0.02079, allocations: 35.14 kB / 427.1 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.02079, allocations: 3.375 kB / 427.1 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.0208, allocations: 1.25 kB / 427.1 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.0208, allocations: 0.7969 kB / 427.1 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003118/0.02112, allocations: 240.8 kB / 427.3 MB, free: 5.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.02112, allocations: 3.984 kB / 427.3 MB, free: 5.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.02131, allocations: 27.98 kB / 427.3 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002854/0.0216, allocations: 91.06 kB / 427.4 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.02162, allocations: 16.17 kB / 427.4 MB, free: 5.922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001499/0.02312, allocations: 1.703 MB / 429.1 MB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.02312, allocations: 3.938 kB / 429.2 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000958/0.02408, allocations: 0.551 MB / 429.7 MB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.304e-05/0.02413, allocations: 36.42 kB / 429.7 MB, free: 4.207 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.02417, allocations: 12.98 kB / 429.8 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003133/0.02448, allocations: 45.2 kB / 429.8 MB, free: 4.195 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.247e-05/0.02457, allocations: 17.7 kB / 429.8 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.02458, allocations: 4.266 kB / 429.8 MB, free: 4.191 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005706/0.02515, allocations: 275.6 kB / 430.1 MB, free: 4.078 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.02515, allocations: 0 / 430.1 MB, free: 4.078 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003826/0.02554, allocations: 51.06 kB / 430.1 MB, free: 4.074 MB / 330.7 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 9.615e-05/0.02563, allocations: 105.2 kB / 430.2 MB, free: 3.977 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006979/0.02633, allocations: 359.7 kB / 430.6 MB, free: 3.793 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.02633, allocations: 1.125 kB / 430.6 MB, free: 3.793 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002255/0.02656, allocations: 261.5 kB / 430.8 MB, free: 3.625 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.02683, allocations: 40.69 kB / 430.9 MB, free: 3.605 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006678/0.02749, allocations: 0.5327 MB / 431.4 MB, free: 3.312 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001235/0.02762, allocations: 160.6 kB / 431.6 MB, free: 3.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.38e-05/0.02771, allocations: 57.06 kB / 431.6 MB, free: 3.223 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.37e-05/0.02775, allocations: 18.84 kB / 431.6 MB, free: 3.215 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02775, allocations: 0 / 431.6 MB, free: 3.215 MB / 330.7 MB Notification: Performance of Templates: time 0.005319/0.03307, allocations: 3.255 MB / 434.9 MB, free: 2.23 MB / 330.7 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 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.0100287115201354] Failed to read output from testmodel.py, exit status != 0: 0.03940758854150772 0.04804371 0.038973900000000006 Calling exit ...