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.007224/0.007224, allocations: 100.7 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.00166/0.00166, allocations: 198.7 kB / 16.68 MB, free: 5.926 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09205/0.09205, allocations: 22.33 MB / 312.9 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 63.91 kB / 436.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1181, allocations: 54.97 MB / 491.5 MB, free: 5.246 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004427/0.1226, allocations: 3.154 MB / 494.7 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001745/0.1243, allocations: 0.892 MB / 495.5 MB, free: 1.172 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003576/0.1247, allocations: 15.94 kB / 495.6 MB, free: 1.156 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.125, allocations: 67.3 kB / 495.6 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003807/0.1254, allocations: 103 kB / 495.7 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004885/0.1259, allocations: 195.3 kB / 495.9 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005798/0.1265, allocations: 478.9 kB / 496.4 MB, free: 340 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003559/0.1269, allocations: 214.1 kB / 496.6 MB, free: 120 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.1271, allocations: 163.3 kB / 496.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.1274, allocations: 187.1 kB / 496.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.495e-05/0.1275, allocations: 36 kB / 497 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.291e-05/0.1276, allocations: 40 kB / 497 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.983e-05/0.1277, allocations: 87.64 kB / 497.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.1278, allocations: 198.9 kB / 497.3 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004834/0.1283, allocations: 466.3 kB / 497.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1283, allocations: 0 / 497.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1284, allocations: 8 kB / 497.8 MB, free: 14.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.1284, allocations: 0 / 497.8 MB, free: 14.95 MB / 382.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.001135/0.1295, allocations: 0.6861 MB / 498.4 MB, free: 14.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.1296, allocations: 16.03 kB / 498.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.163e-05/0.1297, allocations: 70.72 kB / 498.5 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.9e-05/0.1298, allocations: 48.38 kB / 498.6 MB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004599/0.1302, allocations: 331.3 kB / 498.9 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.1303, allocations: 25.38 kB / 498.9 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.435e-05/0.1303, allocations: 36.38 kB / 499 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006252/0.131, allocations: 376 kB / 499.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.131, allocations: 3.938 kB / 499.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.131, allocations: 16 kB / 499.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.131, allocations: 8 kB / 499.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005322/0.1316, allocations: 251.8 kB / 499.6 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.1335, allocations: 1.299 MB / 0.4892 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006492/0.1342, allocations: 299.7 kB / 0.4894 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002293/0.1344, allocations: 125.2 kB / 0.4896 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.1345, allocations: 4.234 kB / 0.4896 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.1345, allocations: 38.8 kB / 0.4896 GB, free: 11.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.234e-06/0.1345, allocations: 0 / 0.4896 GB, free: 11.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007139/0.1352, allocations: 321.4 kB / 0.4899 GB, free: 10.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.1353, allocations: 81.11 kB / 0.49 GB, free: 10.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002515/0.1356, allocations: 270.9 kB / 0.4902 GB, free: 10.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.1356, allocations: 33.7 kB / 0.4903 GB, free: 10.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1357, allocations: 212.1 kB / 0.4905 GB, free: 10.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.91e-05/0.1358, allocations: 102.6 kB / 0.4906 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.757e-05/0.1359, allocations: 57.61 kB / 0.4906 GB, free: 10.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.136, allocations: 334.8 kB / 0.491 GB, free: 9.707 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.1362, allocations: 92.67 kB / 0.491 GB, free: 9.613 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.1365, allocations: 150.8 kB / 0.4912 GB, free: 9.441 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004276/0.1369, allocations: 251.1 kB / 0.4914 GB, free: 9.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.1369, allocations: 3.938 kB / 0.4914 GB, free: 9.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005246/0.1374, allocations: 293.2 kB / 0.4917 GB, free: 8.879 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1375, allocations: 4 kB / 0.4917 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.1375, allocations: 4.188 kB / 0.4917 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.1375, allocations: 4 kB / 0.4917 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.1378, allocations: 71.89 kB / 0.4918 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.1378, allocations: 0 / 0.4918 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.138, allocations: 31.69 kB / 0.4918 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.138, allocations: 12 kB / 0.4918 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002413/0.1383, allocations: 180.1 kB / 0.492 GB, free: 8.574 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001934/0.1385, allocations: 147.7 kB / 0.4921 GB, free: 8.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003257/0.1388, allocations: 222.2 kB / 0.4924 GB, free: 8.168 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.412e-06/0.1388, allocations: 0 / 0.4924 GB, free: 8.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004608/0.1393, allocations: 277 kB / 0.4926 GB, free: 7.891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1393, allocations: 14.33 kB / 0.4926 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.1393, allocations: 0 / 0.4926 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.881e-06/0.1394, allocations: 4 kB / 0.4926 GB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.1396, allocations: 72.09 kB / 0.4927 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.1396, allocations: 4 kB / 0.4927 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.1398, allocations: 27.69 kB / 0.4927 GB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.1398, allocations: 8 kB / 0.4927 GB, free: 7.766 MB / 382.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.0001376/0.14, allocations: 212.8 kB / 0.4929 GB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.665e-05/0.14, allocations: 27.72 kB / 0.493 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005336/0.1406, allocations: 265.5 kB / 0.4932 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.1406, allocations: 8 kB / 0.4932 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1406, allocations: 0 / 0.4932 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.1406, allocations: 3.984 kB / 0.4932 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000456/0.1411, allocations: 409 kB / 0.4936 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1411, allocations: 0 / 0.4936 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002878/0.1414, allocations: 55.97 kB / 0.4937 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.1414, allocations: 0 / 0.4937 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.1414, allocations: 8 kB / 0.4937 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1414, allocations: 3.984 kB / 0.4937 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1414, allocations: 0 / 0.4937 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007073/0.1421, allocations: 479.1 kB / 0.4941 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.1423, allocations: 128.7 kB / 0.4943 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.373e-05/0.1423, allocations: 8 kB / 0.4943 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001879/0.1425, allocations: 15.98 kB / 0.4943 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.1426, allocations: 11.98 kB / 0.4943 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.1426, allocations: 12 kB / 0.4943 GB, free: 6.047 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001708/0.1428, allocations: 190 kB / 0.4945 GB, free: 5.859 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1428, allocations: 0 / 0.4945 GB, free: 5.859 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004927/0.1433, allocations: 143.4 kB / 0.4946 GB, free: 5.719 MB / 382.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.0009964/0.1443, allocations: 1.005 MB / 0.4956 GB, free: 4.688 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006936/0.145, allocations: 348.1 kB / 0.4959 GB, free: 4.348 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.145, allocations: 4.75 kB / 0.496 GB, free: 4.344 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000212/0.1452, allocations: 119.9 kB / 0.4961 GB, free: 4.227 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004956/0.1457, allocations: 66.14 kB / 0.4961 GB, free: 4.164 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00399/0.1497, allocations: 3.023 MB / 0.4991 GB, free: 1.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004072/0.1502, allocations: 0.7915 MB / 0.4999 GB, free: 208 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.1503, allocations: 38.95 kB / 0.4999 GB, free: 172 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.1505, allocations: 119.3 kB / 0.5 GB, free: 52 kB / 382.1 MB Notification: Performance of SimCode: time 5.52e-07/0.1505, allocations: 0 / 0.5 GB, free: 52 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2271/0.3776, allocations: 6.472 MB / 0.5063 GB, free: 21.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/8.352, allocations: 9.312 kB / 0.5063 GB, free: 21.88 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)