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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1214
RA = 343.308, Dec = -12.5416
tmin = 553996801, tmax = 554256001
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='571064', job_status='RUN', time_executed='2021-09-29 01:43:29.746057', time_epoch_executed='1632905009.75' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571064

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571064/ft1_4FGL_J2253.2-1232_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571064/ft2_4FGL_J2253.2-1232_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571064/ft1_4FGL_J2253.2-1232_daily_bin1214.fits outfile=/scratch/kocevski/571064/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1214.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=553996801.0 tmax=554256001.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 2.60
user 2.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571064/ft2_4FGL_J2253.2-1232_daily_bin1214.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/571064/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1214.fits evtable="EVENTS" outfile="/scratch/kocevski/571064/ft1_filtered_4FGL_J2253.2-1232_daily_bin1214.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/571064/ft1_filtered_4FGL_J2253.2-1232_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/571064/ft2_4FGL_J2253.2-1232_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/571064/ltcube_553996801_554256001_4FGL_J2253.2-1232_daily_bin1214.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/571064/ft2_4FGL_J2253.2-1232_daily_bin1214.fits
.....................!
real 12.18
user 11.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571064/ft1_filtered_4FGL_J2253.2-1232_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/571064/ft2_4FGL_J2253.2-1232_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/571064/ltcube_553996801_554256001_4FGL_J2253.2-1232_daily_bin1214.fits outfile=/scratch/kocevski/571064/expmap_553996801_554256001_4FGL_J2253.2-1232_daily_bin1214.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/571064/ltcube_553996801_554256001_4FGL_J2253.2-1232_daily_bin1214.fits
.....................!
real 190.41
user 185.28
sys 4.79

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/571064/ft1_filtered_4FGL_J2253.2-1232_daily_bin1214.fits scfile=/scratch/kocevski/571064/ft2_4FGL_J2253.2-1232_daily_bin1214.fits outfile=/scratch/kocevski/571064/cmap_553996801_554256001_4FGL_J2253.2-1232_daily_bin1214.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/571064/ft1_filtered_4FGL_J2253.2-1232_daily_bin1214.fits scfile=/scratch/kocevski/571064/ft2_4FGL_J2253.2-1232_daily_bin1214.fits outfile=/scratch/kocevski/571064/cmap_HighResolution_553996801_554256001_4FGL_J2253.2-1232_daily_bin1214.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571064/ft1_filtered_4FGL_J2253.2-1232_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/571064/ft2_4FGL_J2253.2-1232_daily_bin1214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571064/Model_4FGL_J2253.2-1232_daily_bin1214.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/571064/ft1_filtered_4FGL_J2253.2-1232_daily_bin1214.fits.....................!
real 52.70
user 51.30
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.9048       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.508       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    84.953       1.0000         .10000E-03   10000.    
    10 'norm      '    14.309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    68.300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.180       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61858       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4271       1.0000         .10000E-03   10000.    
    19 'norm      '    .79134       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67631       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1136       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=   5538.965     FROM MIGRAD    STATUS=CONVERGED    961 CALLS     3264 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.438        .18142E-02** at limit **
   2  Prefactor     .10000E-03    26.855        .18142E-02** at limit **
   3  Prefactor     .10000E-03    16.622        .22329E-02** at limit **
   4  Prefactor     .10000E-03    41.389        .18142E-02** at limit **
   5  norm          6.9052        4.4018        .11893E-03    .33553E-04
   6  Prefactor     .10000E-03    50.712        .18142E-02** at limit **
   7  Prefactor     21.507        28.282        .86367E-04   -.28959E-05
   8  norm          2.6365        1.3755        .60453E-04   -.13164E-04
   9  Prefactor     84.942        72.114        .43584E-04    .20867E-05
  10  norm          14.309        6.1763        .55131E-04   -.20332E-03
  11  Prefactor     68.311        67.991        .48568E-04    .79586E-05
  12  Prefactor     .10000E-03    4.8360        .15969E-02** at limit **
  13  Prefactor     .10000E-03    5.0171        .16274E-02** at limit **
  14  norm          20.181        13.505        .89159E-04    .56104E-05
  15  Prefactor     .64165        62.691        .14152        .10691E-03
  16  Prefactor     .10000E-03    9.1734        .18142E-02** at limit **
  17  Prefactor     .10000E-03    7.9222        .18142E-02** at limit **
  18  norm          2.4270        1.3695        .62198E-04    .34729E-04
  19  norm          .79195        7.7949        .37449E-03    .16424E-04
  20  Prefactor     .10000E-03    16.828        .18142E-02** at limit **
  21  Prefactor     .10000E-03    5.4911        .17029E-02** at limit **
  22  Prefactor     .10000E-03    31.992        .18142E-02** at limit **
  23  Normalizat    .67650        .28460        .36973E-03   -.10824E-04
  24  Prefactor     1.1134        .20696        .22289E-03   -.34847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 6.90519
  Prefactor  = 0.0001
  Prefactor  = 21.5075
  norm       = 2.63645
  Prefactor  = 84.9416
  norm       = 14.3091
  Prefactor  = 68.3113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1809
  Prefactor  = 0.641653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42703
  norm       = 0.791949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.676495
  Prefactor  = 1.11342
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.965     FROM HESSE     STATUS=OK           383 CALLS     3647 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.462        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.767        .44658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9052        4.4015        .47571E-05   -1.5182    
   6  Prefactor     .10000E-03    50.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.507        28.281        .34547E-05   -1.4780    
   8  norm          2.6365        1.3755        .24181E-05   -1.5383    
   9  Prefactor     84.942        72.199        .17434E-05   -1.3862    
  10  norm          14.309        6.1827        .22052E-05   -1.4951    
  11  Prefactor     68.311        68.036        .19427E-05   -1.4053    
  12  Prefactor     .10000E-03    4.8363        .31938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0172        .32549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.181        13.504        .35664E-05   -1.4809    
  15  Prefactor     .64165        60.395        .14489       -1.5548    
  16  Prefactor     .10000E-03    9.1734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4270        1.3692        .24879E-05   -1.5396    
  19  norm          .79195        7.7733        .14980E-04   -1.5530    
  20  Prefactor     .10000E-03    16.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4912        .34059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .67650        .28479        .14789E-04   -1.0483    
  24  Prefactor     1.1134        .20711        .44578E-04   -.89039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70742e-10
Minuit parameter uncertainties:
  1  1.24018e-06
  2  1.62995e-06
  3  0.000574497
  4  2.40032e-05
  5  4.40173
  6  2.45541e-05
  7  28.2989
  8  1.37553
  9  72.2732
  10  6.18296
  11  68.1131
  12  9.79003e-06
  13  1.3817e-06
  14  13.5059
  15  12.4624
  16  9.01273e-07
  17  2.44362e-05
  18  1.3692
  19  4.96282
  20  2.19735e-07
  21  2.39689e-07
  22  1.55965e-05
  23  0.285414
  24  0.207259
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  6.831e+01  6.811e+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.113e+00  2.073e-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:  6.765e-01  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 343.308 -12.542
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 1.35e-07 +/- 1.35e-07
Energy Flux (Fixed Index): 3.41e-05 +/- 3.40e-05

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

Saving results to:
/scratch/kocevski/571064/likelihoodResults_553996801_554256001_4FGL_J2253.2-1232_daily_bin1214.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) = 5538.88877267
delta logL = 0.0763636494048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5538.88123589
delta logL = 0.0839004298869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.042       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1402       1.0000          .0000       10.000    
     3 'Normalizat'    .64385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1319       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=   5538.881     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      316 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.932        879.48        .64982E-04    .13996E-05
   2  Index         3.1425        6.5381        .57026E-02    .26635E-04
   3  Normalizat    .64194        .35282        .37850E-03    .19493E-04
   4  Prefactor     1.1334        .25077        .22121E-03    .45627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.932
  Index      = 3.14247
  Normalizat = 0.641936
  Prefactor  = 1.13341
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.881     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.932        95.808        .25993E-05   -1.4475    
   2  Index         3.1425        1.5945        .22810E-03   -.38063    
   3  Normalizat    .64194        .28633        .15140E-04   -1.0623    
   4  Prefactor     1.1334        .21162        .44242E-04   -.88406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67954e-12
Minuit parameter uncertainties:
  1  96.2003
  2  1.62765
  3  0.286993
  4  0.211781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571064': 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) = 5538.88120937
delta logL = 0.0839269486905

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  3.793e+01  9.620e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  3.142e+00  1.628e+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.133e+00  2.118e-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:  6.419e-01  2.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 3.14 +/- 1.63
Photon Flux (Free Index): 1.71e-07 +/- 1.42e-07
Energy Flux (Free Index): 3.20e-05 +/- 2.55e-05

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/571064/cmap_HighResolution_553996801_554256001_4FGL_J2253.2-1232_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-02', comment='SUCCESS', photon_flux='1.35e-07', energy_flux2='3.20e-05', photon_flux_error='1.35e-07', dlogl='8.39e-02', energy_flux='3.41e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-29 01:54:12.804809', photon_index_error2='1.63', photon_index2='3.14', ts='1.72', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='3.35e-07', energy_flux_error2='2.55e-05', EG='0.68', time_epoch_completed='1632905652.8', return_code='0', job_id='571064', GAL2='1.13', EG2='0.64', return_code2='0', energy_flux_error='3.40e-05', photon_flux_error2='1.42e-07', ts2='2.29', photon_index='2.65' WHERE bin_id='1214' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:54:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 571064: <4FGL_J2253.2-1232_daily_bin1214> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1214 343.308 -12.5416 553996801 554256001 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 :                                   624.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             258.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

