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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1125
RA = 343.496, Dec = 16.1506
tmin = 530928001, tmax = 531187201
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='578561', job_status='RUN', time_executed='2021-09-29 02:04:03.884227', time_epoch_executed='1632906243.88' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578561

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578561/ft1_4FGL_J2253.9+1609_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578561/ft2_4FGL_J2253.9+1609_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578561/ft1_4FGL_J2253.9+1609_daily_bin1125.fits outfile=/scratch/kocevski/578561/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1125.fits ra=343.496 dec=16.1506 rad=12.0 tmin=530928001.0 tmax=531187201.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.63
user 3.39
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578561/ft1_filtered_4FGL_J2253.9+1609_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/578561/ft2_4FGL_J2253.9+1609_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/578561/ltcube_530928001_531187201_4FGL_J2253.9+1609_daily_bin1125.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/578561/ft2_4FGL_J2253.9+1609_daily_bin1125.fits
.....................!
real 12.44
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578561/ft1_filtered_4FGL_J2253.9+1609_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/578561/ft2_4FGL_J2253.9+1609_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/578561/ltcube_530928001_531187201_4FGL_J2253.9+1609_daily_bin1125.fits outfile=/scratch/kocevski/578561/expmap_530928001_531187201_4FGL_J2253.9+1609_daily_bin1125.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/578561/ltcube_530928001_531187201_4FGL_J2253.9+1609_daily_bin1125.fits
.....................!
real 190.63
user 185.06
sys 5.24

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/578561/ft1_filtered_4FGL_J2253.9+1609_daily_bin1125.fits scfile=/scratch/kocevski/578561/ft2_4FGL_J2253.9+1609_daily_bin1125.fits outfile=/scratch/kocevski/578561/cmap_530928001_531187201_4FGL_J2253.9+1609_daily_bin1125.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54206E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4580       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25754E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.256       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9622       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.301       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .99167E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.945       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2250       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.300       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9409       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7518       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2921       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.015       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5727       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67217       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99887       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=   7904.237     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     3208 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10103E-03    21.315       -.10280E-05** at limit **
   2  norm          4.4578        4.5439        .10235E-06    .37187E-05
   3  Prefactor     .10002E-03    92.718        .18723E-05** at limit **
   4  Prefactor     21.254        15.191       -.57542E-06   -.87746E-06
   5  Prefactor     2.9625        .37420       -.36888E-07    .31871E-03
   6  Prefactor     .10000E-03    1.9946        .11328E-06** at limit **
   7  norm          .10000E-03    .93447       -.14052E-07** at limit **
   8  Prefactor     29.297        41.270        .15013E-05    .86883E-05
   9  Prefactor     .10000E-03    7.3000        .33559E-06** at limit **
  10  Prefactor     16.943        21.303       -.91976E-06   -.29384E-04
  11  Prefactor     1.2249        .24138       -.30641E-08   -.44325E-03
  12  Prefactor     15.300        9.4767        .32276E-06    .73712E-05
  13  Prefactor     4.8569        33.144       -.90585E-06   -.94886E-05
  14  Prefactor     4.9397        7.3222        .23244E-06   -.15743E-04
  15  Prefactor     1.7502        8.5689        .58119E-06   -.11462E-04
  16  Prefactor     .10000E-03    7.8049       -.73998E-08** at limit **
  17  Prefactor     .10000E-03    2.3529        .12579E-06** at limit **
  18  Prefactor     3.2909        8.9493        .12750E-05    .26619E-04
  19  Prefactor     .10000E-03    10.496       -.14458E-06** at limit **
  20  norm          12.017        11.064       -.38957E-06   -.44552E-04
  21  Prefactor     3.5707        5.4559        .36124E-06   -.33963E-03
  22  norm          .10000E-03    9.3192        .17160E-06** at limit **
  23  Normalizat    .67194        .23129       -.33874E-06   -.38816E-04
  24  Prefactor     .99904        .12380       -.67717E-06   -.11450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101032
  norm       = 4.45783
  Prefactor  = 0.000100019
  Prefactor  = 21.254
  Prefactor  = 2.96249
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.297
  Prefactor  = 0.0001
  Prefactor  = 16.9433
  Prefactor  = 1.22489
  Prefactor  = 15.3002
  Prefactor  = 4.85693
  Prefactor  = 4.93971
  Prefactor  = 1.7502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.29085
  Prefactor  = 0.0001
  norm       = 12.0165
  Prefactor  = 3.57074
  norm       = 0.0001
  Normalizat = 0.671945
  Prefactor  = 0.999042
 **********
 **   18 **HESSE 
 **********

 FCN=   7904.237     FROM HESSE     STATUS=OK           419 CALLS     3627 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10103E-03    18.067        .10940       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4578        4.5376        .18431E-03   -1.5286    
   3  Prefactor     .10002E-03    96.756        .61579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.254        15.302        .86876E-04   -1.4786    
   5  Prefactor     2.9625        .36943        .18055E-04   -1.5364    
   6  Prefactor     .10000E-03    1.9956        .12264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4744        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.297        41.385        .74015E-04   -1.4625    
   9  Prefactor     .10000E-03    50.831        .43414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.943        21.330        .97297E-04   -1.4884    
  11  Prefactor     1.2249        .24238        .17299E-04   -1.5487    
  12  Prefactor     15.300        9.4525        .10239E-03   -1.4925    
  13  Prefactor     4.8569        33.114        .18248E-03   -1.5267    
  14  Prefactor     4.9397        7.3113        .18094E-03   -1.5263    
  15  Prefactor     1.7502        8.5192        .31676E-03   -1.5443    
  16  Prefactor     .10000E-03    7.8257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3692        .13323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2909        8.9246        .22315E-03   -1.5345    
  19  Prefactor     .10000E-03    10.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.017        11.952        .11557E-03   -1.5015    
  21  Prefactor     3.5707        9.2689        .10690E-02   -1.5330    
  22  norm          .10000E-03    9.3610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .67194        .26118        .42060E-03   -1.0501    
  24  Prefactor     .99904        .14063        .19769E-03   -.92761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60783e-10
Minuit parameter uncertainties:
  1  0.00863815
  2  4.53794
  3  0.00269606
  4  15.3051
  5  0.369433
  6  9.06202e-07
  7  8.38048e-06
  8  41.4252
  9  0.000106401
  10  21.3398
  11  0.242382
  12  9.45342
  13  25.3839
  14  7.31259
  15  7.72435
  16  8.75725e-07
  17  2.29749e-06
  18  8.92816
  19  1.72406e-06
  20  11.9539
  21  9.27266
  22  6.55659e-06
  23  0.261664
  24  0.140679
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.225e+00  2.424e-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:  9.990e-01  1.407e-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.719e-01  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 70.83
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.47e-07 +/- 8.84e-08
Energy Flux (Fixed Index): 1.43e-04 +/- 2.84e-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) = 7903.68516497
delta logL = 0.551709822531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7903.65482901
delta logL = 0.582045785827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3459       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2489       1.0000          .0000       10.000    
     3 'Normalizat'    .60442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0263       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=   7903.655     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3458        .24496        .39598E-02    .20547E-03
   2  Index1        2.2490        .20327        .95652E-01   -.66709E-04
   3  Normalizat    .60456        .22603        .99412E-01    .46404E-04
   4  Prefactor     1.0263        .12611        .41564E-01   -.14440E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34583
  Index1     = 2.24903
  Normalizat = 0.604558
  Prefactor  = 1.02626
 **********
 **   18 **HESSE 
 **********

 FCN=   7903.655     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .68E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3458        .25692        .17522E-04   -1.5476    
   2  Index1        2.2490        .21819        .41561E-03   -.58260    
   3  Normalizat    .60456        .25256        .44066E-03   -1.0779    
   4  Prefactor     1.0263        .14079        .19526E-03   -.91859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84268e-16
Minuit parameter uncertainties:
  1  0.256925
  2  0.218288
  3  0.253047
  4  0.140845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578561': 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) = 7903.65482829
delta logL = 0.582046500029

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.346e+00  2.569e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.249e+00  2.183e-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.026e+00  1.408e-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.046e-01  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 72.19
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.25 +/- 0.22
Photon Flux (Free Index): 5.05e-07 +/- 1.04e-07
Energy Flux (Free Index): 1.33e-04 +/- 2.56e-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/578561/cmap_HighResolution_530928001_531187201_4FGL_J2253.9+1609_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.47e-07', energy_flux2='1.33e-04', photon_flux_error='8.84e-08', dlogl='5.82e-01', energy_flux='1.43e-04', photon_flux2='5.05e-07', job_status='DONE', time_completed='2021-09-29 02:16:06.856773', photon_index_error2='0.22', photon_index2='2.25', ts='70.83', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='0.67', time_epoch_completed='1632906966.86', return_code='0', job_id='578561', GAL2='1.03', EG2='0.60', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='1.04e-07', ts2='72.19', photon_index='2.02' WHERE bin_id='1125' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:16:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 578561: <4FGL_J2253.9+1609_daily_bin1125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1125 343.496 16.1506 530928001 531187201 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 :                                   700.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            927 sec.

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

