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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1540
RA = 343.496, Dec = 16.1506
tmin = 638496001, tmax = 638755201
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='581437', job_status='RUN', time_executed='2021-09-29 02:14:22.866635', time_epoch_executed='1632906862.87' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581437

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581437/ft1_4FGL_J2253.9+1609_daily_bin1540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581437/ft2_4FGL_J2253.9+1609_daily_bin1540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581437/ft1_4FGL_J2253.9+1609_daily_bin1540.fits outfile=/scratch/kocevski/581437/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1540.fits ra=343.496 dec=16.1506 rad=12.0 tmin=638496001.0 tmax=638755201.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.44
user 4.19
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581437/ft2_4FGL_J2253.9+1609_daily_bin1540.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/581437/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1540.fits evtable="EVENTS" outfile="/scratch/kocevski/581437/ft1_filtered_4FGL_J2253.9+1609_daily_bin1540.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581437/ft1_filtered_4FGL_J2253.9+1609_daily_bin1540.fits" evtable="EVENTS" scfile=/scratch/kocevski/581437/ft2_4FGL_J2253.9+1609_daily_bin1540.fits sctable="SC_DATA" outfile=/scratch/kocevski/581437/ltcube_638496001_638755201_4FGL_J2253.9+1609_daily_bin1540.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/581437/ft2_4FGL_J2253.9+1609_daily_bin1540.fits
.....................!
real 11.69
user 11.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581437/ft1_filtered_4FGL_J2253.9+1609_daily_bin1540.fits evtable="EVENTS" scfile=/scratch/kocevski/581437/ft2_4FGL_J2253.9+1609_daily_bin1540.fits sctable="SC_DATA" expcube=/scratch/kocevski/581437/ltcube_638496001_638755201_4FGL_J2253.9+1609_daily_bin1540.fits outfile=/scratch/kocevski/581437/expmap_638496001_638755201_4FGL_J2253.9+1609_daily_bin1540.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/581437/ltcube_638496001_638755201_4FGL_J2253.9+1609_daily_bin1540.fits
.....................!
real 191.85
user 186.11
sys 5.36

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/581437/ft1_filtered_4FGL_J2253.9+1609_daily_bin1540.fits scfile=/scratch/kocevski/581437/ft2_4FGL_J2253.9+1609_daily_bin1540.fits outfile=/scratch/kocevski/581437/cmap_638496001_638755201_4FGL_J2253.9+1609_daily_bin1540.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.53
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8823       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3232       1.0000         .10000E-03   10000.    
     4 'Prefactor '    90.733       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18788       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7363       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.128       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.897       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6198       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0916       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8073       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.547       1.0000         .10000E-03   10000.    
    20 'norm      '    15.487       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95212       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89154       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=   7023.161     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2718 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8817        13.825       -.98769E-06   -.46580E-04
   2  norm          .10000E-03    1.8731        .19699E-06** at limit **
   3  Prefactor     1.3210        43.854       -.82982E-05   -.23246E-03
   4  Prefactor     90.733        19.628       -.22672E-06   -.54776E-04
   5  Prefactor     .18791        .21009       -.20112E-07   -.96982E-03
   6  Prefactor     2.7365        9.8884       -.15718E-05   -.22598E-03
   7  norm          1.6074        1.4630       -.26135E-06   -.37723E-03
   8  Prefactor     13.126        26.740       -.33658E-05   -.13640E-04
   9  Prefactor     .10000E-03    17.237        .10175E-04** at limit **
  10  Prefactor     .10000E-03    7.2570       -.27657E-06** at limit **
  11  Prefactor     .36883        .15792       -.36518E-07   -.14112E-02
  12  Prefactor     22.896        14.794       -.10487E-05   -.69030E-04
  13  Prefactor     .10000E-03    20.612       -.36129E-06** at limit **
  14  Prefactor     .10000E-03    2.2912        .25905E-06** at limit **
  15  Prefactor     4.6194        11.386       -.21410E-05   -.93481E-04
  16  Prefactor     .10000E-03    13.220       -.80065E-05** at limit **
  17  Prefactor     5.1009        9.8706        .19294E-04    .35426E-03
  18  Prefactor     4.8034        11.955       -.69363E-05   -.10437E-03
  19  Prefactor     13.512        26.591       -.64510E-04   -.15381E-03
  20  norm          15.497        12.420        .33858E-05    .20161E-03
  21  Prefactor     .10000E-03    14.017       -.26306E-05** at limit **
  22  norm          .10000E-03    9.6678        .32714E-05** at limit **
  23  Normalizat    .95215        .22831        .57819E-05   -.12165E-03
  24  Prefactor     .89153        .11875       -.10972E-06    .17554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.88167
  norm       = 0.0001
  Prefactor  = 1.32104
  Prefactor  = 90.7326
  Prefactor  = 0.187912
  Prefactor  = 2.73649
  norm       = 1.60741
  Prefactor  = 13.1262
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.368828
  Prefactor  = 22.8962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.61941
  Prefactor  = 0.0001
  Prefactor  = 5.10094
  Prefactor  = 4.80344
  Prefactor  = 13.5118
  norm       = 15.4967
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.952154
  Prefactor  = 0.891533
 **********
 **   18 **HESSE 
 **********

 FCN=   7023.161     FROM HESSE     STATUS=OK           403 CALLS     3121 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8817        13.817        .15293E-03   -1.5183    
   2  norm          .10000E-03    1.8866        .11199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3210        40.647        .38232E-03   -1.5478    
   4  Prefactor     90.733        19.663        .42186E-04   -1.3800    
   5  Prefactor     .18791        .18912        .33481E-03   -1.5621    
   6  Prefactor     2.7365        9.8338        .24614E-03   -1.5377    
   7  norm          1.6074        1.4715        .93872E-04   -1.5454    
   8  Prefactor     13.126        26.739        .11055E-03   -1.4983    
   9  Prefactor     .10000E-03    17.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .36883        .15657        .20129E-04   -1.5587    
  12  Prefactor     22.896        14.800        .83709E-04   -1.4751    
  13  Prefactor     .10000E-03    20.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2968        .12386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6194        11.375        .18726E-03   -1.5278    
  16  Prefactor     .10000E-03    13.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1009        9.8059        .17819E-03   -1.5256    
  18  Prefactor     4.8034        11.894        .18349E-03   -1.5270    
  19  Prefactor     13.512        26.564        .10883E-03   -1.4973    
  20  norm          15.497        12.365        .10177E-03   -1.4920    
  21  Prefactor     .10000E-03    14.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.7020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .95215        .26736        .33876E-03   -.94651    
  24  Prefactor     .89153        .14066        .19248E-03   -.96438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18501e-09
Minuit parameter uncertainties:
  1  13.823
  2  5.15911e-06
  3  14.6659
  4  19.6643
  5  0.189124
  6  9.83963
  7  1.47155
  8  26.7631
  9  0.000210683
  10  4.29587e-06
  11  0.156568
  12  14.8025
  13  4.22458e-05
  14  8.71394e-07
  15  11.3804
  16  3.92375e-05
  17  9.80901
  18  11.8997
  19  26.5869
  20  12.3667
  21  0.000193731
  22  4.7064e-05
  23  0.267733
  24  0.140719
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.688e-01  1.566e-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.915e-01  1.407e-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.522e-01  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.99
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.35e-07 +/- 5.71e-08
Energy Flux (Fixed Index): 4.32e-05 +/- 1.83e-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) = 7023.1557722
delta logL = 0.00564016445333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7023.15230321
delta logL = 0.00910915867917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35305       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9626       1.0000          .0000       10.000    
     3 'Normalizat'    .95923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88917       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=   7023.152     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35308        .15784        .44761E-02    .62085E-03
   2  Index1        1.9628        .32854        .15046       -.81269E-04
   3  Normalizat    .95921        .21236        .76304E-01   -.25331E-05
   4  Prefactor     .88918        .11643        .44867E-01    .15765E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.353075
  Index1     = 1.96278
  Normalizat = 0.959214
  Prefactor  = 0.889185
 **********
 **   18 **HESSE 
 **********

 FCN=   7023.152     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35308        .18698        .19927E-04   -1.5589    
   2  Index1        1.9628        .41121        .63657E-02   -.65284    
   3  Normalizat    .95921        .25212        .33769E-03   -.94410    
   4  Prefactor     .88918        .13754        .19271E-03   -.96520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3525e-12
Minuit parameter uncertainties:
  1  0.186976
  2  0.411951
  3  0.252428
  4  0.137592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581437': 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) = 7023.15230313
delta logL = 0.00910923630545

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.531e-01  1.870e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.963e+00  4.120e-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.892e-01  1.376e-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.592e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.93
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.96 +/- 0.41
Photon Flux (Free Index): 1.28e-07 +/- 6.92e-08
Energy Flux (Free Index): 4.36e-05 +/- 1.85e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/581437/cmap_HighResolution_638496001_638755201_4FGL_J2253.9+1609_daily_bin1540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-07', energy_flux2='4.36e-05', photon_flux_error='5.71e-08', dlogl='9.11e-03', energy_flux='4.32e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-29 02:24:51.045296', photon_index_error2='0.41', photon_index2='1.96', ts='11.99', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='0.95', time_epoch_completed='1632907491.05', return_code='0', job_id='581437', GAL2='0.89', EG2='0.96', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='6.92e-08', ts2='11.93', photon_index='2.02' WHERE bin_id='1540' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:24:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 581437: <4FGL_J2253.9+1609_daily_bin1540> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1540> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 02:10:26 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:10:28 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:10:28 2021
Terminated at Wed Sep 29 02:24:51 2021
Results reported at Wed Sep 29 02:24:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1540 343.496 16.1506 638496001 638755201 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 :                                   622.51 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

