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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1034
RA = 343.308, Dec = -12.5416
tmin = 507340801, tmax = 507600001
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='569717', job_status='RUN', time_executed='2021-09-29 01:37:11.089998', time_epoch_executed='1632904631.09' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1034'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569717

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569717/ft1_4FGL_J2253.2-1232_daily_bin1034.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569717/ft2_4FGL_J2253.2-1232_daily_bin1034.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569717/ft1_4FGL_J2253.2-1232_daily_bin1034.fits outfile=/scratch/kocevski/569717/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1034.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=507340801.0 tmax=507600001.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.53
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569717/ft1_filtered_4FGL_J2253.2-1232_daily_bin1034.fits" evtable="EVENTS" scfile=/scratch/kocevski/569717/ft2_4FGL_J2253.2-1232_daily_bin1034.fits sctable="SC_DATA" outfile=/scratch/kocevski/569717/ltcube_507340801_507600001_4FGL_J2253.2-1232_daily_bin1034.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/569717/ft2_4FGL_J2253.2-1232_daily_bin1034.fits
.....................!
real 11.88
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569717/ft1_filtered_4FGL_J2253.2-1232_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/569717/ft2_4FGL_J2253.2-1232_daily_bin1034.fits sctable="SC_DATA" expcube=/scratch/kocevski/569717/ltcube_507340801_507600001_4FGL_J2253.2-1232_daily_bin1034.fits outfile=/scratch/kocevski/569717/expmap_507340801_507600001_4FGL_J2253.2-1232_daily_bin1034.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/569717/ltcube_507340801_507600001_4FGL_J2253.2-1232_daily_bin1034.fits
.....................!
real 191.03
user 185.70
sys 5.01

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/569717/ft1_filtered_4FGL_J2253.2-1232_daily_bin1034.fits scfile=/scratch/kocevski/569717/ft2_4FGL_J2253.2-1232_daily_bin1034.fits outfile=/scratch/kocevski/569717/cmap_507340801_507600001_4FGL_J2253.2-1232_daily_bin1034.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/569717/ft1_filtered_4FGL_J2253.2-1232_daily_bin1034.fits scfile=/scratch/kocevski/569717/ft2_4FGL_J2253.2-1232_daily_bin1034.fits outfile=/scratch/kocevski/569717/cmap_HighResolution_507340801_507600001_4FGL_J2253.2-1232_daily_bin1034.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/569717/ft1_filtered_4FGL_J2253.2-1232_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/569717/ft2_4FGL_J2253.2-1232_daily_bin1034.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/569717/Model_4FGL_J2253.2-1232_daily_bin1034.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/569717/ft1_filtered_4FGL_J2253.2-1232_daily_bin1034.fits.....................!
real 73.17
user 71.80
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    153.52       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.684       1.0000         .10000E-03   10000.    
     5 'norm      '    18.021       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.532       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1109       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8952       1.0000         .10000E-03   10000.    
    10 'norm      '    10.974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.436       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.931       1.0000         .10000E-03   10000.    
    15 'Prefactor '    99.696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6008       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .78711       1.0000         .10000E-03   10000.    
    19 'norm      '    11.930       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.045       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87521       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0797       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=   8685.040     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2691 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.469        12.831        .82903E-07    .27304E-05
   2  Prefactor     153.55        97.012        .12545E-06    .39756E-04
   3  Prefactor     .10000E-03    1.0584       -.12176E-07** at limit **
   4  Prefactor     37.704        35.406        .20209E-06    .69034E-04
   5  norm          18.021        5.4047        .38558E-07    .10461E-03
   6  Prefactor     34.526        80.355       -.12389E-06   -.42699E-05
   7  Prefactor     .10000E-03    3.5424       -.20462E-07** at limit **
   8  norm          1.1107        .71209        .14795E-06    .12147E-03
   9  Prefactor     8.9327        57.544        .49993E-05    .19372E-04
  10  norm          10.970        3.9648       -.60167E-06    .10520E-03
  11  Prefactor     39.437        38.895        .26531E-05   -.11032E-04
  12  Prefactor     3.7163        6.8892        .23879E-06   -.22055E-05
  13  Prefactor     .10000E-03    12.699        .11190E-06** at limit **
  14  norm          18.934        10.037       -.85885E-08   -.15848E-04
  15  Prefactor     99.688        56.485       -.54613E-06   -.14468E-04
  16  Prefactor     5.6007        10.881        .12731E-06    .11289E-05
  17  Prefactor     .10000E-03    6.4636       -.68968E-06** at limit **
  18  norm          .78709        1.1161       -.10406E-06   -.77613E-06
  19  norm          11.931        7.1502        .11401E-05    .92707E-04
  20  Prefactor     11.046        23.107        .25098E-06    .23812E-05
  21  Prefactor     .10000E-03    8.1406       -.90833E-07** at limit **
  22  Prefactor     .10000E-03    55.085       -.21869E-06** at limit **
  23  Normalizat    .87517        .19668       -.19585E-05    .50272E-04
  24  Prefactor     1.0797        .15061        .11904E-05   -.84735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.469
  Prefactor  = 153.545
  Prefactor  = 0.0001
  Prefactor  = 37.7042
  norm       = 18.0214
  Prefactor  = 34.5257
  Prefactor  = 0.0001
  norm       = 1.1107
  Prefactor  = 8.93266
  norm       = 10.9704
  Prefactor  = 39.4372
  Prefactor  = 3.71634
  Prefactor  = 0.0001
  norm       = 18.9336
  Prefactor  = 99.6881
  Prefactor  = 5.60069
  Prefactor  = 0.0001
  norm       = 0.787094
  norm       = 11.9309
  Prefactor  = 11.0465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.875169
  Prefactor  = 1.07968
 **********
 **   18 **HESSE 
 **********

 FCN=   8685.040     FROM HESSE     STATUS=OK           403 CALLS     3094 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.469        12.843        .84499E-04   -1.4760    
   2  Prefactor     153.55        97.202        .16267E-03   -1.3223    
   3  Prefactor     .10000E-03    1.0628        .93608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.704        35.582        .32644E-03   -1.4479    
   5  norm          18.021        5.4042        .94347E-04   -1.4859    
   6  Prefactor     34.526        80.371        .68194E-04   -1.4532    
   7  Prefactor     .10000E-03    3.5516        .17129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1107        .70274        .60374E-04   -1.5497    
   9  Prefactor     8.9327        57.701        .13439E-03   -1.5110    
  10  norm          10.970        4.0132        .48058E-04   -1.5045    
  11  Prefactor     39.437        38.309        .63827E-04   -1.4451    
  12  Prefactor     3.7163        6.8746        .20946E-03   -1.5322    
  13  Prefactor     .10000E-03    13.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.934        10.038        .92052E-04   -1.4837    
  15  Prefactor     99.688        56.706        .40263E-04   -1.3708    
  16  Prefactor     5.6007        10.870        .16975E-03   -1.5235    
  17  Prefactor     .10000E-03    6.5272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .78709        1.1150        .49567E-04   -1.5531    
  19  norm          11.931        7.2571        .57989E-03   -1.5017    
  20  Prefactor     11.046        23.110        .12055E-03   -1.5043    
  21  Prefactor     .10000E-03    8.1865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    55.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87517        .22226        .32552E-03   -.97338    
  24  Prefactor     1.0797        .17119        .23761E-03   -.90119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06315e-10
Minuit parameter uncertainties:
  1  12.8445
  2  97.3035
  3  1.56394e-07
  4  35.6021
  5  5.40431
  6  80.625
  7  1.26038e-06
  8  0.702747
  9  45.4698
  10  4.01331
  11  38.3325
  12  6.87603
  13  9.29212e-06
  14  10.0388
  15  56.7368
  16  10.8742
  17  2.36642e-05
  18  1.11505
  19  7.25768
  20  23.1291
  21  2.00891e-06
  22  6.2214e-06
  23  0.22249
  24  0.171274
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  3.944e+01  3.833e+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.080e+00  1.713e-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:  8.752e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.31
Ra Dec: 343.308 -12.542
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 7.82e-08 +/- 7.59e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.91e-05

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

Saving results to:
/scratch/kocevski/569717/likelihoodResults_507340801_507600001_4FGL_J2253.2-1232_daily_bin1034.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) = 8685.03594433
delta logL = 0.00450158625245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8685.0330051
delta logL = 0.00744081626908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.807       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7267       1.0000          .0000       10.000    
     3 'Normalizat'    .87030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0822       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=   8685.033     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      283 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.804        40.148        .66060E-04    .14346E-03
   2  Index         2.7266        .72214        .80214E-02    .12682E-03
   3  Normalizat    .87060        .21369        .32623E-03   -.12629E-03
   4  Prefactor     1.0820        .16873        .23737E-03   -.89465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8042
  Index      = 2.72663
  Normalizat = 0.870595
  Prefactor  = 1.08196
 **********
 **   18 **HESSE 
 **********

 FCN=   8685.033     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.804        36.808        .13212E-04   -1.4494    
   2  Index         2.7266        .66122        .32086E-03   -.47201    
   3  Normalizat    .87060        .21358        .13049E-04   -.97501    
   4  Prefactor     1.0820        .16870        .94950E-05   -.90045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03615e-10
Minuit parameter uncertainties:
  1  36.8312
  2  0.663672
  3  0.213783
  4  0.168785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569717': 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) = 8685.03300405
delta logL = 0.00744186435804

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  3.680e+01  3.683e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.727e+00  6.637e-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:  1.082e+00  1.688e-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:  8.706e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 2.73 +/- 0.66
Photon Flux (Free Index): 8.29e-08 +/- 7.32e-08
Energy Flux (Free Index): 1.96e-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/569717/cmap_HighResolution_507340801_507600001_4FGL_J2253.2-1232_daily_bin1034.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', photon_flux='7.82e-08', energy_flux2='1.96e-05', photon_flux_error='7.59e-08', dlogl='7.44e-03', energy_flux='1.97e-05', photon_flux2='8.29e-08', job_status='DONE', time_completed='2021-09-29 01:50:55.932106', photon_index_error2='0.66', photon_index2='2.73', ts='2.31', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='1.52e-05', EG='0.88', time_epoch_completed='1632905455.93', return_code='0', job_id='569717', GAL2='1.08', EG2='0.87', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='7.32e-08', ts2='2.52', photon_index='2.65' WHERE bin_id='1034' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 569717: <4FGL_J2253.2-1232_daily_bin1034> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1034> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:35:50 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:35:52 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:35:52 2021
Terminated at Wed Sep 29 01:50:56 2021
Results reported at Wed Sep 29 01:50:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1034 343.308 -12.5416 507340801 507600001 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 :                                   778.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

