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.0007059/0.0007059, allocations: 72.19 kB / 9.903 MB, free: 0.7812 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008871/0.001593, allocations: 435.8 kB / 10.33 MB, free: 364 kB / 10.45 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.0007093/0.0007093, allocations: 161.1 kB / 11.23 MB, free: 2.938 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008969/0.001606, allocations: 463.6 kB / 11.68 MB, free: 2.48 MB / 13.93 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.9904/0.9904, allocations: 177.1 MB / 189.6 MB, free: 5.328 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09006/1.08, allocations: 53.65 MB / 243.2 MB, free: 15.6 MB / 250.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.06448/0.06448, allocations: 18.13 MB / 262.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01091/0.07539, allocations: 6.781 MB / 268.9 MB, free: 6.359 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.072e-06/1.072e-06, allocations: 0 / 270.3 MB, free: 4.918 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.1e-05/1.207e-05, allocations: 6.312 kB / 270.3 MB, free: 4.91 MB / 266.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001407/0.001419, allocations: 1.147 MB / 271.5 MB, free: 3.758 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.002598, allocations: 1.373 MB / 272.8 MB, free: 2.367 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.808e-05/0.002666, allocations: 0 / 272.8 MB, free: 2.367 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.002865, allocations: 67.56 kB / 272.9 MB, free: 2.301 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.002999, allocations: 87.53 kB / 273 MB, free: 2.215 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002799/0.003279, allocations: 211.4 kB / 273.2 MB, free: 2.008 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002058/0.003485, allocations: 255.4 kB / 273.4 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.476e-05/0.00358, allocations: 42.47 kB / 273.5 MB, free: 1.715 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001774/0.003757, allocations: 192.2 kB / 273.7 MB, free: 1.527 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.003933, allocations: 167.6 kB / 273.8 MB, free: 1.363 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.856e-05/0.003971, allocations: 24 kB / 273.8 MB, free: 1.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.488e-05/0.003996, allocations: 24 kB / 273.9 MB, free: 1.316 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.431e-05/0.00408, allocations: 91.75 kB / 274 MB, free: 1.227 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.475e-05/0.004135, allocations: 47.81 kB / 274 MB, free: 1.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.004302, allocations: 183.3 kB / 274.2 MB, free: 1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.229e-05/0.004314, allocations: 0 / 274.2 MB, free: 1 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.004315, allocations: 0 / 274.2 MB, free: 1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.004326, allocations: 7.938 kB / 274.2 MB, free: 0.9922 MB / 266.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.0007149/0.005041, allocations: 0.55 MB / 274.7 MB, free: 424 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.816e-05/0.005069, allocations: 16.03 kB / 274.8 MB, free: 408 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.203e-05/0.005121, allocations: 28.91 kB / 274.8 MB, free: 380 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.00541, allocations: 242.5 kB / 275 MB, free: 104 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.00543, allocations: 24.58 kB / 275.1 MB, free: 80 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.6e-05/0.005456, allocations: 20.36 kB / 275.1 MB, free: 60 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1105/0.116, allocations: 107.4 kB / 275.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.116, allocations: 192 / 275.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.116, allocations: 9.5 kB / 275.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.116, allocations: 4.672 kB / 275.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00014/0.1162, allocations: 59.16 kB / 275.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005731/0.1167, allocations: 379.9 kB / 275.6 MB, free: 3.434 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.117, allocations: 177.3 kB / 275.8 MB, free: 3.355 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.768e-05/0.117, allocations: 54.56 kB / 275.8 MB, free: 3.348 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.1171, allocations: 4.312 kB / 275.8 MB, free: 3.348 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.662e-05/0.1171, allocations: 31.69 kB / 275.9 MB, free: 3.309 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.1171, allocations: 1.062 kB / 275.9 MB, free: 3.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007396/0.1178, allocations: 316.7 kB / 276.2 MB, free: 3.258 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.002e-05/0.1178, allocations: 54.81 kB / 276.2 MB, free: 3.195 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.118, allocations: 250.3 kB / 276.5 MB, free: 3.082 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.118, allocations: 32.05 kB / 276.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.892e-05/0.118, allocations: 121.1 kB / 276.6 MB, free: 2.969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.91e-05/0.1181, allocations: 87.84 kB / 276.7 MB, free: 2.938 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.401e-05/0.1182, allocations: 44.27 kB / 276.8 MB, free: 2.922 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.562e-05/0.1182, allocations: 347.2 kB / 277.1 MB, free: 2.605 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.24e-05/0.1182, allocations: 26.16 kB / 277.1 MB, free: 2.602 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.902e-05/0.1183, allocations: 19.67 kB / 277.2 MB, free: 2.602 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.1184, allocations: 132.8 kB / 277.3 MB, free: 2.582 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1184, allocations: 1.219 kB / 277.3 MB, free: 2.582 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002691/0.1187, allocations: 174.3 kB / 277.5 MB, free: 2.535 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.1187, allocations: 10.44 kB / 277.5 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.1187, allocations: 1.125 kB / 277.5 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001776/0.1189, allocations: 52.75 kB / 277.5 MB, free: 2.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.119, allocations: 43.5 kB / 277.6 MB, free: 2.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007001/0.1197, allocations: 1.347 MB / 278.9 MB, free: 1.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.431e-05/0.1198, allocations: 25.67 kB / 278.9 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.1198, allocations: 3.625 kB / 278.9 MB, free: 1.355 MB / 266.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.0001308/0.12, allocations: 152.5 kB / 279.1 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.936e-05/0.12, allocations: 23.06 kB / 279.1 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.046e-05/0.12, allocations: 41.52 kB / 279.1 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.12, allocations: 6.672 kB / 279.2 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.12, allocations: 2.062 kB / 279.2 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.12, allocations: 2.297 kB / 279.2 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.1202, allocations: 158.5 kB / 279.3 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1202, allocations: 0 / 279.3 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.1203, allocations: 33.69 kB / 279.3 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.834e-05/0.1203, allocations: 41.11 kB / 279.4 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001334/0.1205, allocations: 52.53 kB / 279.4 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.1205, allocations: 10.8 kB / 279.4 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006397/0.1211, allocations: 1.343 MB / 280.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1211, allocations: 4.062 kB / 280.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003617/0.1215, allocations: 374.1 kB / 281.2 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.1215, allocations: 12.5 kB / 281.2 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.1216, allocations: 16.23 kB / 281.2 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.382e-05/0.1217, allocations: 14.64 kB / 281.2 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/0.1217, allocations: 6.312 kB / 281.2 MB, free: 15.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.927e-05/0.1218, allocations: 96.86 kB / 281.3 MB, free: 15.74 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-08/0.1218, allocations: 0 / 281.3 MB, free: 15.74 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001936/0.122, allocations: 62.81 kB / 281.4 MB, free: 15.74 MB / 282.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 8.692e-05/0.122, allocations: 88.98 kB / 281.4 MB, free: 15.67 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002808/0.1223, allocations: 231.4 kB / 281.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/0.1223, allocations: 5.266 kB / 281.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001471/0.1225, allocations: 184.9 kB / 281.9 MB, free: 15.42 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.1227, allocations: 66.19 kB / 281.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007655/0.1235, allocations: 0.5647 MB / 282.5 MB, free: 15.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.961e-05/0.1236, allocations: 117 kB / 282.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.78e-05/0.1236, allocations: 26.39 kB / 282.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.1237, allocations: 78.56 kB / 282.7 MB, free: 15.02 MB / 282.7 MB Notification: Performance of SimCode: time 7.01e-07/0.1237, allocations: 6.781 kB / 282.7 MB, free: 15.02 MB / 282.7 MB Notification: Performance of Templates: time 0.006116/0.1299, allocations: 3.941 MB / 286.7 MB, free: 14.56 MB / 282.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=240 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6974053885787725]