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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1598
RA = 343.308, Dec = -12.5416
tmin = 653529601, tmax = 653788801
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='572809', job_status='RUN', time_executed='2021-09-29 01:46:08.629546', time_epoch_executed='1632905168.63' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572809/ft1_4FGL_J2253.2-1232_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572809/ft1_4FGL_J2253.2-1232_daily_bin1598.fits outfile=/scratch/kocevski/572809/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1598.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.33
user 5.04
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.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/572809/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1598.fits evtable="EVENTS" outfile="/scratch/kocevski/572809/ft1_filtered_4FGL_J2253.2-1232_daily_bin1598.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572809/ft1_filtered_4FGL_J2253.2-1232_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/572809/ltcube_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.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/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits
.....................!
real 11.82
user 11.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572809/ft1_filtered_4FGL_J2253.2-1232_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/572809/ltcube_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.fits outfile=/scratch/kocevski/572809/expmap_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.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/572809/ltcube_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.fits
.....................!
real 190.53
user 186.11
sys 4.10

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2253.2-1232 @ 343.308 -12.5416

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/572809/ft1_filtered_4FGL_J2253.2-1232_daily_bin1598.fits scfile=/scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits outfile=/scratch/kocevski/572809/cmap_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.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=343.308 yref=-12.5416 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572809/ft1_filtered_4FGL_J2253.2-1232_daily_bin1598.fits scfile=/scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits outfile=/scratch/kocevski/572809/cmap_HighResolution_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.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=343.308 yref=-12.5416 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/572809/ft1_filtered_4FGL_J2253.2-1232_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572809/Model_4FGL_J2253.2-1232_daily_bin1598.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/572809/ft1_filtered_4FGL_J2253.2-1232_daily_bin1598.fits.....................!
real 67.52
user 66.24
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/572809/ft1_filtered_4FGL_J2253.2-1232_daily_bin1598.fits', '/scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits', expMap='/scratch/kocevski/572809/expmap_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.fits', expCube='/scratch/kocevski/572809/ltcube_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/572809/Model_4FGL_J2253.2-1232_daily_bin1598.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.2-1232'

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  7.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/572809/ft1_filtered_4FGL_J2253.2-1232_daily_bin1598.fits
Spacecraft file(s): /scratch/kocevski/572809/ft2_4FGL_J2253.2-1232_daily_bin1598.fits
Exposure map: /scratch/kocevski/572809/expmap_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.fits
Exposure cube: /scratch/kocevski/572809/ltcube_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/572809/Model_4FGL_J2253.2-1232_daily_bin1598.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) = 8029.52448734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8356       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.092       1.0000         .10000E-03   10000.    
     5 'norm      '    .48800       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7730       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4550       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.556       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.801       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18682E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.779       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1056       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14987E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99613       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8029.364     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2833 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.424        .12276E-06** at limit **
   2  Prefactor     77.388        71.871       -.52384E-05   -.15837E-03
   3  Prefactor     2.8353        2.7194       -.34935E-08   -.14344E-03
   4  Prefactor     35.093        33.484        .11300E-05    .60501E-04
   5  norm          .48781        2.1017        .47028E-06   -.35912E-03
   6  Prefactor     .10000E-03    16.973        .85617E-07** at limit **
   7  Prefactor     6.7740        6.2314        .67389E-06   -.96250E-03
   8  norm          6.4550        1.3003        .19258E-07   -.10639E-03
   9  Prefactor     20.558        17.857       -.55218E-06   -.80796E-04
  10  norm          .10000E-03    .50200        .21731E-07** at limit **
  11  Prefactor     48.800        36.322        .93714E-06    .25666E-04
  12  Prefactor     .10000E-03    7.6748        .11074E-07** at limit **
  13  Prefactor     .10000E-03    5.7185       -.68030E-07** at limit **
  14  norm          15.778        12.978        .12155E-06   -.20504E-03
  15  Prefactor     9.2255        92.797       -.73073E-06   -.28401E-04
  16  Prefactor     .10000E-03    12.744       -.45800E-07** at limit **
  17  Prefactor     .10000E-03    7.0626        .21607E-06** at limit **
  18  norm          .10000E-03    .60074       -.14069E-07** at limit **
  19  norm          .10000E-03    1.6994        .31268E-08** at limit **
  20  Prefactor     .10000E-03    77.339        .47753E-07** at limit **
  21  Prefactor     .10000E-03    8.7328        .28750E-07** at limit **
  22  Prefactor     .10000E-03    31.828       -.49760E-07** at limit **
  23  Normalizat    .99593        .18309       -.16534E-06   -.81224E-04
  24  Prefactor     1.0803        .14136        .14566E-06   -.11007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 77.3884
  Prefactor  = 2.83528
  Prefactor  = 35.0931
  norm       = 0.487811
  Prefactor  = 0.0001
  Prefactor  = 6.77396
  norm       = 6.45502
  Prefactor  = 20.5578
  norm       = 0.0001
  Prefactor  = 48.8
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7782
  Prefactor  = 9.22547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.995926
  Prefactor  = 1.08033
 **********
 **   18 **HESSE 
 **********

 FCN=   8029.364     FROM HESSE     STATUS=OK           403 CALLS     3236 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     77.388        73.458        .45641E-04   -1.3946    
   3  Prefactor     2.8353        2.7057        .13929E-03   -1.5371    
   4  Prefactor     35.093        33.528        .67649E-04   -1.4522    
   5  norm          .48781        4.1843        .23820E-02   -1.5568    
   6  Prefactor     .10000E-03    16.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7740        9.1938        .77087E-03   -1.5187    
   8  norm          6.4550        1.3005        .43094E-04   -1.5200    
   9  Prefactor     20.558        16.820        .88343E-04   -1.4801    
  10  norm          .10000E-03    .61553        .10715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     48.800        36.088        .57403E-04   -1.4310    
  12  Prefactor     .10000E-03    7.7395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.865        .40926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.778        13.177        .50415E-03   -1.4913    
  15  Prefactor     9.2255        67.425        .13282E-03   -1.5100    
  16  Prefactor     .10000E-03    12.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.301        .38354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.1187        .13464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7034        .11401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    78.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99593        .21034        .28511E-03   -.93167    
  24  Prefactor     1.0803        .16182        .22207E-03   -.90098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77594e-08
Minuit parameter uncertainties:
  1  3.08454e-05
  2  73.5445
  3  2.70577
  4  33.5462
  5  2.85734
  6  5.46402e-06
  7  9.19574
  8  1.30054
  9  16.8238
  10  4.67622e-07
  11  36.1043
  12  5.74761e-06
  13  0.000109169
  14  13.1791
  15  49.9603
  16  4.93087e-06
  17  0.000181058
  18  7.47312e-08
  19  7.94599e-08
  20  1.73043e-05
  21  7.34965e-07
  22  5.88769e-06
  23  0.210516
  24  0.161896
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  4.880e+01  3.610e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.080e+00  1.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.959e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.95
Ra Dec: 343.308 -12.542
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 9.67e-08 +/- 7.15e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.80e-05

TS (Fixed Index): 3.95
Ra Dec: 343.308 -12.542
Photon Flux Upper Limit: 1.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/572809/likelihoodResults_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.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) = 8027.4814623
delta logL = 1.88276696967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8027.41310175
delta logL = 1.95112751908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2328       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1088       1.0000          .0000       10.000    
     3 'Normalizat'    .90865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1320       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8027.413     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      266 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2258        35.800        .40198E-02    .30867E-03
   2  Index         4.1094        2.2309        .83957E-01    .21546E-03
   3  Normalizat    .90873        .70383E-01    .67015E-01    .18941E-04
   4  Prefactor     1.1320        .55665E-01    .36481E-01    .87710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.22583
  Index      = 4.10943
  Normalizat = 0.908729
  Prefactor  = 1.132
 **********
 **   18 **HESSE 
 **********

 FCN=   8027.413     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      299 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2258        50.956        .87245E-04   -1.5209    
   2  Index         4.1094        2.8234        .34217E-02   -.17907    
   3  Normalizat    .90873        .19277        .29646E-03   -.96154    
   4  Prefactor     1.1320        .15595        .10877E-02   -.88450    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08455e-07
Minuit parameter uncertainties:
  1  35.6639
  2  3.00719
  3  0.192921
  4  0.156008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572809': 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): 102
logL (Free Index) = 8027.41310117
delta logL = 1.9511280972

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  6.226e+00  3.566e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  4.109e+00  3.007e+00  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.132e+00  1.560e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.087e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.39
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 4.11 +/- 3.01
Photon Flux (Free Index): 1.61e-07 +/- 6.88e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.65e-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/572809/cmap_HighResolution_653529601_653788801_4FGL_J2253.2-1232_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='9.67e-08', energy_flux2='2.36e-05', photon_flux_error='7.15e-08', dlogl='1.95e+00', energy_flux='2.43e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-29 01:59:06.424608', photon_index_error2='3.01', photon_index2='4.11', ts='3.95', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.98e-07', energy_flux_error2='1.65e-05', EG='1.00', time_epoch_completed='1632905946.42', return_code='0', job_id='572809', GAL2='1.13', EG2='0.91', return_code2='102', energy_flux_error='1.80e-05', photon_flux_error2='6.88e-08', ts2='8.39', photon_index='2.65' WHERE bin_id='1598' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:59:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 572809: <4FGL_J2253.2-1232_daily_bin1598> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1598> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:45:26 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:45:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:45:27 2021
Terminated at Wed Sep 29 01:59:07 2021
Results reported at Wed Sep 29 01:59:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1598 343.308 -12.5416 653529601 653788801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.2-1232 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   763.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

