Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.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_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",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.006265/0.006265, allocations: 101.5 kB / 15.73 MB, free: 6.449 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.001491/0.001491, allocations: 194.1 kB / 16.68 MB, free: 6.352 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.206/0.206, allocations: 22.37 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 68.7 kB / 436.6 MB, free: 33.99 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1015, allocations: 54.97 MB / 491.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003914/0.1055, allocations: 3.163 MB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.107, allocations: 0.892 MB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.1072, allocations: 8 kB / 495.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.1075, allocations: 71.25 kB / 495.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002636/0.1077, allocations: 99.02 kB / 495.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.1082, allocations: 197.2 kB / 496 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004878/0.1086, allocations: 467 kB / 496.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003522/0.109, allocations: 214.1 kB / 496.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.1092, allocations: 171.3 kB / 496.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.1094, allocations: 183 kB / 497 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.274e-05/0.1095, allocations: 40 kB / 497 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.335e-05/0.1096, allocations: 40 kB / 497.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.803e-05/0.1097, allocations: 83.69 kB / 497.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.1099, allocations: 206.9 kB / 497.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005001/0.1104, allocations: 466 kB / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1104, allocations: 0 / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1104, allocations: 0 / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.1104, allocations: 0 / 497.8 MB, free: 11.43 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001054/0.1115, allocations: 0.7074 MB / 498.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.1115, allocations: 11.97 kB / 498.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.387e-05/0.1116, allocations: 78.66 kB / 498.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.473e-05/0.1117, allocations: 48.66 kB / 498.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000481/0.1122, allocations: 327.5 kB / 499 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.1122, allocations: 33.38 kB / 499 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.792e-05/0.1123, allocations: 40.31 kB / 499 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.1129, allocations: 372 kB / 499.4 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.1129, allocations: 0 / 499.4 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.343e-05/0.113, allocations: 16 kB / 499.4 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.113, allocations: 8 kB / 499.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005256/0.1135, allocations: 251.9 kB / 499.7 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.1155, allocations: 1.299 MB / 0.4892 GB, free: 8.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006706/0.1162, allocations: 291.7 kB / 0.4895 GB, free: 7.781 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.1164, allocations: 125.2 kB / 0.4896 GB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.1165, allocations: 8.234 kB / 0.4896 GB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.1165, allocations: 30.8 kB / 0.4897 GB, free: 7.609 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.382e-06/0.1165, allocations: 4 kB / 0.4897 GB, free: 7.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007171/0.1172, allocations: 324.7 kB / 0.49 GB, free: 7.285 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.1173, allocations: 77.11 kB / 0.4901 GB, free: 7.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/0.1176, allocations: 267 kB / 0.4903 GB, free: 6.926 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.1176, allocations: 33.7 kB / 0.4903 GB, free: 6.887 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.1178, allocations: 216.4 kB / 0.4905 GB, free: 6.672 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.779e-05/0.1179, allocations: 103.1 kB / 0.4906 GB, free: 6.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.836e-05/0.1179, allocations: 53.7 kB / 0.4907 GB, free: 6.512 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1181, allocations: 342.8 kB / 0.491 GB, free: 6.168 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.1183, allocations: 96.61 kB / 0.4911 GB, free: 6.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002438/0.1186, allocations: 146.8 kB / 0.4913 GB, free: 5.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004326/0.119, allocations: 247.2 kB / 0.4915 GB, free: 5.641 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-06/0.119, allocations: 3.938 kB / 0.4915 GB, free: 5.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005442/0.1196, allocations: 305.3 kB / 0.4918 GB, free: 5.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.1196, allocations: 4 kB / 0.4918 GB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.1196, allocations: 4 kB / 0.4918 GB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1196, allocations: 4 kB / 0.4918 GB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.1199, allocations: 71.89 kB / 0.4919 GB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.12, allocations: 4 kB / 0.4919 GB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.1201, allocations: 31.78 kB / 0.4919 GB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.1202, allocations: 15.98 kB / 0.4919 GB, free: 5.199 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002417/0.1204, allocations: 184.1 kB / 0.4921 GB, free: 5.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002003/0.1206, allocations: 139.8 kB / 0.4922 GB, free: 4.855 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003446/0.121, allocations: 226.1 kB / 0.4924 GB, free: 4.613 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.262e-06/0.121, allocations: 3.938 kB / 0.4924 GB, free: 4.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004504/0.1214, allocations: 285.2 kB / 0.4927 GB, free: 4.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.923e-06/0.1215, allocations: 4 kB / 0.4927 GB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1215, allocations: 8.188 kB / 0.4927 GB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-06/0.1215, allocations: 0 / 0.4927 GB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/0.1217, allocations: 63.91 kB / 0.4928 GB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.1217, allocations: 7.938 kB / 0.4928 GB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.1219, allocations: 19.89 kB / 0.4928 GB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.1219, allocations: 12 kB / 0.4928 GB, free: 4.211 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001473/0.1221, allocations: 204.9 kB / 0.493 GB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.673e-05/0.1221, allocations: 31.81 kB / 0.4931 GB, free: 3.973 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005564/0.1227, allocations: 273.7 kB / 0.4933 GB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.1227, allocations: 7.984 kB / 0.4933 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.1227, allocations: 0 / 0.4933 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1227, allocations: 0 / 0.4933 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004666/0.1232, allocations: 405.2 kB / 0.4937 GB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1232, allocations: 0 / 0.4937 GB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.1235, allocations: 55.91 kB / 0.4938 GB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.1235, allocations: 4 kB / 0.4938 GB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.1235, allocations: 4 kB / 0.4938 GB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1235, allocations: 4 kB / 0.4938 GB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1235, allocations: 4 kB / 0.4938 GB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007698/0.1243, allocations: 472.3 kB / 0.4942 GB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.1245, allocations: 128.9 kB / 0.4944 GB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.815e-05/0.1245, allocations: 4 kB / 0.4944 GB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.1247, allocations: 23.92 kB / 0.4944 GB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.1247, allocations: 11.98 kB / 0.4944 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.1248, allocations: 8 kB / 0.4944 GB, free: 2.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001919/0.125, allocations: 190 kB / 0.4946 GB, free: 2.312 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.125, allocations: 0 / 0.4946 GB, free: 2.312 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004633/0.1254, allocations: 155.5 kB / 0.4947 GB, free: 2.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Cbody.T,PID.I.y,Ccont.T) * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001069/0.1265, allocations: 1.009 MB / 0.4957 GB, free: 1.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006958/0.1272, allocations: 344.3 kB / 0.496 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1272, allocations: 4.062 kB / 0.496 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002083/0.1274, allocations: 107.9 kB / 0.4961 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.1279, allocations: 80.5 kB / 0.4962 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003961/0.1319, allocations: 3.043 MB / 0.4992 GB, free: 13.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.1323, allocations: 0.7876 MB / 0.5 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001653/0.1325, allocations: 34.97 kB / 0.5 GB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.1327, allocations: 115.4 kB / 0.5001 GB, free: 12.48 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1327, allocations: 4 kB / 0.5001 GB, free: 12.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02934/0.1621, allocations: 6.401 MB / 0.5064 GB, free: 6.195 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.88/8.042, allocations: 10.25 kB / 0.5064 GB, free: 6.188 MB / 382.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)