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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1081
RA = 343.496, Dec = 16.1506
tmin = 519523201, tmax = 519782401
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='578493', job_status='RUN', time_executed='2021-09-29 02:04:40.279952', time_epoch_executed='1632906280.28' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578493

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578493/ft1_4FGL_J2253.9+1609_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578493/ft2_4FGL_J2253.9+1609_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578493/ft1_4FGL_J2253.9+1609_daily_bin1081.fits outfile=/scratch/kocevski/578493/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1081.fits ra=343.496 dec=16.1506 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.91
user 2.72
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578493/ft1_filtered_4FGL_J2253.9+1609_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/578493/ft2_4FGL_J2253.9+1609_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/578493/ltcube_519523201_519782401_4FGL_J2253.9+1609_daily_bin1081.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/578493/ft2_4FGL_J2253.9+1609_daily_bin1081.fits
.....................!
real 10.49
user 10.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578493/ft1_filtered_4FGL_J2253.9+1609_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/578493/ft2_4FGL_J2253.9+1609_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/578493/ltcube_519523201_519782401_4FGL_J2253.9+1609_daily_bin1081.fits outfile=/scratch/kocevski/578493/expmap_519523201_519782401_4FGL_J2253.9+1609_daily_bin1081.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/578493/ltcube_519523201_519782401_4FGL_J2253.9+1609_daily_bin1081.fits
.....................!
real 190.68
user 185.26
sys 5.10

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/578493/ft1_filtered_4FGL_J2253.9+1609_daily_bin1081.fits scfile=/scratch/kocevski/578493/ft2_4FGL_J2253.9+1609_daily_bin1081.fits outfile=/scratch/kocevski/578493/cmap_519523201_519782401_4FGL_J2253.9+1609_daily_bin1081.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.55
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.3585       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20132E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5908       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.804       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6336       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.192       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.327       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7736       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53829E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56084E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.897       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4666       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79107       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0728       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=   8612.086     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2779 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8945        .62589E-07** at limit **
   2  norm          6.3588        4.2909        .78270E-07    .12574E-03
   3  Prefactor     .10017E-03    41.912        .13722E-04** at limit **
   4  Prefactor     7.6337        10.554       -.45473E-06   -.61518E-05
   5  Prefactor     5.5902        .49996       -.10662E-07   -.12145E-02
   6  Prefactor     18.805        12.303        .10662E-07   -.31706E-04
   7  norm          2.6336        1.8462        .50041E-08    .22336E-03
   8  Prefactor     43.194        34.120        .23867E-06    .49948E-05
   9  Prefactor     .10000E-03    4.6840        .16664E-06** at limit **
  10  Prefactor     .10000E-03    4.9874        .63772E-07** at limit **
  11  Prefactor     .75390        .18117        .10965E-07    .11626E-02
  12  Prefactor     11.328        11.537       -.16393E-06    .16782E-04
  13  Prefactor     .10000E-03    95.902        .19804E-05** at limit **
  14  Prefactor     2.7738        6.3255       -.19931E-05   -.44567E-04
  15  Prefactor     .10016E-03    19.406       -.65885E-05** at limit **
  16  Prefactor     .10000E-03    8.0258        .17411E-06** at limit **
  17  Prefactor     .10004E-03    45.641       -.14687E-04** at limit **
  18  Prefactor     20.895        15.734        .61988E-07   -.32932E-05
  19  Prefactor     .10000E-03    14.941        .37320E-06** at limit **
  20  norm          4.4691        7.7813        .20895E-07   -.10733E-05
  21  Prefactor     .10000E-03    3.8353        .35495E-06** at limit **
  22  norm          .10000E-03    5.1538        .11760E-06** at limit **
  23  Normalizat    .79077        .23598       -.21276E-05    .55815E-04
  24  Prefactor     1.0728        .13378       -.29661E-06   -.80790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.35877
  Prefactor  = 0.000100167
  Prefactor  = 7.63365
  Prefactor  = 5.59024
  Prefactor  = 18.8052
  norm       = 2.63364
  Prefactor  = 43.1942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.7539
  Prefactor  = 11.3279
  Prefactor  = 0.0001
  Prefactor  = 2.77378
  Prefactor  = 0.000100159
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 20.8954
  Prefactor  = 0.0001
  norm       = 4.46907
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.790774
  Prefactor  = 1.07282
 **********
 **   18 **HESSE 
 **********

 FCN=   8612.086     FROM HESSE     STATUS=OK           421 CALLS     3200 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.3588        4.2924        .15324E-03   -1.5204    
   3  Prefactor     .10017E-03    99.611        .62537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.6337        10.576        .14517E-03   -1.5155    
   5  Prefactor     5.5902        .48954        .18002E-04   -1.5235    
   6  Prefactor     18.805        12.336        .92362E-04   -1.4840    
   7  norm          2.6336        1.8458        .51230E-03   -1.5383    
   8  Prefactor     43.194        34.166        .61000E-04   -1.4393    
   9  Prefactor     .10000E-03    4.6969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .75390        .18118        .18232E-04   -1.5534    
  12  Prefactor     11.328        11.551        .11904E-03   -1.5035    
  13  Prefactor     .10000E-03    97.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7738        6.3424        .12218E-02   -1.5375    
  15  Prefactor     .10016E-03    10.943        .84853E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10004E-03    5.1222        .56324E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.895        15.697        .87619E-04   -1.4793    
  19  Prefactor     .10000E-03    15.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4691        7.7431        .19052E-03   -1.5285    
  21  Prefactor     .10000E-03    3.9054        .17732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.1625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79077        .26950        .42527E-03   -1.0041    
  24  Prefactor     1.0728        .15361        .21419E-03   -.90340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90417e-09
Minuit parameter uncertainties:
  1  0.000129804
  2  4.29261
  3  0.0081739
  4  10.5784
  5  0.489539
  6  12.3373
  7  1.84587
  8  34.1814
  9  5.40612e-05
  10  2.11485e-06
  11  0.181183
  12  11.5529
  13  0.00027775
  14  6.34389
  15  0.00263852
  16  2.60839e-05
  17  0.000903374
  18  15.6999
  19  1.29936e-05
  20  7.74481
  21  5.89579e-05
  22  4.77455e-06
  23  0.269954
  24  0.153674
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.539e-01  1.812e-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.073e+00  1.537e-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:  7.908e-01  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 58.74
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.75e-07 +/- 6.60e-08
Energy Flux (Fixed Index): 8.83e-05 +/- 2.12e-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) = 8610.57484905
delta logL = 1.51110708511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8610.5744875
delta logL = 1.51146862998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57569       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.6161       1.0000          .0000       10.000    
     3 'Normalizat'    .85381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0496       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=   8610.574     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57569        .16509        .37610E-02   -.22344E-03
   2  Index1        1.6161        .19485        .93951E-01   -.10107E-03
   3  Normalizat    .85382        .22714        .92913E-01    .51683E-04
   4  Prefactor     1.0496        .13114        .39931E-01   -.89120E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.575689
  Index1     = 1.61607
  Normalizat = 0.853816
  Prefactor  = 1.04963
 **********
 **   18 **HESSE 
 **********

 FCN=   8610.574     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57569        .18977        .16620E-04   -1.5556    
   2  Index1        1.6161        .22760        .40947E-03   -.74339    
   3  Normalizat    .85382        .26158        .41162E-03   -.98102    
   4  Prefactor     1.0496        .15124        .21635E-03   -.91093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64717e-12
Minuit parameter uncertainties:
  1  0.189775
  2  0.227747
  3  0.261967
  4  0.151302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578493': 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) = 8610.5744875
delta logL = 1.51146863025

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.757e-01  1.898e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.616e+00  2.277e-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.050e+00  1.513e-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.538e-01  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 61.45
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.62 +/- 0.23
Photon Flux (Free Index): 2.14e-07 +/- 6.47e-08
Energy Flux (Free Index): 1.12e-04 +/- 3.22e-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/578493/cmap_HighResolution_519523201_519782401_4FGL_J2253.9+1609_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-07', energy_flux2='1.12e-04', photon_flux_error='6.60e-08', dlogl='1.51e+00', energy_flux='8.83e-05', photon_flux2='2.14e-07', job_status='DONE', time_completed='2021-09-29 02:16:41.643644', photon_index_error2='0.23', photon_index2='1.62', ts='58.74', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.22e-05', EG='0.79', time_epoch_completed='1632907001.64', return_code='0', job_id='578493', GAL2='1.05', EG2='0.85', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='6.47e-08', ts2='61.45', photon_index='2.02' WHERE bin_id='1081' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 578493: <4FGL_J2253.9+1609_daily_bin1081> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1081> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:00:35 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:00:36 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:00:36 2021
Terminated at Wed Sep 29 02:16:42 2021
Results reported at Wed Sep 29 02:16:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1081 343.496 16.1506 519523201 519782401 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 :                                   716.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

