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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1469
RA = 343.496, Dec = 16.1506
tmin = 620092801, tmax = 620352001
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='583569', job_status='RUN', time_executed='2021-09-29 02:20:08.811595', time_epoch_executed='1632907208.81' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583569/ft1_4FGL_J2253.9+1609_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583569/ft2_4FGL_J2253.9+1609_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583569/ft1_4FGL_J2253.9+1609_daily_bin1469.fits outfile=/scratch/kocevski/583569/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1469.fits ra=343.496 dec=16.1506 rad=12.0 tmin=620092801.0 tmax=620352001.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.45
user 3.21
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583569/ft1_filtered_4FGL_J2253.9+1609_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/583569/ft2_4FGL_J2253.9+1609_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/583569/ltcube_620092801_620352001_4FGL_J2253.9+1609_daily_bin1469.fits outfile=/scratch/kocevski/583569/expmap_620092801_620352001_4FGL_J2253.9+1609_daily_bin1469.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/583569/ltcube_620092801_620352001_4FGL_J2253.9+1609_daily_bin1469.fits
.....................!
real 191.99
user 186.16
sys 5.47

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/583569/ft1_filtered_4FGL_J2253.9+1609_daily_bin1469.fits scfile=/scratch/kocevski/583569/ft2_4FGL_J2253.9+1609_daily_bin1469.fits outfile=/scratch/kocevski/583569/cmap_620092801_620352001_4FGL_J2253.9+1609_daily_bin1469.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.41
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583569/ft1_filtered_4FGL_J2253.9+1609_daily_bin1469.fits scfile=/scratch/kocevski/583569/ft2_4FGL_J2253.9+1609_daily_bin1469.fits outfile=/scratch/kocevski/583569/cmap_HighResolution_620092801_620352001_4FGL_J2253.9+1609_daily_bin1469.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5133       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4900       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15187       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .83771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43699       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0592       1.0000         .10000E-03   10000.    
    13 'Prefactor '    81.375       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19362E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1166       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.586       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1393       1.0000         .10000E-03   10000.    
    20 'norm      '    .67023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.364       1.0000         .10000E-03   10000.    
    22 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96837       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0045       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=   7376.537     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2765 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5123        13.731       -.65987E-07   -.91015E-05
   2  norm          .10000E-03    1.6059        .20439E-07** at limit **
   3  Prefactor     .10000E-03    26.665       -.24557E-05** at limit **
   4  Prefactor     6.4905        10.400       -.83625E-06   -.49017E-04
   5  Prefactor     .15184        .19413       -.53766E-07   -.28835E-02
   6  Prefactor     .10000E-03    10.040        .18370E-06** at limit **
   7  norm          .83771        .81293        .30451E-07    .43033E-03
   8  Prefactor     .10000E-03    8.1009       -.24379E-06** at limit **
   9  Prefactor     4.6224        6.5791       -.40856E-07   -.83348E-04
  10  Prefactor     .10000E-03    77.190       -.38560E-05** at limit **
  11  Prefactor     .43696        .15100       -.10385E-07   -.11401E-02
  12  Prefactor     5.0591        10.344       -.66433E-06   -.86326E-04
  13  Prefactor     81.378        52.016        .21428E-05   -.61407E-04
  14  Prefactor     .10023E-03    5.6319        .11123E-05** at limit **
  15  Prefactor     .10000E-03    6.6968        .52978E-05** at limit **
  16  Prefactor     43.382        23.802        .13544E-08    .10040E-04
  17  Prefactor     2.1169        5.4007       -.30016E-05   -.65545E-03
  18  Prefactor     46.573        18.619        .57605E-06    .72968E-04
  19  Prefactor     2.1311        48.581        .27955E-06   -.27080E-04
  20  norm          .10013E-03    8.0056       -.67572E-06** at limit **
  21  Prefactor     12.362        9.7387        .14122E-05   -.44523E-04
  22  norm          .10000E-03    6.6394       -.51732E-05** at limit **
  23  Normalizat    .96828        .22860       -.55368E-06    .11906E-04
  24  Prefactor     1.0046        .12036        .25896E-06   -.45921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.51234
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.49054
  Prefactor  = 0.151839
  Prefactor  = 0.0001
  norm       = 0.837708
  Prefactor  = 0.0001
  Prefactor  = 4.62243
  Prefactor  = 0.000100001
  Prefactor  = 0.436964
  Prefactor  = 5.05912
  Prefactor  = 81.3778
  Prefactor  = 0.000100234
  Prefactor  = 0.000100001
  Prefactor  = 43.3821
  Prefactor  = 2.11691
  Prefactor  = 46.5732
  Prefactor  = 2.13108
  norm       = 0.000100128
  Prefactor  = 12.3619
  norm       = 0.0001
  Normalizat = 0.96828
  Prefactor  = 1.0046
 **********
 **   18 **HESSE 
 **********

 FCN=   7376.537     FROM HESSE     STATUS=OK           407 CALLS     3172 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5123        13.724        .12993E-03   -1.5091    
   2  norm          .10000E-03    1.6171        .10628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4905        10.422        .15754E-03   -1.5198    
   5  Prefactor     .15184        .18310        .39680E-03   -1.5630    
   6  Prefactor     .10000E-03    10.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .83771        .85541        .74213E-03   -1.5525    
   8  Prefactor     .10000E-03    8.1020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6224        6.5659        .18719E-03   -1.5278    
  10  Prefactor     .10000E-03    80.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .43696        .14931        .18546E-04   -1.5576    
  12  Prefactor     5.0591        10.350        .17877E-03   -1.5258    
  13  Prefactor     81.378        51.817        .44524E-04   -1.3901    
  14  Prefactor     .10023E-03    51.177        .38387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.382        23.787        .60868E-04   -1.4390    
  17  Prefactor     2.1169        5.5738        .28351E-03   -1.5417    
  18  Prefactor     46.573        17.574        .58745E-04   -1.4342    
  19  Prefactor     2.1311        46.562        .28181E-03   -1.5416    
  20  norm          .10013E-03    34.266        .40785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.362        9.2125        .11392E-03   -1.5005    
  22  norm          .10000E-03    6.4389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96828        .26479        .34630E-03   -.94101    
  24  Prefactor     1.0046        .14176        .19137E-03   -.92576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94804e-09
Minuit parameter uncertainties:
  1  13.7285
  2  8.71236e-07
  3  0.000196091
  4  10.4245
  5  0.183098
  6  5.48376e-06
  7  0.855423
  8  6.94132e-06
  9  6.56694
  10  0.000430737
  11  0.149305
  12  10.354
  13  51.8455
  14  0.00692907
  15  0.000119814
  16  23.792
  17  5.57521
  18  17.5755
  19  19.9397
  20  0.00419456
  21  9.21359
  22  0.000100915
  23  0.265146
  24  0.141809
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  4.370e-01  1.493e-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.005e+00  1.418e-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.683e-01  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.86
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.59e-07 +/- 5.44e-08
Energy Flux (Fixed Index): 5.12e-05 +/- 1.75e-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) = 7376.4295811
delta logL = 0.107443649506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7376.42164818
delta logL = 0.115376568947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48123       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1933       1.0000          .0000       10.000    
     3 'Normalizat'    .94465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0132       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=   7376.422     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48161        .16087        .42534E-02    .55210E-03
   2  Index1        2.1945        .31747        .15125       -.76487E-04
   3  Normalizat    .94479        .21483        .79070E-01    .24042E-04
   4  Prefactor     1.0131        .12014        .42893E-01    .17055E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.481606
  Index1     = 2.19452
  Normalizat = 0.944794
  Prefactor  = 1.01307
 **********
 **   18 **HESSE 
 **********

 FCN=   7376.422     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48161        .17551        .18910E-04   -1.5569    
   2  Index1        2.1945        .36508        .63954E-02   -.59571    
   3  Normalizat    .94479        .25369        .34998E-03   -.94904    
   4  Prefactor     1.0131        .14128        .19065E-03   -.92295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31661e-10
Minuit parameter uncertainties:
  1  0.175512
  2  0.365557
  3  0.254016
  4  0.141333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583569': 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) = 7376.42164149
delta logL = 0.115383258751

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  4.816e-01  1.755e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.195e+00  3.656e-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.013e+00  1.413e-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.448e-01  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.01
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.19 +/- 0.37
Photon Flux (Free Index): 1.79e-07 +/- 6.99e-08
Energy Flux (Free Index): 4.93e-05 +/- 1.69e-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/583569/cmap_HighResolution_620092801_620352001_4FGL_J2253.9+1609_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.59e-07', energy_flux2='4.93e-05', photon_flux_error='5.44e-08', dlogl='1.15e-01', energy_flux='5.12e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-29 02:30:46.415076', photon_index_error2='0.37', photon_index2='2.19', ts='17.86', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='0.97', time_epoch_completed='1632907846.42', return_code='0', job_id='583569', GAL2='1.01', EG2='0.94', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='6.99e-08', ts2='18.01', photon_index='2.02' WHERE bin_id='1469' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:30:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 581321: <4FGL_J2253.9+1609_daily_bin1469> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1469> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 02:10:17 2021
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:10:18 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:10:18 2021
Terminated at Wed Sep 29 02:25:16 2021
Results reported at Wed Sep 29 02:25:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1469 343.496 16.1506 620092801 620352001 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 :                                   641.73 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             274.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 583569: <4FGL_J2253.9+1609_daily_bin1469> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1469 343.496 16.1506 620092801 620352001 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 :                                   640.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

