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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin755
RA = 343.496, Dec = 16.1506
tmin = 435024001, tmax = 435283201
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='576807', job_status='RUN', time_executed='2021-09-29 01:58:13.992243', time_epoch_executed='1632905893.99' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576807/ft1_4FGL_J2253.9+1609_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576807/ft2_4FGL_J2253.9+1609_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576807/ft1_4FGL_J2253.9+1609_daily_bin755.fits outfile=/scratch/kocevski/576807/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin755.fits ra=343.496 dec=16.1506 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.00
user 4.76
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576807/ft2_4FGL_J2253.9+1609_daily_bin755.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/576807/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/576807/ft1_filtered_4FGL_J2253.9+1609_daily_bin755.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.52
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576807/ft1_filtered_4FGL_J2253.9+1609_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/576807/ft2_4FGL_J2253.9+1609_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/576807/ltcube_435024001_435283201_4FGL_J2253.9+1609_daily_bin755.fits outfile=/scratch/kocevski/576807/expmap_435024001_435283201_4FGL_J2253.9+1609_daily_bin755.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/576807/ltcube_435024001_435283201_4FGL_J2253.9+1609_daily_bin755.fits
.....................!
real 191.96
user 186.76
sys 4.88

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/576807/ft1_filtered_4FGL_J2253.9+1609_daily_bin755.fits scfile=/scratch/kocevski/576807/ft2_4FGL_J2253.9+1609_daily_bin755.fits outfile=/scratch/kocevski/576807/cmap_435024001_435283201_4FGL_J2253.9+1609_daily_bin755.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5665       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7180       1.0000         .10000E-03   10000.    
     7 'norm      '    .60442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.082       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5380       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.904       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.673       1.0000         .10000E-03   10000.    
    16 'Prefactor '    83.623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7471       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9605       1.0000         .10000E-03   10000.    
    20 'norm      '    26.347       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.677       1.0000         .10000E-03   10000.    
    22 'norm      '    10.142       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1517       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77573       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=   6710.946     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2718 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9436        .34151E-07** at limit **
   2  norm          3.5663        4.5057        .19757E-06   -.49065E-04
   3  Prefactor     .10000E-03    25.268        .10122E-05** at limit **
   4  Prefactor     .10000E-03    13.238       -.50701E-06** at limit **
   5  Prefactor     1.9294        .36548        .64442E-08   -.61586E-03
   6  Prefactor     8.7182        10.783        .14164E-05   -.14141E-03
   7  norm          .60608        1.3083        .68264E-06    .47174E-03
   8  Prefactor     .10000E-03    21.745       -.86276E-06** at limit **
   9  Prefactor     .10000E-03    15.121        .12044E-05** at limit **
  10  Prefactor     30.081        37.765       -.23052E-07   -.40898E-05
  11  Prefactor     2.5380        .37035       -.22549E-08   -.68553E-03
  12  Prefactor     .10003E-03    13.880        .98398E-06** at limit **
  13  Prefactor     .10000E-03    19.365       -.48584E-06** at limit **
  14  Prefactor     11.903        11.334        .70402E-07    .13841E-05
  15  Prefactor     11.669        24.492       -.13337E-06    .41516E-05
  16  Prefactor     83.620        42.334       -.19842E-06   -.41021E-04
  17  Prefactor     .10000E-03    9.8742       -.62066E-06** at limit **
  18  Prefactor     1.6941        100.43        .91529E-07   -.16128E-04
  19  Prefactor     3.9396        74.773       -.47124E-05   -.24078E-05
  20  norm          26.336        26.306       -.11794E-06    .69731E-04
  21  Prefactor     11.669        19.549        .44708E-06    .25989E-04
  22  norm          10.141        22.732        .70843E-07    .19681E-05
  23  Normalizat    1.1517        .28136        .22266E-06   -.10997E-03
  24  Prefactor     .77571        .14207       -.67983E-06   -.10106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.56633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9294
  Prefactor  = 8.71825
  norm       = 0.606084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0812
  Prefactor  = 2.53799
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 11.9027
  Prefactor  = 11.6687
  Prefactor  = 83.6197
  Prefactor  = 0.0001
  Prefactor  = 1.69415
  Prefactor  = 3.93965
  norm       = 26.3364
  Prefactor  = 11.6689
  norm       = 10.1407
  Normalizat = 1.15169
  Prefactor  = 0.775711
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.946     FROM HESSE     STATUS=OK           403 CALLS     3121 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5663        4.4922        .18615E-03   -1.5330    
   3  Prefactor     .10000E-03    25.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9294        .36680        .98794E-04   -1.5430    
   6  Prefactor     8.7182        10.697        .67878E-03   -1.5117    
   7  norm          .60608        1.2276        .14611E-02   -1.5552    
   8  Prefactor     .10000E-03    21.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.081        37.989        .73050E-04   -1.4610    
  11  Prefactor     2.5380        .37360        .17152E-04   -1.5389    
  12  Prefactor     .10003E-03    66.265        .56706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.903        11.332        .11611E-03   -1.5018    
  15  Prefactor     11.669        24.458        .11725E-03   -1.5025    
  16  Prefactor     83.620        42.280        .43927E-04   -1.3877    
  17  Prefactor     .10000E-03    9.8634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6941        102.54        .31727E-03   -1.5448    
  19  Prefactor     3.9396        74.632        .20268E-03   -1.5311    
  20  norm          26.336        26.179        .78045E-04   -1.4681    
  21  Prefactor     11.669        19.583        .11724E-03   -1.5025    
  22  norm          10.141        22.720        .12582E-03   -1.5071    
  23  Normalizat    1.1517        .32985        .38146E-03   -.88109    
  24  Prefactor     .77571        .16578        .23624E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80285e-10
Minuit parameter uncertainties:
  1  1.3558e-07
  2  4.49266
  3  1.44803e-05
  4  8.6684e-06
  5  0.3668
  6  10.6993
  7  1.22763
  8  7.25671e-06
  9  3.22125e-05
  10  38.0197
  11  0.373603
  12  0.00289527
  13  1.59491e-06
  14  11.3336
  15  24.4793
  16  42.2948
  17  6.3009e-05
  18  26.4075
  19  34.3434
  20  26.1902
  21  19.5934
  22  22.7398
  23  0.330445
  24  0.165883
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.538e+00  3.736e-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:  7.757e-01  1.659e-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.152e+00  3.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 149.59
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 9.26e-07 +/- 1.36e-07
Energy Flux (Fixed Index): 2.97e-04 +/- 4.37e-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) = 6710.851742
delta logL = 0.0939163673011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6710.84082106
delta logL = 0.104837306997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4365       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9513       1.0000          .0000       10.000    
     3 'Normalizat'    1.1824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76496       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=   6710.841     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4367        .38481        .38346E-02   -.90218E-04
   2  Index1        1.9510        .13802        .55998E-01   -.51840E-04
   3  Normalizat    1.1825        .27138        .85276E-01    .12566E-04
   4  Prefactor     .76495        .13908        .43259E-01    .77244E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.43666
  Index1     = 1.95103
  Normalizat = 1.18247
  Prefactor  = 0.764948
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.841     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4367        .41313        .16951E-04   -1.5396    
   2  Index1        1.9510        .14896        .24651E-03   -.65580    
   3  Normalizat    1.1825        .32028        .37759E-03   -.87146    
   4  Prefactor     .76495        .16360        .23778E-03   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31533e-13
Minuit parameter uncertainties:
  1  0.41313
  2  0.148997
  3  0.32081
  4  0.163699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576807': 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) = 6710.84081874
delta logL = 0.104839632297

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.437e+00  4.131e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.951e+00  1.490e-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:  7.649e-01  1.637e-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.182e+00  3.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 149.30
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.95 +/- 0.15
Photon Flux (Free Index): 8.86e-07 +/- 1.52e-07
Energy Flux (Free Index): 3.04e-04 +/- 4.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/576807/cmap_HighResolution_435024001_435283201_4FGL_J2253.9+1609_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.26e-07', energy_flux2='3.04e-04', photon_flux_error='1.36e-07', dlogl='1.05e-01', energy_flux='2.97e-04', photon_flux2='8.86e-07', job_status='DONE', time_completed='2021-09-29 02:08:35.814692', photon_index_error2='0.15', photon_index2='1.95', ts='149.59', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='4.60e-05', EG='1.15', time_epoch_completed='1632906515.81', return_code='0', job_id='576807', GAL2='0.76', EG2='1.18', return_code2='0', energy_flux_error='4.37e-05', photon_flux_error2='1.52e-07', ts2='149.30', photon_index='2.02' WHERE bin_id='755' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:08:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 576807: <4FGL_J2253.9+1609_daily_bin755> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin755> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:55:35 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:55:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:55:36 2021
Terminated at Wed Sep 29 02:08:36 2021
Results reported at Wed Sep 29 02:08:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin755 343.496 16.1506 435024001 435283201 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 :                                   620.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

