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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1222
RA = 343.496, Dec = 16.1506
tmin = 556070401, tmax = 556329601
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='579792', job_status='RUN', time_executed='2021-09-29 02:09:06.219045', time_epoch_executed='1632906546.22' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579792/ft1_4FGL_J2253.9+1609_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579792/ft2_4FGL_J2253.9+1609_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579792/ft1_4FGL_J2253.9+1609_daily_bin1222.fits outfile=/scratch/kocevski/579792/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1222.fits ra=343.496 dec=16.1506 rad=12.0 tmin=556070401.0 tmax=556329601.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.71
user 3.53
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579792/ft2_4FGL_J2253.9+1609_daily_bin1222.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/579792/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1222.fits evtable="EVENTS" outfile="/scratch/kocevski/579792/ft1_filtered_4FGL_J2253.9+1609_daily_bin1222.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579792/ft1_filtered_4FGL_J2253.9+1609_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/579792/ft2_4FGL_J2253.9+1609_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/579792/ltcube_556070401_556329601_4FGL_J2253.9+1609_daily_bin1222.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/579792/ft2_4FGL_J2253.9+1609_daily_bin1222.fits
.....................!
real 11.72
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579792/ft1_filtered_4FGL_J2253.9+1609_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/579792/ft2_4FGL_J2253.9+1609_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/579792/ltcube_556070401_556329601_4FGL_J2253.9+1609_daily_bin1222.fits outfile=/scratch/kocevski/579792/expmap_556070401_556329601_4FGL_J2253.9+1609_daily_bin1222.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/579792/ltcube_556070401_556329601_4FGL_J2253.9+1609_daily_bin1222.fits
.....................!
real 191.16
user 186.38
sys 4.44

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/579792/ft1_filtered_4FGL_J2253.9+1609_daily_bin1222.fits scfile=/scratch/kocevski/579792/ft2_4FGL_J2253.9+1609_daily_bin1222.fits outfile=/scratch/kocevski/579792/cmap_556070401_556329601_4FGL_J2253.9+1609_daily_bin1222.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .93929E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .82241       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1424       1.0000         .10000E-03   10000.    
    12 'Prefactor '    97.353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.913       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7796       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10914E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.491       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9125       1.0000         .10000E-03   10000.    
    22 'norm      '    26.789       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .29963       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2232       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=   2987.648     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2683 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    115.52       -.59994E-07** at limit **
   2  norm          .10000E-03    5.9911       -.58891E-08** at limit **
   3  Prefactor     .10000E-03    141.39       -.52906E-05** at limit **
   4  Prefactor     .10000E-03    42.396       -.23308E-07** at limit **
   5  Prefactor     .82234        .42804       -.10862E-06    .77271E-03
   6  Prefactor     .10000E-03    29.227        .56221E-06** at limit **
   7  norm          .10000E-03    3.4695        .12187E-06** at limit **
   8  Prefactor     .10000E-03    85.059        .68287E-06** at limit **
   9  Prefactor     .10000E-03    16.144        .19593E-06** at limit **
  10  Prefactor     .10000E-03    33.342       -.79551E-07** at limit **
  11  Prefactor     1.1425        .39461       -.10388E-07   -.12126E-02
  12  Prefactor     97.402        67.973        .41828E-07    .26929E-04
  13  Prefactor     .10000E-03    108.77       -.60139E-06** at limit **
  14  Prefactor     .10000E-03    12.530       -.95926E-07** at limit **
  15  Prefactor     .10000E-03    14.773       -.10122E-06** at limit **
  16  Prefactor     .10000E-03    105.86        .86550E-06** at limit **
  17  Prefactor     26.910        22.570       -.79034E-06   -.69411E-04
  18  Prefactor     7.7761        11.535       -.45567E-06   -.80201E-04
  19  Prefactor     .10000E-03    41.519       -.28235E-06** at limit **
  20  norm          10.489        16.698        .22481E-05   -.48299E-03
  21  Prefactor     7.9255        15.417       -.22995E-05   -.12783E-03
  22  norm          26.771        27.676       -.19322E-06   -.55142E-04
  23  Normalizat    .29926        .48230        .15031E-04    .62206E-04
  24  Prefactor     1.2233        .25457       -.39565E-05    .17367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.822343
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14252
  Prefactor  = 97.4019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9097
  Prefactor  = 7.7761
  Prefactor  = 0.0001
  norm       = 10.4891
  Prefactor  = 7.92549
  norm       = 26.7705
  Normalizat = 0.29926
  Prefactor  = 1.22332
 **********
 **   18 **HESSE 
 **********

 FCN=   2987.648     FROM HESSE     STATUS=OK           395 CALLS     3078 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    115.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.9935        .13067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    141.56        .36380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .82234        .42707        .24013E-04   -1.5527    
   6  Prefactor     .10000E-03    29.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.4924        .99395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    85.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1425        .39189        .18905E-04   -1.5494    
  12  Prefactor     97.402        67.931        .20370E-03   -1.3731    
  13  Prefactor     .10000E-03    109.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    105.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.910        22.395        .77222E-04   -1.4670    
  18  Prefactor     7.7761        11.544        .14377E-03   -1.5150    
  19  Prefactor     .10000E-03    41.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.489        15.578        .61850E-03   -1.5060    
  21  Prefactor     7.9255        15.320        .14254E-03   -1.5145    
  22  norm          26.771        27.633        .77400E-04   -1.4673    
  23  Normalizat    .29926        .45075        .62631E-03   -1.2288    
  24  Prefactor     1.2233        .24530        .18337E-03   -.85617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28468e-10
Minuit parameter uncertainties:
  1  0.000117445
  2  4.61107e-07
  3  0.00156929
  4  9.3755e-05
  5  0.427069
  6  0.000119627
  7  7.97135e-06
  8  0.000534607
  9  5.65084e-05
  10  1.96518e-05
  11  0.391895
  12  67.9854
  13  0.000105035
  14  4.19327e-06
  15  4.53891e-06
  16  9.34203e-05
  17  22.4024
  18  11.5471
  19  6.31417e-05
  20  15.5835
  21  15.3276
  22  27.6461
  23  0.456373
  24  0.245529
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.143e+00  3.919e-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.223e+00  2.455e-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:  2.993e-01  4.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.18
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.17e-07 +/- 1.43e-07
Energy Flux (Fixed Index): 1.34e-04 +/- 4.59e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2986.99125794
delta logL = 0.656917212237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2986.98768371
delta logL = 0.660491440277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73816       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.5753       1.0000          .0000       10.000    
     3 'Normalizat'    .41881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1838       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=   2986.988     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      199 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73760        .39028        .37296E-02    .59374E-04
   2  Index1        1.5747        .31922        .74033E-01   -.35291E-04
   3  Normalizat    .41867        .43915        .12076        .25585E-04
   4  Prefactor     1.1837        .24627        .35026E-01   -.21840E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.737596
  Index1     = 1.57467
  Normalizat = 0.418675
  Prefactor  = 1.18372
 **********
 **   18 **HESSE 
 **********

 FCN=   2986.988     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .32E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73760        .48782        .16501E-04   -1.5536    
   2  Index1        1.5747        .40265        .32517E-03   -.75469    
   3  Normalizat    .41867        .43433        .53532E-03   -1.1635    
   4  Prefactor     1.1837        .24360        .18625E-03   -.86834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22118e-14
Minuit parameter uncertainties:
  1  0.48782
  2  0.403472
  3  0.43789
  4  0.243834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579792': 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) = 2986.98768083
delta logL = 0.66049431955

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.376e-01  4.878e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.575e+00  4.035e-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:  1.184e+00  2.438e-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:  4.187e-01  4.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.33
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.57 +/- 0.40
Photon Flux (Free Index): 2.77e-07 +/- 1.63e-07
Energy Flux (Free Index): 1.53e-04 +/- 6.07e-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/579792/cmap_HighResolution_556070401_556329601_4FGL_J2253.9+1609_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.17e-07', energy_flux2='1.53e-04', photon_flux_error='1.43e-07', dlogl='6.60e-01', energy_flux='1.34e-04', photon_flux2='2.77e-07', job_status='DONE', time_completed='2021-09-29 02:16:25.074151', photon_index_error2='0.40', photon_index2='1.57', ts='19.18', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='6.07e-05', EG='0.30', time_epoch_completed='1632906985.07', return_code='0', job_id='579792', GAL2='1.18', EG2='0.42', return_code2='0', energy_flux_error='4.59e-05', photon_flux_error2='1.63e-07', ts2='20.33', photon_index='2.02' WHERE bin_id='1222' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:16:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 579792: <4FGL_J2253.9+1609_daily_bin1222> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1222> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:20 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:05:21 2021
Terminated at Wed Sep 29 02:16:25 2021
Results reported at Wed Sep 29 02:16:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1222 343.496 16.1506 556070401 556329601 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 :                                   435.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            665 sec.

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

