/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 46 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 = 7379
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2253.9+1609_daily_bin649
RA = 343.496, Dec = 16.1506
tmin = 407548801, tmax = 407808001
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='576643', job_status='RUN', time_executed='2021-09-29 01:56:24.666925', time_epoch_executed='1632905784.67' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576643

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576643/ft1_4FGL_J2253.9+1609_daily_bin649.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576643/ft2_4FGL_J2253.9+1609_daily_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576643/ft1_4FGL_J2253.9+1609_daily_bin649.fits outfile=/scratch/kocevski/576643/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin649.fits ra=343.496 dec=16.1506 rad=12.0 tmin=407548801.0 tmax=407808001.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.53
user 3.29
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576643/ft1_filtered_4FGL_J2253.9+1609_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/576643/ft2_4FGL_J2253.9+1609_daily_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/576643/ltcube_407548801_407808001_4FGL_J2253.9+1609_daily_bin649.fits outfile=/scratch/kocevski/576643/expmap_407548801_407808001_4FGL_J2253.9+1609_daily_bin649.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/576643/ltcube_407548801_407808001_4FGL_J2253.9+1609_daily_bin649.fits
.....................!
real 190.85
user 185.82
sys 4.62

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/576643/ft1_filtered_4FGL_J2253.9+1609_daily_bin649.fits scfile=/scratch/kocevski/576643/ft2_4FGL_J2253.9+1609_daily_bin649.fits outfile=/scratch/kocevski/576643/cmap_407548801_407808001_4FGL_J2253.9+1609_daily_bin649.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576643/ft1_filtered_4FGL_J2253.9+1609_daily_bin649.fits scfile=/scratch/kocevski/576643/ft2_4FGL_J2253.9+1609_daily_bin649.fits outfile=/scratch/kocevski/576643/cmap_HighResolution_407548801_407808001_4FGL_J2253.9+1609_daily_bin649.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.2649       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4406       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61157       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.659       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.185       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9316       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.996       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .94187       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.828       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1316       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.385       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2985       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0436       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0467       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=   8520.066     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2743 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2386       -.10827E-06** at limit **
   2  norm          1.2622        5.2757       -.92586E-06   -.16772E-03
   3  Prefactor     .10000E-03    4.4813       -.10338E-06** at limit **
   4  Prefactor     .10000E-03    26.517       -.96880E-07** at limit **
   5  Prefactor     1.4406        .27902       -.40891E-07    .87808E-03
   6  Prefactor     .61147        1.3718        .11480E-05   -.11056E-02
   7  norm          .10000E-03    .50375       -.50411E-07** at limit **
   8  Prefactor     .10000E-03    31.180       -.21192E-05** at limit **
   9  Prefactor     16.654        15.064       -.29592E-06    .77884E-04
  10  Prefactor     25.186        23.487       -.44756E-06    .89231E-05
  11  Prefactor     1.9315        .26626        .84999E-08    .27867E-02
  12  Prefactor     12.997        10.898       -.24092E-06    .43964E-04
  13  Prefactor     .10000E-03    34.619       -.82646E-06** at limit **
  14  Prefactor     .10000E-03    3.5936       -.21188E-06** at limit **
  15  Prefactor     13.229        16.034       -.66569E-06    .46861E-04
  16  Prefactor     .10000E-03    10.905       -.29465E-06** at limit **
  17  Prefactor     .94023        22.709       -.10473E-04   -.40481E-05
  18  Prefactor     3.0308        8.7225       -.34024E-06   -.16112E-03
  19  Prefactor     31.857        25.664        .10113E-05   -.20926E-04
  20  norm          3.1274        9.3888       -.37211E-06   -.11353E-05
  21  Prefactor     13.388        8.2278       -.76935E-07    .92643E-04
  22  norm          1.2953        7.8446        .50127E-07   -.12931E-04
  23  Normalizat    1.0437        .26280        .37556E-05    .11719E-03
  24  Prefactor     1.0467        .12770        .60039E-06    .88129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.26218
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.44055
  Prefactor  = 0.611473
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6543
  Prefactor  = 25.1858
  Prefactor  = 1.93155
  Prefactor  = 12.9966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2294
  Prefactor  = 0.0001
  Prefactor  = 0.940231
  Prefactor  = 3.03083
  Prefactor  = 31.8566
  norm       = 3.12744
  Prefactor  = 13.3877
  norm       = 1.29528
  Normalizat = 1.04365
  Prefactor  = 1.04673
 **********
 **   18 **HESSE 
 **********

 FCN=   8520.066     FROM HESSE     STATUS=OK           401 CALLS     3144 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2622        5.3544        .39616E-03   -1.5483    
   3  Prefactor     .10000E-03    4.4920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4406        .28007        .20442E-04   -1.5468    
   6  Prefactor     .61147        10.273        .23436E-02   -1.5552    
   7  norm          .10000E-03    .50502        .63969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.654        15.083        .98129E-04   -1.4892    
  10  Prefactor     25.186        23.547        .79822E-04   -1.4704    
  11  Prefactor     1.9315        .26753        .16353E-04   -1.5430    
  12  Prefactor     12.997        10.898        .11111E-03   -1.4987    
  13  Prefactor     .10000E-03    34.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6289        .17096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.229        16.037        .11013E-03   -1.4980    
  16  Prefactor     .10000E-03    10.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .94023        25.462        .32789E-02   -1.5514    
  18  Prefactor     3.0308        8.7414        .11658E-02   -1.5360    
  19  Prefactor     31.857        26.332        .71023E-04   -1.4579    
  20  norm          3.1274        9.2581        .22909E-03   -1.5354    
  21  Prefactor     13.388        8.1531        .10948E-03   -1.4976    
  22  norm          1.2953        7.7591        .38795E-03   -1.5480    
  23  Normalizat    1.0437        .28911        .38072E-03   -.91582    
  24  Prefactor     1.0467        .14874        .21284E-03   -.91188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40743e-08
Minuit parameter uncertainties:
  1  2.43528e-05
  2  5.19992
  3  1.73834e-05
  4  0.000630559
  5  0.280067
  6  5.01328
  7  2.62382e-06
  8  0.000243282
  9  15.0866
  10  23.5555
  11  0.267528
  12  10.8993
  13  0.000247612
  14  1.93981e-05
  15  16.0425
  16  5.99077e-05
  17  9.78993
  18  8.74509
  19  26.3416
  20  9.2623
  21  8.15378
  22  6.34141
  23  0.289551
  24  0.148801
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.932e+00  2.675e-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.047e+00  1.488e-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.044e+00  2.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 169.01
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 7.04e-07 +/- 9.75e-08
Energy Flux (Fixed Index): 2.26e-04 +/- 3.13e-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) = 8519.97740884
delta logL = 0.0884699602721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8519.96256184
delta logL = 0.103316953504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9950       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0906       1.0000          .0000       10.000    
     3 'Normalizat'    1.0143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0577       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=   8519.963     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9951        .27811        .37172E-02   -.10515E-05
   2  Index1        2.0904        .14533        .69831E-01   -.67063E-04
   3  Normalizat    1.0142        .23258        .86981E-01    .26588E-04
   4  Prefactor     1.0577        .12806        .39480E-01    .97469E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99507
  Index1     = 2.09037
  Normalizat = 1.01424
  Prefactor  = 1.05767
 **********
 **   18 **HESSE 
 **********

 FCN=   8519.963     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .27E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9951        .29704        .16434E-04   -1.5425    
   2  Index1        2.0904        .15656        .30636E-03   -.62110    
   3  Normalizat    1.0142        .26997        .38514E-03   -.92555    
   4  Prefactor     1.0577        .14807        .21182E-03   -.90831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70876e-14
Minuit parameter uncertainties:
  1  0.297039
  2  0.156594
  3  0.270332
  4  0.148128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576643': 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) = 8519.96255946
delta logL = 0.103319337331

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.995e+00  2.970e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.090e+00  1.566e-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.058e+00  1.481e-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.014e+00  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 169.09
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.09 +/- 0.16
Photon Flux (Free Index): 7.32e-07 +/- 1.15e-07
Energy Flux (Free Index): 2.20e-04 +/- 3.21e-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/576643/cmap_HighResolution_407548801_407808001_4FGL_J2253.9+1609_daily_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.04e-07', energy_flux2='2.20e-04', photon_flux_error='9.75e-08', dlogl='1.03e-01', energy_flux='2.26e-04', photon_flux2='7.32e-07', job_status='DONE', time_completed='2021-09-29 02:08:22.887893', photon_index_error2='0.16', photon_index2='2.09', ts='169.01', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.21e-05', EG='1.04', time_epoch_completed='1632906502.89', return_code='0', job_id='576643', GAL2='1.06', EG2='1.01', return_code2='0', energy_flux_error='3.13e-05', photon_flux_error2='1.15e-07', ts2='169.09', photon_index='2.02' WHERE bin_id='649' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:08:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 576643: <4FGL_J2253.9+1609_daily_bin649> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin649> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:55:23 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:55:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:55:24 2021
Terminated at Wed Sep 29 02:08:25 2021
Results reported at Wed Sep 29 02:08:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin649 343.496 16.1506 407548801 407808001 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 :                                   717.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

