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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1249
RA = 343.308, Dec = -12.5416
tmin = 563068801, tmax = 563328001
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='571116', job_status='RUN', time_executed='2021-09-29 01:40:55.984701', time_epoch_executed='1632904855.98' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571116/ft1_4FGL_J2253.2-1232_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571116/ft2_4FGL_J2253.2-1232_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571116/ft1_4FGL_J2253.2-1232_daily_bin1249.fits outfile=/scratch/kocevski/571116/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1249.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=563068801.0 tmax=563328001.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.52
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571116/ft2_4FGL_J2253.2-1232_daily_bin1249.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/571116/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/571116/ft1_filtered_4FGL_J2253.2-1232_daily_bin1249.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/571116/ft1_filtered_4FGL_J2253.2-1232_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/571116/ft2_4FGL_J2253.2-1232_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/571116/ltcube_563068801_563328001_4FGL_J2253.2-1232_daily_bin1249.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/571116/ft2_4FGL_J2253.2-1232_daily_bin1249.fits
.....................!
real 12.28
user 11.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571116/ft1_filtered_4FGL_J2253.2-1232_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/571116/ft2_4FGL_J2253.2-1232_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/571116/ltcube_563068801_563328001_4FGL_J2253.2-1232_daily_bin1249.fits outfile=/scratch/kocevski/571116/expmap_563068801_563328001_4FGL_J2253.2-1232_daily_bin1249.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/571116/ltcube_563068801_563328001_4FGL_J2253.2-1232_daily_bin1249.fits
.....................!
real 190.62
user 185.87
sys 4.37

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/571116/ft1_filtered_4FGL_J2253.2-1232_daily_bin1249.fits scfile=/scratch/kocevski/571116/ft2_4FGL_J2253.2-1232_daily_bin1249.fits outfile=/scratch/kocevski/571116/cmap_563068801_563328001_4FGL_J2253.2-1232_daily_bin1249.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571116/ft1_filtered_4FGL_J2253.2-1232_daily_bin1249.fits scfile=/scratch/kocevski/571116/ft2_4FGL_J2253.2-1232_daily_bin1249.fits outfile=/scratch/kocevski/571116/cmap_HighResolution_563068801_563328001_4FGL_J2253.2-1232_daily_bin1249.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571116/ft1_filtered_4FGL_J2253.2-1232_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/571116/ft2_4FGL_J2253.2-1232_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571116/Model_4FGL_J2253.2-1232_daily_bin1249.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/571116/ft1_filtered_4FGL_J2253.2-1232_daily_bin1249.fits.....................!
real 62.91
user 61.53
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5368       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .72854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0727       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.838       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11672E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.3034       1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.338       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .76849E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2177       1.0000         .10000E-03   10000.    
    14 'norm      '    12.398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.581       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.438       1.0000         .10000E-03   10000.    
    18 'norm      '    .93770E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    7.2145       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94884       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7341.137     FROM MIGRAD    STATUS=CONVERGED     72 CALLS     2278 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5355        1.0215       -.31241E-06   -.15714E-03
   2  Prefactor     .10013E-03    13.146       -.14722E-04** at limit **
   3  Prefactor     .10000E-03    .92412       -.16385E-06** at limit **
   4  Prefactor     .10003E-03    14.409        .28623E-04** at limit **
   5  norm          .72901        3.2290        .21880E-06    .51981E-03
   6  Prefactor     4.0712        1.2054       -.19077E-05    .37577E-03
   7  Prefactor     14.838        1.0078        .68199E-07   -.77353E-04
   8  norm          2.2539        .87126        .15670E-07   -.76854E-03
   9  Prefactor     .10008E-03    29.909       -.46482E-04** at limit **
  10  norm          8.3047        1.6083       -.68042E-07   -.11442E-02
  11  Prefactor     66.343        2.4864        .16292E-05   -.54045E-02
  12  Prefactor     .10000E-03    1.1280        .12309E-05** at limit **
  13  Prefactor     3.2177        1.0198       -.23640E-06   -.23922E-04
  14  norm          12.397        1.0020       -.41108E-08   -.41171E-04
  15  Prefactor     54.592        4.7811        .37175E-05   -.10846E-01
  16  Prefactor     .10000E-03    12.169        .17039E-05** at limit **
  17  Prefactor     12.445        1.7488       -.11895E-05    .66306E-03
  18  norm          .93599E-01    .84420       -.40552E-06   -.32906E-03
  19  norm          7.2149        5.4124        .27564E-05    .11765E-03
  20  Prefactor     .10002E-03    22.497       -.22082E-04** at limit **
  21  Prefactor     .10000E-03    4.6166       -.99754E-07** at limit **
  22  Prefactor     .10007E-03    15.713        .31717E-04** at limit **
  23  Normalizat    .94854        .19698       -.11478E-05   -.19624E-03
  24  Prefactor     .78598        .15049        .24145E-06   -.31603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.5355
  Prefactor  = 0.000100135
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  norm       = 0.729007
  Prefactor  = 4.07117
  Prefactor  = 14.8381
  norm       = 2.25385
  Prefactor  = 0.000100076
  norm       = 8.30471
  Prefactor  = 66.3425
  Prefactor  = 0.000100001
  Prefactor  = 3.21772
  norm       = 12.3969
  Prefactor  = 54.5923
  Prefactor  = 0.0001
  Prefactor  = 12.4454
  norm       = 0.0935991
  norm       = 7.2149
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  Normalizat = 0.948537
  Prefactor  = 0.785983
 **********
 **   18 **HESSE 
 **********

 FCN=   7341.137     FROM HESSE     STATUS=OK           459 CALLS     2737 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5355        10.032        .36520E-02   -1.5159    
   2  Prefactor     .10013E-03    38.344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .92129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    31.956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .72901        2.4478        .40596E-01   -1.5537    
   6  Prefactor     4.0712        109.08        .49946E-02   -1.5304    
   7  Prefactor     14.838        11.984        .25995E-02   -1.4937    
   8  norm          2.2539        .87257        .68417E-02   -1.5408    
   9  Prefactor     .10008E-03    41.925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3047        2.0692        .34781E-02   -1.5132    
  11  Prefactor     66.343        44.432        .12319E-02   -1.4077    
  12  Prefactor     .10000E-03    5.2333        .75087E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2177        10.370        .56461E-02   -1.5349    
  14  norm          12.397        10.128        .28441E-02   -1.5004    
  15  Prefactor     54.592        99.360        .13573E-02   -1.4229    
  16  Prefactor     .10000E-03    12.780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.445        19.241        .28395E-02   -1.5002    
  18  norm          .93599E-01    .81767        .94815E-02   -1.5647    
  19  norm          7.2149        5.9077        .37334E-02   -1.5171    
  20  Prefactor     .10002E-03    22.533        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6153        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10007E-03    31.236        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94854        .18059        .45523E-01   -.94775    
  24  Prefactor     .78598        .13111        .43531E-01   -1.0025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40303e-06
Minuit parameter uncertainties:
  1  10.0341
  2  0.00455183
  3  8.74681e-06
  4  0.00188817
  5  2.4481
  6  42.2315
  7  11.9864
  8  0.872577
  9  0.00356091
  10  2.06917
  11  44.4538
  12  0.000115606
  13  10.3758
  14  10.1295
  15  99.6633
  16  5.35032e-05
  17  19.2507
  18  0.553006
  19  5.90819
  20  0.00127568
  21  4.90196e-05
  22  0.00298047
  23  0.180703
  24  0.131164
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  6.634e+01  4.445e+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:  7.860e-01  1.312e-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.485e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.23
Ra Dec: 343.308 -12.542
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 8.80e-08
Energy Flux (Fixed Index): 3.31e-05 +/- 2.22e-05

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) = 7340.76444932
delta logL = 0.372688988985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.74807634
delta logL = 0.389061971117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.260       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0978       1.0000          .0000       10.000    
     3 'Normalizat'    .91534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80479       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=   7340.748     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      273 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.262        45.631        .64797E-04    .59127E-04
   2  Index         3.0985        .68793        .41107E-02    .55788E-04
   3  Normalizat    .91543        .20361        .27302E-03    .20774E-03
   4  Prefactor     .80472        .15293        .22212E-03    .26358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.2619
  Index      = 3.09849
  Normalizat = 0.915428
  Prefactor  = 0.80472
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.748     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.262        37.642        .25919E-05   -1.4470    
   2  Index         3.0985        .56717        .16443E-03   -.39012    
   3  Normalizat    .91543        .20344        .10921E-04   -.95920    
   4  Prefactor     .80472        .15270        .44423E-04   -.99555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05731e-11
Minuit parameter uncertainties:
  1  37.6656
  2  0.568598
  3  0.203614
  4  0.152778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571116': 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) = 7340.74807214
delta logL = 0.38906616507

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  3.826e+01  3.767e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  3.098e+00  5.686e-01  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:  8.047e-01  1.528e-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.154e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.65
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 3.10 +/- 0.57
Photon Flux (Free Index): 1.60e-07 +/- 7.87e-08
Energy Flux (Free Index): 3.05e-05 +/- 1.52e-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/571116/cmap_HighResolution_563068801_563328001_4FGL_J2253.2-1232_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='3.05e-05', photon_flux_error='8.80e-08', dlogl='3.89e-01', energy_flux='3.31e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-29 01:50:53.708094', photon_index_error2='0.57', photon_index2='3.10', ts='4.23', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='0.95', time_epoch_completed='1632905453.71', return_code='0', job_id='571116', GAL2='0.80', EG2='0.92', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='7.87e-08', ts2='5.65', photon_index='2.65' WHERE bin_id='1249' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:50:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 571116: <4FGL_J2253.2-1232_daily_bin1249> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1249> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:40:26 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:40:28 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:28 2021
Terminated at Wed Sep 29 01:50:54 2021
Results reported at Wed Sep 29 01:50:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1249 343.308 -12.5416 563068801 563328001 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 :                                   589.43 sec.
    Max Memory :                                 1215 MB
    Average Memory :                             355.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            628 sec.

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

