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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin620
RA = 343.496, Dec = 16.1506
tmin = 400032001, tmax = 400291201
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='576594', job_status='RUN', time_executed='2021-09-29 01:57:54.368540', time_epoch_executed='1632905874.37' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576594/ft1_4FGL_J2253.9+1609_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576594/ft2_4FGL_J2253.9+1609_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576594/ft1_4FGL_J2253.9+1609_daily_bin620.fits outfile=/scratch/kocevski/576594/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin620.fits ra=343.496 dec=16.1506 rad=12.0 tmin=400032001.0 tmax=400291201.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 4.45
user 4.14
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576594/ft1_filtered_4FGL_J2253.9+1609_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/576594/ft2_4FGL_J2253.9+1609_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/576594/ltcube_400032001_400291201_4FGL_J2253.9+1609_daily_bin620.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/576594/ft2_4FGL_J2253.9+1609_daily_bin620.fits
.....................!
real 11.81
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576594/ft1_filtered_4FGL_J2253.9+1609_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/576594/ft2_4FGL_J2253.9+1609_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/576594/ltcube_400032001_400291201_4FGL_J2253.9+1609_daily_bin620.fits outfile=/scratch/kocevski/576594/expmap_400032001_400291201_4FGL_J2253.9+1609_daily_bin620.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/576594/ltcube_400032001_400291201_4FGL_J2253.9+1609_daily_bin620.fits
.....................!
real 192.18
user 186.40
sys 5.41

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/576594/ft1_filtered_4FGL_J2253.9+1609_daily_bin620.fits scfile=/scratch/kocevski/576594/ft2_4FGL_J2253.9+1609_daily_bin620.fits outfile=/scratch/kocevski/576594/cmap_400032001_400291201_4FGL_J2253.9+1609_daily_bin620.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/576594/ft1_filtered_4FGL_J2253.9+1609_daily_bin620.fits scfile=/scratch/kocevski/576594/ft2_4FGL_J2253.9+1609_daily_bin620.fits outfile=/scratch/kocevski/576594/cmap_HighResolution_400032001_400291201_4FGL_J2253.9+1609_daily_bin620.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.746       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 '    3.7856       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8500       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .60428       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3748       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7976       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0785       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2064       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.554       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9020       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0804       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93056       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=   7588.104     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2732 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.747        16.655       -.19721E-06    .16534E-05
   2  norm          .10000E-03    1.7408        .54665E-07** at limit **
   3  Prefactor     .10000E-03    3.4892        .21464E-06** at limit **
   4  Prefactor     3.7835        7.4399        .25863E-05   -.11788E-02
   5  Prefactor     .10000E-03    .87307E-01    .44756E-07** at limit **
   6  Prefactor     .10000E-03    3.8948        .20112E-06** at limit **
   7  norm          2.8495        1.7540        .42850E-08    .27204E-03
   8  Prefactor     .10000E-03    40.672       -.31974E-05** at limit **
   9  Prefactor     .62052        8.7973       -.72301E-06    .12395E-03
  10  Prefactor     7.3748        13.033        .58974E-07   -.12545E-04
  11  Prefactor     1.7976        .24505       -.96461E-08   -.85832E-04
  12  Prefactor     .10000E-03    5.8229        .14706E-06** at limit **
  13  Prefactor     .10000E-03    20.001       -.22084E-05** at limit **
  14  Prefactor     3.0779        7.5865        .19663E-06   -.12301E-03
  15  Prefactor     .10000E-03    11.757        .44401E-05** at limit **
  16  Prefactor     .10000E-03    13.465        .12167E-05** at limit **
  17  Prefactor     9.2072        8.0954        .84750E-07   -.19163E-03
  18  Prefactor     .10000E-03    15.403       -.63264E-05** at limit **
  19  Prefactor     .10000E-03    22.047        .65273E-05** at limit **
  20  norm          14.555        9.4773        .82142E-07    .24457E-03
  21  Prefactor     .10000E-03    10.551       -.22679E-05** at limit **
  22  norm          2.9018        10.669        .19874E-06   -.45061E-04
  23  Normalizat    1.0803        .21289       -.36450E-06   -.41899E-05
  24  Prefactor     .93061        .11580       -.24034E-06    .17852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84953
  Prefactor  = 0.000100001
  Prefactor  = 0.620516
  Prefactor  = 7.37485
  Prefactor  = 1.79757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07793
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.20724
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  norm       = 14.5549
  Prefactor  = 0.0001
  norm       = 2.90178
  Normalizat = 1.08033
  Prefactor  = 0.930609
 **********
 **   18 **HESSE 
 **********

 FCN=   7588.104     FROM HESSE     STATUS=OK           401 CALLS     3133 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.747        16.724        .10093E-03   -1.4914    
   2  norm          .10000E-03    1.7506        .11223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4937        .15891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7835        11.406        .10374E-02   -1.5319    
   5  Prefactor     .10000E-03    .15944        .49497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9106        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8495        1.7605        .84438E-04   -1.5370    
   8  Prefactor     .10000E-03    41.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .62052        51.087        .46398E-02   -1.5550    
  10  Prefactor     7.3748        13.036        .14769E-03   -1.5165    
  11  Prefactor     1.7976        .24549        .14865E-04   -1.5440    
  12  Prefactor     .10000E-03    5.8531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0779        7.5907        .23117E-03   -1.5357    
  15  Prefactor     .10000E-03    12.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2072        8.1340        .13209E-03   -1.5101    
  18  Prefactor     .10000E-03    15.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.555        9.4697        .10499E-03   -1.4945    
  21  Prefactor     .10000E-03    10.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9018        10.668        .23852E-03   -1.5367    
  23  Normalizat    1.0803        .25234        .32766E-03   -.90386    
  24  Prefactor     .93061        .13624        .19923E-03   -.95080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86371e-09
Minuit parameter uncertainties:
  1  16.7285
  2  1.46932e-06
  3  6.43691e-06
  4  11.4123
  5  5.47982e-07
  6  6.32525e-06
  7  1.76058
  8  0.000298529
  9  11.2696
  10  13.0414
  11  0.245494
  12  9.5142e-06
  13  0.000159087
  14  7.59306
  15  0.000231354
  16  7.40331e-05
  17  8.13501
  18  0.000341201
  19  0.000485198
  20  9.47066
  21  9.39498e-05
  22  10.6753
  23  0.252625
  24  0.136291
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.798e+00  2.455e-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.306e-01  1.363e-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.080e+00  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 150.81
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.56e-07 +/- 8.95e-08
Energy Flux (Fixed Index): 2.10e-04 +/- 2.87e-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) = 7588.09435869
delta logL = 0.00943750110855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7588.09368967
delta logL = 0.0101065224007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7821       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9974       1.0000          .0000       10.000    
     3 'Normalizat'    1.0871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92796       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=   7588.094     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      196 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7821        .24952        .33547E-02   -.12246E-02
   2  Index1        1.9974        .14490        .67197E-01   -.77321E-04
   3  Normalizat    1.0871        .20531        .73859E-01   -.53090E-05
   4  Prefactor     .92797        .11562        .45360E-01    .15297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78213
  Index1     = 1.99741
  Normalizat = 1.08705
  Prefactor  = 0.927965
 **********
 **   18 **HESSE 
 **********

 FCN=   7588.094     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7821        .26447        .14832E-04   -1.5441    
   2  Index1        1.9974        .15521        .29433E-03   -.64415    
   3  Normalizat    1.0871        .24251        .32686E-03   -.90169    
   4  Prefactor     .92797        .13616        .19948E-03   -.95171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94985e-12
Minuit parameter uncertainties:
  1  0.26447
  2  0.15525
  3  0.242761
  4  0.136213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576594': 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) = 7588.09368966
delta logL = 0.0101065300141

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.782e+00  2.645e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.997e+00  1.552e-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.280e-01  1.362e-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.087e+00  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 150.79
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.00 +/- 0.16
Photon Flux (Free Index): 6.49e-07 +/- 9.88e-08
Energy Flux (Free Index): 2.13e-04 +/- 3.36e-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/576594/cmap_HighResolution_400032001_400291201_4FGL_J2253.9+1609_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.56e-07', energy_flux2='2.13e-04', photon_flux_error='8.95e-08', dlogl='1.01e-02', energy_flux='2.10e-04', photon_flux2='6.49e-07', job_status='DONE', time_completed='2021-09-29 02:09:03.061688', photon_index_error2='0.16', photon_index2='2.00', ts='150.81', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='3.36e-05', EG='1.08', time_epoch_completed='1632906543.06', return_code='0', job_id='576594', GAL2='0.93', EG2='1.09', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='9.88e-08', ts2='150.79', photon_index='2.02' WHERE bin_id='620' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:09:03 PDT 2021


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

Job <4FGL_J2253.9+1609_daily_bin620> 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) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:55:21 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:21 2021
Terminated at Wed Sep 29 02:09:03 2021
Results reported at Wed Sep 29 02:09:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin620 343.496 16.1506 400032001 400291201 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 :                                   666.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

