/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 113 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 = 7625
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1120
RA = 340.865, Dec = -25.7363
tmin = 529632001, tmax = 529891201
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='437966', job_status='RUN', time_executed='2021-09-28 18:42:15.503645', time_epoch_executed='1632879735.5' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437966

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437966/ft1_4FGL_J2243.4-2544_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437966/ft1_4FGL_J2243.4-2544_daily_bin1120.fits outfile=/scratch/kocevski/437966/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1120.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=529632001.0 tmax=529891201.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.58
user 3.39
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.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/437966/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1120.fits evtable="EVENTS" outfile="/scratch/kocevski/437966/ft1_filtered_4FGL_J2243.4-2544_daily_bin1120.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437966/ft1_filtered_4FGL_J2243.4-2544_daily_bin1120.fits" evtable="EVENTS" scfile=/scratch/kocevski/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.fits sctable="SC_DATA" outfile=/scratch/kocevski/437966/ltcube_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.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/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.fits
.....................!
real 12.02
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437966/ft1_filtered_4FGL_J2243.4-2544_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/437966/ltcube_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.fits outfile=/scratch/kocevski/437966/expmap_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.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/437966/ltcube_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.fits
.....................!
real 190.14
user 185.68
sys 4.12

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/437966/ft1_filtered_4FGL_J2243.4-2544_daily_bin1120.fits scfile=/scratch/kocevski/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.fits outfile=/scratch/kocevski/437966/cmap_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437966/ft1_filtered_4FGL_J2243.4-2544_daily_bin1120.fits scfile=/scratch/kocevski/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.fits outfile=/scratch/kocevski/437966/cmap_HighResolution_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437966/ft1_filtered_4FGL_J2243.4-2544_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437966/Model_4FGL_J2243.4-2544_daily_bin1120.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/437966/ft1_filtered_4FGL_J2243.4-2544_daily_bin1120.fits.....................!
real 64.76
user 63.46
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437966/ft1_filtered_4FGL_J2243.4-2544_daily_bin1120.fits', '/scratch/kocevski/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.fits', expMap='/scratch/kocevski/437966/expmap_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.fits', expCube='/scratch/kocevski/437966/ltcube_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437966/Model_4FGL_J2243.4-2544_daily_bin1120.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/437966/ft1_filtered_4FGL_J2243.4-2544_daily_bin1120.fits
Spacecraft file(s): /scratch/kocevski/437966/ft2_4FGL_J2243.4-2544_daily_bin1120.fits
Exposure map: /scratch/kocevski/437966/expmap_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.fits
Exposure cube: /scratch/kocevski/437966/ltcube_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437966/Model_4FGL_J2243.4-2544_daily_bin1120.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) = 8789.46793276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    45.429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19432E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2553       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5775       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .61581       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11911E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.126       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0910       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.317       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19774E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1277       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88108       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0856       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.

 FCN=   8789.329     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2492 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4541        .90712E-02** at limit **
   2  Prefactor     .10003E-03    30.814        .90712E-02** at limit **
   3  norm          1.9486        .40349        .59442E-02    .21308E-03
   4  Prefactor     .10000E-03    4.3741        .90712E-02** at limit **
   5  Prefactor     16.490        14.110        .24657E-02    .13666E-03
   6  Prefactor     .10000E-03    1.9280        .90712E-02** at limit **
   7  Prefactor     .10006E-03    15.785        .90712E-02** at limit **
   8  norm          45.429        19.878        .14871E-02    .77992E-04
   9  Prefactor     .10000E-03    4.3549        .90712E-02** at limit **
  10  Prefactor     .10001E-03    4.0745        .90712E-01** at limit **
  11  norm          1.2552        .95301        .99663E-02    .70504E-03
  12  norm          2.5774        1.4817        .63553E-02   -.29146E-04
  13  Prefactor     .10010E-03    13.831        .90712E-02** at limit **
  14  Prefactor     .61638        4.4550        .62672E-01    .61656E-03
  15  norm          .10000E-03    .98220        .90712E-02** at limit **
  16  Prefactor     .10000E-03    14.617        .90712E-02** at limit **
  17  Prefactor     14.122        9.0258        .26642E-02    .44617E-03
  18  norm          1.0910        .69397        .10179E-01    .30321E-02
  19  Prefactor     .10007E-03    22.381        .90712E-02** at limit **
  20  Prefactor     23.317        13.837        .20738E-02    .27070E-03
  21  Prefactor     .10004E-03    4.4733        .69490E-01** at limit **
  22  norm          .10000E-03    1.4645        .90712E-02** at limit **
  23  Prefactor     6.1266        30.321        .40546E-02    .45822E-03
  24  Normalizat    .88110        .16114        .44659E-01    .28204E-03
  25  Prefactor     1.0856        .14873        .38161E-01    .32947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 1.94858
  Prefactor  = 0.0001
  Prefactor  = 16.4902
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  norm       = 45.4291
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 1.25525
  norm       = 2.5774
  Prefactor  = 0.000100102
  Prefactor  = 0.61638
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 14.122
  norm       = 1.091
  Prefactor  = 0.000100075
  Prefactor  = 23.3168
  Prefactor  = 0.000100043
  norm       = 0.0001
  Prefactor  = 6.12659
  Normalizat = 0.881104
  Prefactor  = 1.08559
 **********
 **   18 **HESSE 
 **********

 FCN=   8789.329     FROM HESSE     STATUS=OK           425 CALLS     2917 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    30.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9486        .40365        .26267E-04   -1.5429    
   4  Prefactor     .10000E-03    4.4497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.490        14.110        .98628E-04   -1.4896    
   6  Prefactor     .10000E-03    1.9404        .12711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10006E-03    15.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          45.429        19.869        .59485E-04   -1.4359    
   9  Prefactor     .10000E-03    4.3601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    21.062        .36156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2552        .93637        .76133E-04   -1.5484    
  12  norm          2.5774        1.4783        .83878E-04   -1.5387    
  13  Prefactor     .10010E-03    13.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .61638        11.460        .37548E-02   -1.5551    
  15  norm          .10000E-03    .98814        .90658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.122        9.1139        .10657E-03   -1.4956    
  18  norm          1.0910        .70531        .45838E-04   -1.5499    
  19  Prefactor     .10007E-03    22.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.317        13.840        .82952E-04   -1.4742    
  21  Prefactor     .10004E-03    15.470        .35214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5221        .22127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.1266        30.310        .16218E-03   -1.5213    
  24  Normalizat    .88110        .18681        .26649E-03   -.97127    
  25  Prefactor     1.0856        .17418        .23364E-03   -.89928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15156e-08
Minuit parameter uncertainties:
  1  9.03071e-06
  2  0.00204084
  3  0.40365
  4  1.34595e-06
  5  14.113
  6  3.01438e-06
  7  0.00191168
  8  19.8715
  9  1.96053e-05
  10  0.00106587
  11  0.936381
  12  1.47834
  13  0.00238083
  14  5.31617
  15  8.18923e-06
  16  0.000390384
  17  9.11475
  18  0.705318
  19  0.00258717
  20  13.8422
  21  0.00162313
  22  4.09582e-06
  23  27.2762
  24  0.186949
  25  0.174267
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.577e+00  1.478e+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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.086e+00  1.743e-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.811e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.22
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 9.10e-06

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) = 8789.26846904
delta logL = 0.060613818614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8789.26463492
delta logL = 0.064447937064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7964       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8270       1.0000          .0000       5.0000    
     3 'Normalizat'    .88442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0838       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=   8789.265     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      258 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7964        1.6801        .87765E-04    .92245E-03
   2  alpha         1.8270        .47118        .14585E-01    .38253E-04
   3  Normalizat    .88442        .17643        .26606E-03   -.22220E-04
   4  Prefactor     1.0838        .17076        .23381E-03   -.29953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.79643
  alpha      = 1.82705
  Normalizat = 0.884422
  Prefactor  = 1.08383
 **********
 **   18 **HESSE 
 **********

 FCN=   8789.265     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7964        1.6663        .17553E-04   -1.5374    
   2  alpha         1.8270        .46737        .58339E-03   -.27254    
   3  Normalizat    .88442        .17661        .10642E-04   -.97010    
   4  Prefactor     1.0838        .17094        .93523E-05   -.89985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88455e-11
Minuit parameter uncertainties:
  1  1.6663
  2  0.470359
  3  0.17672
  4  0.171026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437966': 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) = 8789.26463491
delta logL = 0.0644479466591

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.796e+00  1.666e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.827e+00  4.704e-01  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.084e+00  1.710e-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.844e-01  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.35
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.83 +/- 0.47
Photon Flux (Free Index): 2.19e-08 +/- 1.51e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/437966/cmap_HighResolution_529632001_529891201_4FGL_J2243.4-2544_daily_bin1120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='1.89e-05', photon_flux_error='1.43e-08', dlogl='6.44e-02', energy_flux='1.59e-05', photon_flux2='2.19e-08', job_status='DONE', time_completed='2021-09-28 18:53:28.416584', photon_index_error2='0.47', photon_index2='1.83', ts='9.22', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='0.88', time_epoch_completed='1632880408.42', return_code='0', job_id='437966', GAL2='1.08', EG2='0.88', return_code2='0', energy_flux_error='9.10e-06', photon_flux_error2='1.51e-08', ts2='9.35', photon_index='2.00' WHERE bin_id='1120' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:53:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 437966: <4FGL_J2243.4-2544_daily_bin1120> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1120> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:14 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:40:15 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:15 2021
Terminated at Tue Sep 28 18:53:29 2021
Results reported at Tue Sep 28 18:53:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1120 340.865 -25.7363 529632001 529891201 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 :                                   671.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

