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: translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005757/0.005762, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001085/0.001085, allocations: 185.5 kB / 16.67 MB, free: 5.938 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09225/0.09225, allocations: 22.33 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 67.91 kB / 437 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1128, allocations: 54.96 MB / 492 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004298/0.1171, allocations: 3.16 MB / 495.2 MB, free: 1.582 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.1188, allocations: 0.892 MB / 496 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002264/0.1191, allocations: 11.94 kB / 496.1 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002368/0.1193, allocations: 63.31 kB / 496.1 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003021/0.1196, allocations: 111 kB / 496.2 MB, free: 0.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000435/0.1201, allocations: 187.7 kB / 496.4 MB, free: 324 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005265/0.1206, allocations: 474.9 kB / 496.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003658/0.121, allocations: 210.1 kB / 497.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.1212, allocations: 167.3 kB / 497.2 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002366/0.1214, allocations: 187 kB / 497.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.308e-05/0.1215, allocations: 36 kB / 497.5 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.762e-05/0.1215, allocations: 40 kB / 497.5 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.58e-05/0.1216, allocations: 91.69 kB / 497.6 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.1218, allocations: 198.9 kB / 497.8 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004588/0.1223, allocations: 473.9 kB / 498.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1223, allocations: 0 / 498.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1223, allocations: 3.938 kB / 498.3 MB, free: 14.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1223, allocations: 4 kB / 498.3 MB, free: 14.46 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.0009577/0.1232, allocations: 0.6935 MB / 498.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.1233, allocations: 8.031 kB / 499 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.303e-05/0.1234, allocations: 52.66 kB / 499 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.1239, allocations: 331.5 kB / 499.3 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.1239, allocations: 21.38 kB / 499.4 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.238e-05/0.124, allocations: 48.31 kB / 499.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006215/0.1246, allocations: 372.2 kB / 499.8 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.1246, allocations: 0 / 499.8 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.1247, allocations: 19.98 kB / 499.8 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.1247, allocations: 8 kB / 499.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004984/0.1252, allocations: 255.8 kB / 0.4883 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.1269, allocations: 1.299 MB / 0.4896 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00062/0.1275, allocations: 291.8 kB / 0.4899 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.1278, allocations: 125.2 kB / 0.49 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.1278, allocations: 8.234 kB / 0.49 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.1278, allocations: 34.8 kB / 0.49 GB, free: 10.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.352e-06/0.1278, allocations: 0 / 0.49 GB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006746/0.1285, allocations: 329.5 kB / 0.4903 GB, free: 10.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/0.1286, allocations: 81.11 kB / 0.4904 GB, free: 10.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002408/0.1288, allocations: 275 kB / 0.4907 GB, free: 10.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.1289, allocations: 29.7 kB / 0.4907 GB, free: 9.992 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.129, allocations: 220.4 kB / 0.4909 GB, free: 9.773 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.418e-05/0.1291, allocations: 99.16 kB / 0.491 GB, free: 9.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.933e-05/0.1292, allocations: 53.7 kB / 0.4911 GB, free: 9.617 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1293, allocations: 338.8 kB / 0.4914 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.1295, allocations: 92.67 kB / 0.4915 GB, free: 9.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002141/0.1297, allocations: 146.8 kB / 0.4916 GB, free: 9.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004621/0.1302, allocations: 250.6 kB / 0.4919 GB, free: 8.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1302, allocations: 0 / 0.4919 GB, free: 8.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005019/0.1307, allocations: 313.2 kB / 0.4922 GB, free: 8.438 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.1307, allocations: 4 kB / 0.4922 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1307, allocations: 0 / 0.4922 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1307, allocations: 7.984 kB / 0.4922 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.131, allocations: 71.91 kB / 0.4922 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.131, allocations: 0 / 0.4922 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.1312, allocations: 35.77 kB / 0.4923 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.1312, allocations: 15.94 kB / 0.4923 GB, free: 8.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002232/0.1314, allocations: 184.3 kB / 0.4925 GB, free: 8.121 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000172/0.1316, allocations: 139.7 kB / 0.4926 GB, free: 7.961 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003075/0.1319, allocations: 218.2 kB / 0.4928 GB, free: 7.727 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.432e-06/0.132, allocations: 0 / 0.4928 GB, free: 7.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.000417/0.1324, allocations: 277.2 kB / 0.4931 GB, free: 7.449 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/0.1324, allocations: 8.188 kB / 0.4931 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-06/0.1324, allocations: 4 kB / 0.4931 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.837e-06/0.1324, allocations: 4 kB / 0.4931 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.1326, allocations: 67.91 kB / 0.4931 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.085e-06/0.1327, allocations: 0 / 0.4931 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.1328, allocations: 19.89 kB / 0.4932 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.599e-05/0.1328, allocations: 19.92 kB / 0.4932 GB, free: 7.328 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.0001177/0.133, allocations: 204.9 kB / 0.4934 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.947e-05/0.133, allocations: 31.75 kB / 0.4934 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005272/0.1336, allocations: 277.4 kB / 0.4937 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1336, allocations: 4 kB / 0.4937 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.1336, allocations: 0 / 0.4937 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.1336, allocations: 0 / 0.4937 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004199/0.134, allocations: 401.2 kB / 0.4941 GB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.134, allocations: 4 kB / 0.4941 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002833/0.1343, allocations: 63.95 kB / 0.4941 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1343, allocations: 3.938 kB / 0.4941 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.1344, allocations: 12 kB / 0.4941 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1344, allocations: 0 / 0.4941 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1344, allocations: 0 / 0.4941 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007306/0.1351, allocations: 467.4 kB / 0.4946 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.1352, allocations: 124.8 kB / 0.4947 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.1353, allocations: 8 kB / 0.4947 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.1355, allocations: 19.98 kB / 0.4947 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.1355, allocations: 11.97 kB / 0.4947 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.1356, allocations: 12 kB / 0.4948 GB, free: 5.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001846/0.1358, allocations: 186 kB / 0.4949 GB, free: 5.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1358, allocations: 0 / 0.4949 GB, free: 5.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004653/0.1362, allocations: 155.5 kB / 0.4951 GB, free: 5.277 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.0001454/0.1364, allocations: 107.2 kB / 0.4952 GB, free: 5.164 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006886/0.1371, allocations: 348.4 kB / 0.4955 GB, free: 4.824 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1371, allocations: 0 / 0.4955 GB, free: 4.824 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002035/0.1373, allocations: 115.9 kB / 0.4956 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.1378, allocations: 76.22 kB / 0.4957 GB, free: 4.637 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.139, allocations: 0.7691 MB / 0.4964 GB, free: 3.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.1393, allocations: 0.7876 MB / 0.4972 GB, free: 3.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.1395, allocations: 38.97 kB / 0.4973 GB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.902e-05/0.1396, allocations: 27.44 kB / 0.4973 GB, free: 2.965 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1396, allocations: 0 / 0.4973 GB, free: 2.965 MB / 382.1 MB Notification: Performance of Templates: time 0.2327/0.3723, allocations: 3.156 MB / 0.5004 GB, free: 21.93 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.makefile (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 & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)