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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin356
RA = 343.496, Dec = 16.1506
tmin = 331603201, tmax = 331862401
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='574924', job_status='RUN', time_executed='2021-09-29 01:52:31.925859', time_epoch_executed='1632905551.93' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574924/ft1_4FGL_J2253.9+1609_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574924/ft2_4FGL_J2253.9+1609_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574924/ft1_4FGL_J2253.9+1609_daily_bin356.fits outfile=/scratch/kocevski/574924/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin356.fits ra=343.496 dec=16.1506 rad=12.0 tmin=331603201.0 tmax=331862401.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.30
user 3.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574924/ft1_filtered_4FGL_J2253.9+1609_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/574924/ft2_4FGL_J2253.9+1609_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/574924/ltcube_331603201_331862401_4FGL_J2253.9+1609_daily_bin356.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/574924/ft2_4FGL_J2253.9+1609_daily_bin356.fits
.....................!
real 12.21
user 11.81
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574924/ft1_filtered_4FGL_J2253.9+1609_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/574924/ft2_4FGL_J2253.9+1609_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/574924/ltcube_331603201_331862401_4FGL_J2253.9+1609_daily_bin356.fits outfile=/scratch/kocevski/574924/expmap_331603201_331862401_4FGL_J2253.9+1609_daily_bin356.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/574924/ltcube_331603201_331862401_4FGL_J2253.9+1609_daily_bin356.fits
.....................!
real 191.52
user 187.03
sys 4.17

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/574924/ft1_filtered_4FGL_J2253.9+1609_daily_bin356.fits scfile=/scratch/kocevski/574924/ft2_4FGL_J2253.9+1609_daily_bin356.fits outfile=/scratch/kocevski/574924/cmap_331603201_331862401_4FGL_J2253.9+1609_daily_bin356.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574924/ft1_filtered_4FGL_J2253.9+1609_daily_bin356.fits scfile=/scratch/kocevski/574924/ft2_4FGL_J2253.9+1609_daily_bin356.fits outfile=/scratch/kocevski/574924/cmap_HighResolution_331603201_331862401_4FGL_J2253.9+1609_daily_bin356.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13194E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0905       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8407       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2684       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4195       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .81194       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.244       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.475       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8590       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2697       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5866       1.0000         .10000E-03   10000.    
    20 'norm      '    .10541E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5571       1.0000         .10000E-03   10000.    
    22 'norm      '    28.215       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95011       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89658       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=   8432.801     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2734 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9613       -.58906E-07** at limit **
   2  norm          .10000E-03    2.8182       -.59705E-06** at limit **
   3  Prefactor     .10000E-03    4.2652        .20446E-07** at limit **
   4  Prefactor     .10000E-03    10.431        .21061E-06** at limit **
   5  Prefactor     1.0905        .23497        .19565E-07   -.75200E-03
   6  Prefactor     3.8405        4.6480        .31180E-07   -.35061E-05
   7  norm          2.2684        1.2749        .88146E-08   -.70807E-04
   8  Prefactor     .10000E-03    31.263       -.36599E-08** at limit **
   9  Prefactor     .10000E-03    4.5538        .56301E-07** at limit **
  10  Prefactor     2.4188        23.463        .55568E-06   -.25299E-05
  11  Prefactor     .81202        .17937        .10405E-07   -.12052E-02
  12  Prefactor     .10000E-03    9.1872        .83548E-07** at limit **
  13  Prefactor     18.230        30.403        .12181E-05   -.45950E-04
  14  Prefactor     .10000E-03    2.9731        .44156E-07** at limit **
  15  Prefactor     .10000E-03    5.3364       -.72418E-07** at limit **
  16  Prefactor     28.475        20.563        .23928E-06   -.20727E-04
  17  Prefactor     2.8567        7.2085        .23835E-05    .46804E-03
  18  Prefactor     7.2718        9.2171       -.62101E-07   -.15328E-03
  19  Prefactor     6.5988        19.620       -.30022E-05   -.16645E-03
  20  norm          .10000E-03    13.290        .14531E-06** at limit **
  21  Prefactor     2.5614        7.6411        .49521E-05   -.41189E-03
  22  norm          28.216        14.971       -.83109E-07   -.17972E-04
  23  Normalizat    .95001        .20599       -.32098E-05   -.22327E-03
  24  Prefactor     .89666        .10620        .67385E-06   -.32345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09054
  Prefactor  = 3.84049
  norm       = 2.26841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41883
  Prefactor  = 0.812021
  Prefactor  = 0.0001
  Prefactor  = 18.2305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4749
  Prefactor  = 2.85673
  Prefactor  = 7.27177
  Prefactor  = 6.59875
  norm       = 0.0001
  Prefactor  = 2.56144
  norm       = 28.2161
  Normalizat = 0.950009
  Prefactor  = 0.896657
 **********
 **   18 **HESSE 
 **********

 FCN=   8432.801     FROM HESSE     STATUS=OK           401 CALLS     3135 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.7168        .29389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0905        .23501        .19526E-04   -1.5499    
   6  Prefactor     3.8405        4.6458        .20593E-03   -1.5316    
   7  norm          2.2684        1.2794        .75724E-04   -1.5407    
   8  Prefactor     .10000E-03    31.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4188        23.403        .26314E-03   -1.5397    
  11  Prefactor     .81202        .17912        .16914E-04   -1.5528    
  12  Prefactor     .10000E-03    9.2884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.230        30.210        .93770E-04   -1.4854    
  14  Prefactor     .10000E-03    2.9900        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.475        20.563        .75078E-04   -1.4640    
  17  Prefactor     2.8567        7.3794        .24043E-03   -1.5370    
  18  Prefactor     7.2718        9.1952        .74382E-03   -1.5169    
  19  Prefactor     6.5988        19.892        .15636E-03   -1.5194    
  20  norm          .10000E-03    13.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5614        7.7597        .12766E-02   -1.5388    
  22  norm          28.216        14.980        .75422E-04   -1.4645    
  23  Normalizat    .95001        .23422        .33323E-03   -.94725    
  24  Prefactor     .89666        .12319        .19195E-03   -.96258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17848e-09
Minuit parameter uncertainties:
  1  1.70372e-05
  2  6.73807e-06
  3  5.19521e-06
  4  1.42562e-05
  5  0.235013
  6  4.64621
  7  1.27941
  8  3.73664e-05
  9  5.17762e-06
  10  15.055
  11  0.179123
  12  3.64726e-05
  13  30.2348
  14  5.28043e-06
  15  3.51297e-06
  16  20.5684
  17  7.38179
  18  9.19698
  19  19.9117
  20  6.7442e-06
  21  7.76279
  22  14.9819
  23  0.234468
  24  0.123233
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  8.120e-01  1.791e-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.967e-01  1.232e-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.500e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.46
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.96e-07 +/- 6.53e-08
Energy Flux (Fixed Index): 9.51e-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) = 8431.85904977
delta logL = 0.941964290188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8431.80099643
delta logL = 1.00001763428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94508       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3734       1.0000          .0000       10.000    
     3 'Normalizat'    .86746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92832       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=   8431.801     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      211 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94510        .19362        .38756E-02    .25563E-03
   2  Index1        2.3733        .24130        .11640       -.99981E-04
   3  Normalizat    .86746        .19080        .78245E-01   -.87155E-05
   4  Prefactor     .92832        .10581        .45365E-01    .23102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.945097
  Index1     = 2.37335
  Normalizat = 0.867456
  Prefactor  = 0.928315
 **********
 **   18 **HESSE 
 **********

 FCN=   8431.801     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94510        .20138        .17159E-04   -1.5514    
   2  Index1        2.3733        .25869        .50167E-02   -.55310    
   3  Normalizat    .86746        .22548        .34635E-03   -.97613    
   4  Prefactor     .92832        .12421        .18893E-03   -.95159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74665e-11
Minuit parameter uncertainties:
  1  0.201381
  2  0.258854
  3  0.22572
  4  0.124245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574924': 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) = 8431.80099642
delta logL = 1.00001764047

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.451e-01  2.014e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.373e+00  2.589e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.283e-01  1.242e-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.675e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 53.43
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.37 +/- 0.26
Photon Flux (Free Index): 3.64e-07 +/- 8.54e-08
Energy Flux (Free Index): 8.81e-05 +/- 1.86e-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/574924/cmap_HighResolution_331603201_331862401_4FGL_J2253.9+1609_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.96e-07', energy_flux2='8.81e-05', photon_flux_error='6.53e-08', dlogl='1.00e+00', energy_flux='9.51e-05', photon_flux2='3.64e-07', job_status='DONE', time_completed='2021-09-29 02:04:01.258998', photon_index_error2='0.26', photon_index2='2.37', ts='51.46', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='0.95', time_epoch_completed='1632906241.26', return_code='0', job_id='574924', GAL2='0.93', EG2='0.87', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='8.54e-08', ts2='53.43', photon_index='2.02' WHERE bin_id='356' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:04:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 574924: <4FGL_J2253.9+1609_daily_bin356> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin356 343.496 16.1506 331603201 331862401 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            816 sec.

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

