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.004848/0.004848, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001153/0.001153, allocations: 189.7 kB / 16.67 MB, free: 5.969 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1943/0.1943, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.59 kB / 436.6 MB, free: 34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1033, allocations: 54.97 MB / 491.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003689/0.107, allocations: 3.155 MB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.1084, allocations: 0.892 MB / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/0.1086, allocations: 8 kB / 495.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.1088, allocations: 67.25 kB / 495.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002568/0.1091, allocations: 111 kB / 495.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003703/0.1095, allocations: 186.7 kB / 496 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004207/0.1099, allocations: 478.9 kB / 496.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.1102, allocations: 210.1 kB / 496.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.1104, allocations: 171.3 kB / 496.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.1106, allocations: 183.1 kB / 497 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.1107, allocations: 43.98 kB / 497 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.825e-05/0.1107, allocations: 40 kB / 497.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.565e-05/0.1108, allocations: 83.64 kB / 497.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.111, allocations: 202.9 kB / 497.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.1114, allocations: 467.1 kB / 497.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1114, allocations: 0 / 497.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1114, allocations: 0 / 497.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.1114, allocations: 0 / 497.8 MB, free: 11.4 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.0009477/0.1124, allocations: 0.6977 MB / 498.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.1124, allocations: 12.03 kB / 498.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.89e-05/0.1125, allocations: 74.72 kB / 498.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.104e-05/0.1126, allocations: 44.38 kB / 498.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004377/0.113, allocations: 331.3 kB / 498.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.1131, allocations: 33.31 kB / 499 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.043e-05/0.1131, allocations: 32.38 kB / 499 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00058/0.1137, allocations: 376 kB / 499.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1137, allocations: 0 / 499.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.1138, allocations: 16 kB / 499.4 MB, free: 9.691 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1138, allocations: 8 kB / 499.4 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004745/0.1143, allocations: 251.8 kB / 499.7 MB, free: 9.438 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.116, allocations: 1.299 MB / 0.4892 GB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006029/0.1166, allocations: 290.1 kB / 0.4895 GB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.1169, allocations: 129.2 kB / 0.4896 GB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.1169, allocations: 4.234 kB / 0.4896 GB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.1169, allocations: 34.78 kB / 0.4896 GB, free: 7.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.393e-06/0.1169, allocations: 0 / 0.4896 GB, free: 7.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006587/0.1176, allocations: 332.5 kB / 0.49 GB, free: 7.262 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.1177, allocations: 81.09 kB / 0.49 GB, free: 7.164 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.1179, allocations: 267 kB / 0.4903 GB, free: 6.898 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.1179, allocations: 33.7 kB / 0.4903 GB, free: 6.859 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.1181, allocations: 215.9 kB / 0.4905 GB, free: 6.645 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.405e-05/0.1181, allocations: 94.64 kB / 0.4906 GB, free: 6.551 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.271e-05/0.1182, allocations: 57.69 kB / 0.4907 GB, free: 6.488 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1184, allocations: 342.8 kB / 0.491 GB, free: 6.145 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.1186, allocations: 96.67 kB / 0.4911 GB, free: 6.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002054/0.1188, allocations: 138.8 kB / 0.4912 GB, free: 5.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00038/0.1192, allocations: 255.1 kB / 0.4915 GB, free: 5.617 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1192, allocations: 7.875 kB / 0.4915 GB, free: 5.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005597/0.1197, allocations: 297.1 kB / 0.4918 GB, free: 5.312 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1198, allocations: 4 kB / 0.4918 GB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1198, allocations: 4 kB / 0.4918 GB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1198, allocations: 0 / 0.4918 GB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.1201, allocations: 71.91 kB / 0.4918 GB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.1201, allocations: 8.172 kB / 0.4918 GB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.1203, allocations: 31.69 kB / 0.4919 GB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.1203, allocations: 12 kB / 0.4919 GB, free: 5.184 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002152/0.1205, allocations: 184.1 kB / 0.4921 GB, free: 5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001674/0.1207, allocations: 143.7 kB / 0.4922 GB, free: 4.836 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002881/0.121, allocations: 218.2 kB / 0.4924 GB, free: 4.602 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.075e-06/0.121, allocations: 3.984 kB / 0.4924 GB, free: 4.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004013/0.1214, allocations: 281.1 kB / 0.4927 GB, free: 4.316 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.206e-06/0.1214, allocations: 4 kB / 0.4927 GB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-06/0.1214, allocations: 3.938 kB / 0.4927 GB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-06/0.1214, allocations: 7.938 kB / 0.4927 GB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.1217, allocations: 63.91 kB / 0.4928 GB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.1217, allocations: 4 kB / 0.4928 GB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001456/0.1218, allocations: 23.83 kB / 0.4928 GB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.1219, allocations: 12 kB / 0.4928 GB, free: 4.199 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.000116/0.122, allocations: 205.1 kB / 0.493 GB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.886e-05/0.1221, allocations: 27.62 kB / 0.493 GB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000488/0.1225, allocations: 273.7 kB / 0.4933 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.1226, allocations: 0 / 0.4933 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1226, allocations: 4 kB / 0.4933 GB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.1226, allocations: 3.984 kB / 0.4933 GB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004106/0.123, allocations: 401.2 kB / 0.4937 GB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.123, allocations: 4 kB / 0.4937 GB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.1233, allocations: 55.91 kB / 0.4937 GB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.1233, allocations: 4 kB / 0.4937 GB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.1233, allocations: 4 kB / 0.4937 GB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.1233, allocations: 4 kB / 0.4937 GB, free: 3.164 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1233, allocations: 0 / 0.4937 GB, free: 3.164 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006775/0.124, allocations: 484 kB / 0.4942 GB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.1241, allocations: 124.7 kB / 0.4943 GB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.893e-05/0.1242, allocations: 8 kB / 0.4943 GB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.1244, allocations: 15.98 kB / 0.4943 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/0.1244, allocations: 11.98 kB / 0.4944 GB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.1244, allocations: 8 kB / 0.4944 GB, free: 2.492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001645/0.1246, allocations: 190 kB / 0.4945 GB, free: 2.305 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1246, allocations: 0 / 0.4945 GB, free: 2.305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000462/0.1251, allocations: 155.4 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.0009832/0.1261, allocations: 1.001 MB / 0.4957 GB, free: 1.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006202/0.1267, allocations: 347.7 kB / 0.496 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1267, allocations: 0 / 0.496 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.1269, allocations: 111.9 kB / 0.4961 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004612/0.1274, allocations: 75.92 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.003919/0.1313, allocations: 3.029 MB / 0.4991 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.1317, allocations: 0.7915 MB / 0.4999 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001594/0.1319, allocations: 34.97 kB / 0.4999 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.132, allocations: 115.4 kB / 0.5001 GB, free: 12.49 MB / 382.1 MB Notification: Performance of SimCode: time 2.184e-06/0.132, allocations: 0 / 0.5001 GB, free: 12.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02578/0.1578, allocations: 6.497 MB / 0.5064 GB, free: 6.117 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.814/7.972, allocations: 1.547 kB / 0.5064 GB, free: 6.117 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)