Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") translateModel(AES.Coursework.Tuning_brushup.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 104.2 kB / 15.98 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001184, allocations: 192.5 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.22/1.22, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08645/0.08645, allocations: 22.32 MB / 313.1 MB, free: 9.141 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 62.66 kB / 380.9 MB, free: 41.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07503/0.07623, allocations: 54.96 MB / 435.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002422/0.07869, allocations: 1.341 MB / 437.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.08028, allocations: 1.401 MB / 438.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.487e-05/0.08039, allocations: 4 kB / 438.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003128/0.08071, allocations: 79.59 kB / 438.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.08098, allocations: 111.6 kB / 438.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.08129, allocations: 183.7 kB / 439 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004519/0.08176, allocations: 0.5107 MB / 439.5 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.0819, allocations: 72.7 kB / 439.6 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.08212, allocations: 215.2 kB / 439.8 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002722/0.0824, allocations: 251.1 kB / 440 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.895e-05/0.08246, allocations: 28 kB / 440.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.224e-05/0.08251, allocations: 28 kB / 440.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.08265, allocations: 123.6 kB / 440.2 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.08278, allocations: 147 kB / 440.3 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002173/0.083, allocations: 247.5 kB / 440.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.08301, allocations: 0 / 440.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.08302, allocations: 0 / 440.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.08303, allocations: 0 / 440.6 MB, free: 8.781 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002136/0.08517, allocations: 0.8685 MB / 441.5 MB, free: 7.863 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.08521, allocations: 15.97 kB / 441.5 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.819e-05/0.08529, allocations: 36.47 kB / 441.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.08636, allocations: 494 kB / 442 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.08639, allocations: 12.7 kB / 442 MB, free: 7.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.007e-05/0.08644, allocations: 24.36 kB / 442 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.08678, allocations: 212.4 kB / 442.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.0868, allocations: 0 / 442.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.08683, allocations: 8 kB / 442.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.08684, allocations: 4 kB / 442.2 MB, free: 7.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003819/0.08722, allocations: 236 kB / 442.5 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.08839, allocations: 0.7577 MB / 443.2 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006077/0.08901, allocations: 322.4 kB / 443.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002001/0.08922, allocations: 132.7 kB / 443.7 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.08925, allocations: 12 kB / 443.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.08928, allocations: 42.48 kB / 443.7 MB, free: 5.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.313e-06/0.08929, allocations: 0 / 443.7 MB, free: 5.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001706/0.091, allocations: 0.7822 MB / 444.5 MB, free: 4.645 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.09104, allocations: 59.39 kB / 444.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.0921, allocations: 0.5053 MB / 445.1 MB, free: 4.062 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.09214, allocations: 29.7 kB / 445.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.09224, allocations: 176.5 kB / 445.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.428e-05/0.09232, allocations: 94.55 kB / 445.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.082e-05/0.09241, allocations: 49.7 kB / 445.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.09252, allocations: 354.8 kB / 445.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.09271, allocations: 108.2 kB / 445.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.09288, allocations: 112.4 kB / 446 MB, free: 3.129 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002081/0.09497, allocations: 0.7256 MB / 446.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.09498, allocations: 0 / 446.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008163/0.09581, allocations: 479.2 kB / 447.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.09583, allocations: 11.94 kB / 447.2 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.09584, allocations: 0 / 447.2 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003211/0.09617, allocations: 113.6 kB / 447.3 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.09635, allocations: 39.92 kB / 447.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.09868, allocations: 3.189 MB / 450.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004851/0.09917, allocations: 87.77 kB / 450.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.0992, allocations: 7.938 kB / 450.6 MB, free: 14.18 MB / 334.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002123/0.09942, allocations: 179.9 kB / 450.8 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.145e-05/0.09949, allocations: 39.47 kB / 450.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.84e-05/0.09959, allocations: 55.3 kB / 450.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.0996, allocations: 4 kB / 450.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.09961, allocations: 0 / 450.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.09962, allocations: 0 / 450.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003821/0.1, allocations: 401.2 kB / 451.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1, allocations: 0 / 451.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002108/0.1002, allocations: 31.92 kB / 451.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002923/0.1005, allocations: 113.6 kB / 451.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.1006, allocations: 8 kB / 451.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.1028, allocations: 3.204 MB / 454.6 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1028, allocations: 4 kB / 454.6 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.1039, allocations: 0.6692 MB / 455.3 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.247e-05/0.104, allocations: 116.8 kB / 455.4 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.81e-05/0.1041, allocations: 8 kB / 455.4 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005432/0.1046, allocations: 75.88 kB / 455.5 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.679e-05/0.1047, allocations: 23.97 kB / 455.5 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.1047, allocations: 4 kB / 455.5 MB, free: 8.875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009988/0.1057, allocations: 406.9 kB / 455.9 MB, free: 8.477 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1057, allocations: 3.938 kB / 455.9 MB, free: 8.473 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003547/0.1061, allocations: 75.91 kB / 456 MB, free: 8.398 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001151/0.1062, allocations: 103.2 kB / 456.1 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008849/0.1071, allocations: 0.5519 MB / 456.7 MB, free: 7.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.1071, allocations: 0 / 456.7 MB, free: 7.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005287/0.1077, allocations: 409 kB / 457.1 MB, free: 7.285 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/0.1081, allocations: 63.78 kB / 457.1 MB, free: 7.227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.1096, allocations: 0.9311 MB / 458.1 MB, free: 6.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.1099, allocations: 0.8263 MB / 458.9 MB, free: 5.406 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.624e-05/0.11, allocations: 23.44 kB / 458.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of SimCode: time 4.2e-07/0.11, allocations: 0 / 458.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of Templates: time 0.008656/0.1187, allocations: 6.565 MB / 465.5 MB, free: 14.81 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.Exploiting_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)