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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin625
RA = 343.496, Dec = 16.1506
tmin = 401328001, tmax = 401587201
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='576603', job_status='RUN', time_executed='2021-09-29 01:55:37.737967', time_epoch_executed='1632905737.74' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576603/ft1_4FGL_J2253.9+1609_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576603/ft2_4FGL_J2253.9+1609_daily_bin625.fits


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

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576603/ft2_4FGL_J2253.9+1609_daily_bin625.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/576603/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/576603/ft1_filtered_4FGL_J2253.9+1609_daily_bin625.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/576603/ft1_filtered_4FGL_J2253.9+1609_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/576603/ft2_4FGL_J2253.9+1609_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/576603/ltcube_401328001_401587201_4FGL_J2253.9+1609_daily_bin625.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/576603/ft2_4FGL_J2253.9+1609_daily_bin625.fits
.....................!
real 12.35
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576603/ft1_filtered_4FGL_J2253.9+1609_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/576603/ft2_4FGL_J2253.9+1609_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/576603/ltcube_401328001_401587201_4FGL_J2253.9+1609_daily_bin625.fits outfile=/scratch/kocevski/576603/expmap_401328001_401587201_4FGL_J2253.9+1609_daily_bin625.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/576603/ltcube_401328001_401587201_4FGL_J2253.9+1609_daily_bin625.fits
.....................!
real 191.25
user 185.40
sys 5.46

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/576603/ft1_filtered_4FGL_J2253.9+1609_daily_bin625.fits scfile=/scratch/kocevski/576603/ft2_4FGL_J2253.9+1609_daily_bin625.fits outfile=/scratch/kocevski/576603/cmap_401328001_401587201_4FGL_J2253.9+1609_daily_bin625.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576603/ft1_filtered_4FGL_J2253.9+1609_daily_bin625.fits scfile=/scratch/kocevski/576603/ft2_4FGL_J2253.9+1609_daily_bin625.fits outfile=/scratch/kocevski/576603/cmap_HighResolution_401328001_401587201_4FGL_J2253.9+1609_daily_bin625.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/576603/ft1_filtered_4FGL_J2253.9+1609_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/576603/ft2_4FGL_J2253.9+1609_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/576603/Model_4FGL_J2253.9+1609_daily_bin625.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/576603/ft1_filtered_4FGL_J2253.9+1609_daily_bin625.fits.....................!
real 98.87
user 97.27
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20743E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.467       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0892       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8810       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8426       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.614       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8344       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7091       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.229       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.211       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.840       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .33330E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9942       1.0000         .10000E-03   10000.    
    22 'norm      '    14.579       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .54587       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0812       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=   9661.322     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2794 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.494       -.43720E-06** at limit **
   2  norm          2.3077        3.5271       -.26006E-07    .92622E-04
   3  Prefactor     12.469        12.079        .87882E-07   -.31490E-04
   4  Prefactor     2.0649        24.390       -.22459E-05    .13409E-04
   5  Prefactor     1.0304        .24431       -.33790E-08   -.33127E-03
   6  Prefactor     5.8812        6.8624        .13366E-06    .64261E-04
   7  norm          2.8426        1.7845       -.23319E-08    .19973E-04
   8  Prefactor     62.620        38.107       -.40799E-06    .16373E-04
   9  Prefactor     2.8357        8.2872        .13105E-06    .29990E-06
  10  Prefactor     .10000E-03    7.2510        .73110E-08** at limit **
  11  Prefactor     3.7091        .33736       -.40098E-08   -.63304E-03
  12  Prefactor     24.230        13.002        .73664E-07   -.32484E-04
  13  Prefactor     .10000E-03    16.749        .31464E-06** at limit **
  14  Prefactor     2.6942        8.8065        .87354E-06    .15093E-03
  15  Prefactor     15.495        13.999        .33316E-06   -.65658E-04
  16  Prefactor     45.215        25.594       -.44052E-07   -.13589E-04
  17  Prefactor     14.844        9.0591       -.66542E-07   -.48034E-04
  18  Prefactor     .10000E-03    19.211        .43709E-06** at limit **
  19  Prefactor     .10000E-03    11.050        .29452E-07** at limit **
  20  norm          .10000E-03    8.3154       -.87490E-07** at limit **
  21  Prefactor     3.0045        6.9365        .14589E-05   -.47015E-04
  22  norm          14.582        19.929       -.47917E-07   -.18393E-04
  23  Normalizat    .54556        .27212        .17513E-05    .34640E-04
  24  Prefactor     1.0813        .13487       -.50543E-06    .12666E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 2.30774
  Prefactor  = 12.4688
  Prefactor  = 2.06486
  Prefactor  = 1.03042
  Prefactor  = 5.88121
  norm       = 2.84264
  Prefactor  = 62.6204
  Prefactor  = 2.83565
  Prefactor  = 0.0001
  Prefactor  = 3.70908
  Prefactor  = 24.2304
  Prefactor  = 0.0001
  Prefactor  = 2.69415
  Prefactor  = 15.4953
  Prefactor  = 45.2154
  Prefactor  = 14.8444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 3.00454
  norm       = 14.5823
  Normalizat = 0.545561
  Prefactor  = 1.0813
 **********
 **   18 **HESSE 
 **********

 FCN=   9661.322     FROM HESSE     STATUS=OK           407 CALLS     3201 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3077        3.5053        .21996E-03   -1.5404    
   3  Prefactor     12.469        12.059        .11345E-03   -1.5002    
   4  Prefactor     2.0649        24.589        .28563E-03   -1.5421    
   5  Prefactor     1.0304        .24397        .22026E-04   -1.5505    
   6  Prefactor     5.8812        6.9022        .82798E-03   -1.5223    
   7  norm          2.8426        1.7801        .99749E-04   -1.5371    
   8  Prefactor     62.620        38.180        .50711E-04   -1.4124    
   9  Prefactor     2.8357        8.2477        .24154E-03   -1.5371    
  10  Prefactor     .10000E-03    7.2555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7091        .33827        .15586E-04   -1.5323    
  12  Prefactor     24.230        12.977        .81378E-04   -1.4723    
  13  Prefactor     .10000E-03    16.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6942        9.6958        .12413E-02   -1.5380    
  15  Prefactor     15.495        13.910        .10176E-03   -1.4920    
  16  Prefactor     45.215        25.578        .59628E-04   -1.4362    
  17  Prefactor     14.844        9.0127        .10397E-03   -1.4937    
  18  Prefactor     .10000E-03    19.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    16.493        .40975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0045        7.0334        .23459E-03   -1.5361    
  22  norm          14.582        19.908        .10490E-03   -1.4944    
  23  Normalizat    .54556        .27740        .51457E-03   -1.1035    
  24  Prefactor     1.0813        .14183        .20906E-03   -.90067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15045e-10
Minuit parameter uncertainties:
  1  0.00061325
  2  3.50564
  3  12.0609
  4  14.258
  5  0.243973
  6  6.90317
  7  1.78013
  8  38.1949
  9  8.25096
  10  2.51781e-06
  11  0.33827
  12  12.978
  13  4.45577e-05
  14  9.70148
  15  13.9127
  16  25.5839
  17  9.01347
  18  0.000121071
  19  1.6288e-05
  20  0.000536244
  21  7.0353
  22  19.9174
  23  0.27811
  24  0.141876
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.709e+00  3.383e-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.081e+00  1.419e-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:  5.456e-01  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 424.62
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.35e-06 +/- 1.23e-07
Energy Flux (Fixed Index): 4.34e-04 +/- 3.96e-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) = 9661.29090615
delta logL = 0.0311624355709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9661.28181467
delta logL = 0.0402539067636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7558       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0484       1.0000          .0000       10.000    
     3 'Normalizat'    .52720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0886       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=   9661.282     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      191 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7558        .35070        .35372E-02    .21058E-02
   2  Index1        2.0484        .97248E-01    .48569E-01   -.82002E-04
   3  Normalizat    .52722        .24514        .11780        .59888E-04
   4  Prefactor     1.0886        .13395        .38037E-01    .19637E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75585
  Index1     = 2.04837
  Normalizat = 0.527217
  Prefactor  = 1.08859
 **********
 **   18 **HESSE 
 **********

 FCN=   9661.282     FROM HESSE     STATUS=OK            29 CALLS      220 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7558        .36491        .15633E-04   -1.5320    
   2  Index1        2.0484        .10190        .21405E-03   -.63146    
   3  Normalizat    .52722        .25547        .52251E-03   -1.1117    
   4  Prefactor     1.0886        .14018        .20842E-03   -.89832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01728e-11
Minuit parameter uncertainties:
  1  0.364907
  2  0.10191
  3  0.256043
  4  0.140224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576603': 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) = 9661.28181465
delta logL = 0.0402539256593

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.756e+00  3.649e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.048e+00  1.019e-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.089e+00  1.402e-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:  5.272e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 425.91
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.05 +/- 0.10
Photon Flux (Free Index): 1.37e-06 +/- 1.39e-07
Energy Flux (Free Index): 4.29e-04 +/- 4.19e-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/576603/cmap_HighResolution_401328001_401587201_4FGL_J2253.9+1609_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-06', energy_flux2='4.29e-04', photon_flux_error='1.23e-07', dlogl='4.03e-02', energy_flux='4.34e-04', photon_flux2='1.37e-06', job_status='DONE', time_completed='2021-09-29 02:08:17.076164', photon_index_error2='0.10', photon_index2='2.05', ts='424.62', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.19e-05', EG='0.55', time_epoch_completed='1632906497.08', return_code='0', job_id='576603', GAL2='1.09', EG2='0.53', return_code2='0', energy_flux_error='3.96e-05', photon_flux_error2='1.39e-07', ts2='425.91', photon_index='2.02' WHERE bin_id='625' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:08:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 576603: <4FGL_J2253.9+1609_daily_bin625> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin625> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:55:20 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:55:22 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:55:22 2021
Terminated at Wed Sep 29 02:08:17 2021
Results reported at Wed Sep 29 02:08:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin625 343.496 16.1506 401328001 401587201 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 :                                   759.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             319.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

