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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin81
RA = 343.496, Dec = 16.1506
tmin = 260323201, tmax = 260582401
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='572941', job_status='RUN', time_executed='2021-09-29 01:48:10.173830', time_epoch_executed='1632905290.17' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572941/ft1_4FGL_J2253.9+1609_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572941/ft2_4FGL_J2253.9+1609_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572941/ft1_4FGL_J2253.9+1609_daily_bin81.fits outfile=/scratch/kocevski/572941/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin81.fits ra=343.496 dec=16.1506 rad=12.0 tmin=260323201.0 tmax=260582401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.52
user 1.34
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572941/ft2_4FGL_J2253.9+1609_daily_bin81.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/572941/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/572941/ft1_filtered_4FGL_J2253.9+1609_daily_bin81.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/572941/ft1_filtered_4FGL_J2253.9+1609_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/572941/ft2_4FGL_J2253.9+1609_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/572941/ltcube_260323201_260582401_4FGL_J2253.9+1609_daily_bin81.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/572941/ft2_4FGL_J2253.9+1609_daily_bin81.fits
.....................!
real 12.99
user 12.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572941/ft1_filtered_4FGL_J2253.9+1609_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/572941/ft2_4FGL_J2253.9+1609_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/572941/ltcube_260323201_260582401_4FGL_J2253.9+1609_daily_bin81.fits outfile=/scratch/kocevski/572941/expmap_260323201_260582401_4FGL_J2253.9+1609_daily_bin81.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/572941/ltcube_260323201_260582401_4FGL_J2253.9+1609_daily_bin81.fits
.....................!
real 190.54
user 185.18
sys 5.01

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/572941/ft1_filtered_4FGL_J2253.9+1609_daily_bin81.fits scfile=/scratch/kocevski/572941/ft2_4FGL_J2253.9+1609_daily_bin81.fits outfile=/scratch/kocevski/572941/cmap_260323201_260582401_4FGL_J2253.9+1609_daily_bin81.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572941/ft1_filtered_4FGL_J2253.9+1609_daily_bin81.fits scfile=/scratch/kocevski/572941/ft2_4FGL_J2253.9+1609_daily_bin81.fits outfile=/scratch/kocevski/572941/cmap_HighResolution_260323201_260582401_4FGL_J2253.9+1609_daily_bin81.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/572941/ft1_filtered_4FGL_J2253.9+1609_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/572941/ft2_4FGL_J2253.9+1609_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572941/Model_4FGL_J2253.9+1609_daily_bin81.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/572941/ft1_filtered_4FGL_J2253.9+1609_daily_bin81.fits.....................!
real 83.31
user 81.94
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .57574       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47639E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9278       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.674       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.294       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4219       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8402       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.920       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11184E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    22.446       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9851       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83338       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1180       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=   8301.144     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2367 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.056        .90712E-02** at limit **
   2  norm          .10000E-03    1.6301        .90712E-02** at limit **
   3  Prefactor     .57236        5.4828        .76192E-01    .10064E-02
   4  Prefactor     .10000E-03    15.565        .90712E-02** at limit **
   5  Prefactor     .41471        .18744        .54835E-02    .20593E-02
   6  Prefactor     .10014E-03    3.2206        .58982E-01** at limit **
   7  norm          1.9276        1.4084        .74796E-02    .15950E-03
   8  Prefactor     11.670        17.610        .29312E-02   -.25769E-04
   9  Prefactor     .10000E-03    3.1925        .90712E-02** at limit **
  10  Prefactor     .10001E-03    7.3310        .90712E-02** at limit **
  11  Prefactor     .35394        .14890        .47636E-02    .72771E-03
  12  Prefactor     18.293        10.648        .23410E-02    .15414E-04
  13  Prefactor     3.4177        57.788        .54668E-02    .58053E-03
  14  Prefactor     6.8406        4.7151        .38352E-02    .13822E-02
  15  Prefactor     10.919        10.679        .30310E-02    .10935E-03
  16  Prefactor     .10000E-03    6.8941        .90712E-02** at limit **
  17  Prefactor     .10000E-03    4.5917        .90712E-02** at limit **
  18  Prefactor     .10001E-03    12.436        .90712E-02** at limit **
  19  Prefactor     .10000E-03    10.683        .10953    ** at limit **
  20  norm          22.444        11.091        .21136E-02   -.12214E-03
  21  Prefactor     9.9860        8.1513        .31702E-02   -.16048E-03
  22  norm          .10000E-03    7.3802        .90712E-02** at limit **
  23  Normalizat    .83344        .20919        .81973E-01   -.52818E-04
  24  Prefactor     1.1180        .11837        .36939E-01   -.13185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.57236
  Prefactor  = 0.000100005
  Prefactor  = 0.414715
  Prefactor  = 0.000100137
  norm       = 1.92763
  Prefactor  = 11.6702
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.353944
  Prefactor  = 18.2933
  Prefactor  = 3.41766
  Prefactor  = 6.84057
  Prefactor  = 10.919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  norm       = 22.4444
  Prefactor  = 9.98597
  norm       = 0.000100004
  Normalizat = 0.833445
  Prefactor  = 1.11804
 **********
 **   18 **HESSE 
 **********

 FCN=   8301.144     FROM HESSE     STATUS=OK           399 CALLS     2766 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6384        .11358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57236        16.489        .40356E-02   -1.5557    
   4  Prefactor     .10000E-03    16.024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .41471        .18150        .24592E-04   -1.5579    
   6  Prefactor     .10014E-03    14.903        .31711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9276        1.4095        .89905E-04   -1.5430    
   8  Prefactor     11.670        17.605        .11725E-03   -1.5025    
   9  Prefactor     .10000E-03    3.1987        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    7.3378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35394        .14703        .21259E-04   -1.5589    
  12  Prefactor     18.293        10.649        .93641E-04   -1.4852    
  13  Prefactor     3.4177        57.698        .21867E-03   -1.5338    
  14  Prefactor     6.8406        4.7139        .15341E-03   -1.5185    
  15  Prefactor     10.919        10.673        .12124E-03   -1.5047    
  16  Prefactor     .10000E-03    6.9023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    12.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    65.849        .57016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.444        11.068        .84544E-04   -1.4760    
  21  Prefactor     9.9860        8.1443        .12681E-03   -1.5076    
  22  norm          .10000E-03    7.3999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .83344        .23611        .36293E-03   -.98840    
  24  Prefactor     1.1180        .13633        .18589E-03   -.88892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04865e-08
Minuit parameter uncertainties:
  1  0.000488914
  2  3.42776e-06
  3  6.14541
  4  0.00055904
  5  0.181497
  6  0.00285782
  7  1.40949
  8  17.6127
  9  7.71759e-07
  10  0.00042214
  11  0.147027
  12  10.6497
  13  28.1166
  14  4.7142
  15  10.6749
  16  5.12357e-05
  17  1.34708e-06
  18  0.000752653
  19  0.00042548
  20  11.0686
  21  8.14524
  22  0.000333368
  23  0.236401
  24  0.136372
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.539e-01  1.470e-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.118e+00  1.364e-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:  8.334e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.44
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 5.36e-08
Energy Flux (Fixed Index): 4.14e-05 +/- 1.72e-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) = 8300.48842127
delta logL = 0.65532942551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8300.48820034
delta logL = 0.655550351939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43095       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.4530       1.0000          .0000       10.000    
     3 'Normalizat'    .78735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1345       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=   8300.488     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43095        .17909        .47375E-02    .10262E-02
   2  Index1        2.4530        .40548        .18060       -.26324E-05
   3  Normalizat    .78738        .20460        .84015E-01    .32304E-04
   4  Prefactor     1.1345        .11899        .36403E-01   -.18721E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.430945
  Index1     = 2.453
  Normalizat = 0.78738
  Prefactor  = 1.13446
 **********
 **   18 **HESSE 
 **********

 FCN=   8300.488     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43095        .16164        .21141E-04   -1.5577    
   2  Index1        2.4530        .39206        .75491E-02   -.53449    
   3  Normalizat    .78738        .23497        .37203E-03   -1.0054    
   4  Prefactor     1.1345        .13631        .18461E-03   -.88373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22511e-11
Minuit parameter uncertainties:
  1  0.161636
  2  0.392601
  3  0.235277
  4  0.136357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572941': 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) = 8300.48820033
delta logL = 0.655550361735

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  4.309e-01  1.616e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.453e+00  3.926e-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.134e+00  1.364e-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.874e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.83
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.45 +/- 0.39
Photon Flux (Free Index): 1.69e-07 +/- 6.73e-08
Energy Flux (Free Index): 3.90e-05 +/- 1.49e-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/572941/cmap_HighResolution_260323201_260582401_4FGL_J2253.9+1609_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='3.90e-05', photon_flux_error='5.36e-08', dlogl='6.56e-01', energy_flux='4.14e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-29 01:58:54.917502', photon_index_error2='0.39', photon_index2='2.45', ts='10.44', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.83', time_epoch_completed='1632905934.92', return_code='0', job_id='572941', GAL2='1.13', EG2='0.79', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='6.73e-08', ts2='11.83', photon_index='2.02' WHERE bin_id='81' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:58:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 572941: <4FGL_J2253.9+1609_daily_bin81> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin81 343.496 16.1506 260323201 260582401 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 :                                   644.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            799 sec.

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

