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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1353
RA = 343.496, Dec = 16.1506
tmin = 590025601, tmax = 590284801
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='579983', job_status='RUN', time_executed='2021-09-29 02:07:48.826140', time_epoch_executed='1632906468.83' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579983

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579983/ft1_4FGL_J2253.9+1609_daily_bin1353.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579983/ft2_4FGL_J2253.9+1609_daily_bin1353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579983/ft1_4FGL_J2253.9+1609_daily_bin1353.fits outfile=/scratch/kocevski/579983/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1353.fits ra=343.496 dec=16.1506 rad=12.0 tmin=590025601.0 tmax=590284801.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.94
user 3.70
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579983/ft2_4FGL_J2253.9+1609_daily_bin1353.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/579983/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1353.fits evtable="EVENTS" outfile="/scratch/kocevski/579983/ft1_filtered_4FGL_J2253.9+1609_daily_bin1353.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/579983/ft1_filtered_4FGL_J2253.9+1609_daily_bin1353.fits" evtable="EVENTS" scfile=/scratch/kocevski/579983/ft2_4FGL_J2253.9+1609_daily_bin1353.fits sctable="SC_DATA" outfile=/scratch/kocevski/579983/ltcube_590025601_590284801_4FGL_J2253.9+1609_daily_bin1353.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/579983/ft2_4FGL_J2253.9+1609_daily_bin1353.fits
.....................!
real 11.61
user 11.30
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579983/ft1_filtered_4FGL_J2253.9+1609_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/579983/ft2_4FGL_J2253.9+1609_daily_bin1353.fits sctable="SC_DATA" expcube=/scratch/kocevski/579983/ltcube_590025601_590284801_4FGL_J2253.9+1609_daily_bin1353.fits outfile=/scratch/kocevski/579983/expmap_590025601_590284801_4FGL_J2253.9+1609_daily_bin1353.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/579983/ltcube_590025601_590284801_4FGL_J2253.9+1609_daily_bin1353.fits
.....................!
real 191.70
user 186.96
sys 4.43

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/579983/ft1_filtered_4FGL_J2253.9+1609_daily_bin1353.fits scfile=/scratch/kocevski/579983/ft2_4FGL_J2253.9+1609_daily_bin1353.fits outfile=/scratch/kocevski/579983/cmap_590025601_590284801_4FGL_J2253.9+1609_daily_bin1353.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/579983/ft1_filtered_4FGL_J2253.9+1609_daily_bin1353.fits scfile=/scratch/kocevski/579983/ft2_4FGL_J2253.9+1609_daily_bin1353.fits outfile=/scratch/kocevski/579983/cmap_HighResolution_590025601_590284801_4FGL_J2253.9+1609_daily_bin1353.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/579983/ft1_filtered_4FGL_J2253.9+1609_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/579983/ft2_4FGL_J2253.9+1609_daily_bin1353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579983/Model_4FGL_J2253.9+1609_daily_bin1353.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/579983/ft1_filtered_4FGL_J2253.9+1609_daily_bin1353.fits.....................!
real 88.14
user 86.78
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.059       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2578       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.328       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3765       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2504       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    128.29       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75371       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.250       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5057       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4637       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .60096       1.0000         .10000E-03   10000.    
    20 'norm      '    10.023       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5961       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66050       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=   8264.494     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2704 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.052        19.866        .47118E-05   -.25409E-04
   2  norm          .10000E-03    2.0226       -.13164E-06** at limit **
   3  Prefactor     3.2559        10.407        .57546E-05   -.17346E-03
   4  Prefactor     14.323        16.141        .69066E-05   -.69543E-04
   5  Prefactor     .32820        .18593       -.25989E-07   -.22656E-02
   6  Prefactor     9.3763        6.4473        .15623E-06    .36405E-04
   7  norm          2.2504        1.9099        .60554E-08   -.79280E-04
   8  Prefactor     14.960        18.670        .89518E-05   -.11963E-04
   9  Prefactor     128.29        23.919       -.76329E-07   -.49424E-04
  10  Prefactor     .10000E-03    6.5368        .27951E-05** at limit **
  11  Prefactor     .75368        .17851        .84444E-09   -.90475E-03
  12  Prefactor     6.7838        12.428        .32210E-05   -.63953E-04
  13  Prefactor     34.286        39.341        .33667E-04   -.14204E-04
  14  Prefactor     .10000E-03    5.3096        .30908E-05** at limit **
  15  Prefactor     9.5058        12.131       -.43365E-05   -.94467E-04
  16  Prefactor     19.722        29.484        .12454E-05   -.19942E-04
  17  Prefactor     .10000E-03    2.3532        .18143E-06** at limit **
  18  Prefactor     8.4670        13.759       -.12393E-04   -.12913E-03
  19  Prefactor     .56861        19.112       -.33191E-05    .58569E-03
  20  norm          10.016        10.635        .90513E-05    .49262E-04
  21  Prefactor     .10000E-03    7.6879       -.12923E-05** at limit **
  22  norm          .10000E-03    5.6177       -.39231E-05** at limit **
  23  Normalizat    1.5962        .23736       -.50690E-05    .37298E-03
  24  Prefactor     .66052        .11598       -.71575E-06   -.11604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0516
  norm       = 0.0001
  Prefactor  = 3.25586
  Prefactor  = 14.3226
  Prefactor  = 0.328202
  Prefactor  = 9.37627
  norm       = 2.25036
  Prefactor  = 14.9597
  Prefactor  = 128.292
  Prefactor  = 0.0001
  Prefactor  = 0.753681
  Prefactor  = 6.78382
  Prefactor  = 34.2861
  Prefactor  = 0.0001
  Prefactor  = 9.50583
  Prefactor  = 19.7223
  Prefactor  = 0.0001
  Prefactor  = 8.46698
  Prefactor  = 0.568606
  norm       = 10.0156
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.59617
  Prefactor  = 0.660525
 **********
 **   18 **HESSE 
 **********

 FCN=   8264.494     FROM HESSE     STATUS=OK           407 CALLS     3111 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.052        19.856        .94248E-04   -1.4858    
   2  norm          .10000E-03    2.0443        .12624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2559        10.331        .22438E-03   -1.5347    
   4  Prefactor     14.323        16.215        .10581E-03   -1.4951    
   5  Prefactor     .32820        .18325        .27316E-04   -1.5593    
   6  Prefactor     9.3763        6.4539        .13088E-03   -1.5095    
   7  norm          2.2504        1.9095        .10946E-03   -1.5408    
   8  Prefactor     14.960        18.680        .10351E-03   -1.4934    
   9  Prefactor     128.29        23.906        .35544E-04   -1.3438    
  10  Prefactor     .10000E-03    6.5408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .75368        .17893        .17729E-04   -1.5534    
  12  Prefactor     6.7838        12.409        .15403E-03   -1.5187    
  13  Prefactor     34.286        39.459        .68473E-04   -1.4536    
  14  Prefactor     .10000E-03    5.4366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5058        12.152        .12998E-03   -1.5091    
  16  Prefactor     19.722        29.548        .90197E-04   -1.4819    
  17  Prefactor     .10000E-03    2.3588        .13606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4670        13.760        .13779E-03   -1.5126    
  19  Prefactor     .56861        224.66        .72474E-02   -1.5557    
  20  norm          10.016        10.624        .12657E-03   -1.5075    
  21  Prefactor     .10000E-03    7.8055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.6248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5962        .28449        .30936E-03   -.75111    
  24  Prefactor     .66052        .13526        .24137E-03   -1.0509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13536e-08
Minuit parameter uncertainties:
  1  19.8634
  2  3.00838e-08
  3  10.3371
  4  16.2198
  5  0.18325
  6  6.45435
  7  1.90952
  8  18.687
  9  23.9078
  10  2.51829e-06
  11  0.178929
  12  12.4134
  13  39.4889
  14  2.45455e-05
  15  12.1553
  16  29.57
  17  2.12486e-05
  18  13.765
  19  22.6887
  20  10.6261
  21  0.000129802
  22  1.15554e-05
  23  0.284777
  24  0.135324
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.537e-01  1.789e-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:  6.605e-01  1.353e-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.596e+00  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 56.14
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.75e-07 +/- 6.52e-08
Energy Flux (Fixed Index): 8.82e-05 +/- 2.10e-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) = 8264.43467412
delta logL = 0.0593870745506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8264.42815994
delta logL = 0.0659012488832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70992       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9301       1.0000          .0000       10.000    
     3 'Normalizat'    1.6118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65548       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=   8264.428     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70991        .18648        .39446E-02    .12468E-03
   2  Index1        1.9301        .21328        .99483E-01   -.78485E-04
   3  Normalizat    1.6119        .21819        .69690E-01    .51598E-05
   4  Prefactor     .65548        .11467        .41806E-01    .24420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.709913
  Index1     = 1.93011
  Normalizat = 1.61187
  Prefactor  = 0.655485
 **********
 **   18 **HESSE 
 **********

 FCN=   8264.428     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .31E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70991        .21094        .17441E-04   -1.5539    
   2  Index1        1.9301        .24532        .43299E-03   -.66109    
   3  Normalizat    1.6119        .25390        .30829E-03   -.74682    
   4  Prefactor     .65548        .13277        .24224E-03   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12157e-16
Minuit parameter uncertainties:
  1  0.210939
  2  0.245475
  3  0.254105
  4  0.132832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579983': 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) = 8264.42815983
delta logL = 0.0659013670393

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.099e-01  2.109e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.930e+00  2.455e-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:  6.555e-01  1.328e-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.612e+00  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.12
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.93 +/- 0.25
Photon Flux (Free Index): 2.58e-07 +/- 7.74e-08
Energy Flux (Free Index): 9.06e-05 +/- 2.26e-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/579983/cmap_HighResolution_590025601_590284801_4FGL_J2253.9+1609_daily_bin1353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-07', energy_flux2='9.06e-05', photon_flux_error='6.52e-08', dlogl='6.59e-02', energy_flux='8.82e-05', photon_flux2='2.58e-07', job_status='DONE', time_completed='2021-09-29 02:20:33.587028', photon_index_error2='0.25', photon_index2='1.93', ts='56.14', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='2.26e-05', EG='1.60', time_epoch_completed='1632907233.59', return_code='0', job_id='579983', GAL2='0.66', EG2='1.61', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='7.74e-08', ts2='56.12', photon_index='2.02' WHERE bin_id='1353' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:20:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 579983: <4FGL_J2253.9+1609_daily_bin1353> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1353> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:32 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:33 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:05:33 2021
Terminated at Wed Sep 29 02:20:34 2021
Results reported at Wed Sep 29 02:20:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1353 343.496 16.1506 590025601 590284801 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 :                                   676.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

