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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin85
RA = 343.496, Dec = 16.1506
tmin = 261360001, tmax = 261619201
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='572947', job_status='RUN', time_executed='2021-09-29 01:47:55.400714', time_epoch_executed='1632905275.4' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572947

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572947/ft1_4FGL_J2253.9+1609_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572947/ft2_4FGL_J2253.9+1609_daily_bin85.fits


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

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

Done.
real 1.47
user 1.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572947/ft1_filtered_4FGL_J2253.9+1609_daily_bin85.fits" evtable="EVENTS" scfile=/scratch/kocevski/572947/ft2_4FGL_J2253.9+1609_daily_bin85.fits sctable="SC_DATA" outfile=/scratch/kocevski/572947/ltcube_261360001_261619201_4FGL_J2253.9+1609_daily_bin85.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/572947/ft2_4FGL_J2253.9+1609_daily_bin85.fits
.....................!
real 12.56
user 12.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572947/ft1_filtered_4FGL_J2253.9+1609_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/572947/ft2_4FGL_J2253.9+1609_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/572947/ltcube_261360001_261619201_4FGL_J2253.9+1609_daily_bin85.fits outfile=/scratch/kocevski/572947/expmap_261360001_261619201_4FGL_J2253.9+1609_daily_bin85.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/572947/ltcube_261360001_261619201_4FGL_J2253.9+1609_daily_bin85.fits
.....................!
real 190.86
user 185.39
sys 5.13

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/572947/ft1_filtered_4FGL_J2253.9+1609_daily_bin85.fits scfile=/scratch/kocevski/572947/ft2_4FGL_J2253.9+1609_daily_bin85.fits outfile=/scratch/kocevski/572947/cmap_261360001_261619201_4FGL_J2253.9+1609_daily_bin85.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572947/ft1_filtered_4FGL_J2253.9+1609_daily_bin85.fits scfile=/scratch/kocevski/572947/ft2_4FGL_J2253.9+1609_daily_bin85.fits outfile=/scratch/kocevski/572947/cmap_HighResolution_261360001_261619201_4FGL_J2253.9+1609_daily_bin85.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5614       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29430E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22723       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4857       1.0000         .10000E-03   10000.    
     7 'norm      '    .36882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.465       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .57224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.533       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1232       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    32.632       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12981E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.0717       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .63663       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0514       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=   6895.533     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2746 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5680        18.737        .23382E-05    .23012E-03
   2  norm          2.7390        3.9255        .12618E-06   -.13577E-03
   3  Prefactor     .10000E-03    6.3852        .46060E-06** at limit **
   4  Prefactor     .10005E-03    9.3272       -.33442E-05** at limit **
   5  Prefactor     .22719        .17858        .61962E-07    .11151E-02
   6  Prefactor     2.4857        4.0690        .18591E-06    .39843E-04
   7  norm          .37012        1.7421        .20847E-05    .44078E-03
   8  Prefactor     50.466        31.075        .93849E-07    .53199E-04
   9  Prefactor     .10000E-03    12.524       -.10696E-06** at limit **
  10  Prefactor     .10000E-03    11.720        .82945E-06** at limit **
  11  Prefactor     .57218        .16645       -.55319E-09   -.16800E-03
  12  Prefactor     .10000E-03    9.2457       -.13110E-06** at limit **
  13  Prefactor     21.798        16.833       -.14532E-07   -.36937E-04
  14  Prefactor     20.531        9.2692        .98681E-07   -.16243E-04
  15  Prefactor     .10000E-03    4.3623       -.43122E-07** at limit **
  16  Prefactor     7.1201        16.978       -.31315E-06   -.17163E-03
  17  Prefactor     .10000E-03    2.1719        .22469E-07** at limit **
  18  Prefactor     .10000E-03    7.1974       -.52518E-06** at limit **
  19  Prefactor     .10000E-03    8.9052       -.32436E-06** at limit **
  20  norm          32.621        11.453       -.13008E-06   -.37550E-03
  21  Prefactor     .10000E-03    13.512       -.83281E-06** at limit **
  22  norm          7.0686        14.570       -.87273E-07   -.14377E-03
  23  Normalizat    .63689        .21085       -.15602E-06    .31836E-04
  24  Prefactor     1.0514        .11979       -.54217E-06    .58276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56803
  norm       = 2.739
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.227192
  Prefactor  = 2.48572
  norm       = 0.370121
  Prefactor  = 50.466
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.572178
  Prefactor  = 0.0001
  Prefactor  = 21.7976
  Prefactor  = 20.5311
  Prefactor  = 0.0001
  Prefactor  = 7.12011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.6214
  Prefactor  = 0.0001
  norm       = 7.06862
  Normalizat = 0.636888
  Prefactor  = 1.05139
 **********
 **   18 **HESSE 
 **********

 FCN=   6895.533     FROM HESSE     STATUS=OK           399 CALLS     3145 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5680        19.203        .25508E-03   -1.5387    
   2  norm          2.7390        3.9227        .19091E-03   -1.5377    
   3  Prefactor     .10000E-03    6.4571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    18.229        .36970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .22719        .17209        .29146E-03   -1.5613    
   6  Prefactor     2.4857        4.0495        .20835E-03   -1.5393    
   7  norm          .37012        1.9268        .21728E-03   -1.5586    
   8  Prefactor     50.466        31.120        .56453E-04   -1.4286    
   9  Prefactor     .10000E-03    12.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .57218        .16611        .17007E-04   -1.5557    
  12  Prefactor     .10000E-03    9.3359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.798        16.836        .85791E-04   -1.4774    
  14  Prefactor     20.531        9.2622        .88392E-04   -1.4801    
  15  Prefactor     .10000E-03    4.3717        .16937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1201        17.045        .15030E-03   -1.5174    
  17  Prefactor     .10000E-03    2.1834        .11948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          32.621        11.372        .70146E-04   -1.4565    
  21  Prefactor     .10000E-03    13.700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.0686        14.599        .15085E-03   -1.5176    
  23  Normalizat    .63689        .23515        .37276E-03   -1.0644    
  24  Prefactor     1.0514        .13592        .17517E-03   -.91035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61686e-09
Minuit parameter uncertainties:
  1  14.0509
  2  3.9231
  3  0.000108663
  4  0.0018423
  5  0.172091
  6  4.04996
  7  1.68883
  8  31.1303
  9  3.32265e-05
  10  0.000269976
  11  0.166112
  12  3.81232e-05
  13  16.8393
  14  9.26284
  15  9.35883e-06
  16  17.0571
  17  1.50138e-06
  18  0.000109841
  19  9.97636e-05
  20  11.3729
  21  9.19393e-05
  22  14.6067
  23  0.235517
  24  0.135969
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.722e-01  1.661e-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.051e+00  1.360e-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:  6.369e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.21
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.09e-07 +/- 6.06e-08
Energy Flux (Fixed Index): 6.70e-05 +/- 1.94e-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) = 6895.52035324
delta logL = 0.0124874137045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6895.51663553
delta logL = 0.016205123804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58705       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0718       1.0000          .0000       10.000    
     3 'Normalizat'    .62960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0541       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=   6895.517     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58706        .16846        .38592E-02   -.31177E-02
   2  Index1        2.0719        .26084        .11858        .59475E-04
   3  Normalizat    .62957        .20251        .84598E-01   -.21046E-04
   4  Prefactor     1.0542        .11908        .39674E-01   -.25888E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.587059
  Index1     = 2.07186
  Normalizat = 0.629567
  Prefactor  = 1.05416
 **********
 **   18 **HESSE 
 **********

 FCN=   6895.517     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58706        .18159        .17094E-04   -1.5555    
   2  Index1        2.0719        .28981        .51129E-02   -.62566    
   3  Normalizat    .62957        .22973        .37470E-03   -1.0674    
   4  Prefactor     1.0542        .13512        .17495E-03   -.90945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68868e-11
Minuit parameter uncertainties:
  1  0.181594
  2  0.290057
  3  0.230079
  4  0.135162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572947': 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) = 6895.51663551
delta logL = 0.0162051462394

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.871e-01  1.816e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.072e+00  2.901e-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.054e+00  1.352e-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:  6.296e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.44
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.07 +/- 0.29
Photon Flux (Free Index): 2.15e-07 +/- 6.91e-08
Energy Flux (Free Index): 6.57e-05 +/- 1.98e-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/572947/cmap_HighResolution_261360001_261619201_4FGL_J2253.9+1609_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-07', energy_flux2='6.57e-05', photon_flux_error='6.06e-08', dlogl='1.62e-02', energy_flux='6.70e-05', photon_flux2='2.15e-07', job_status='DONE', time_completed='2021-09-29 01:58:09.432841', photon_index_error2='0.29', photon_index2='2.07', ts='30.21', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='0.64', time_epoch_completed='1632905889.43', return_code='0', job_id='572947', GAL2='1.05', EG2='0.63', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='6.91e-08', ts2='30.44', photon_index='2.02' WHERE bin_id='85' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:58:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 572947: <4FGL_J2253.9+1609_daily_bin85> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin85 343.496 16.1506 261360001 261619201 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 :                                   613.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

