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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin360
RA = 343.496, Dec = 16.1506
tmin = 332640001, tmax = 332899201
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='574930', job_status='RUN', time_executed='2021-09-29 01:50:49.173845', time_epoch_executed='1632905449.17' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574930/ft1_4FGL_J2253.9+1609_daily_bin360.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574930/ft2_4FGL_J2253.9+1609_daily_bin360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574930/ft1_4FGL_J2253.9+1609_daily_bin360.fits outfile=/scratch/kocevski/574930/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin360.fits ra=343.496 dec=16.1506 rad=12.0 tmin=332640001.0 tmax=332899201.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.39
user 3.12
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574930/ft1_filtered_4FGL_J2253.9+1609_daily_bin360.fits evtable="EVENTS" scfile=/scratch/kocevski/574930/ft2_4FGL_J2253.9+1609_daily_bin360.fits sctable="SC_DATA" expcube=/scratch/kocevski/574930/ltcube_332640001_332899201_4FGL_J2253.9+1609_daily_bin360.fits outfile=/scratch/kocevski/574930/expmap_332640001_332899201_4FGL_J2253.9+1609_daily_bin360.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/574930/ltcube_332640001_332899201_4FGL_J2253.9+1609_daily_bin360.fits
.....................!
real 189.58
user 185.26
sys 3.98

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574930/ft1_filtered_4FGL_J2253.9+1609_daily_bin360.fits scfile=/scratch/kocevski/574930/ft2_4FGL_J2253.9+1609_daily_bin360.fits outfile=/scratch/kocevski/574930/cmap_HighResolution_332640001_332899201_4FGL_J2253.9+1609_daily_bin360.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.789       1.0000         .10000E-03   10000.    
     2 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11588E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .64073       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2751       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.817       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40885E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56155       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.735       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.903       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7754       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1972       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3419       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.391       1.0000         .10000E-03   10000.    
    20 'norm      '    5.8365       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7454       1.0000         .10000E-03   10000.    
    22 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94319       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89251       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=   8706.302     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     3170 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.785        20.853        .58418E-05   -.19983E-04
   2  norm          .10000E-03    2.8156        .12392E-06** at limit **
   3  Prefactor     .10000E-03    2.9181       -.13259E-07** at limit **
   4  Prefactor     .10000E-03    25.409        .28981E-06** at limit **
   5  Prefactor     .64076        .19789        .28917E-07   -.12627E-02
   6  Prefactor     3.2750        5.3751        .12393E-05   -.38712E-03
   7  norm          2.2604        2.1431       -.20431E-05   -.81729E-03
   8  Prefactor     17.427        22.908        .22371E-04    .91798E-05
   9  Prefactor     13.820        14.357        .13954E-04   -.12444E-04
  10  Prefactor     .10726E-03    13.353       -.11377E-05** at limit **
  11  Prefactor     .56146        .15979       -.13406E-06    .10261E-02
  12  Prefactor     16.735        11.643       -.46286E-05   -.63388E-04
  13  Prefactor     22.898        28.499        .11543E-04   -.27501E-04
  14  Prefactor     .10000E-03    3.7185        .12203E-06** at limit **
  15  Prefactor     4.7757        9.0184        .45855E-05   -.15555E-03
  16  Prefactor     9.1947        17.951        .26918E-06   -.29437E-04
  17  Prefactor     1.3447        3.8453       -.10760E-05   -.11980E-02
  18  Prefactor     .10000E-03    5.3541       -.96192E-07** at limit **
  19  Prefactor     37.389        20.611        .26571E-05   -.31735E-05
  20  norm          5.8401        8.5038        .11178E-05   -.25050E-03
  21  Prefactor     4.7456        5.9488        .75373E-06   -.39001E-03
  22  norm          .10000E-03    7.3821        .86209E-07** at limit **
  23  Normalizat    .94265        .20058       -.65598E-05    .12132E-03
  24  Prefactor     .89270        .10464       -.17266E-06   -.18573E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.640759
  Prefactor  = 3.275
  norm       = 2.2604
  Prefactor  = 17.4272
  Prefactor  = 13.8205
  Prefactor  = 0.000107264
  Prefactor  = 0.561457
  Prefactor  = 16.7346
  Prefactor  = 22.8983
  Prefactor  = 0.0001
  Prefactor  = 4.77573
  Prefactor  = 9.19474
  Prefactor  = 1.34467
  Prefactor  = 0.0001
  Prefactor  = 37.3887
  norm       = 5.84008
  Prefactor  = 4.74558
  norm       = 0.0001
  Normalizat = 0.942648
  Prefactor  = 0.892701
 **********
 **   18 **HESSE 
 **********

 FCN=   8706.302     FROM HESSE     STATUS=OK           415 CALLS     3585 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.785        20.832        .94961E-04   -1.4864    
   2  norm          .10000E-03    2.8539        .15285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9217        .15565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.273        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .64076        .19708        .21567E-04   -1.5548    
   6  Prefactor     3.2750        5.3630        .22375E-03   -1.5346    
   7  norm          2.2604        2.1384        .11818E-03   -1.5407    
   8  Prefactor     17.427        22.869        .95921E-04   -1.4873    
   9  Prefactor     13.820        14.354        .10775E-03   -1.4964    
  10  Prefactor     .10726E-03    16.210        .10013       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .56146        .15992        .18137E-04   -1.5558    
  12  Prefactor     16.735        11.657        .97904E-04   -1.4890    
  13  Prefactor     22.898        28.488        .83698E-04   -1.4751    
  14  Prefactor     .10000E-03    3.7559        .17562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7757        8.9890        .18411E-03   -1.5271    
  16  Prefactor     9.1947        17.949        .13215E-03   -1.5101    
  17  Prefactor     1.3447        3.7912        .29316E-03   -1.5476    
  18  Prefactor     .10000E-03    5.3872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.389        20.564        .65543E-04   -1.4484    
  20  norm          5.8401        8.4266        .16624E-03   -1.5225    
  21  Prefactor     4.7456        5.8916        .18471E-03   -1.5272    
  22  norm          .10000E-03    7.4310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94265        .23310        .33639E-03   -.94977    
  24  Prefactor     .89270        .12273        .19188E-03   -.96397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44462e-09
Minuit parameter uncertainties:
  1  20.8401
  2  1.31992e-05
  3  5.09685e-06
  4  5.64395e-05
  5  0.197076
  6  5.3638
  7  2.13847
  8  22.8808
  9  14.3574
  10  0.021708
  11  0.159923
  12  11.6584
  13  28.5053
  14  1.08642e-05
  15  8.99152
  16  17.9591
  17  3.79183
  18  6.73269e-06
  19  20.5676
  20  8.42833
  21  5.89229
  22  1.80008e-05
  23  0.233351
  24  0.122773
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.615e-01  1.599e-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.927e-01  1.228e-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:  9.426e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.00
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.05e-07 +/- 5.83e-08
Energy Flux (Fixed Index): 6.57e-05 +/- 1.87e-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) = 8706.11879546
delta logL = 0.183257711147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8706.09367318
delta logL = 0.208379993479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63185       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2137       1.0000          .0000       10.000    
     3 'Normalizat'    .90688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90524       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=   8706.094     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63205        .16984        .41587E-02    .51242E-03
   2  Index1        2.2141        .26029        .13007       -.78217E-04
   3  Normalizat    .90689        .18973        .77269E-01    .29304E-04
   4  Prefactor     .90520        .10427        .45072E-01    .53579E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.632051
  Index1     = 2.21409
  Normalizat = 0.906888
  Prefactor  = 0.9052
 **********
 **   18 **HESSE 
 **********

 FCN=   8706.094     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63205        .18881        .18431E-04   -1.5549    
   2  Index1        2.2141        .30057        .55661E-02   -.59099    
   3  Normalizat    .90689        .22456        .34199E-03   -.96219    
   4  Prefactor     .90520        .12253        .19063E-03   -.95960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12935e-10
Minuit parameter uncertainties:
  1  0.188807
  2  0.300835
  3  0.224788
  4  0.122568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574930': 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) = 8706.09367212
delta logL = 0.208381051039

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.321e-01  1.888e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.214e+00  3.008e-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:  9.052e-01  1.226e-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:  9.069e-01  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.36
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.21 +/- 0.30
Photon Flux (Free Index): 2.36e-07 +/- 7.64e-08
Energy Flux (Free Index): 6.40e-05 +/- 1.70e-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/574930/cmap_HighResolution_332640001_332899201_4FGL_J2253.9+1609_daily_bin360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.05e-07', energy_flux2='6.40e-05', photon_flux_error='5.83e-08', dlogl='2.08e-01', energy_flux='6.57e-05', photon_flux2='2.36e-07', job_status='DONE', time_completed='2021-09-29 02:03:10.395601', photon_index_error2='0.30', photon_index2='2.21', ts='36.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='0.94', time_epoch_completed='1632906190.4', return_code='0', job_id='574930', GAL2='0.91', EG2='0.91', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='7.64e-08', ts2='36.36', photon_index='2.02' WHERE bin_id='360' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 574930: <4FGL_J2253.9+1609_daily_bin360> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin360> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 01:50:29 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:50:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:50:30 2021
Terminated at Wed Sep 29 02:03:10 2021
Results reported at Wed Sep 29 02:03:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin360 343.496 16.1506 332640001 332899201 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 :                                   733.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            761 sec.

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

