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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1370
RA = 343.496, Dec = 16.1506
tmin = 594432001, tmax = 594691201
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='580006', job_status='RUN', time_executed='2021-09-29 02:07:43.482001', time_epoch_executed='1632906463.48' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580006

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580006/ft1_4FGL_J2253.9+1609_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580006/ft2_4FGL_J2253.9+1609_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580006/ft1_4FGL_J2253.9+1609_daily_bin1370.fits outfile=/scratch/kocevski/580006/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1370.fits ra=343.496 dec=16.1506 rad=12.0 tmin=594432001.0 tmax=594691201.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.36
user 4.10
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580006/ft1_filtered_4FGL_J2253.9+1609_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/580006/ft2_4FGL_J2253.9+1609_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/580006/ltcube_594432001_594691201_4FGL_J2253.9+1609_daily_bin1370.fits outfile=/scratch/kocevski/580006/expmap_594432001_594691201_4FGL_J2253.9+1609_daily_bin1370.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/580006/ltcube_594432001_594691201_4FGL_J2253.9+1609_daily_bin1370.fits
.....................!
real 190.94
user 185.58
sys 5.04

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/580006/ft1_filtered_4FGL_J2253.9+1609_daily_bin1370.fits scfile=/scratch/kocevski/580006/ft2_4FGL_J2253.9+1609_daily_bin1370.fits outfile=/scratch/kocevski/580006/cmap_594432001_594691201_4FGL_J2253.9+1609_daily_bin1370.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/580006/ft1_filtered_4FGL_J2253.9+1609_daily_bin1370.fits scfile=/scratch/kocevski/580006/ft2_4FGL_J2253.9+1609_daily_bin1370.fits outfile=/scratch/kocevski/580006/cmap_HighResolution_594432001_594691201_4FGL_J2253.9+1609_daily_bin1370.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66781       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6907       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6859       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .32677       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1165       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.202       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.962       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.455       1.0000         .10000E-03   10000.    
    20 'norm      '    .17526E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.935       1.0000         .10000E-03   10000.    
    22 'norm      '    14.344       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95008       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0444       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=   7971.100     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2750 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.561        .49106E-06** at limit **
   2  norm          .10000E-03    3.8691        .69697E-07** at limit **
   3  Prefactor     .10000E-03    4.4015        .33816E-07** at limit **
   4  Prefactor     .64670        48.366        .22783E-04    .67252E-04
   5  Prefactor     .42421        .19879        .24540E-07    .14343E-03
   6  Prefactor     8.6906        7.3021        .16223E-06    .22564E-04
   7  norm          2.6859        1.9312        .26877E-07    .77669E-04
   8  Prefactor     38.135        30.386       -.89750E-06   -.30824E-04
   9  Prefactor     21.591        14.461        .15707E-07   -.10955E-05
  10  Prefactor     .10000E-03    4.6685        .34119E-07** at limit **
  11  Prefactor     .32676        .14222        .18266E-07    .93841E-03
  12  Prefactor     .10000E-03    10.691        .28030E-06** at limit **
  13  Prefactor     46.992        43.761        .13795E-05    .22014E-04
  14  Prefactor     1.1163        1.9691        .22974E-05   -.11162E-02
  15  Prefactor     17.199        14.728       -.12313E-06   -.30031E-04
  16  Prefactor     28.046        26.604       -.53187E-06   -.21806E-04
  17  Prefactor     3.2606        5.8236        .15604E-07    .33750E-05
  18  Prefactor     20.941        12.968       -.60934E-06   -.71022E-04
  19  Prefactor     24.465        21.290       -.44185E-08    .14449E-04
  20  norm          .10000E-03    6.6616        .15963E-05** at limit **
  21  Prefactor     21.905        10.656       -.47529E-06   -.35187E-04
  22  norm          14.346        18.789        .41593E-06    .12834E-04
  23  Normalizat    .95005        .23848        .41288E-06    .90883E-04
  24  Prefactor     1.0444        .12343       -.14357E-05   -.51887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.646701
  Prefactor  = 0.42421
  Prefactor  = 8.69064
  norm       = 2.68588
  Prefactor  = 38.1351
  Prefactor  = 21.5906
  Prefactor  = 0.0001
  Prefactor  = 0.32676
  Prefactor  = 0.0001
  Prefactor  = 46.9919
  Prefactor  = 1.11633
  Prefactor  = 17.199
  Prefactor  = 28.0459
  Prefactor  = 3.26065
  Prefactor  = 20.9414
  Prefactor  = 24.4649
  norm       = 0.0001
  Prefactor  = 21.9052
  norm       = 14.3461
  Normalizat = 0.950053
  Prefactor  = 1.04443
 **********
 **   18 **HESSE 
 **********

 FCN=   7971.100     FROM HESSE     STATUS=OK           411 CALLS     3161 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.9660        .34278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .64670        52.005        .41707E-02   -1.5547    
   5  Prefactor     .42421        .19558        .25328E-04   -1.5578    
   6  Prefactor     8.6906        7.3043        .13597E-03   -1.5118    
   7  norm          2.6859        1.9307        .97742E-04   -1.5380    
   8  Prefactor     38.135        30.394        .64917E-04   -1.4472    
   9  Prefactor     21.591        14.457        .86204E-04   -1.4778    
  10  Prefactor     .10000E-03    4.6703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .32676        .14134        .20801E-04   -1.5594    
  12  Prefactor     .10000E-03    10.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.992        43.849        .58486E-04   -1.4336    
  14  Prefactor     1.1163        7.0210        .22274E-02   -1.5497    
  15  Prefactor     17.199        14.775        .96567E-04   -1.4878    
  16  Prefactor     28.046        26.604        .75673E-04   -1.4648    
  17  Prefactor     3.2606        5.7975        .22421E-03   -1.5347    
  18  Prefactor     20.941        13.003        .87483E-04   -1.4792    
  19  Prefactor     24.465        21.274        .81003E-04   -1.4718    
  20  norm          .10000E-03    32.258        .40839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.905        10.825        .85523E-04   -1.4772    
  22  norm          14.346        18.787        .10576E-03   -1.4950    
  23  Normalizat    .95005        .27455        .37328E-03   -.94723    
  24  Prefactor     1.0444        .14341        .19891E-03   -.91263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27187e-09
Minuit parameter uncertainties:
  1  0.000147713
  2  7.57415e-06
  3  3.30075e-06
  4  11.6081
  5  0.195583
  6  7.305
  7  1.93079
  8  30.4059
  9  14.4597
  10  9.79423e-06
  11  0.141337
  12  0.000106804
  13  43.879
  14  5.59993
  15  14.7777
  16  26.6156
  17  5.79849
  18  13.0049
  19  21.2806
  20  0.000143164
  21  10.8256
  22  18.7946
  23  0.274954
  24  0.143465
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.268e-01  1.413e-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.044e+00  1.435e-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.501e-01  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.73
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 5.15e-08
Energy Flux (Fixed Index): 3.83e-05 +/- 1.65e-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) = 7970.51392121
delta logL = 0.585647858315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7970.46503945
delta logL = 0.634529624798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43741       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5435       1.0000          .0000       10.000    
     3 'Normalizat'    .88594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0666       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=   7970.465     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43746        .17537        .47873E-02    .61332E-03
   2  Index1        2.5430        .44202        .20449       -.54928E-04
   3  Normalizat    .88596        .22584        .86880E-01    .37794E-04
   4  Prefactor     1.0666        .12470        .39021E-01    .19554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.437459
  Index1     = 2.54301
  Normalizat = 0.885964
  Prefactor  = 1.06662
 **********
 **   18 **HESSE 
 **********

 FCN=   7970.465     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43746        .17226        .21344E-04   -1.5576    
   2  Index1        2.5430        .47469        .83587E-02   -.51369    
   3  Normalizat    .88596        .26143        .38473E-03   -.96955    
   4  Prefactor     1.0666        .14347        .19700E-03   -.90541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06063e-10
Minuit parameter uncertainties:
  1  0.172258
  2  0.475639
  3  0.261806
  4  0.143521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580006': 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) = 7970.4650388
delta logL = 0.634530275408

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  4.375e-01  1.723e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.543e+00  4.756e-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.067e+00  1.435e-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.860e-01  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.10
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.54 +/- 0.48
Photon Flux (Free Index): 1.76e-07 +/- 7.86e-08
Energy Flux (Free Index): 3.85e-05 +/- 1.46e-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/580006/cmap_HighResolution_594432001_594691201_4FGL_J2253.9+1609_daily_bin1370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='3.85e-05', photon_flux_error='5.15e-08', dlogl='6.35e-01', energy_flux='3.83e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-29 02:20:20.886570', photon_index_error2='0.48', photon_index2='2.54', ts='11.73', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='0.95', time_epoch_completed='1632907220.89', return_code='0', job_id='580006', GAL2='1.07', EG2='0.89', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='7.86e-08', ts2='13.10', photon_index='2.02' WHERE bin_id='1370' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:20:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 580006: <4FGL_J2253.9+1609_daily_bin1370> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1370 343.496 16.1506 594432001 594691201 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 :                                   671.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

