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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin487
RA = 343.496, Dec = 16.1506
tmin = 365558401, tmax = 365817601
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='575208', job_status='RUN', time_executed='2021-09-29 01:51:06.689620', time_epoch_executed='1632905466.69' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575208

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575208/ft1_4FGL_J2253.9+1609_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575208/ft2_4FGL_J2253.9+1609_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575208/ft1_4FGL_J2253.9+1609_daily_bin487.fits outfile=/scratch/kocevski/575208/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin487.fits ra=343.496 dec=16.1506 rad=12.0 tmin=365558401.0 tmax=365817601.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.63
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575208/ft2_4FGL_J2253.9+1609_daily_bin487.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/575208/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin487.fits evtable="EVENTS" outfile="/scratch/kocevski/575208/ft1_filtered_4FGL_J2253.9+1609_daily_bin487.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575208/ft1_filtered_4FGL_J2253.9+1609_daily_bin487.fits" evtable="EVENTS" scfile=/scratch/kocevski/575208/ft2_4FGL_J2253.9+1609_daily_bin487.fits sctable="SC_DATA" outfile=/scratch/kocevski/575208/ltcube_365558401_365817601_4FGL_J2253.9+1609_daily_bin487.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/575208/ft2_4FGL_J2253.9+1609_daily_bin487.fits
.....................!
real 11.81
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575208/ft1_filtered_4FGL_J2253.9+1609_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/575208/ft2_4FGL_J2253.9+1609_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/575208/ltcube_365558401_365817601_4FGL_J2253.9+1609_daily_bin487.fits outfile=/scratch/kocevski/575208/expmap_365558401_365817601_4FGL_J2253.9+1609_daily_bin487.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/575208/ltcube_365558401_365817601_4FGL_J2253.9+1609_daily_bin487.fits
.....................!
real 190.30
user 185.28
sys 4.68

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/575208/ft1_filtered_4FGL_J2253.9+1609_daily_bin487.fits scfile=/scratch/kocevski/575208/ft2_4FGL_J2253.9+1609_daily_bin487.fits outfile=/scratch/kocevski/575208/cmap_365558401_365817601_4FGL_J2253.9+1609_daily_bin487.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575208/ft1_filtered_4FGL_J2253.9+1609_daily_bin487.fits scfile=/scratch/kocevski/575208/ft2_4FGL_J2253.9+1609_daily_bin487.fits outfile=/scratch/kocevski/575208/cmap_HighResolution_365558401_365817601_4FGL_J2253.9+1609_daily_bin487.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6428       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.331       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11431E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5263       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8353       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.690       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37103E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3069       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76428       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1532       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=   8499.650     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2781 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6543       -.87490E-07** at limit **
   2  norm          .10000E-03    4.3488       -.45335E-06** at limit **
   3  Prefactor     .10000E-03    14.115       -.37361E-06** at limit **
   4  Prefactor     .10000E-03    19.409       -.12858E-05** at limit **
   5  Prefactor     2.9153        .36151        .14896E-07   -.48629E-03
   6  Prefactor     .10000E-03    2.4937       -.40156E-07** at limit **
   7  norm          .10000E-03    .74596       -.21111E-06** at limit **
   8  Prefactor     7.6078        23.454        .23558E-05   -.19739E-03
   9  Prefactor     16.322        16.377        .86603E-06   -.87440E-04
  10  Prefactor     .10000E-03    8.2978       -.40338E-06** at limit **
  11  Prefactor     .11171E-01    .90811E-01   -.46666E-06   -.40754E-02
  12  Prefactor     3.5061        13.392       -.58803E-06   -.53084E-05
  13  Prefactor     21.528        40.227       -.59863E-06    .39181E-04
  14  Prefactor     4.8318        6.8079        .75863E-06   -.11651E-03
  15  Prefactor     .10000E-03    4.7209       -.15807E-06** at limit **
  16  Prefactor     .10000E-03    7.9339        .26338E-07** at limit **
  17  Prefactor     .10000E-03    3.2899       -.59448E-06** at limit **
  18  Prefactor     .10000E-03    3.6173       -.54546E-07** at limit **
  19  Prefactor     34.680        20.803       -.40727E-07    .16926E-04
  20  norm          1.1428        12.177        .86056E-05   -.13472E-04
  21  Prefactor     .10477E-03    8.0565       -.56822E-05** at limit **
  22  norm          1.2491        51.743       -.14900E-05    .59581E-05
  23  Normalizat    .76409        .23986        .64752E-06    .12637E-03
  24  Prefactor     1.1533        .12581        .82704E-06    .28557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.91528
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.60783
  Prefactor  = 16.3225
  Prefactor  = 0.0001
  Prefactor  = 0.011171
  Prefactor  = 3.50614
  Prefactor  = 21.528
  Prefactor  = 4.83185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.6801
  norm       = 1.14283
  Prefactor  = 0.000104772
  norm       = 1.24911
  Normalizat = 0.764091
  Prefactor  = 1.15331
 **********
 **   18 **HESSE 
 **********

 FCN=   8499.650     FROM HESSE     STATUS=OK           405 CALLS     3186 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.4379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9153        .36168        .18282E-04   -1.5366    
   6  Prefactor     .10000E-03    2.4963        .14218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .76643        .15551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6078        23.276        .14506E-03   -1.5156    
   9  Prefactor     16.322        16.271        .49555E-03   -1.4900    
  10  Prefactor     .10000E-03    8.3064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11171E-01    .27260        .47811E-03   -1.5687    
  12  Prefactor     3.5061        13.364        .21527E-03   -1.5333    
  13  Prefactor     21.528        40.357        .86315E-04   -1.4780    
  14  Prefactor     4.8318        6.7746        .18294E-03   -1.5268    
  15  Prefactor     .10000E-03    4.7363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.9409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3217        .16331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6258        .17124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.680        20.806        .68039E-04   -1.4529    
  20  norm          1.1428        19.813        .21840E-02   -1.5494    
  21  Prefactor     .10477E-03    12.754        .55445E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2491        53.325        .38599E-03   -1.5484    
  23  Normalizat    .76409        .26746        .40897E-03   -1.0141    
  24  Prefactor     1.1533        .14288        .19159E-03   -.87780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88804e-09
Minuit parameter uncertainties:
  1  1.20548e-05
  2  3.86289e-05
  3  9.0884e-05
  4  0.000215869
  5  0.361677
  6  5.46319e-06
  7  6.17075e-06
  8  23.3042
  9  16.2759
  10  1.3319e-05
  11  0.109872
  12  13.3752
  13  40.4079
  14  6.77566
  15  2.55867e-05
  16  2.53824e-05
  17  1.09285e-06
  18  9.24187e-06
  19  20.8105
  20  9.52025
  21  0.0156055
  22  16.3377
  23  0.267923
  24  0.142923
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.117e-02  1.099e-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:  1.153e+00  1.429e-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:  7.641e-01  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 343.496 16.151
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575208/likelihoodResults_365558401_365817601_4FGL_J2253.9+1609_daily_bin487.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8499.18337677
delta logL = 0.466128223892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8498.9581552
delta logL = 0.691349789029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11703       1.0000         .10000E-03   10000.    
     2 'Index1    '    4.3017       1.0000          .0000       10.000    
     3 'Normalizat'    .65099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1913       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=   8498.958     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11706        1.4385        .57965E-02    .47862E-02
   2  Index1        4.3020        7.0678        .35966        .66680E-04
   3  Normalizat    .65097        .49999E-01    .99285E-01    .49897E-04
   4  Prefactor     1.1913        .28300E-01    .34841E-01   -.15270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.117062
  Index1     = 4.30197
  Normalizat = 0.65097
  Prefactor  = 1.19129
 **********
 **   18 **HESSE 
 **********

 FCN=   8498.958     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11706        .17190        .26034E-04   -1.5640    
   2  Index1        4.3020        2.1306        .18355E-01   -.14006    
   3  Normalizat    .65097        .26582        .44005E-03   -1.0586    
   4  Prefactor     1.1913        .14560        .18875E-03   -.86600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19897e-11
Minuit parameter uncertainties:
  1  0.171902
  2  2.20254
  3  0.266349
  4  0.145651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575208': 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) = 8498.95815508
delta logL = 0.691349911225

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.171e-01  1.719e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  4.302e+00  2.203e+00  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:  1.191e+00  1.457e-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:  6.510e-01  2.663e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 343.496 16.151
Photon Index (Free Index): 4.30 +/- 2.20
Photon Flux (Free Index): 1.03e-07 +/- 9.34e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.33e-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/575208/cmap_HighResolution_365558401_365817601_4FGL_J2253.9+1609_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='6.91e-01', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-29 02:04:23.879967', photon_index_error2='2.20', photon_index2='4.30', ts='0.01', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.33e-05', EG='0.76', time_epoch_completed='1632906263.88', return_code='0', job_id='575208', GAL2='1.19', EG2='0.65', return_code2='0', photon_flux_error2='9.34e-08', ts2='1.58', photon_index='2.02' WHERE bin_id='487' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:04:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 575208: <4FGL_J2253.9+1609_daily_bin487> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin487> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 01:50:41 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:50:46 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:50:46 2021
Terminated at Wed Sep 29 02:04:24 2021
Results reported at Wed Sep 29 02:04:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin487 343.496 16.1506 365558401 365817601 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 :                                   781.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            823 sec.

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

