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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin78
RA = 343.496, Dec = 16.1506
tmin = 259545601, tmax = 259804801
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='572936', job_status='RUN', time_executed='2021-09-29 01:48:11.931711', time_epoch_executed='1632905291.93' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572936

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572936/ft1_4FGL_J2253.9+1609_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572936/ft2_4FGL_J2253.9+1609_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572936/ft1_4FGL_J2253.9+1609_daily_bin78.fits outfile=/scratch/kocevski/572936/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin78.fits ra=343.496 dec=16.1506 rad=12.0 tmin=259545601.0 tmax=259804801.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.68
user 1.49
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572936/ft1_filtered_4FGL_J2253.9+1609_daily_bin78.fits" evtable="EVENTS" scfile=/scratch/kocevski/572936/ft2_4FGL_J2253.9+1609_daily_bin78.fits sctable="SC_DATA" outfile=/scratch/kocevski/572936/ltcube_259545601_259804801_4FGL_J2253.9+1609_daily_bin78.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/572936/ft2_4FGL_J2253.9+1609_daily_bin78.fits
.....................!
real 12.39
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572936/ft1_filtered_4FGL_J2253.9+1609_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/572936/ft2_4FGL_J2253.9+1609_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/572936/ltcube_259545601_259804801_4FGL_J2253.9+1609_daily_bin78.fits outfile=/scratch/kocevski/572936/expmap_259545601_259804801_4FGL_J2253.9+1609_daily_bin78.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/572936/ltcube_259545601_259804801_4FGL_J2253.9+1609_daily_bin78.fits
.....................!
real 189.89
user 184.95
sys 4.60

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/572936/ft1_filtered_4FGL_J2253.9+1609_daily_bin78.fits scfile=/scratch/kocevski/572936/ft2_4FGL_J2253.9+1609_daily_bin78.fits outfile=/scratch/kocevski/572936/cmap_259545601_259804801_4FGL_J2253.9+1609_daily_bin78.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572936/ft1_filtered_4FGL_J2253.9+1609_daily_bin78.fits scfile=/scratch/kocevski/572936/ft2_4FGL_J2253.9+1609_daily_bin78.fits outfile=/scratch/kocevski/572936/cmap_HighResolution_259545601_259804801_4FGL_J2253.9+1609_daily_bin78.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6122       1.0000         .10000E-03   10000.    
     2 'norm      '    .10559E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42418E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5700       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34913       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2423       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .57860E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26444       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8964       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5441       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9538       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.1017       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31398       1.0000         .10000E-03   10000.    
    22 'norm      '    4.3810       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4714       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91611       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=   11149.86     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2370 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6030        24.414       -.18082E-04   -.12848E-03
   2  norm          .10000E-03    2.2573       -.27356E-06** at limit **
   3  Prefactor     .10049E-03    4.5361        .22812E-05** at limit **
   4  Prefactor     1.5724        5.8768        .13801E-05   -.43672E-03
   5  Prefactor     .34901        .15622       -.43816E-07   -.39152E-02
   6  Prefactor     9.2420        6.5768       -.76323E-07   -.13035E-03
   7  norm          1.5122        1.1577        .21234E-07    .59195E-03
   8  Prefactor     4.9564        13.623       -.31036E-06    .12479E-04
   9  Prefactor     .10002E-03    3.9945       -.15901E-05** at limit **
  10  Prefactor     .10000E-03    17.438       -.78979E-05** at limit **
  11  Prefactor     .26442        .12086        .27610E-08    .24581E-02
  12  Prefactor     .10000E-03    6.0677        .60029E-06** at limit **
  13  Prefactor     .10000E-03    38.009       -.60036E-05** at limit **
  14  Prefactor     6.8962        4.7695       -.13817E-05   -.20918E-03
  15  Prefactor     2.5383        9.2194       -.50919E-06    .32611E-06
  16  Prefactor     .10000E-03    5.8644       -.68330E-07** at limit **
  17  Prefactor     .10000E-03    4.1854       -.63552E-08** at limit **
  18  Prefactor     1.9536        4.4653       -.80144E-06   -.85423E-03
  19  Prefactor     .10000E-03    12.496        .31751E-05** at limit **
  20  norm          8.1154        9.0236        .48341E-07   -.11044E-03
  21  Prefactor     .27025        5.3820       -.14733E-06   -.35104E-04
  22  norm          4.3819        7.3541       -.16086E-06   -.45681E-05
  23  Normalizat    1.4716        .18517        .10290E-05    .46934E-04
  24  Prefactor     .91603        .10005        .36185E-06    .10604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.60297
  norm       = 0.0001
  Prefactor  = 0.000100487
  Prefactor  = 1.57242
  Prefactor  = 0.349006
  Prefactor  = 9.24204
  norm       = 1.5122
  Prefactor  = 4.95642
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.264424
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.89615
  Prefactor  = 2.53833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.95362
  Prefactor  = 0.0001
  norm       = 8.11541
  Prefactor  = 0.27025
  norm       = 4.38193
  Normalizat = 1.47162
  Prefactor  = 0.916032
 **********
 **   18 **HESSE 
 **********

 FCN=   11149.86     FROM HESSE     STATUS=OK           411 CALLS     2781 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6030        24.726        .15606E-03   -1.5194    
   2  norm          .10000E-03    6.1198        .30588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10049E-03    28.176        .40892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5724        12.798        .16965E-02   -1.5457    
   5  Prefactor     .34901        .15117        .26073E-04   -1.5590    
   6  Prefactor     9.2420        6.5787        .65914E-03   -1.5100    
   7  norm          1.5122        1.1486        .95951E-04   -1.5462    
   8  Prefactor     4.9564        13.605        .18065E-03   -1.5263    
   9  Prefactor     .10002E-03    12.728        .39765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .26442        .11837        .23245E-04   -1.5605    
  12  Prefactor     .10000E-03    6.1210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8962        4.7663        .15278E-03   -1.5183    
  15  Prefactor     2.5383        9.2083        .25602E-03   -1.5389    
  16  Prefactor     .10000E-03    5.8713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9536        5.7342        .14843E-02   -1.5428    
  19  Prefactor     .10000E-03    12.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.1154        9.3254        .70429E-03   -1.5138    
  21  Prefactor     .27025        48.855        .40171E-02   -1.5604    
  22  norm          4.3819        7.3434        .19242E-03   -1.5289    
  23  Normalizat    1.4716        .22040        .30208E-03   -.78579    
  24  Prefactor     .91603        .11909        .20805E-03   -.95583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21759e-07
Minuit parameter uncertainties:
  1  24.7641
  2  7.03935e-05
  3  0.00741286
  4  8.97415
  5  0.151175
  6  6.57918
  7  1.14865
  8  13.6132
  9  0.00110287
  10  0.00018695
  11  0.118375
  12  4.28651e-06
  13  0.000278616
  14  4.76656
  15  9.21339
  16  4.59201e-06
  17  1.08114e-05
  18  5.73582
  19  4.83048e-05
  20  9.32709
  21  7.27189
  22  7.34492
  23  0.220541
  24  0.119122
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.644e-01  1.184e-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:  9.160e-01  1.191e-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.472e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.71
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 9.64e-08 +/- 4.32e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 1.39e-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) = 11149.1519016
delta logL = 0.712846824841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11149.1514749
delta logL = 0.713273556952

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35474       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.6550       1.0000          .0000       10.000    
     3 'Normalizat'    1.4004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94350       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=   11149.15     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      246 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35474        .32182        .51808E-02    .28962E-02
   2  Index1        2.6550        1.1138        .23025       -.28751E-04
   3  Normalizat    1.4004        .17964        .69624E-01    .67017E-04
   4  Prefactor     .94350        .10247        .45557E-01    .34166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.354742
  Index1     = 2.65499
  Normalizat = 1.40045
  Prefactor  = 0.943504
 **********
 **   18 **HESSE 
 **********

 FCN=   11149.15     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35474        .13828        .23225E-04   -1.5589    
   2  Index1        2.6550        .57948        .11209E-01   -.48816    
   3  Normalizat    1.4004        .22033        .30804E-03   -.80616    
   4  Prefactor     .94350        .12102        .20532E-03   -.94637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37619e-11
Minuit parameter uncertainties:
  1  0.138284
  2  0.581157
  3  0.220484
  4  0.121052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572936': 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) = 11149.1514749
delta logL = 0.713273557023

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.547e-01  1.383e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.655e+00  5.812e-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:  9.435e-01  1.211e-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.400e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.28
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.65 +/- 0.58
Photon Flux (Free Index): 1.47e-07 +/- 6.48e-08
Energy Flux (Free Index): 3.05e-05 +/- 1.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/572936/cmap_HighResolution_259545601_259804801_4FGL_J2253.9+1609_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.64e-08', energy_flux2='3.05e-05', photon_flux_error='4.32e-08', dlogl='7.13e-01', energy_flux='3.10e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-29 02:00:56.929095', photon_index_error2='0.58', photon_index2='2.65', ts='8.71', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.47', time_epoch_completed='1632906056.93', return_code='0', job_id='572936', GAL2='0.94', EG2='1.40', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='6.48e-08', ts2='10.28', photon_index='2.02' WHERE bin_id='78' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 572936: <4FGL_J2253.9+1609_daily_bin78> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin78 343.496 16.1506 259545601 259804801 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 :                                   764.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

