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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1140
RA = 343.496, Dec = 16.1506
tmin = 534816001, tmax = 535075201
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='578583', job_status='RUN', time_executed='2021-09-29 02:04:16.061401', time_epoch_executed='1632906256.06' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578583/ft1_4FGL_J2253.9+1609_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578583/ft2_4FGL_J2253.9+1609_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578583/ft1_4FGL_J2253.9+1609_daily_bin1140.fits outfile=/scratch/kocevski/578583/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1140.fits ra=343.496 dec=16.1506 rad=12.0 tmin=534816001.0 tmax=535075201.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.57
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578583/ft1_filtered_4FGL_J2253.9+1609_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/578583/ft2_4FGL_J2253.9+1609_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/578583/ltcube_534816001_535075201_4FGL_J2253.9+1609_daily_bin1140.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/578583/ft2_4FGL_J2253.9+1609_daily_bin1140.fits
.....................!
real 13.28
user 12.95
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578583/ft1_filtered_4FGL_J2253.9+1609_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/578583/ft2_4FGL_J2253.9+1609_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/578583/ltcube_534816001_535075201_4FGL_J2253.9+1609_daily_bin1140.fits outfile=/scratch/kocevski/578583/expmap_534816001_535075201_4FGL_J2253.9+1609_daily_bin1140.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/578583/ltcube_534816001_535075201_4FGL_J2253.9+1609_daily_bin1140.fits
.....................!
real 189.76
user 184.66
sys 4.68

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/578583/ft1_filtered_4FGL_J2253.9+1609_daily_bin1140.fits scfile=/scratch/kocevski/578583/ft2_4FGL_J2253.9+1609_daily_bin1140.fits outfile=/scratch/kocevski/578583/cmap_534816001_535075201_4FGL_J2253.9+1609_daily_bin1140.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.392       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0413       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2487       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9651       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.463       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11366E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.610       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2171       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98559       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=   9152.208     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2281 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9088        .54480E-05** at limit **
   2  norm          .10000E-03    2.6530       -.19257E-06** at limit **
   3  Prefactor     .10000E-03    24.551       -.94849E-05** at limit **
   4  Prefactor     19.394        15.456       -.20022E-06   -.10021E-04
   5  Prefactor     8.0414        .59255        .93883E-08    .14264E-02
   6  Prefactor     .10000E-03    6.8273        .19705E-05** at limit **
   7  norm          5.2483        2.4543        .19913E-07    .14675E-03
   8  Prefactor     .10000E-03    71.248       -.13683E-04** at limit **
   9  Prefactor     .10000E-03    7.4393       -.40148E-05** at limit **
  10  Prefactor     .10000E-03    16.850        .70999E-05** at limit **
  11  Prefactor     .61693        .20201        .24724E-08    .22916E-04
  12  Prefactor     .10000E-03    10.214       -.33221E-05** at limit **
  13  Prefactor     .10000E-03    14.118        .16100E-05** at limit **
  14  Prefactor     3.9654        4.9694       -.10488E-05   -.22117E-03
  15  Prefactor     .10000E-03    3.9496        .19758E-06** at limit **
  16  Prefactor     .10000E-03    6.9121       -.16675E-05** at limit **
  17  Prefactor     14.465        10.049       -.24544E-06   -.34634E-03
  18  Prefactor     .10000E-03    23.361       -.92676E-05** at limit **
  19  Prefactor     .10000E-03    33.570        .19647E-04** at limit **
  20  norm          .10000E-03    4.1995        .50070E-05** at limit **
  21  Prefactor     .10000E-03    4.1938       -.48738E-05** at limit **
  22  norm          20.611        16.281       -.43669E-07    .86861E-06
  23  Normalizat    1.2168        .26581       -.19455E-06    .58324E-04
  24  Prefactor     .98573        .13784        .27881E-06    .88403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3936
  Prefactor  = 8.04141
  Prefactor  = 0.0001
  norm       = 5.24826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.61693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.96538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.6107
  Normalizat = 1.21678
  Prefactor  = 0.985734
 **********
 **   18 **HESSE 
 **********

 FCN=   9152.208     FROM HESSE     STATUS=OK           391 CALLS     2672 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6659        .15215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.394        15.526        .90954E-04   -1.4827    
   5  Prefactor     8.0414        .59355        .18924E-04   -1.5141    
   6  Prefactor     .10000E-03    6.8448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2483        2.4540        .99358E-04   -1.5250    
   8  Prefactor     .10000E-03    71.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .61693        .20071        .23262E-04   -1.5551    
  12  Prefactor     .10000E-03    10.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9654        4.9713        .20256E-03   -1.5310    
  15  Prefactor     .10000E-03    3.9531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.465        10.097        .10532E-03   -1.4947    
  18  Prefactor     .10000E-03    23.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.611        16.284        .88226E-04   -1.4800    
  23  Normalizat    1.2168        .31471        .41663E-03   -.86086    
  24  Prefactor     .98573        .16325        .24705E-03   -.93207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49355e-10
Minuit parameter uncertainties:
  1  2.36836e-07
  2  2.23694e-07
  3  1.86874e-05
  4  15.5293
  5  0.593549
  6  2.99242e-06
  7  2.45401
  8  7.43631e-05
  9  3.72799e-06
  10  8.14354e-06
  11  0.200713
  12  7.15986e-06
  13  1.93873e-07
  14  4.97181
  15  1.04e-06
  16  2.80449e-07
  17  10.0985
  18  7.39133e-05
  19  8.46155e-05
  20  4.3405e-06
  21  5.86346e-06
  22  16.2872
  23  0.3152
  24  0.163331
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.169e-01  2.007e-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.857e-01  1.633e-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:  1.217e+00  3.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.30
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.25e-07 +/- 7.32e-08
Energy Flux (Fixed Index): 7.22e-05 +/- 2.35e-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) = 9152.11498527
delta logL = 0.0929922457653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9152.10729807
delta logL = 0.100679443214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68793       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1883       1.0000          .0000       10.000    
     3 'Normalizat'    1.1807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99904       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=   9152.107     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68791        .21966        .53299E-02    .20481E-02
   2  Index1        2.1884        .30191        .16157       -.32445E-04
   3  Normalizat    1.1807        .25844        .95179E-01   -.36682E-04
   4  Prefactor     .99903        .13855        .46255E-01   -.27399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.687912
  Index1     = 2.18836
  Normalizat = 1.18074
  Prefactor  = 0.999033
 **********
 **   18 **HESSE 
 **********

 FCN=   9152.107     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68791        .25277        .23678E-04   -1.5542    
   2  Index1        2.1884        .37431        .66997E-02   -.59720    
   3  Normalizat    1.1807        .31078        .42167E-03   -.87200    
   4  Prefactor     .99903        .16527        .24554E-03   -.92762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04077e-10
Minuit parameter uncertainties:
  1  0.252769
  2  0.374822
  3  0.311264
  4  0.165356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578583': 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) = 9152.10729806
delta logL = 0.100679455012

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.990e-01  1.654e-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:  1.181e+00  3.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.25
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.19 +/- 0.37
Photon Flux (Free Index): 2.56e-07 +/- 1.02e-07
Energy Flux (Free Index): 7.07e-05 +/- 2.25e-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/578583/cmap_HighResolution_534816001_535075201_4FGL_J2253.9+1609_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-07', energy_flux2='7.07e-05', photon_flux_error='7.32e-08', dlogl='1.01e-01', energy_flux='7.22e-05', photon_flux2='2.56e-07', job_status='DONE', time_completed='2021-09-29 02:15:54.384666', photon_index_error2='0.37', photon_index2='2.19', ts='23.30', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='1.22', time_epoch_completed='1632906954.38', return_code='0', job_id='578583', GAL2='1.00', EG2='1.18', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='1.02e-07', ts2='23.25', photon_index='2.02' WHERE bin_id='1140' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 578583: <4FGL_J2253.9+1609_daily_bin1140> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1140 343.496 16.1506 534816001 535075201 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 :                                   682.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

