/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 1 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2253.9+1609_daily_bin88
RA = 343.496, Dec = 16.1506
tmin = 262137601, tmax = 262396801
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='572952', job_status='RUN', time_executed='2021-09-29 01:45:47.567370', time_epoch_executed='1632905147.57' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572952

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572952/ft1_4FGL_J2253.9+1609_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572952/ft2_4FGL_J2253.9+1609_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572952/ft1_4FGL_J2253.9+1609_daily_bin88.fits outfile=/scratch/kocevski/572952/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin88.fits ra=343.496 dec=16.1506 rad=12.0 tmin=262137601.0 tmax=262396801.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 1.41
user 1.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572952/ft2_4FGL_J2253.9+1609_daily_bin88.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/572952/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin88.fits evtable="EVENTS" outfile="/scratch/kocevski/572952/ft1_filtered_4FGL_J2253.9+1609_daily_bin88.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.53
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572952/ft1_filtered_4FGL_J2253.9+1609_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/572952/ft2_4FGL_J2253.9+1609_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/572952/ltcube_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.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/572952/ft2_4FGL_J2253.9+1609_daily_bin88.fits
.....................!
real 16.46
user 16.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572952/ft1_filtered_4FGL_J2253.9+1609_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/572952/ft2_4FGL_J2253.9+1609_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/572952/ltcube_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.fits outfile=/scratch/kocevski/572952/expmap_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.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/572952/ltcube_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.fits
.....................!
real 190.91
user 185.01
sys 5.42

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/572952/ft1_filtered_4FGL_J2253.9+1609_daily_bin88.fits scfile=/scratch/kocevski/572952/ft2_4FGL_J2253.9+1609_daily_bin88.fits outfile=/scratch/kocevski/572952/cmap_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572952/ft1_filtered_4FGL_J2253.9+1609_daily_bin88.fits scfile=/scratch/kocevski/572952/ft2_4FGL_J2253.9+1609_daily_bin88.fits outfile=/scratch/kocevski/572952/cmap_HighResolution_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/572952/ft1_filtered_4FGL_J2253.9+1609_daily_bin88.fits', '/scratch/kocevski/572952/ft2_4FGL_J2253.9+1609_daily_bin88.fits', expMap='/scratch/kocevski/572952/expmap_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.fits', expCube='/scratch/kocevski/572952/ltcube_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/572952/Model_4FGL_J2253.9+1609_daily_bin88.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/572952/ft1_filtered_4FGL_J2253.9+1609_daily_bin88.fits
Spacecraft file(s): /scratch/kocevski/572952/ft2_4FGL_J2253.9+1609_daily_bin88.fits
Exposure map: /scratch/kocevski/572952/expmap_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.fits
Exposure cube: /scratch/kocevski/572952/ltcube_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/572952/Model_4FGL_J2253.9+1609_daily_bin88.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) = 10386.2575416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.168       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .68181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9566       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.102       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6146       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5166       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2159       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8532       1.0000         .10000E-03   10000.    
    20 'norm      '    33.665       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.0180       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0037       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79715       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=   10386.25     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2711 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5557        .98336E-06** at limit **
   2  norm          12.166        6.2202       -.28744E-07   -.92507E-04
   3  Prefactor     6.3691        10.452        .85922E-06    .31697E-04
   4  Prefactor     .10000E-03    2.4785        .27075E-07** at limit **
   5  Prefactor     .68177        .19157        .38467E-08   -.19224E-03
   6  Prefactor     .10000E-03    1.6220       -.11378E-07** at limit **
   7  norm          2.9563        1.5111        .14076E-07    .30709E-03
   8  Prefactor     42.101        29.340       -.68912E-06   -.51414E-04
   9  Prefactor     .10000E-03    6.0071       -.26663E-05** at limit **
  10  Prefactor     .10000E-03    6.6504        .26755E-05** at limit **
  11  Prefactor     2.6145        .24871        .89846E-08    .51544E-04
  12  Prefactor     .10000E-03    2.3370       -.64948E-07** at limit **
  13  Prefactor     .10000E-03    7.5181       -.81055E-06** at limit **
  14  Prefactor     3.7576        4.5015       -.39424E-07   -.56585E-04
  15  Prefactor     .10000E-03    4.0669       -.67393E-07** at limit **
  16  Prefactor     2.5110        15.615        .50171E-05   -.53466E-03
  17  Prefactor     .81297E-01    3.9322       -.36213E-06   -.19578E-04
  18  Prefactor     3.2127        8.0349       -.21792E-05   -.21832E-03
  19  Prefactor     9.8925        16.416        .16639E-05    .16216E-03
  20  norm          33.665        9.6582        .11819E-05    .55663E-03
  21  Prefactor     .10000E-03    1.9657       -.95456E-08** at limit **
  22  norm          7.0163        10.279        .24589E-06    .23259E-05
  23  Normalizat    1.0039        .19228       -.11442E-05    .12705E-03
  24  Prefactor     .79714        .10020        .80666E-07    .79940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.1657
  Prefactor  = 6.36914
  Prefactor  = 0.0001
  Prefactor  = 0.681766
  Prefactor  = 0.0001
  norm       = 2.9563
  Prefactor  = 42.1011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.75757
  Prefactor  = 0.0001
  Prefactor  = 2.51099
  Prefactor  = 0.081297
  Prefactor  = 3.21268
  Prefactor  = 9.89252
  norm       = 33.6652
  Prefactor  = 0.0001
  norm       = 7.01632
  Normalizat = 1.00394
  Prefactor  = 0.797142
 **********
 **   18 **HESSE 
 **********

 FCN=   10386.25     FROM HESSE     STATUS=OK           407 CALLS     3118 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.166        6.2388        .11484E-03   -1.5010    
   3  Prefactor     6.3691        10.438        .15901E-03   -1.5203    
   4  Prefactor     .10000E-03    2.4827        .15668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .68177        .19152        .22102E-04   -1.5543    
   6  Prefactor     .10000E-03    1.6229        .12675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9563        1.5111        .43552E-03   -1.5364    
   8  Prefactor     42.101        29.437        .61781E-04   -1.4409    
   9  Prefactor     .10000E-03    6.0972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6145        .25013        .14509E-04   -1.5385    
  12  Prefactor     .10000E-03    2.3392        .15214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.5291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7576        4.4991        .20829E-03   -1.5320    
  15  Prefactor     .10000E-03    4.0813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5110        37.643        .12877E-02   -1.5391    
  17  Prefactor     .81297E-01    4.7321        .53281E-01   -1.5651    
  18  Prefactor     3.2127        8.1505        .22591E-03   -1.5349    
  19  Prefactor     9.8925        16.555        .12766E-03   -1.5079    
  20  norm          33.665        9.7253        .69064E-04   -1.4547    
  21  Prefactor     .10000E-03    1.9740        .13948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.0163        10.277        .15143E-03   -1.5178    
  23  Normalizat    1.0039        .22631        .34421E-03   -.92899    
  24  Prefactor     .79714        .11766        .21147E-03   -.99834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09967e-09
Minuit parameter uncertainties:
  1  3.36919e-05
  2  6.23914
  3  10.441
  4  1.79137e-06
  5  0.191524
  6  6.80878e-08
  7  1.51108
  8  29.4468
  9  8.15144e-05
  10  9.90244e-05
  11  0.25013
  12  5.81107e-07
  13  2.98437e-05
  14  4.49948
  15  2.98013e-06
  16  19.4587
  17  1.23984
  18  8.15334
  19  16.5625
  20  9.72574
  21  8.21103e-06
  22  10.2795
  23  0.226523
  24  0.117694
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.614e+00  2.501e-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:  7.971e-01  1.177e-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.004e+00  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 374.50
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 9.54e-07 +/- 9.12e-08
Energy Flux (Fixed Index): 3.06e-04 +/- 2.93e-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) = 10386.2436331
delta logL = 0.00244300819213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10386.2430468
delta logL = 0.00302933137755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6232       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0276       1.0000          .0000       10.000    
     3 'Normalizat'    1.0004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79845       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=   10386.24     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      198 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6234        .25690        .32850E-02   -.98346E-04
   2  Index1        2.0276        .98489E-01    .52234E-01   -.80129E-04
   3  Normalizat    1.0003        .18411        .77887E-01    .23127E-04
   4  Prefactor     .79848        .10041        .43697E-01    .11320E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62337
  Index1     = 2.02761
  Normalizat = 1.00031
  Prefactor  = 0.798483
 **********
 **   18 **HESSE 
 **********

 FCN=   10386.24     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .64E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6234        .26963        .14519E-04   -1.5384    
   2  Index1        2.0276        .10371        .23014E-03   -.63662    
   3  Normalizat    1.0003        .21759        .34470E-03   -.93020    
   4  Prefactor     .79848        .11829        .21130E-03   -.99784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43097e-14
Minuit parameter uncertainties:
  1  0.269634
  2  0.103724
  3  0.217786
  4  0.118328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572952': 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) = 10386.2430465
delta logL = 0.00302958229622

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.623e+00  2.696e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.028e+00  1.037e-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:  7.985e-01  1.183e-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.000e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 374.26
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.03 +/- 0.10
Photon Flux (Free Index): 9.57e-07 +/- 1.02e-07
Energy Flux (Free Index): 3.05e-04 +/- 3.20e-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/572952/cmap_HighResolution_262137601_262396801_4FGL_J2253.9+1609_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.54e-07', energy_flux2='3.05e-04', photon_flux_error='9.12e-08', dlogl='3.03e-03', energy_flux='3.06e-04', photon_flux2='9.57e-07', job_status='DONE', time_completed='2021-09-29 01:59:10.674589', photon_index_error2='0.10', photon_index2='2.03', ts='374.50', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='3.20e-05', EG='1.00', time_epoch_completed='1632905950.67', return_code='0', job_id='572952', GAL2='0.80', EG2='1.00', return_code2='0', energy_flux_error='2.93e-05', photon_flux_error2='1.02e-07', ts2='374.26', photon_index='2.02' WHERE bin_id='88' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:59:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 572952: <4FGL_J2253.9+1609_daily_bin88> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin88> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:45:37 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:45:38 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:45:38 2021
Terminated at Wed Sep 29 01:59:11 2021
Results reported at Wed Sep 29 01:59:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin88 343.496 16.1506 262137601 262396801 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 :                                   799.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

