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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin748
RA = 343.496, Dec = 16.1506
tmin = 433209601, tmax = 433468801
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='576796', job_status='RUN', time_executed='2021-09-29 01:55:46.154644', time_epoch_executed='1632905746.15' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576796

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576796/ft1_4FGL_J2253.9+1609_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576796/ft2_4FGL_J2253.9+1609_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576796/ft1_4FGL_J2253.9+1609_daily_bin748.fits outfile=/scratch/kocevski/576796/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin748.fits ra=343.496 dec=16.1506 rad=12.0 tmin=433209601.0 tmax=433468801.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 5.96
user 5.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576796/ft2_4FGL_J2253.9+1609_daily_bin748.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/576796/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/576796/ft1_filtered_4FGL_J2253.9+1609_daily_bin748.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576796/ft1_filtered_4FGL_J2253.9+1609_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/576796/ft2_4FGL_J2253.9+1609_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/576796/ltcube_433209601_433468801_4FGL_J2253.9+1609_daily_bin748.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/576796/ft2_4FGL_J2253.9+1609_daily_bin748.fits
.....................!
real 12.28
user 11.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576796/ft1_filtered_4FGL_J2253.9+1609_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/576796/ft2_4FGL_J2253.9+1609_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/576796/ltcube_433209601_433468801_4FGL_J2253.9+1609_daily_bin748.fits outfile=/scratch/kocevski/576796/expmap_433209601_433468801_4FGL_J2253.9+1609_daily_bin748.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/576796/ltcube_433209601_433468801_4FGL_J2253.9+1609_daily_bin748.fits
.....................!
real 189.76
user 185.45
sys 3.92

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/576796/ft1_filtered_4FGL_J2253.9+1609_daily_bin748.fits scfile=/scratch/kocevski/576796/ft2_4FGL_J2253.9+1609_daily_bin748.fits outfile=/scratch/kocevski/576796/cmap_433209601_433468801_4FGL_J2253.9+1609_daily_bin748.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576796/ft1_filtered_4FGL_J2253.9+1609_daily_bin748.fits scfile=/scratch/kocevski/576796/ft2_4FGL_J2253.9+1609_daily_bin748.fits outfile=/scratch/kocevski/576796/cmap_HighResolution_433209601_433468801_4FGL_J2253.9+1609_daily_bin748.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/576796/ft1_filtered_4FGL_J2253.9+1609_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/576796/ft2_4FGL_J2253.9+1609_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/576796/Model_4FGL_J2253.9+1609_daily_bin748.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/576796/ft1_filtered_4FGL_J2253.9+1609_daily_bin748.fits.....................!
real 60.21
user 58.91
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10354E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.1218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.139       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3793       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11114E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.183       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6850       1.0000         .10000E-03   10000.    
    22 'norm      '    20.117       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92456       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67968       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4606.149     FROM MIGRAD    STATUS=CONVERGED    946 CALLS     3079 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.276        .18142E-02** at limit **
   2  norm          .10000E-03    6.1834        .16435E-02** at limit **
   3  Prefactor     1.1334        256.21        .70647E-02    .32024E-04
   4  Prefactor     .10000E-03    25.173        .18142E-02** at limit **
   5  Prefactor     1.7030        .54318        .24621E-04    .43082E-02
   6  Prefactor     .10000E-03    5.7540        .15896E-02** at limit **
   7  norm          7.1211        4.8856        .10785E-03    .18868E-04
   8  Prefactor     .10000E-03    20.815        .18142E-02** at limit **
   9  Prefactor     10.089        32.404        .12584E-03    .10299E-04
  10  Prefactor     8.5496        101.58        .13582E-03    .64454E-05
  11  Prefactor     7.4738        .71509        .15673E-04    .14728E-02
  12  Prefactor     .10000E-03    31.663        .18142E-02** at limit **
  13  Prefactor     .10000E-03    15.034        .18142E-02** at limit **
  14  Prefactor     .10000E-03    7.0597        .17591E-02** at limit **
  15  Prefactor     6.3832        14.402        .15891E-03   -.70824E-05
  16  Prefactor     .10000E-03    11.149        .18142E-02** at limit **
  17  Prefactor     34.178        15.966        .68540E-04    .34666E-04
  18  Prefactor     .10000E-03    9.3452        .18142E-02** at limit **
  19  Prefactor     .10000E-03    12.804        .18142E-02** at limit **
  20  norm          .10000E-03    3.7084        .12758E-02** at limit **
  21  Prefactor     6.6807        10.260        .15520E-03    .42267E-04
  22  norm          20.128        17.611        .89300E-04    .45958E-04
  23  Normalizat    .92457        .41344        .43029E-03    .12914E-03
  24  Prefactor     .67976        .20601        .25818E-03    .67998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.13343
  Prefactor  = 0.0001
  Prefactor  = 1.70305
  Prefactor  = 0.0001
  norm       = 7.12112
  Prefactor  = 0.0001
  Prefactor  = 10.0893
  Prefactor  = 8.54957
  Prefactor  = 7.47383
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.38316
  Prefactor  = 0.0001
  Prefactor  = 34.1776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.68073
  norm       = 20.1281
  Normalizat = 0.924568
  Prefactor  = 0.679755
 **********
 **   18 **HESSE 
 **********

 FCN=   4606.149     FROM HESSE     STATUS=OK           375 CALLS     3454 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.1845        .32869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1334        245.40        .28259E-03   -1.5495    
   4  Prefactor     .10000E-03    25.179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7030        .53240        .49242E-05   -1.5447    
   6  Prefactor     .10000E-03    5.7541        .31792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.1211        4.8856        .43141E-05   -1.5174    
   8  Prefactor     .10000E-03    20.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.089        32.393        .50337E-05   -1.5073    
  10  Prefactor     8.5496        101.38        .54327E-05   -1.5123    
  11  Prefactor     7.4738        .71495        .31346E-05   -1.5161    
  12  Prefactor     .10000E-03    31.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0602        .35182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3832        14.398        .63566E-05   -1.5203    
  16  Prefactor     .10000E-03    11.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.178        15.956        .27416E-05   -1.4538    
  18  Prefactor     .10000E-03    9.3469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.7084        .25516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6807        10.256        .62079E-05   -1.5191    
  22  norm          20.128        17.609        .35720E-05   -1.4810    
  23  Normalizat    .92457        .41360        .17212E-04   -.95602    
  24  Prefactor     .67976        .20599        .51635E-04   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01528e-09
Minuit parameter uncertainties:
  1  7.1335e-05
  2  4.01207e-05
  3  33.4935
  4  0.000191782
  5  0.532402
  6  1.34314e-05
  7  4.88589
  8  2.05783e-05
  9  32.4496
  10  59.0069
  11  0.714951
  12  0.000299589
  13  2.27885e-05
  14  1.23925e-06
  15  14.4062
  16  3.40401e-05
  17  15.9579
  18  3.63982e-05
  19  1.81926e-05
  20  6.19874e-06
  21  10.259
  22  17.6137
  23  0.415035
  24  0.206221
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.474e+00  7.150e-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.798e-01  2.062e-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:  9.246e-01  4.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 445.47
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.73e-06 +/- 2.61e-07
Energy Flux (Fixed Index): 8.75e-04 +/- 8.37e-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) = 4606.14798203
delta logL = 0.00115929733965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4606.14766816
delta logL = 0.00147316703624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4922       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0251       1.0000          .0000       10.000    
     3 'Normalizat'    .91949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68167       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=   4606.148     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      189 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4920        .73209        .35490E-02   -.54309E-04
   2  Index1        2.0251        .98682E-01    .25646E-01   -.33802E-04
   3  Normalizat    .91948        .34377        .97321E-01    .16173E-04
   4  Prefactor     .68165        .17600        .42157E-01    .10021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.492
  Index1     = 2.02505
  Normalizat = 0.919476
  Prefactor  = 0.68165
 **********
 **   18 **HESSE 
 **********

 FCN=   4606.148     FROM HESSE     STATUS=OK            31 CALLS      220 TOTAL
                     EDM=   .31E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4920        .75237        .15683E-04   -1.5160    
   2  Index1        2.0251        .10153        .14859E-03   -.63725    
   3  Normalizat    .91948        .40191        .43125E-03   -.95779    
   4  Prefactor     .68165        .20588        .25784E-03   -1.0425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12229e-15
Minuit parameter uncertainties:
  1  0.752367
  2  0.10154
  3  0.40323
  4  0.206108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576796': 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) = 4606.14766763
delta logL = 0.00147369579099

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.492e+00  7.524e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.025e+00  1.015e-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.816e-01  2.061e-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:  9.195e-01  4.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 437.26
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.03 +/- 0.10
Photon Flux (Free Index): 2.73e-06 +/- 2.84e-07
Energy Flux (Free Index): 8.73e-04 +/- 8.81e-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/576796/cmap_HighResolution_433209601_433468801_4FGL_J2253.9+1609_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.73e-06', energy_flux2='8.73e-04', photon_flux_error='2.61e-07', dlogl='1.47e-03', energy_flux='8.75e-04', photon_flux2='2.73e-06', job_status='DONE', time_completed='2021-09-29 02:05:04.092715', photon_index_error2='0.10', photon_index2='2.03', ts='445.47', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='8.81e-05', EG='0.92', time_epoch_completed='1632906304.09', return_code='0', job_id='576796', GAL2='0.68', EG2='0.92', return_code2='0', energy_flux_error='8.37e-05', photon_flux_error2='2.84e-07', ts2='437.26', photon_index='2.02' WHERE bin_id='748' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:05:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 576796: <4FGL_J2253.9+1609_daily_bin748> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:55:34 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:55:35 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:55:35 2021
Terminated at Wed Sep 29 02:05:04 2021
Results reported at Wed Sep 29 02:05:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin748 343.496 16.1506 433209601 433468801 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 :                                   554.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            570 sec.

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

