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.0079/0.0079, allocations: 99.33 kB / 15.73 MB, free: 6.445 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.001945/0.001945, allocations: 194.5 kB / 16.67 MB, free: 6.348 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2071/0.2071, allocations: 22.35 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 61.78 kB / 436.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.09774, allocations: 54.97 MB / 491.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003789/0.1016, allocations: 3.145 MB / 494.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.1032, allocations: 0.892 MB / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000247/0.1035, allocations: 11.94 kB / 495.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.1037, allocations: 67.31 kB / 495.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002988/0.104, allocations: 111 kB / 495.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004152/0.1044, allocations: 186.2 kB / 496 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004909/0.1049, allocations: 482.9 kB / 496.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.1053, allocations: 214.1 kB / 496.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.1055, allocations: 163.4 kB / 496.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.1057, allocations: 195 kB / 497 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.429e-05/0.1058, allocations: 36 kB / 497 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.268e-05/0.1058, allocations: 40 kB / 497.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.673e-05/0.1059, allocations: 83.7 kB / 497.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.1061, allocations: 198.9 kB / 497.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005006/0.1066, allocations: 469.9 kB / 497.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1066, allocations: 0 / 497.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1066, allocations: 8 kB / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.1066, 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.0009922/0.1076, allocations: 0.6897 MB / 498.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1077, allocations: 16.02 kB / 498.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.168e-05/0.1077, allocations: 78.66 kB / 498.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.551e-05/0.1078, allocations: 48.66 kB / 498.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004486/0.1083, allocations: 335.4 kB / 499 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.1083, allocations: 25.38 kB / 499 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.635e-05/0.1084, allocations: 44.27 kB / 499 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006245/0.109, allocations: 372 kB / 499.4 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.109, allocations: 0 / 499.4 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.1091, allocations: 16 kB / 499.4 MB, free: 9.719 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1091, allocations: 8 kB / 499.4 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005069/0.1096, allocations: 251.8 kB / 499.7 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.1114, allocations: 1.299 MB / 0.4892 GB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006396/0.1121, allocations: 295 kB / 0.4895 GB, free: 7.789 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.1123, allocations: 133.2 kB / 0.4896 GB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1124, allocations: 4.234 kB / 0.4896 GB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.417e-05/0.1124, allocations: 34.8 kB / 0.4897 GB, free: 7.609 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.1124, allocations: 0 / 0.4897 GB, free: 7.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007151/0.1131, allocations: 328.6 kB / 0.49 GB, free: 7.285 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.1132, allocations: 81.11 kB / 0.4901 GB, free: 7.188 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.1134, allocations: 267 kB / 0.4903 GB, free: 6.922 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.1135, allocations: 29.7 kB / 0.4903 GB, free: 6.887 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.1136, allocations: 216.4 kB / 0.4905 GB, free: 6.672 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.699e-05/0.1137, allocations: 103.1 kB / 0.4906 GB, free: 6.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.95e-05/0.1138, allocations: 61.69 kB / 0.4907 GB, free: 6.504 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1139, allocations: 338.8 kB / 0.491 GB, free: 6.164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.1141, allocations: 92.67 kB / 0.4911 GB, free: 6.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002254/0.1144, allocations: 146.8 kB / 0.4913 GB, free: 5.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004187/0.1148, allocations: 251.1 kB / 0.4915 GB, free: 5.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.1148, allocations: 3.938 kB / 0.4915 GB, free: 5.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005119/0.1153, allocations: 297.2 kB / 0.4918 GB, free: 5.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.1154, allocations: 8 kB / 0.4918 GB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1154, allocations: 4.188 kB / 0.4918 GB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1154, allocations: 4 kB / 0.4918 GB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002918/0.1157, allocations: 71.91 kB / 0.4919 GB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.1157, allocations: 3.938 kB / 0.4919 GB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.1159, allocations: 35.77 kB / 0.4919 GB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.1159, allocations: 12 kB / 0.4919 GB, free: 5.199 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002306/0.1162, allocations: 180.1 kB / 0.4921 GB, free: 5.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000185/0.1163, allocations: 143.7 kB / 0.4922 GB, free: 4.855 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003119/0.1167, allocations: 226.2 kB / 0.4924 GB, free: 4.613 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.303e-06/0.1167, allocations: 0 / 0.4924 GB, free: 4.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004502/0.1171, allocations: 285.2 kB / 0.4927 GB, free: 4.328 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/0.1172, allocations: 8 kB / 0.4927 GB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-06/0.1172, allocations: 0 / 0.4927 GB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.479e-06/0.1172, allocations: 4 kB / 0.4927 GB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.1174, allocations: 68.03 kB / 0.4928 GB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.486e-06/0.1174, allocations: 4 kB / 0.4928 GB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.1176, allocations: 23.88 kB / 0.4928 GB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.1176, 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.0001267/0.1178, allocations: 200.9 kB / 0.493 GB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.633e-05/0.1178, allocations: 31.81 kB / 0.493 GB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005308/0.1184, allocations: 273.7 kB / 0.4933 GB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1184, allocations: 8 kB / 0.4933 GB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1184, allocations: 0 / 0.4933 GB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1184, allocations: 3.984 kB / 0.4933 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004342/0.1188, allocations: 405.2 kB / 0.4937 GB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.1188, allocations: 0 / 0.4937 GB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002948/0.1191, allocations: 59.91 kB / 0.4938 GB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.1192, allocations: 0 / 0.4938 GB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.1192, allocations: 8 kB / 0.4938 GB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1192, allocations: 4 kB / 0.4938 GB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1192, allocations: 0 / 0.4938 GB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007178/0.1199, allocations: 476.3 kB / 0.4942 GB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.1201, allocations: 128.9 kB / 0.4943 GB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.2e-05/0.1201, allocations: 8 kB / 0.4944 GB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.1203, allocations: 11.94 kB / 0.4944 GB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.1204, allocations: 15.97 kB / 0.4944 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.1204, allocations: 16 kB / 0.4944 GB, free: 2.492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.1206, allocations: 190 kB / 0.4946 GB, free: 2.305 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.224e-06/0.1206, allocations: 0 / 0.4946 GB, free: 2.305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004954/0.1211, allocations: 155.5 kB / 0.4947 GB, free: 2.152 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.0009576/0.122, allocations: 1.005 MB / 0.4957 GB, free: 1.121 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006494/0.1227, allocations: 339.7 kB / 0.496 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1227, allocations: 0.75 kB / 0.496 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002021/0.1229, allocations: 123.8 kB / 0.4962 GB, free: 0.668 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004985/0.1234, allocations: 64.98 kB / 0.4962 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.1272, allocations: 3.039 MB / 0.4992 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.1276, allocations: 0.7954 MB / 0.5 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001785/0.1278, allocations: 34.95 kB / 0.5 GB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001622/0.1279, allocations: 115.4 kB / 0.5001 GB, free: 12.48 MB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1279, allocations: 0 / 0.5001 GB, free: 12.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.1543, allocations: 6.394 MB / 0.5063 GB, free: 6.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/8.053, allocations: 2.188 kB / 0.5063 GB, free: 6.203 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.25 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)