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.001292/0.001292, allocations: 112.4 kB / 16.37 MB, free: 6.344 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.001266/0.001266, allocations: 189.5 kB / 17.3 MB, free: 5.898 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.281/1.281, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08744/0.08744, allocations: 22.33 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 71.89 kB / 437.7 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09458, allocations: 54.95 MB / 492.6 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002172/0.09679, allocations: 1.298 MB / 493.9 MB, free: 3.516 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.09841, allocations: 1.408 MB / 495.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.09853, allocations: 4 kB / 495.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003525/0.09889, allocations: 95.39 kB / 495.4 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002537/0.09917, allocations: 123.4 kB / 495.5 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.09949, allocations: 191.7 kB / 495.7 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004628/0.09997, allocations: 0.5224 MB / 496.2 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.1001, allocations: 64.72 kB / 496.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002217/0.1004, allocations: 211.3 kB / 496.5 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002882/0.1006, allocations: 251 kB / 496.8 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.396e-05/0.1007, allocations: 28 kB / 496.8 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.284e-05/0.1008, allocations: 28 kB / 496.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.1009, allocations: 115.7 kB / 496.9 MB, free: 484 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.101, allocations: 147 kB / 497.1 MB, free: 336 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002744/0.1013, allocations: 326.8 kB / 497.4 MB, free: 8 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1013, allocations: 4 kB / 497.4 MB, free: 4 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1013, allocations: 4 kB / 497.4 MB, free: 0 / 366.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1013, allocations: 0 / 497.4 MB, free: 0 / 366.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.002098/0.1034, allocations: 0.8646 MB / 498.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.1035, allocations: 8.031 kB / 498.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.009e-05/0.1036, allocations: 40.47 kB / 498.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.1047, allocations: 498 kB / 498.8 MB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.1047, allocations: 20.64 kB / 498.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.121e-05/0.1048, allocations: 16.38 kB / 498.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003362/0.1051, allocations: 220.4 kB / 499.1 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.1051, allocations: 0 / 499.1 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.1051, allocations: 4 kB / 499.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1052, allocations: 8 kB / 499.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003829/0.1055, allocations: 228.4 kB / 499.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.1067, allocations: 0.7538 MB / 0.4883 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006222/0.1073, allocations: 322.3 kB / 0.4886 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002081/0.1076, allocations: 140.8 kB / 0.4888 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.1076, allocations: 0 / 0.4888 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.1076, allocations: 38.56 kB / 0.4888 GB, free: 12.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.002e-06/0.1076, allocations: 0 / 0.4888 GB, free: 12.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001722/0.1094, allocations: 0.786 MB / 0.4896 GB, free: 11.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.1094, allocations: 59.41 kB / 0.4896 GB, free: 11.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.1105, allocations: 0.5053 MB / 0.4901 GB, free: 11.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.1105, allocations: 29.7 kB / 0.4901 GB, free: 11.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.1106, allocations: 176.4 kB / 0.4903 GB, free: 11.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.313e-05/0.1107, allocations: 102.5 kB / 0.4904 GB, free: 10.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.675e-05/0.1108, allocations: 45.7 kB / 0.4905 GB, free: 10.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1109, allocations: 346.8 kB / 0.4908 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.1111, allocations: 116.1 kB / 0.4909 GB, free: 10.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.1113, allocations: 121.3 kB / 0.491 GB, free: 10.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002009/0.1133, allocations: 0.7138 MB / 0.4917 GB, free: 9.625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1133, allocations: 0 / 0.4917 GB, free: 9.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007964/0.1141, allocations: 491.4 kB / 0.4922 GB, free: 9.133 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.1141, allocations: 4 kB / 0.4922 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1141, allocations: 0 / 0.4922 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003235/0.1145, allocations: 109.6 kB / 0.4923 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.1147, allocations: 43.92 kB / 0.4923 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002679/0.1173, allocations: 3.193 MB / 0.4954 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005323/0.1179, allocations: 71.78 kB / 0.4955 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.1179, allocations: 16.06 kB / 0.4955 GB, free: 5.41 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.0002608/0.1182, allocations: 184.6 kB / 0.4957 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.473e-05/0.1183, allocations: 39.53 kB / 0.4957 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.1184, allocations: 55.31 kB / 0.4958 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1184, allocations: 3.938 kB / 0.4958 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.1184, allocations: 4 kB / 0.4958 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1184, allocations: 0 / 0.4958 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004266/0.1189, allocations: 397.2 kB / 0.4962 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1189, allocations: 0 / 0.4962 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.1191, allocations: 35.91 kB / 0.4962 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002912/0.1194, allocations: 109.6 kB / 0.4963 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.1194, allocations: 7.984 kB / 0.4963 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/0.1217, allocations: 3.192 MB / 0.4994 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.1217, allocations: 3.984 kB / 0.4994 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009761/0.1227, allocations: 0.672 MB / 0.5001 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.032e-05/0.1228, allocations: 120.7 kB / 0.5002 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.446e-05/0.1228, allocations: 8.188 kB / 0.5002 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004906/0.1233, allocations: 67.89 kB / 0.5003 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.616e-05/0.1234, allocations: 23.95 kB / 0.5003 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.1234, allocations: 8 kB / 0.5003 GB, free: 112 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2119/0.3353, allocations: 400.5 kB / 0.5007 GB, free: 22.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.22e-07/0.3353, allocations: 0.625 kB / 0.5007 GB, free: 22.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005683/0.3359, allocations: 70.88 kB / 0.5008 GB, free: 22.42 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.0001406/0.336, allocations: 103.8 kB / 0.5009 GB, free: 22.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008289/0.3369, allocations: 0.5406 MB / 0.5014 GB, free: 22.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3369, allocations: 0 / 0.5014 GB, free: 22.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004503/0.3374, allocations: 394.5 kB / 0.5018 GB, free: 21.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004465/0.3378, allocations: 65.81 kB / 0.5018 GB, free: 21.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.3391, allocations: 0.8169 MB / 0.5026 GB, free: 21.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.3394, allocations: 0.8194 MB / 0.5034 GB, free: 20.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.672e-05/0.3394, allocations: 28.16 kB / 0.5035 GB, free: 20.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.103e-06/0.3395, allocations: 4.531 kB / 0.5035 GB, free: 20.84 MB / 382.1 MB Notification: Performance of Templates: time 0.009795/0.3493, allocations: 6.583 MB / 0.5099 GB, free: 20.52 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)