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.001435/0.001435, allocations: 104.9 kB / 16.4 MB, free: 6.379 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.001177/0.001177, allocations: 184.3 kB / 17.33 MB, free: 5.852 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.308/1.308, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08848/0.08848, allocations: 22.33 MB / 313.5 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.00128, allocations: 59.91 kB / 437.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1147, allocations: 54.95 MB / 492.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002572/0.1173, allocations: 1.294 MB / 494 MB, free: 3.441 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.1195, allocations: 1.412 MB / 495.4 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002481/0.1198, allocations: 4 kB / 495.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004805/0.1203, allocations: 91.39 kB / 495.5 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004061/0.1207, allocations: 123.4 kB / 495.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004897/0.1212, allocations: 195.7 kB / 495.8 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006994/0.1219, allocations: 0.5185 MB / 496.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.1221, allocations: 64.73 kB / 496.4 MB, free: 1.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000356/0.1225, allocations: 215.3 kB / 496.6 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004125/0.1229, allocations: 243.1 kB / 496.8 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.45e-05/0.123, allocations: 28 kB / 496.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.974e-05/0.1231, allocations: 28 kB / 496.9 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.1232, allocations: 119.6 kB / 497 MB, free: 408 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/0.1234, allocations: 147 kB / 497.1 MB, free: 260 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003703/0.1238, allocations: 334.8 kB / 497.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.1238, allocations: 0 / 497.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1238, allocations: 0 / 497.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.1238, allocations: 0 / 497.4 MB, free: 15.93 MB / 382.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.002454/0.1263, allocations: 0.8685 MB / 498.3 MB, free: 15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1263, allocations: 8.031 kB / 498.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.1265, allocations: 44.45 kB / 498.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.1277, allocations: 494 kB / 498.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.1277, allocations: 16.7 kB / 498.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.081e-05/0.1278, allocations: 20.38 kB / 498.9 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003909/0.1282, allocations: 216.4 kB / 499.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1282, allocations: 3.984 kB / 499.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.1282, allocations: 7.938 kB / 499.1 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.1282, allocations: 8 kB / 499.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004321/0.1287, allocations: 228.4 kB / 499.3 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.13, allocations: 0.7577 MB / 0.4884 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006876/0.1307, allocations: 326.3 kB / 0.4887 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.131, allocations: 136.8 kB / 0.4888 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.131, allocations: 0 / 0.4888 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.131, allocations: 38.56 kB / 0.4888 GB, free: 12.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.131, allocations: 4 kB / 0.4889 GB, free: 12.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001929/0.133, allocations: 0.7821 MB / 0.4896 GB, free: 11.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.133, allocations: 55.41 kB / 0.4897 GB, free: 11.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/0.1342, allocations: 0.5131 MB / 0.4902 GB, free: 11.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.89e-05/0.1343, allocations: 29.7 kB / 0.4902 GB, free: 11.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.1344, allocations: 172.5 kB / 0.4904 GB, free: 10.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.1346, allocations: 94.56 kB / 0.4905 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-05/0.1347, allocations: 49.7 kB / 0.4905 GB, free: 10.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1348, allocations: 342.8 kB / 0.4908 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.135, allocations: 116.1 kB / 0.4909 GB, free: 10.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.1352, allocations: 121.3 kB / 0.4911 GB, free: 10.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/0.1374, allocations: 0.7138 MB / 0.4918 GB, free: 9.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1374, allocations: 4 kB / 0.4918 GB, free: 9.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008983/0.1383, allocations: 487.4 kB / 0.4922 GB, free: 9.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.1383, allocations: 4 kB / 0.4922 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.1383, allocations: 0 / 0.4922 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000371/0.1387, allocations: 113.6 kB / 0.4923 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.1389, allocations: 35.98 kB / 0.4924 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003063/0.142, allocations: 3.201 MB / 0.4955 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005172/0.1425, allocations: 79.77 kB / 0.4956 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.1426, allocations: 8 kB / 0.4956 GB, free: 5.328 MB / 382.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.0002734/0.1428, allocations: 188.5 kB / 0.4958 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.891e-05/0.1429, allocations: 35.53 kB / 0.4958 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001306/0.1431, allocations: 55.31 kB / 0.4958 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1431, allocations: 0 / 0.4958 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.1431, allocations: 7.984 kB / 0.4958 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1431, allocations: 0 / 0.4958 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004526/0.1436, allocations: 401.1 kB / 0.4962 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.1436, allocations: 0 / 0.4962 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002139/0.1438, allocations: 35.92 kB / 0.4963 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003006/0.1441, allocations: 105.6 kB / 0.4964 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.1441, allocations: 8 kB / 0.4964 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002554/0.1467, allocations: 3.2 MB / 0.4995 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1467, allocations: 4.031 kB / 0.4995 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.1478, allocations: 0.6602 MB / 0.5001 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.927e-05/0.1479, allocations: 116.7 kB / 0.5003 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.06e-05/0.1479, allocations: 16.05 kB / 0.5003 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005143/0.1485, allocations: 67.89 kB / 0.5003 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.675e-05/0.1486, allocations: 15.98 kB / 0.5004 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.1486, allocations: 7.984 kB / 0.5004 GB, free: 36 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.255/0.4035, allocations: 406.1 kB / 0.5007 GB, free: 22.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.012e-06/0.4036, allocations: 0 / 0.5007 GB, free: 22.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005665/0.4042, allocations: 72.41 kB / 0.5008 GB, free: 22.95 MB / 382.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.0001352/0.4043, allocations: 105.5 kB / 0.5009 GB, free: 22.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008896/0.4052, allocations: 0.5271 MB / 0.5014 GB, free: 22.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4052, allocations: 1.219 kB / 0.5014 GB, free: 22.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00045/0.4057, allocations: 400.8 kB / 0.5018 GB, free: 22.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004749/0.4062, allocations: 62.95 kB / 0.5019 GB, free: 22.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.4075, allocations: 0.8199 MB / 0.5027 GB, free: 22.08 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.4078, allocations: 0.8257 MB / 0.5035 GB, free: 21.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.149e-05/0.4079, allocations: 23 kB / 0.5035 GB, free: 21.38 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4079, allocations: 0 / 0.5035 GB, free: 21.38 MB / 382.1 MB Notification: Performance of Templates: time 0.01118/0.4191, allocations: 6.614 MB / 0.51 GB, free: 21.04 MB / 382.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)