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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1109
RA = 343.496, Dec = 16.1506
tmin = 526780801, tmax = 527040001
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='578536', job_status='RUN', time_executed='2021-09-29 02:03:55.909345', time_epoch_executed='1632906235.91' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578536/ft1_4FGL_J2253.9+1609_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578536/ft2_4FGL_J2253.9+1609_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578536/ft1_4FGL_J2253.9+1609_daily_bin1109.fits outfile=/scratch/kocevski/578536/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1109.fits ra=343.496 dec=16.1506 rad=12.0 tmin=526780801.0 tmax=527040001.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 4.40
user 4.15
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578536/ft1_filtered_4FGL_J2253.9+1609_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/578536/ft2_4FGL_J2253.9+1609_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/578536/ltcube_526780801_527040001_4FGL_J2253.9+1609_daily_bin1109.fits outfile=/scratch/kocevski/578536/expmap_526780801_527040001_4FGL_J2253.9+1609_daily_bin1109.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/578536/ltcube_526780801_527040001_4FGL_J2253.9+1609_daily_bin1109.fits
.....................!
real 192.73
user 187.34
sys 5.03

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/578536/ft1_filtered_4FGL_J2253.9+1609_daily_bin1109.fits scfile=/scratch/kocevski/578536/ft2_4FGL_J2253.9+1609_daily_bin1109.fits outfile=/scratch/kocevski/578536/cmap_526780801_527040001_4FGL_J2253.9+1609_daily_bin1109.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578536/ft1_filtered_4FGL_J2253.9+1609_daily_bin1109.fits scfile=/scratch/kocevski/578536/ft2_4FGL_J2253.9+1609_daily_bin1109.fits outfile=/scratch/kocevski/578536/cmap_HighResolution_526780801_527040001_4FGL_J2253.9+1609_daily_bin1109.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.155       1.0000         .10000E-03   10000.    
     2 'norm      '    .42610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80111E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4647       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1712       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12541E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0966       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10909E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0669       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10766E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3940       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83006       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=   7846.422     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2335 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.138        16.823        .12799E-05    .29443E-03
   2  norm          .43707        5.5409        .33531E-05   -.56787E-03
   3  Prefactor     .10003E-03    9.3951       -.63563E-07** at limit **
   4  Prefactor     4.8541        10.535       -.14784E-06   -.95154E-04
   5  Prefactor     3.4648        .40202        .15163E-07    .75008E-03
   6  Prefactor     .10000E-03    2.8204       -.14590E-07** at limit **
   7  norm          .10000E-03    .53480        .44235E-07** at limit **
   8  Prefactor     .10000E-03    24.134        .67233E-06** at limit **
   9  Prefactor     .10000E-03    7.3160        .17911E-07** at limit **
  10  Prefactor     .10000E-03    6.5060       -.63803E-06** at limit **
  11  Prefactor     1.1712        .22207       -.29933E-07   -.29262E-03
  12  Prefactor     .10000E-03    15.884       -.59578E-06** at limit **
  13  Prefactor     .10000E-03    40.831        .33624E-05** at limit **
  14  Prefactor     6.0985        10.401        .37138E-05   -.67844E-03
  15  Prefactor     .10000E-03    3.5035       -.69254E-07** at limit **
  16  Prefactor     .10000E-03    40.026        .23112E-06** at limit **
  17  Prefactor     8.0688        8.2428        .26357E-06   -.79099E-04
  18  Prefactor     .10000E-03    6.2203        .86390E-06** at limit **
  19  Prefactor     .10001E-03    21.985        .55210E-05** at limit **
  20  norm          .10000E-03    7.9819        .22356E-06** at limit **
  21  Prefactor     .10000E-03    5.9716       -.36524E-06** at limit **
  22  norm          .10002E-03    24.503       -.78512E-05** at limit **
  23  Normalizat    1.3940        .24094       -.10709E-05   -.13488E-04
  24  Prefactor     .83009        .12791       -.28959E-06   -.40880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1382
  norm       = 0.43707
  Prefactor  = 0.000100026
  Prefactor  = 4.85412
  Prefactor  = 3.46484
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.17118
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 6.09855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06875
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010002
  Normalizat = 1.39396
  Prefactor  = 0.830089
 **********
 **   18 **HESSE 
 **********

 FCN=   7846.422     FROM HESSE     STATUS=OK           399 CALLS     2734 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.138        16.945        .93999E-04   -1.4856    
   2  norm          .43707        6.1495        .41511E-03   -1.5576    
   3  Prefactor     .10003E-03    10.451        .86182E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8541        10.548        .18265E-03   -1.5267    
   5  Prefactor     3.4648        .40362        .17922E-04   -1.5336    
   6  Prefactor     .10000E-03    2.8266        .14528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .53860        .63258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1712        .22277        .17045E-04   -1.5492    
  12  Prefactor     .10000E-03    16.295        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0985        10.973        .81301E-03   -1.5214    
  15  Prefactor     .10000E-03    3.5053        .16193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0688        8.2488        .14116E-03   -1.5140    
  18  Prefactor     .10000E-03    6.2661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    23.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.0633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    26.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3940        .28723        .33585E-03   -.80803    
  24  Prefactor     .83009        .15220        .23074E-03   -.98629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22597e-09
Minuit parameter uncertainties:
  1  16.9493
  2  3.2789
  3  0.00103604
  4  10.5525
  5  0.403624
  6  1.51943e-06
  7  1.25171e-06
  8  0.000118691
  9  1.46018e-06
  10  6.41011e-05
  11  0.222774
  12  8.1947e-05
  13  0.000828562
  14  10.9767
  15  5.13061e-06
  16  5.67522e-05
  17  8.24992
  18  8.44534e-05
  19  0.000982317
  20  2.53662e-05
  21  3.18795e-05
  22  0.00146073
  23  0.28756
  24  0.152279
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.171e+00  2.228e-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:  8.301e-01  1.523e-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.394e+00  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 90.66
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.27e-07 +/- 8.12e-08
Energy Flux (Fixed Index): 1.37e-04 +/- 2.61e-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) = 7846.4216052
delta logL = 0.000556786268135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7846.42140193
delta logL = 0.000760058614105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1651       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0114       1.0000          .0000       10.000    
     3 'Normalizat'    1.3964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82917       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=   7846.421     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      193 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1660        .23279        .38521E-02   -.43468E-03
   2  Index1        2.0115        .18467        .84802E-01   -.10226E-03
   3  Normalizat    1.3961        .23594        .75848E-01    .11014E-04
   4  Prefactor     .82931        .12785        .44096E-01    .16782E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16601
  Index1     = 2.01151
  Normalizat = 1.39615
  Prefactor  = 0.829312
 **********
 **   18 **HESSE 
 **********

 FCN=   7846.421     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1660        .25478        .17030E-04   -1.5492    
   2  Index1        2.0115        .20439        .37089E-03   -.64063    
   3  Normalizat    1.3961        .28329        .33566E-03   -.80740    
   4  Prefactor     .82931        .15278        .23084E-03   -.98657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33821e-12
Minuit parameter uncertainties:
  1  0.25478
  2  0.204482
  3  0.283613
  4  0.152856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578536': 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) = 7846.4213932
delta logL = 0.000768789926042

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.166e+00  2.548e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.012e+00  2.045e-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:  8.293e-01  1.529e-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.396e+00  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.93
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.01 +/- 0.20
Photon Flux (Free Index): 4.25e-07 +/- 9.59e-08
Energy Flux (Free Index): 1.38e-04 +/- 2.75e-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/578536/cmap_HighResolution_526780801_527040001_4FGL_J2253.9+1609_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.27e-07', energy_flux2='1.38e-04', photon_flux_error='8.12e-08', dlogl='7.69e-04', energy_flux='1.37e-04', photon_flux2='4.25e-07', job_status='DONE', time_completed='2021-09-29 02:15:02.906078', photon_index_error2='0.20', photon_index2='2.01', ts='90.66', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='1.39', time_epoch_completed='1632906902.91', return_code='0', job_id='578536', GAL2='0.83', EG2='1.40', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='9.59e-08', ts2='89.93', photon_index='2.02' WHERE bin_id='1109' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:15:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 578536: <4FGL_J2253.9+1609_daily_bin1109> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1109> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:00:38 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:00:39 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:00:39 2021
Terminated at Wed Sep 29 02:15:03 2021
Results reported at Wed Sep 29 02:15:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1109 343.496 16.1506 526780801 527040001 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

