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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1382
RA = 343.308, Dec = -12.5416
tmin = 597542401, tmax = 597801601
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='571327', job_status='RUN', time_executed='2021-09-29 01:40:53.736579', time_epoch_executed='1632904853.74' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571327

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571327/ft1_4FGL_J2253.2-1232_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571327/ft2_4FGL_J2253.2-1232_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571327/ft1_4FGL_J2253.2-1232_daily_bin1382.fits outfile=/scratch/kocevski/571327/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1382.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=597542401.0 tmax=597801601.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.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571327/ft1_filtered_4FGL_J2253.2-1232_daily_bin1382.fits" evtable="EVENTS" scfile=/scratch/kocevski/571327/ft2_4FGL_J2253.2-1232_daily_bin1382.fits sctable="SC_DATA" outfile=/scratch/kocevski/571327/ltcube_597542401_597801601_4FGL_J2253.2-1232_daily_bin1382.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/571327/ft2_4FGL_J2253.2-1232_daily_bin1382.fits
.....................!
real 12.09
user 11.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571327/ft1_filtered_4FGL_J2253.2-1232_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/571327/ft2_4FGL_J2253.2-1232_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/571327/ltcube_597542401_597801601_4FGL_J2253.2-1232_daily_bin1382.fits outfile=/scratch/kocevski/571327/expmap_597542401_597801601_4FGL_J2253.2-1232_daily_bin1382.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/571327/ltcube_597542401_597801601_4FGL_J2253.2-1232_daily_bin1382.fits
.....................!
real 190.86
user 186.18
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/571327/ft1_filtered_4FGL_J2253.2-1232_daily_bin1382.fits scfile=/scratch/kocevski/571327/ft2_4FGL_J2253.2-1232_daily_bin1382.fits outfile=/scratch/kocevski/571327/cmap_597542401_597801601_4FGL_J2253.2-1232_daily_bin1382.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=343.308 yref=-12.5416 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571327/ft1_filtered_4FGL_J2253.2-1232_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/571327/ft2_4FGL_J2253.2-1232_daily_bin1382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571327/Model_4FGL_J2253.2-1232_daily_bin1382.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/571327/ft1_filtered_4FGL_J2253.2-1232_daily_bin1382.fits.....................!
real 56.24
user 54.98
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5144       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.362       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19639E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.521       1.0000         .10000E-03   10000.    
     5 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.520       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3110       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.209       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.015       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .74205       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8226       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0543       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0894       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76286       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=   6453.603     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     3270 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5141        12.463        .33777E-05    .31018E-04
   2  Prefactor     33.473        76.646       -.11952E-05   -.18000E-04
   3  Prefactor     .10002E-03    2.3691        .48376E-06** at limit **
   4  Prefactor     31.482        52.096       -.38034E-06   -.33556E-04
   5  norm          .10000E-03    2.7304        .24777E-05** at limit **
   6  Prefactor     42.498        68.220       -.24087E-06   -.69501E-04
   7  Prefactor     .10000E-03    2.7341       -.24179E-07** at limit **
   8  norm          2.3112        1.0060        .50260E-07   -.15837E-03
   9  Prefactor     60.201        33.532       -.69370E-06   -.85465E-04
  10  norm          3.3162        2.3463        .19349E-06   -.11592E-03
  11  Prefactor     27.001        44.361        .17116E-06   -.31744E-04
  12  Prefactor     .10000E-03    2.6736       -.78281E-07** at limit **
  13  Prefactor     .10000E-03    3.7417       -.11261E-06** at limit **
  14  norm          .10000E-03    13.427       -.67886E-07** at limit **
  15  Prefactor     .10000E-03    19.916       -.81461E-07** at limit **
  16  Prefactor     .10000E-03    26.775       -.25997E-06** at limit **
  17  Prefactor     .10000E-03    7.1292       -.10497E-06** at limit **
  18  norm          .74202        .70505       -.13906E-07   -.66422E-05
  19  norm          .10000E-03    3.0132       -.43501E-07** at limit **
  20  Prefactor     4.8104        82.981        .43653E-06    .27389E-06
  21  Prefactor     9.0539        10.055       -.22633E-06   -.67658E-05
  22  Prefactor     .10000E-03    21.141       -.14430E-07** at limit **
  23  Normalizat    1.0897        .18511        .18278E-05   -.33417E-03
  24  Prefactor     .76262        .13956       -.21081E-05   -.17760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.5141
  Prefactor  = 33.4734
  Prefactor  = 0.000100018
  Prefactor  = 31.4816
  norm       = 0.0001
  Prefactor  = 42.4985
  Prefactor  = 0.0001
  norm       = 2.31117
  Prefactor  = 60.2009
  norm       = 3.31623
  Prefactor  = 27.0012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.74202
  norm       = 0.0001
  Prefactor  = 4.81043
  Prefactor  = 9.0539
  Prefactor  = 0.0001
  Normalizat = 1.0897
  Prefactor  = 0.762621
 **********
 **   18 **HESSE 
 **********

 FCN=   6453.603     FROM HESSE     STATUS=OK           397 CALLS     3667 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5141        12.791        .34743E-03   -1.5462    
   2  Prefactor     33.473        76.647        .69376E-04   -1.4550    
   3  Prefactor     .10002E-03    16.165        .22971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.482        52.070        .71367E-04   -1.4585    
   5  norm          .10000E-03    2.8135        .25882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.498        67.597        .61478E-04   -1.4403    
   7  Prefactor     .10000E-03    2.7359        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3112        1.0018        .50180E-04   -1.5404    
   9  Prefactor     60.201        34.078        .51708E-04   -1.4155    
  10  norm          3.3162        2.3765        .62007E-04   -1.5344    
  11  Prefactor     27.001        44.168        .77076E-04   -1.4668    
  12  Prefactor     .10000E-03    2.6746        .12828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7599        .15174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .74202        .72971        .63941E-03   -1.5536    
  19  norm          .10000E-03    3.0602        .13611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8104        83.004        .18319E-03   -1.5269    
  21  Prefactor     9.0539        9.9780        .13320E-03   -1.5106    
  22  Prefactor     .10000E-03    21.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0897        .20976        .24968E-03   -.90083    
  24  Prefactor     .76262        .15752        .22743E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3681e-09
Minuit parameter uncertainties:
  1  8.80397
  2  76.8735
  3  0.00109182
  4  52.1454
  5  1.97213e-05
  6  67.7197
  7  1.24084e-06
  8  1.00182
  9  34.0886
  10  2.37653
  11  44.2215
  12  3.98409e-07
  13  5.42004e-08
  14  1.32553e-05
  15  1.49002e-05
  16  1.57666e-05
  17  4.28344e-06
  18  0.729719
  19  2.49641e-06
  20  40.029
  21  9.97986
  22  3.98993e-06
  23  0.209924
  24  0.157611
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  2.700e+01  4.422e+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.626e-01  1.576e-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:  1.090e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/571327/likelihoodResults_597542401_597801601_4FGL_J2253.2-1232_daily_bin1382.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) = 6453.24009196
delta logL = 0.362522347575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6453.22727477
delta logL = 0.375339534679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.205       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5012       1.0000          .0000       10.000    
     3 'Normalizat'    1.0534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78058       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=   6453.227     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.189        87.420        .11968E-03    .29865E-03
   2  Index         3.5017        2.8952        .60054E-02    .28088E-04
   3  Normalizat    1.0534        .20826        .25279E-03    .26480E-03
   4  Prefactor     .78055        .15906        .22493E-03    .24956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1892
  Index      = 3.50173
  Normalizat = 1.05345
  Prefactor  = 0.78055
 **********
 **   18 **HESSE 
 **********

 FCN=   6453.227     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.189        23.219        .47872E-05   -1.5039    
   2  Index         3.5017        1.1402        .24021E-03   -.30433    
   3  Normalizat    1.0534        .20552        .50557E-04   -.91261    
   4  Prefactor     .78055        .15627        .44986E-04   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6189e-10
Minuit parameter uncertainties:
  1  23.2379
  2  1.15138
  3  0.205671
  4  0.156354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571327': 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) = 6453.22727437
delta logL = 0.375339933484

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.119e+01  2.324e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  3.502e+00  1.151e+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:  7.806e-01  1.564e-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:  1.053e+00  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 3.50 +/- 1.15
Photon Flux (Free Index): 9.49e-08 +/- 8.22e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.36e-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/571327/cmap_HighResolution_597542401_597801601_4FGL_J2253.2-1232_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='3.75e-01', photon_flux2='9.49e-08', job_status='DONE', time_completed='2021-09-29 01:52:25.441832', photon_index_error2='1.15', photon_index2='3.50', ts='0.73', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.36e-05', EG='1.09', time_epoch_completed='1632905545.44', return_code='0', job_id='571327', GAL2='0.78', EG2='1.05', return_code2='0', photon_flux_error2='8.22e-08', ts2='1.61', photon_index='2.65' WHERE bin_id='1382' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:52:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 571327: <4FGL_J2253.2-1232_daily_bin1382> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1382 343.308 -12.5416 597542401 597801601 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 :                                   686.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

