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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006986/0.006986, allocations: 98.23 kB / 15.73 MB, free: 6.004 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.001552/0.001552, allocations: 192.6 kB / 16.67 MB, free: 5.934 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1922/0.1922, allocations: 22.35 MB / 312.9 MB, free: 12.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00298/0.00298, allocations: 62.28 kB / 436.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1138, allocations: 54.96 MB / 491.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002119/0.1159, allocations: 1.303 MB / 492.8 MB, free: 468 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.1178, allocations: 1.408 MB / 494.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.118, allocations: 4 kB / 494.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000419/0.1184, allocations: 95.39 kB / 494.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003432/0.1188, allocations: 123.4 kB / 494.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.1192, allocations: 195.7 kB / 494.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006412/0.1199, allocations: 0.5107 MB / 495.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.12, allocations: 60.73 kB / 495.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003312/0.1204, allocations: 219.3 kB / 495.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004027/0.1208, allocations: 243.1 kB / 495.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.341e-05/0.1209, allocations: 28 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.364e-05/0.121, allocations: 28 kB / 495.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001763/0.1211, allocations: 127.6 kB / 495.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.1213, allocations: 143 kB / 496 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004009/0.1217, allocations: 342.4 kB / 496.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1217, allocations: 0 / 496.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1217, allocations: 3.938 kB / 496.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.1217, allocations: 0 / 496.3 MB, free: 12.93 MB / 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.002298/0.1241, allocations: 0.8607 MB / 497.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1241, allocations: 8.031 kB / 497.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.177e-05/0.1242, allocations: 54.73 kB / 497.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.478e-05/0.1243, allocations: 48.66 kB / 497.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.1255, allocations: 0.4904 MB / 497.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.1255, allocations: 16.7 kB / 497.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.487e-05/0.1256, allocations: 12.38 kB / 497.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.1259, allocations: 216.2 kB / 498 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.126, allocations: 4 kB / 498 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.126, allocations: 8 kB / 498 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.126, allocations: 4 kB / 498 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004464/0.1265, allocations: 236.4 kB / 498.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001269/0.1277, allocations: 0.7578 MB / 499 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006826/0.1284, allocations: 333.3 kB / 499.4 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002277/0.1287, allocations: 136.8 kB / 499.5 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.1287, allocations: 4 kB / 499.5 MB, free: 9.605 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.1287, allocations: 34.56 kB / 499.5 MB, free: 9.562 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.332e-06/0.1287, allocations: 0 / 499.5 MB, free: 9.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.00188/0.1306, allocations: 0.7877 MB / 0.4886 GB, free: 8.727 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.1307, allocations: 63.34 kB / 0.4886 GB, free: 8.652 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.1319, allocations: 0.5053 MB / 0.4891 GB, free: 8.137 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.1319, allocations: 29.7 kB / 0.4892 GB, free: 8.102 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.132, allocations: 176.5 kB / 0.4893 GB, free: 7.926 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.648e-05/0.1321, allocations: 95.12 kB / 0.4894 GB, free: 7.832 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.759e-05/0.1322, allocations: 53.64 kB / 0.4895 GB, free: 7.773 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.1324, allocations: 350.8 kB / 0.4898 GB, free: 7.422 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.1326, allocations: 112.1 kB / 0.4899 GB, free: 7.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.1329, allocations: 120.4 kB / 0.49 GB, free: 7.191 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002182/0.1351, allocations: 0.7112 MB / 0.4907 GB, free: 6.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1351, allocations: 0 / 0.4907 GB, free: 6.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008952/0.136, allocations: 483.4 kB / 0.4912 GB, free: 5.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.136, allocations: 8 kB / 0.4912 GB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.136, allocations: 0 / 0.4912 GB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003417/0.1364, allocations: 109.6 kB / 0.4913 GB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.1366, allocations: 35.98 kB / 0.4913 GB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002959/0.1395, allocations: 3.209 MB / 0.4945 GB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005005/0.14, allocations: 79.81 kB / 0.4945 GB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.1401, allocations: 12 kB / 0.4946 GB, free: 2.258 MB / 366.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.0002227/0.1403, allocations: 182.7 kB / 0.4947 GB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.121e-05/0.1404, allocations: 35.77 kB / 0.4948 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.1405, allocations: 55.31 kB / 0.4948 GB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.1405, allocations: 4 kB / 0.4948 GB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1405, allocations: 0 / 0.4948 GB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.1405, allocations: 3.984 kB / 0.4948 GB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004681/0.141, allocations: 401.2 kB / 0.4952 GB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.141, allocations: 0 / 0.4952 GB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.1412, allocations: 31.92 kB / 0.4952 GB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003045/0.1415, allocations: 109.6 kB / 0.4953 GB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.382e-05/0.1416, allocations: 11.98 kB / 0.4954 GB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002866/0.1444, allocations: 3.204 MB / 0.4985 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1445, allocations: 0 / 0.4985 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.1456, allocations: 0.6567 MB / 0.4991 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1457, allocations: 128.9 kB / 0.4992 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.661e-05/0.1458, allocations: 11.98 kB / 0.4993 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005227/0.1463, allocations: 59.91 kB / 0.4993 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.1464, allocations: 23.97 kB / 0.4993 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.1464, allocations: 15.94 kB / 0.4994 GB, free: 12.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001042/0.1475, allocations: 402.9 kB / 0.4997 GB, free: 12.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1475, allocations: 4 kB / 0.4997 GB, free: 12.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003379/0.1478, allocations: 71.95 kB / 0.4998 GB, free: 12.49 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.001407/0.1492, allocations: 1.206 MB / 0.501 GB, free: 11.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008817/0.1501, allocations: 0.5444 MB / 0.5015 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1501, allocations: 4 kB / 0.5015 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005615/0.1507, allocations: 401.1 kB / 0.5019 GB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.1511, allocations: 63.22 kB / 0.502 GB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007135/0.1583, allocations: 4.004 MB / 0.5059 GB, free: 6.098 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.1587, allocations: 0.8185 MB / 0.5067 GB, free: 5.254 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001688/0.1589, allocations: 74.92 kB / 0.5067 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001654/0.1591, allocations: 107.4 kB / 0.5068 GB, free: 5.074 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1591, allocations: 4 kB / 0.5069 GB, free: 5.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03834/0.1975, allocations: 7.694 MB / 0.5144 GB, free: 13.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.71/9.908, allocations: 20.84 kB / 0.5144 GB, free: 13.45 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Exploiting_2dof_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)