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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1124
RA = 343.496, Dec = 16.1506
tmin = 530668801, tmax = 530928001
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='578560', job_status='RUN', time_executed='2021-09-29 02:03:45.351273', time_epoch_executed='1632906225.35' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578560/ft1_4FGL_J2253.9+1609_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578560/ft1_4FGL_J2253.9+1609_daily_bin1124.fits outfile=/scratch/kocevski/578560/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1124.fits ra=343.496 dec=16.1506 rad=12.0 tmin=530668801.0 tmax=530928001.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.58
user 3.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.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/578560/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1124.fits evtable="EVENTS" outfile="/scratch/kocevski/578560/ft1_filtered_4FGL_J2253.9+1609_daily_bin1124.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/578560/ft1_filtered_4FGL_J2253.9+1609_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/578560/ltcube_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.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/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits
.....................!
real 11.52
user 11.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578560/ft1_filtered_4FGL_J2253.9+1609_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/578560/ltcube_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.fits outfile=/scratch/kocevski/578560/expmap_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.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/578560/ltcube_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.fits
.....................!
real 189.80
user 184.97
sys 4.52

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2253.9+1609 @ 343.496 16.1506

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/578560/ft1_filtered_4FGL_J2253.9+1609_daily_bin1124.fits scfile=/scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits outfile=/scratch/kocevski/578560/cmap_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.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.496 yref=16.1506 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578560/ft1_filtered_4FGL_J2253.9+1609_daily_bin1124.fits scfile=/scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits outfile=/scratch/kocevski/578560/cmap_HighResolution_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.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.496 yref=16.1506 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/578560/ft1_filtered_4FGL_J2253.9+1609_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578560/Model_4FGL_J2253.9+1609_daily_bin1124.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/578560/ft1_filtered_4FGL_J2253.9+1609_daily_bin1124.fits.....................!
real 86.34
user 84.96
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/578560/ft1_filtered_4FGL_J2253.9+1609_daily_bin1124.fits', '/scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits', expMap='/scratch/kocevski/578560/expmap_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.fits', expCube='/scratch/kocevski/578560/ltcube_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/578560/Model_4FGL_J2253.9+1609_daily_bin1124.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.9+1609'

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/578560/ft1_filtered_4FGL_J2253.9+1609_daily_bin1124.fits
Spacecraft file(s): /scratch/kocevski/578560/ft2_4FGL_J2253.9+1609_daily_bin1124.fits
Exposure map: /scratch/kocevski/578560/expmap_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.fits
Exposure cube: /scratch/kocevski/578560/ltcube_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/578560/Model_4FGL_J2253.9+1609_daily_bin1124.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) = 8121.85662371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9295       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3651       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6544       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2432       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3286       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.357       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.990       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.614       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.3156       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3872       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .62150       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8121.851     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2662 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.369        .99571E-06** at limit **
   2  norm          .10000E-03    1.5236        .17083E-06** at limit **
   3  Prefactor     9.9257        15.932        .15598E-06    .74340E-05
   4  Prefactor     .10000E-03    5.0707        .40009E-06** at limit **
   5  Prefactor     3.3651        .40437       -.35839E-07   -.70182E-03
   6  Prefactor     .10000E-03    4.0823        .10379E-06** at limit **
   7  norm          4.6545        2.0444       -.24694E-07   -.68822E-04
   8  Prefactor     25.089        24.230       -.47432E-08   -.10651E-04
   9  Prefactor     .10000E-03    6.4192        .45791E-06** at limit **
  10  Prefactor     .10000E-03    10.156        .36747E-07** at limit **
  11  Prefactor     1.2432        .22105       -.34437E-07   -.13248E-02
  12  Prefactor     .10000E-03    5.8233        .52431E-06** at limit **
  13  Prefactor     7.2466        60.087       -.50113E-05   -.53601E-04
  14  Prefactor     .10000E-03    2.9160        .17537E-06** at limit **
  15  Prefactor     15.358        10.696       -.28531E-06   -.64596E-04
  16  Prefactor     44.993        31.371       -.49003E-06   -.45226E-05
  17  Prefactor     .10000E-03    2.3394        .34560E-06** at limit **
  18  Prefactor     17.614        15.406       -.39044E-06   -.40327E-04
  19  Prefactor     .10000E-03    4.9934        .18031E-06** at limit **
  20  norm          8.3272        10.934        .35450E-06    .10518E-03
  21  Prefactor     .10000E-03    11.339        .53956E-06** at limit **
  22  norm          .10000E-03    6.3924        .23112E-06** at limit **
  23  Normalizat    1.3868        .27385        .65042E-05   -.13224E-03
  24  Prefactor     .62172        .13508       -.45844E-05   -.64365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.92575
  Prefactor  = 0.0001
  Prefactor  = 3.3651
  Prefactor  = 0.0001
  norm       = 4.65454
  Prefactor  = 25.0895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.24324
  Prefactor  = 0.0001
  Prefactor  = 7.24661
  Prefactor  = 0.0001
  Prefactor  = 15.3582
  Prefactor  = 44.9925
  Prefactor  = 0.0001
  Prefactor  = 17.6138
  Prefactor  = 0.0001
  norm       = 8.3272
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.38684
  Prefactor  = 0.621719
 **********
 **   18 **HESSE 
 **********

 FCN=   8121.851     FROM HESSE     STATUS=OK           393 CALLS     3055 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5303        .10871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9257        15.980        .12716E-03   -1.5078    
   4  Prefactor     .10000E-03    5.0928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3651        .40604        .18144E-04   -1.5341    
   6  Prefactor     .10000E-03    4.1105        .17785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6545        2.0449        .82917E-04   -1.5276    
   8  Prefactor     25.089        24.259        .79972E-04   -1.4706    
   9  Prefactor     .10000E-03    6.4599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2432        .22146        .16784E-04   -1.5485    
  12  Prefactor     .10000E-03    5.8637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2466        61.598        .14816E-03   -1.5170    
  14  Prefactor     .10000E-03    2.9305        .15033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.358        10.696        .10221E-03   -1.4924    
  16  Prefactor     44.993        31.397        .59773E-04   -1.4365    
  17  Prefactor     .10000E-03    2.3608        .13479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.614        15.382        .95431E-04   -1.4868    
  19  Prefactor     .10000E-03    4.9992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.3272        10.896        .13902E-03   -1.5131    
  21  Prefactor     .10000E-03    11.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.4067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3868        .27368        .32169E-03   -.81010    
  24  Prefactor     .62172        .13603        .24171E-03   -1.0668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64712e-10
Minuit parameter uncertainties:
  1  0.000120912
  2  5.6445e-06
  3  15.9869
  4  1.61233e-05
  5  0.406042
  6  1.02959e-05
  7  2.04491
  8  24.2688
  9  2.70293e-05
  10  1.18424e-06
  11  0.221461
  12  3.47462e-05
  13  42.314
  14  8.46515e-06
  15  10.6977
  16  31.4086
  17  1.26018e-05
  18  15.3855
  19  7.46043e-06
  20  10.8985
  21  5.61604e-06
  22  1.46171e-05
  23  0.273966
  24  0.1361
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.243e+00  2.215e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  6.217e-01  1.361e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.387e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 97.16
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.53e-07 +/- 8.07e-08
Energy Flux (Fixed Index): 1.46e-04 +/- 2.59e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8121.59065762
delta logL = 0.260665504435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8121.56202749
delta logL = 0.289295640299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3320       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1633       1.0000          .0000       10.000    
     3 'Normalizat'    1.3494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8121.562     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3320        .23632        .38542E-02    .32101E-02
   2  Index1        2.1633        .17740        .83946E-01   -.42474E-03
   3  Normalizat    1.3494        .22236        .73440E-01   -.23186E-03
   4  Prefactor     .63513        .11583        .41531E-01   -.64384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33204
  Index1     = 2.16325
  Normalizat = 1.34941
  Prefactor  = 0.635133
 **********
 **   18 **HESSE 
 **********

 FCN=   8121.562     FROM HESSE     STATUS=OK            27 CALLS      232 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3320        .25150        .17044E-04   -1.5477    
   2  Index1        2.1633        .19092        .36712E-03   -.60328    
   3  Normalizat    1.3494        .26377        .32497E-03   -.82103    
   4  Prefactor     .63513        .13676        .23932E-03   -1.0613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06838e-10
Minuit parameter uncertainties:
  1  0.251499
  2  0.190993
  3  0.264035
  4  0.136836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578560': 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) = 8121.56202748
delta logL = 0.289295646887

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.332e+00  2.515e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.163e+00  1.910e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  6.351e-01  1.368e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.349e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 96.72
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.16 +/- 0.19
Photon Flux (Free Index): 4.93e-07 +/- 9.90e-08
Energy Flux (Free Index): 1.39e-04 +/- 2.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/578560/cmap_HighResolution_530668801_530928001_4FGL_J2253.9+1609_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.53e-07', energy_flux2='1.39e-04', photon_flux_error='8.07e-08', dlogl='2.89e-01', energy_flux='1.46e-04', photon_flux2='4.93e-07', job_status='DONE', time_completed='2021-09-29 02:15:24.610919', photon_index_error2='0.19', photon_index2='2.16', ts='97.16', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='1.39', time_epoch_completed='1632906924.61', return_code='0', job_id='578560', GAL2='0.64', EG2='1.35', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='9.90e-08', ts2='96.72', photon_index='2.02' WHERE bin_id='1124' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:15:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 578560: <4FGL_J2253.9+1609_daily_bin1124> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1124> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:00:40 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:00:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:00:40 2021
Terminated at Wed Sep 29 02:15:25 2021
Results reported at Wed Sep 29 02:15:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1124 343.496 16.1506 530668801 530928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.9+1609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   674.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

