/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 55 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7627
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1167
RA = 340.865, Dec = -25.7363
tmin = 541814401, tmax = 542073601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='438034', job_status='RUN', time_executed='2021-09-28 18:41:25.225947', time_epoch_executed='1632879685.23' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438034

Creating custom pfile directory:
/scratch/kocevski/438034/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=541814401.0 && nMetStart<542073601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=541814401.0 && nMetStart<542073601.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438034/ft1_4FGL_J2243.4-2544_daily_bin1167.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=541814401.0 && nMetStart<542073601.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438034/ft1_4FGL_J2243.4-2544_daily_bin1167.fits outfile=/scratch/kocevski/438034/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1167.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=541814401.0 tmax=542073601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.66
user 3.43
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/438034/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1167.fits evtable="EVENTS" outfile="/scratch/kocevski/438034/ft1_filtered_4FGL_J2243.4-2544_daily_bin1167.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438034/ft1_filtered_4FGL_J2243.4-2544_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/438034/ltcube_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits
.....................!
real 11.96
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438034/ft1_filtered_4FGL_J2243.4-2544_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/438034/ltcube_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits outfile=/scratch/kocevski/438034/expmap_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/438034/ltcube_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits
.....................!
real 190.80
user 185.43
sys 4.76

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.4-2544 @ 340.865 -25.7363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/438034/ft1_filtered_4FGL_J2243.4-2544_daily_bin1167.fits scfile=/scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits outfile=/scratch/kocevski/438034/cmap_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.865 yref=-25.7363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438034/ft1_filtered_4FGL_J2243.4-2544_daily_bin1167.fits scfile=/scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits outfile=/scratch/kocevski/438034/cmap_HighResolution_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.865 yref=-25.7363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438034/ft1_filtered_4FGL_J2243.4-2544_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438034/Model_4FGL_J2243.4-2544_daily_bin1167.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/438034/ft1_filtered_4FGL_J2243.4-2544_daily_bin1167.fits.....................!
real 43.23
user 41.83
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438034/ft1_filtered_4FGL_J2243.4-2544_daily_bin1167.fits', '/scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits', expMap='/scratch/kocevski/438034/expmap_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits', expCube='/scratch/kocevski/438034/ltcube_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438034/Model_4FGL_J2243.4-2544_daily_bin1167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.4-2544'

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.477e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/438034/ft1_filtered_4FGL_J2243.4-2544_daily_bin1167.fits
Spacecraft file(s): /scratch/kocevski/438034/ft2_4FGL_J2243.4-2544_daily_bin1167.fits
Exposure map: /scratch/kocevski/438034/expmap_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits
Exposure cube: /scratch/kocevski/438034/ltcube_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438034/Model_4FGL_J2243.4-2544_daily_bin1167.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4821.70441943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4821.69213543

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .76305       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1917       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9474       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9230       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.263       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.798       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2554       1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11375E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13647E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9657       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.654       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    86.058       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85320       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2922       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4821.692     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2866 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.412       -.24043E-06** at limit **
   2  Prefactor     .10000E-03    43.741       -.27570E-06** at limit **
   3  norm          .76306        .44559        .17549E-07    .22550E-03
   4  Prefactor     3.1909        10.092        .29650E-05   -.13038E-03
   5  Prefactor     .10000E-03    25.468       -.10704E-06** at limit **
   6  Prefactor     1.9523        16.177        .85840E-05   -.16750E-03
   7  Prefactor     .10000E-03    50.610        .63435E-06** at limit **
   8  norm          4.9250        33.247        .22823E-06   -.28536E-05
   9  Prefactor     22.265        26.823       -.56564E-06   -.15609E-04
  10  Prefactor     29.802        22.072        .63343E-06    .13995E-04
  11  norm          1.2552        1.0670       -.11028E-08   -.28172E-03
  12  norm          .10000E-03    .86551        .37413E-07** at limit **
  13  Prefactor     .10000E-03    42.828       -.98653E-07** at limit **
  14  Prefactor     .10000E-03    25.875       -.58600E-06** at limit **
  15  norm          .10000E-03    2.8995       -.12118E-05** at limit **
  16  Prefactor     .10000E-03    7.1287       -.94040E-07** at limit **
  17  Prefactor     .10000E-03    14.487       -.27342E-06** at limit **
  18  norm          1.9667        .85054       -.28360E-07   -.13846E-02
  19  Prefactor     .10000E-03    33.873       -.46977E-06** at limit **
  20  Prefactor     .10000E-03    4.8360       -.20931E-07** at limit **
  21  Prefactor     14.661        12.346        .10403E-06   -.15503E-03
  22  norm          .10000E-03    1.1080        .33035E-06** at limit **
  23  Prefactor     86.076        57.664        .14262E-06    .67897E-04
  24  Normalizat    .85257        .24050       -.53117E-05   -.30486E-03
  25  Prefactor     1.2927        .20734        .22455E-05   -.88308E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.76306
  Prefactor  = 3.19093
  Prefactor  = 0.0001
  Prefactor  = 1.95235
  Prefactor  = 0.000100001
  norm       = 4.92497
  Prefactor  = 22.265
  Prefactor  = 29.8016
  norm       = 1.25517
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6608
  norm       = 0.0001
  Prefactor  = 86.0755
  Normalizat = 0.852568
  Prefactor  = 1.29272
 **********
 **   18 **HESSE 
 **********

 FCN=   4821.692     FROM HESSE     STATUS=OK           421 CALLS     3287 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .76306        .44372        .34282E-04   -1.5533    
   4  Prefactor     3.1909        10.212        .11341E-02   -1.5351    
   5  Prefactor     .10000E-03    25.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9523        17.037        .14871E-02   -1.5429    
   7  Prefactor     .10000E-03    50.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9250        33.237        .18127E-03   -1.5264    
   9  Prefactor     22.265        26.873        .84890E-04   -1.4764    
  10  Prefactor     29.802        22.168        .73397E-04   -1.4616    
  11  norm          1.2552        1.0699        .63966E-04   -1.5484    
  12  norm          .10000E-03    .86794        .63078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.7042        .22124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1347        .18102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9667        .84333        .38931E-04   -1.5427    
  19  Prefactor     .10000E-03    33.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8402        .14914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.661        12.390        .10463E-03   -1.4942    
  22  norm          .10000E-03    1.1214        .71758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     86.076        57.797        .43306E-04   -1.3850    
  24  Normalizat    .85257        .28494        .30779E-03   -.98147    
  25  Prefactor     1.2927        .25148        .23360E-03   -.83524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13701e-09
Minuit parameter uncertainties:
  1  4.50614e-05
  2  7.04945e-05
  3  0.443726
  4  10.2174
  5  0.000197741
  6  11.5387
  7  0.000397467
  8  25.6086
  9  26.8877
  10  22.1744
  11  1.0699
  12  2.87605e-06
  13  0.000233108
  14  0.000327515
  15  9.01039e-05
  16  8.0196e-06
  17  0.000119075
  18  0.843335
  19  0.000135296
  20  4.13825e-06
  21  12.3922
  22  2.62104e-05
  23  57.8345
  24  0.285446
  25  0.251719
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 4821.69212874

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  2.876e-06  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.293e+00  2.517e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.526e-01  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 4.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438034/likelihoodResults_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4821.6921291
delta logL = -3.63483195542e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4821.6921287
delta logL = 3.93556547351e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9906       1.0000          .0000       5.0000    
     3 'Normalizat'    .85259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2927       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4821.692     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .88362        .63141E-03** at limit **
   2  alpha         1.8119        2.7250        .16915E-01    .51753E-07
   3  Normalizat    .85258        .26958        .30780E-03    .61941E-04
   4  Prefactor     1.2927        .24774        .23359E-03    .86727E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.8119
  Normalizat = 0.852575
  Prefactor  = 1.29271
 **********
 **   18 **HESSE 
 **********

 FCN=   4821.692     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .88183        .12628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8119        2.6310        .67659E-03   -.27884    
   3  Normalizat    .85258        .26984        .12312E-04   -.98147    
   4  Prefactor     1.2927        .24798        .46719E-04   -.83524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.105e-11
Minuit parameter uncertainties:
  1  3.50411e-06
  2  135.653
  3  0.270265
  4  0.248203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438034': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4821.69212783
delta logL = 9.06664354261e-07

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  3.504e-06  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.812e+00  1.357e+02  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.293e+00  2.482e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.526e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.865 -25.736

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/438034/cmap_HighResolution_541814401_542073601_4FGL_J2243.4-2544_daily_bin1167.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/438034

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-05', job_status='DONE', photon_flux_upper_limit='4.58e-08', time_completed='2021-09-28 18:50:56.547945', job_id='438034', GAL2='1.29', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632880256.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='9.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1167' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:50:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 438034: <4FGL_J2243.4-2544_daily_bin1167> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:20 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:40:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:40:21 2021
Terminated at Tue Sep 28 18:50:56 2021
Results reported at Tue Sep 28 18:50:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1167 340.865 -25.7363 541814401 542073601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.4-2544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            636 sec.

The output (if any) is above this job summary.

