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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1110
RA = 343.308, Dec = -12.5416
tmin = 527040001, tmax = 527299201
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='570906', job_status='RUN', time_executed='2021-09-29 01:41:41.994151', time_epoch_executed='1632904901.99' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570906

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570906/ft1_4FGL_J2253.2-1232_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570906/ft2_4FGL_J2253.2-1232_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570906/ft1_4FGL_J2253.2-1232_daily_bin1110.fits outfile=/scratch/kocevski/570906/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1110.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.00
user 5.72
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570906/ft1_filtered_4FGL_J2253.2-1232_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/570906/ft2_4FGL_J2253.2-1232_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/570906/ltcube_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.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/570906/ft2_4FGL_J2253.2-1232_daily_bin1110.fits
.....................!
real 12.04
user 11.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570906/ft1_filtered_4FGL_J2253.2-1232_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/570906/ft2_4FGL_J2253.2-1232_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/570906/ltcube_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.fits outfile=/scratch/kocevski/570906/expmap_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.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/570906/ltcube_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.fits
.....................!
real 190.44
user 185.30
sys 4.82

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/570906/ft1_filtered_4FGL_J2253.2-1232_daily_bin1110.fits scfile=/scratch/kocevski/570906/ft2_4FGL_J2253.2-1232_daily_bin1110.fits outfile=/scratch/kocevski/570906/cmap_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/570906/ft1_filtered_4FGL_J2253.2-1232_daily_bin1110.fits scfile=/scratch/kocevski/570906/ft2_4FGL_J2253.2-1232_daily_bin1110.fits outfile=/scratch/kocevski/570906/cmap_HighResolution_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/570906/ft1_filtered_4FGL_J2253.2-1232_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/570906/ft2_4FGL_J2253.2-1232_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/570906/Model_4FGL_J2253.2-1232_daily_bin1110.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/570906/ft1_filtered_4FGL_J2253.2-1232_daily_bin1110.fits.....................!
real 52.33
user 50.98
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/570906/ft1_filtered_4FGL_J2253.2-1232_daily_bin1110.fits', '/scratch/kocevski/570906/ft2_4FGL_J2253.2-1232_daily_bin1110.fits', expMap='/scratch/kocevski/570906/expmap_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.fits', expCube='/scratch/kocevski/570906/ltcube_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/570906/Model_4FGL_J2253.2-1232_daily_bin1110.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/570906/ft1_filtered_4FGL_J2253.2-1232_daily_bin1110.fits
Spacecraft file(s): /scratch/kocevski/570906/ft2_4FGL_J2253.2-1232_daily_bin1110.fits
Exposure map: /scratch/kocevski/570906/expmap_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.fits
Exposure cube: /scratch/kocevski/570906/ltcube_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/570906/Model_4FGL_J2253.2-1232_daily_bin1110.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) = 5036.39025723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.335       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .57199E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32252       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.169       1.0000         .10000E-03   10000.    
     8 'norm      '    .34446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    228.67       1.0000         .10000E-03   10000.    
    10 'norm      '    .25313E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3611       1.0000         .10000E-03   10000.    
    14 'norm      '    40.338       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11397E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .15117       1.0000         .10000E-03   10000.    
    19 'norm      '    33.307       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22625E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4435       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12095E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .59215       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2823       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5036.017     FROM MIGRAD    STATUS=FAILED      1014 CALLS     3406 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.336        14.111        .81202E-04   -.61882E-04
   2  Prefactor     .10000E-03    28.353        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.2356        .10317E-02** at limit **
   4  Prefactor     .10000E-03    45.526        .18142E-02** at limit **
   5  norm          .10063E-03    9.6650        .30711E-01** at limit **
   6  Prefactor     .29283        137.27        .20856        .96187E-04
   7  Prefactor     19.172        21.717        .91479E-04    .17150E-04
   8  norm          .34487        1.0937        .10261E-02    .47201E-02
   9  Prefactor     228.72        38.854        .13380E-03   -.43335E-05
  10  norm          .10000E-03    17.544        .13090E-02** at limit **
  11  Prefactor     .10000E-03    31.704        .18142E-02** at limit **
  12  Prefactor     .10000E-03    6.2354        .17294E-02** at limit **
  13  Prefactor     5.3652        19.343        .17357E-03    .11463E-04
  14  norm          40.369        30.039        .63112E-04    .25475E-03
  15  Prefactor     .10004E-03    494.70        .18142E-02** at limit **
  16  Prefactor     .10000E-03    16.858        .18142E-02** at limit **
  17  Prefactor     .10000E-03    13.053        .18142E-02** at limit **
  18  norm          .14495        47.496        .19397E-02    .10321E-02
  19  norm          33.348        24.013        .69433E-04    .61528E-03
  20  Prefactor     .10000E-03    149.75        .18142E-02** at limit **
  21  Prefactor     8.4020        59.318        .13796E-03    .69221E-05
  22  Prefactor     .10000E-03    90.635        .18142E-02** at limit **
  23  Normalizat    .59212        .32291        .42492E-03   -.75984E-04
  24  Prefactor     1.2823        .22564        .21919E-03   -.26286E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5036.017     FROM SIMPLEX   STATUS=UNCHANGED   1281 CALLS     4687 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.336        14.111        .54055E-06   -1.4721    
   2  Prefactor     .10000E-03    28.353        .70478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2356        .11305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.526        .11684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10063E-03    9.6650        .11977E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .29283        137.27        .57967E-06   -1.5600    
   7  Prefactor     19.172        21.717        .53870E-06   -1.4832    
   8  norm          .34487        1.0937        .56612E-06   -1.5591    
   9  Prefactor     228.72        38.854        .46074E-06   -1.2672    
  10  norm          .10000E-03    17.544        .86425E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.704        .53356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2354        .35871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3652        19.343        .55326E-06   -1.5245    
  14  norm          40.369        30.039        .52414E-06   -1.4436    
  15  Prefactor     .10004E-03    494.70        .41175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.858        .65862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.053        .15954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .14495        47.496        .56671E-06   -1.5632    
  19  norm          33.348        24.013        .52828E-06   -1.4552    
  20  Prefactor     .10000E-03    149.75        .36528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4020        59.318        .54955E-06   -1.5128    
  22  Prefactor     .10000E-03    90.635        .38364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .59212        .32291        .39338E-06   -1.0832    
  24  Prefactor     1.2823        .22564        .30430E-06   -.83836    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5036.017     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     5088 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.336        14.106        .32481E-05   -.84003E-05
   2  Prefactor     .10000E-03    28.353        .36285E-03** at limit **
   3  Prefactor     .10000E-03    2.2358        .20633E-03** at limit **
   4  Prefactor     .10000E-03    45.529        .36285E-03** at limit **
   5  norm          .10059E-03    5.1258        .44292E-01** at limit **
   6  Prefactor     .29254        144.91        .20102        .10143E-03
   7  Prefactor     19.172        21.713        .36592E-05    .12428E-05
   8  norm          .34486        1.0911        .20522E-03   -.25926E-04
   9  Prefactor     228.72        38.686        .53519E-05   -.18693E-04
  10  norm          .10000E-03    17.576        .26180E-03** at limit **
  11  Prefactor     .10000E-03    31.704        .36285E-03** at limit **
  12  Prefactor     .10000E-03    6.2357        .34588E-03** at limit **
  13  Prefactor     5.3651        19.339        .69427E-05   -.32750E-06
  14  norm          40.369        29.980        .12622E-04    .94570E-04
  15  Prefactor     .10000E-03    494.80        .36285E-03** at limit **
  16  Prefactor     .10000E-03    16.858        .36285E-03** at limit **
  17  Prefactor     .10000E-03    13.054        .36285E-03** at limit **
  18  norm          .14438        41.357        .77587E-04    .52017E-04
  19  norm          33.349        22.352        .13887E-04    .42473E-03
  20  Prefactor     .10000E-03    149.75        .36285E-03** at limit **
  21  Prefactor     8.4017        59.335        .55184E-05    .20602E-05
  22  Prefactor     .10000E-03    90.635        .36285E-03** at limit **
  23  Normalizat    .59212        .32255        .16997E-04    .10555E-03
  24  Prefactor     1.2823        .22556        .43839E-04    .17821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100593
  Prefactor  = 0.29254
  Prefactor  = 19.1718
  norm       = 0.344862
  Prefactor  = 228.724
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.36508
  norm       = 40.3692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.144382
  norm       = 33.3492
  Prefactor  = 0.0001
  Prefactor  = 8.40173
  Prefactor  = 0.0001
  Normalizat = 0.592119
  Prefactor  = 1.28225
 **********
 **   18 **HESSE 
 **********

 FCN=   5036.017     FROM HESSE     STATUS=OK           395 CALLS     5483 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.336        14.112        .64962E-06   -1.4721    
   2  Prefactor     .10000E-03    28.353        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2358        .41266E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.529        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10059E-03    6.9262        .37150E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .29254        142.18        .20377       -1.5600    
   7  Prefactor     19.172        21.744        .73183E-06   -1.4832    
   8  norm          .34486        1.0905        .82089E-05   -1.5591    
   9  Prefactor     228.72        38.683        .10704E-05   -1.2672    
  10  norm          .10000E-03    17.578        .52360E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.704        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2357        .69175E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3651        19.345        .13885E-05   -1.5245    
  14  norm          40.369        29.983        .25245E-05   -1.4436    
  15  Prefactor     .10000E-03    494.81        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.858        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.054        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .14438        41.145        .31035E-05   -1.5632    
  19  norm          33.349        22.292        .27773E-05   -1.4552    
  20  Prefactor     .10000E-03    149.75        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4017        60.804        .11037E-05   -1.5128    
  22  Prefactor     .10000E-03    90.635        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .59212        .32289        .33994E-05   -1.0832    
  24  Prefactor     1.2823        .22573        .87677E-05   -.83836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0087e-09
Minuit parameter uncertainties:
  1  14.1138
  2  6.9137e-06
  3  9.06065e-07
  4  5.07037e-06
  5  0.00405502
  6  12.9273
  7  21.7532
  8  1.09059
  9  38.6876
  10  5.18025e-05
  11  1.62614e-05
  12  4.58802e-07
  13  19.3678
  14  29.9938
  15  0.00084211
  16  1.3876e-06
  17  4.00882e-06
  18  4.87634
  19  22.2972
  20  6.31602e-05
  21  45.2691
  22  2.84909e-05
  23  0.323924
  24  0.225905
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.626e-05  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.282e+00  2.259e-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:  5.921e-01  3.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
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/570906/likelihoodResults_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.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): 102
logL (Free Index) = 5036.0166693
delta logL = -0.000150187001964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5036.01651983
delta logL = -7.18499904906e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2504       1.0000          .0000       10.000    
     3 'Normalizat'    .59211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2823       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5036.017     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      284 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10396E-03    7.3022        .18142E-01** at limit **
   2  Index         3.1323        7.6246        .50000        .83098E-05
   3  Normalizat    .59212        .35402E-02    .42492E-03   -.56453E-05
   4  Prefactor     1.2823        .26171E-02    .21919E-03   -.14471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103958
  Index      = 3.13228
  Normalizat = 0.592118
  Prefactor  = 1.28225
 **********
 **   18 **HESSE 
 **********

 FCN=   5036.017     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10396E-03    135.79        .33816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1323        7.1964        .50000       -.38283    
   3  Normalizat    .59212        .15248E-01    .16997E-04   -1.0832    
   4  Prefactor     1.2823        .11272E-01    .87677E-05   -.83836    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.67848e-09
Minuit parameter uncertainties:
  1  0.0464689
  2  568.945
  3  0.0152482
  4  0.0112722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570906': 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) = 5036.01651968
delta logL = -5.68741597817e-07

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.040e-04  4.647e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  3.132e+00  5.689e+02  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.282e+00  1.127e-02  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:  5.921e-01  1.525e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 343.308 -12.542

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/570906/cmap_HighResolution_527040001_527299201_4FGL_J2253.2-1232_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', job_status='DONE', photon_flux_upper_limit='1.98e-07', time_completed='2021-09-29 01:53:30.380691', job_id='570906', GAL2='1.28', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632905610.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='-5.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1110' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:53:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 570906: <4FGL_J2253.2-1232_daily_bin1110> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1110> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:40:13 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:40:14 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:40:14 2021
Terminated at Wed Sep 29 01:53:30 2021
Results reported at Wed Sep 29 01:53:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1110 343.308 -12.5416 527040001 527299201 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 :                                   697.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            797 sec.

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

