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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1118
RA = 343.308, Dec = -12.5416
tmin = 529113601, tmax = 529372801
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='570920', job_status='RUN', time_executed='2021-09-29 01:41:38.327856', time_epoch_executed='1632904898.33' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570920/ft1_4FGL_J2253.2-1232_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570920/ft2_4FGL_J2253.2-1232_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570920/ft1_4FGL_J2253.2-1232_daily_bin1118.fits outfile=/scratch/kocevski/570920/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1118.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=529113601.0 tmax=529372801.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.91
user 3.65
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570920/ft1_filtered_4FGL_J2253.2-1232_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/570920/ft2_4FGL_J2253.2-1232_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/570920/ltcube_529113601_529372801_4FGL_J2253.2-1232_daily_bin1118.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/570920/ft2_4FGL_J2253.2-1232_daily_bin1118.fits
.....................!
real 11.87
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570920/ft1_filtered_4FGL_J2253.2-1232_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/570920/ft2_4FGL_J2253.2-1232_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/570920/ltcube_529113601_529372801_4FGL_J2253.2-1232_daily_bin1118.fits outfile=/scratch/kocevski/570920/expmap_529113601_529372801_4FGL_J2253.2-1232_daily_bin1118.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/570920/ltcube_529113601_529372801_4FGL_J2253.2-1232_daily_bin1118.fits
.....................!
real 189.86
user 185.13
sys 4.36

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/570920/ft1_filtered_4FGL_J2253.2-1232_daily_bin1118.fits scfile=/scratch/kocevski/570920/ft2_4FGL_J2253.2-1232_daily_bin1118.fits outfile=/scratch/kocevski/570920/cmap_529113601_529372801_4FGL_J2253.2-1232_daily_bin1118.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/570920/ft1_filtered_4FGL_J2253.2-1232_daily_bin1118.fits scfile=/scratch/kocevski/570920/ft2_4FGL_J2253.2-1232_daily_bin1118.fits outfile=/scratch/kocevski/570920/cmap_HighResolution_529113601_529372801_4FGL_J2253.2-1232_daily_bin1118.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/570920/ft1_filtered_4FGL_J2253.2-1232_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/570920/ft2_4FGL_J2253.2-1232_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/570920/Model_4FGL_J2253.2-1232_daily_bin1118.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/570920/ft1_filtered_4FGL_J2253.2-1232_daily_bin1118.fits.....................!
real 64.48
user 63.03
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49884E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.9764       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.392       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .42494       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3961       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55894E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    16.043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3788       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8525       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2129       1.0000         .10000E-03   10000.    
    18 'norm      '    .10843E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .36342E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98683       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94095       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=   7267.857     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2782 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    14.265       -.58521E-05** at limit **
   2  Prefactor     .10000E-03    26.952        .17142E-06** at limit **
   3  Prefactor     7.1517        5.3340        .18843E-06   -.12767E-03
   4  Prefactor     .10000E-03    22.087        .94297E-07** at limit **
   5  norm          9.9798        4.2862        .66608E-07   -.19742E-03
   6  Prefactor     44.367        74.134       -.43025E-06   -.19344E-03
   7  Prefactor     .47024        5.9477       -.16505E-05    .47736E-04
   8  norm          1.3963        .94977        .62112E-07    .36334E-04
   9  Prefactor     .10000E-03    29.418        .85668E-07** at limit **
  10  norm          16.047        2.9019       -.11514E-06    .54889E-03
  11  Prefactor     1.3767        58.534        .15982E-04   -.50132E-04
  12  Prefactor     .10000E-03    11.583        .27961E-06** at limit **
  13  Prefactor     1.8525        6.9715        .47836E-06   -.45494E-04
  14  norm          2.1733        12.655        .10970E-05    .54964E-05
  15  Prefactor     .10000E-03    53.763       -.14539E-06** at limit **
  16  Prefactor     .10000E-03    7.7922       -.28179E-06** at limit **
  17  Prefactor     2.2085        7.6549        .76590E-06   -.30235E-04
  18  norm          .10000E-03    .67066        .17666E-06** at limit **
  19  norm          .10000E-03    1.4962       -.11491E-07** at limit **
  20  Prefactor     1.6209        250.35        .11246E-05   -.51174E-04
  21  Prefactor     .10001E-03    11.042       -.27737E-05** at limit **
  22  Prefactor     .10000E-03    274.11        .10893E-05** at limit **
  23  Normalizat    .98692        .19393       -.55811E-06   -.69834E-03
  24  Prefactor     .94085        .14689       -.13905E-05   -.10265E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100108
  Prefactor  = 0.0001
  Prefactor  = 7.15169
  Prefactor  = 0.0001
  norm       = 9.9798
  Prefactor  = 44.3669
  Prefactor  = 0.470237
  norm       = 1.39626
  Prefactor  = 0.000100003
  norm       = 16.0467
  Prefactor  = 1.37672
  Prefactor  = 0.0001
  Prefactor  = 1.85253
  norm       = 2.1733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20847
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.62086
  Prefactor  = 0.00010001
  Prefactor  = 0.000100001
  Normalizat = 0.986918
  Prefactor  = 0.940849
 **********
 **   18 **HESSE 
 **********

 FCN=   7267.857     FROM HESSE     STATUS=OK           407 CALLS     3189 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    46.802        .42310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1517        5.3300        .14998E-03   -1.5173    
   4  Prefactor     .10000E-03    22.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.9798        4.2836        .10853E-03   -1.5076    
   6  Prefactor     44.367        74.885        .60173E-04   -1.4375    
   7  Prefactor     .47024        37.388        .37702E-02   -1.5571    
   8  norm          1.3963        .94420        .64921E-04   -1.5472    
   9  Prefactor     .10000E-03    45.546        .82197E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.047        3.0501        .40997E-04   -1.4907    
  11  Prefactor     1.3767        74.103        .18540E-02   -1.5473    
  12  Prefactor     .10000E-03    11.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8525        6.9574        .30628E-03   -1.5436    
  14  norm          2.1733        12.705        .27969E-03   -1.5413    
  15  Prefactor     .10000E-03    53.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2085        7.6186        .27650E-03   -1.5411    
  18  norm          .10000E-03    3.1881        .13534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4977        .10174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6209        257.75        .32814E-03   -1.5453    
  21  Prefactor     .10001E-03    11.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    277.12        .21307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98692        .22415        .28224E-03   -.93470    
  24  Prefactor     .94085        .17432        .23097E-03   -.94728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95035e-09
Minuit parameter uncertainties:
  1  0.00450101
  2  0.000128748
  3  5.33031
  4  1.38297e-05
  5  4.28371
  6  75.0444
  7  8.39052
  8  0.944214
  9  0.000721999
  10  3.05016
  11  20.2267
  12  7.58724e-05
  13  6.96042
  14  10.5125
  15  2.37622e-05
  16  5.56619e-05
  17  7.62191
  18  5.14081e-06
  19  1.14596e-06
  20  41.0592
  21  0.000672571
  22  0.000841326
  23  0.22436
  24  0.174425
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.377e+00  2.023e+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:  9.408e-01  1.744e-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.869e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 343.308 -12.542
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/570920/likelihoodResults_529113601_529372801_4FGL_J2253.2-1232_daily_bin1118.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) = 7267.64448715
delta logL = 0.212074167312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7267.64424584
delta logL = 0.212315483542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.897       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7451       1.0000          .0000       10.000    
     3 'Normalizat'    .98699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93853       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=   7267.644     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      276 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.897        6271.7        .25113E-02   -.27026E-04
   2  Index         1.7451        7.2315        .27499        .12443E-04
   3  Normalizat    .98698        .18394        .46004E-01    .14876E-04
   4  Prefactor     .93855        .14351        .45494E-01    .98529E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8973
  Index      = 1.74513
  Normalizat = 0.986976
  Prefactor  = 0.938545
 **********
 **   18 **HESSE 
 **********

 FCN=   7267.644     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.897        29.678        .10045E-03   -1.4910    
   2  Index         1.7451        .89751        .14500E-01   -.70887    
   3  Normalizat    .98698        .20997        .28216E-03   -.93468    
   4  Prefactor     .93855        .16902        .23109E-03   -.94807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67509e-11
Minuit parameter uncertainties:
  1  29.7057
  2  0.906092
  3  0.210144
  4  0.169112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570920': 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) = 7267.64424583
delta logL = 0.212315485843

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.590e+01  2.971e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  1.745e+00  9.061e-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:  9.385e-01  1.691e-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.870e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/570920/cmap_HighResolution_529113601_529372801_4FGL_J2253.2-1232_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.88e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-29 01:53:38.915357', job_id='570920', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632905618.92', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.12e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1118' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:53:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 570920: <4FGL_J2253.2-1232_daily_bin1118> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1118> 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) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:40:15 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:15 2021
Terminated at Wed Sep 29 01:53:39 2021
Results reported at Wed Sep 29 01:53:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1118 343.308 -12.5416 529113601 529372801 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 :                                   709.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

