Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",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.005486/0.005486, allocations: 102.4 kB / 15.73 MB, free: 5.508 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.001234/0.001234, allocations: 195.6 kB / 16.67 MB, free: 5.438 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1928/0.1928, allocations: 22.34 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002557/0.002557, allocations: 66.7 kB / 436.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.108, allocations: 54.96 MB / 491.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.00186/0.1099, allocations: 0.9767 MB / 492.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.1111, allocations: 1.194 MB / 493.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.045e-05/0.1112, allocations: 4 kB / 493.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002796/0.1115, allocations: 39.77 kB / 493.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.1117, allocations: 43.77 kB / 493.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.1119, allocations: 67.89 kB / 493.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002598/0.1121, allocations: 207.6 kB / 494.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.1122, allocations: 25.67 kB / 494.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1124, allocations: 87.72 kB / 494.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.1126, allocations: 99.62 kB / 494.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.1126, allocations: 16 kB / 494.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.348e-05/0.1126, allocations: 12 kB / 494.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.88e-05/0.1127, allocations: 47.83 kB / 494.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.765e-05/0.1128, allocations: 55.66 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.113, allocations: 135.4 kB / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.113, allocations: 0 / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.113, allocations: 0 / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.113, allocations: 0 / 494.5 MB, free: 14.7 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001138/0.1141, allocations: 0.532 MB / 495.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1142, allocations: 12.03 kB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.007e-05/0.1142, allocations: 34.75 kB / 495.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.871e-05/0.1143, allocations: 24.78 kB / 495.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005667/0.1149, allocations: 284.8 kB / 495.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.1149, allocations: 8.375 kB / 495.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.453e-05/0.1149, allocations: 12.36 kB / 495.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.1152, allocations: 109.7 kB / 495.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1152, allocations: 0 / 495.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.1152, allocations: 11.98 kB / 495.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1152, allocations: 4 kB / 495.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002367/0.1155, allocations: 99.83 kB / 495.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006952/0.1162, allocations: 456.5 kB / 496.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003833/0.1166, allocations: 154.5 kB / 496.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.1167, allocations: 64.81 kB / 496.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.1167, allocations: 4 kB / 496.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.1168, allocations: 34.56 kB / 496.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.1168, allocations: 224 / 496.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.001036/0.1178, allocations: 403.1 kB / 496.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.1178, allocations: 55.41 kB / 496.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000476/0.1183, allocations: 246.6 kB / 497 MB, free: 11.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.1184, allocations: 25.7 kB / 497.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.65e-05/0.1185, allocations: 116 kB / 497.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.866e-05/0.1185, allocations: 43.64 kB / 497.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/0.1186, allocations: 29.7 kB / 497.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1187, allocations: 330.8 kB / 497.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.1188, allocations: 55.91 kB / 497.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.119, allocations: 47.97 kB / 497.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.12, allocations: 342 kB / 498 MB, free: 10.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1201, allocations: 0 / 498 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004609/0.1205, allocations: 238.2 kB / 498.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.1206, allocations: 4 kB / 498.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1206, allocations: 8 kB / 498.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002017/0.1208, allocations: 52.81 kB / 498.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.544e-05/0.1209, allocations: 19.98 kB / 498.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/0.1224, allocations: 1.602 MB / 499.9 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.1226, allocations: 32.05 kB / 499.9 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.1226, allocations: 4 kB / 499.9 MB, free: 8.871 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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 (12): * Single equations (assignments): 11 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.1228, allocations: 149.6 kB / 0.4884 GB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.754e-05/0.1229, allocations: 11.95 kB / 0.4884 GB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.223e-05/0.1229, allocations: 33.33 kB / 0.4884 GB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1229, allocations: 3.938 kB / 0.4884 GB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.1229, allocations: 0 / 0.4884 GB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1229, allocations: 0 / 0.4884 GB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.1232, allocations: 249.5 kB / 0.4887 GB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1232, allocations: 0 / 0.4887 GB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.1233, allocations: 12 kB / 0.4887 GB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001645/0.1235, allocations: 56.8 kB / 0.4887 GB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.1235, allocations: 7.938 kB / 0.4887 GB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.1249, allocations: 1.607 MB / 0.4903 GB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1249, allocations: 0 / 0.4903 GB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006008/0.1255, allocations: 376 kB / 0.4907 GB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.593e-05/0.1256, allocations: 101 kB / 0.4908 GB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.1256, allocations: 8 kB / 0.4908 GB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.1259, allocations: 31.95 kB / 0.4908 GB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.1259, allocations: 11.98 kB / 0.4908 GB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.126, allocations: 4 kB / 0.4908 GB, free: 5.988 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004151/0.1264, allocations: 200.2 kB / 0.491 GB, free: 5.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1264, allocations: 0 / 0.491 GB, free: 5.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002666/0.1267, allocations: 39.95 kB / 0.491 GB, free: 5.754 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.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 (9): * Single equations (assignments): 8 * 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,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.0009416/0.1276, allocations: 0.905 MB / 0.4919 GB, free: 4.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005021/0.1281, allocations: 265.3 kB / 0.4922 GB, free: 4.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.1281, allocations: 0 / 0.4922 GB, free: 4.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.1284, allocations: 198.5 kB / 0.4924 GB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.1287, allocations: 30.73 kB / 0.4924 GB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003472/0.1322, allocations: 2.257 MB / 0.4946 GB, free: 1.977 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.1326, allocations: 0.7283 MB / 0.4953 GB, free: 1.223 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.045e-05/0.1327, allocations: 37 kB / 0.4953 GB, free: 1.188 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.93e-05/0.1327, allocations: 39.42 kB / 0.4954 GB, free: 1.148 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1328, allocations: 3.938 kB / 0.4954 GB, free: 1.145 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.1614, allocations: 3.763 MB / 0.4991 GB, free: 13.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.6/9.761, allocations: 16.36 kB / 0.4991 GB, free: 13.45 MB / 382.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_base_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_base.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1)