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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1400
RA = 343.496, Dec = 16.1506
tmin = 602208001, tmax = 602467201
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='580052', job_status='RUN', time_executed='2021-09-29 02:07:18.156250', time_epoch_executed='1632906438.16' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580052/ft1_4FGL_J2253.9+1609_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580052/ft2_4FGL_J2253.9+1609_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580052/ft1_4FGL_J2253.9+1609_daily_bin1400.fits outfile=/scratch/kocevski/580052/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1400.fits ra=343.496 dec=16.1506 rad=12.0 tmin=602208001.0 tmax=602467201.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.25
user 4.96
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580052/ft2_4FGL_J2253.9+1609_daily_bin1400.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/580052/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1400.fits evtable="EVENTS" outfile="/scratch/kocevski/580052/ft1_filtered_4FGL_J2253.9+1609_daily_bin1400.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/580052/ft1_filtered_4FGL_J2253.9+1609_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/580052/ft2_4FGL_J2253.9+1609_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/580052/ltcube_602208001_602467201_4FGL_J2253.9+1609_daily_bin1400.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/580052/ft2_4FGL_J2253.9+1609_daily_bin1400.fits
.....................!
real 11.53
user 11.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580052/ft1_filtered_4FGL_J2253.9+1609_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/580052/ft2_4FGL_J2253.9+1609_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/580052/ltcube_602208001_602467201_4FGL_J2253.9+1609_daily_bin1400.fits outfile=/scratch/kocevski/580052/expmap_602208001_602467201_4FGL_J2253.9+1609_daily_bin1400.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/580052/ltcube_602208001_602467201_4FGL_J2253.9+1609_daily_bin1400.fits
.....................!
real 191.52
user 186.50
sys 4.71

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/580052/ft1_filtered_4FGL_J2253.9+1609_daily_bin1400.fits scfile=/scratch/kocevski/580052/ft2_4FGL_J2253.9+1609_daily_bin1400.fits outfile=/scratch/kocevski/580052/cmap_602208001_602467201_4FGL_J2253.9+1609_daily_bin1400.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580052/ft1_filtered_4FGL_J2253.9+1609_daily_bin1400.fits scfile=/scratch/kocevski/580052/ft2_4FGL_J2253.9+1609_daily_bin1400.fits outfile=/scratch/kocevski/580052/cmap_HighResolution_602208001_602467201_4FGL_J2253.9+1609_daily_bin1400.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/580052/ft1_filtered_4FGL_J2253.9+1609_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/580052/ft2_4FGL_J2253.9+1609_daily_bin1400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580052/Model_4FGL_J2253.9+1609_daily_bin1400.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/580052/ft1_filtered_4FGL_J2253.9+1609_daily_bin1400.fits.....................!
real 66.92
user 65.61
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.183       1.0000         .10000E-03   10000.    
     2 'norm      '    9.5890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39867       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27401       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.246       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3799       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4135       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4099       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3947       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2408       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3215       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84820       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=   6305.922     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     3264 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.181        28.018       -.82623E-06   -.68295E-04
   2  norm          9.5892        6.3825        .17266E-06   -.51353E-03
   3  Prefactor     .10000E-03    26.218        .20152E-06** at limit **
   4  Prefactor     .10000E-03    8.5143        .10056E-05** at limit **
   5  Prefactor     .10000E-03    .74451E-01    .20625E-07** at limit **
   6  Prefactor     .10000E-03    7.3727       -.10364E-05** at limit **
   7  norm          2.9438        1.9704       -.26544E-07    .21777E-04
   8  Prefactor     .10000E-03    11.898       -.40732E-06** at limit **
   9  Prefactor     .10002E-03    10.741       -.81717E-07** at limit **
  10  Prefactor     .10000E-03    5.8105        .16194E-05** at limit **
  11  Prefactor     .39867        .16791       -.29264E-07   -.43785E-03
  12  Prefactor     .26823        6.1526        .81958E-06   -.41890E-03
  13  Prefactor     16.229        46.525       -.15980E-04   -.21882E-03
  14  Prefactor     6.3794        8.2295        .11660E-05   -.95510E-03
  15  Prefactor     8.4134        8.8272        .80192E-07    .15173E-04
  16  Prefactor     3.4091        14.334        .31662E-05   -.46865E-03
  17  Prefactor     5.3948        6.6958        .64597E-06   -.82075E-03
  18  Prefactor     .10000E-03    4.2250       -.37508E-07** at limit **
  19  Prefactor     4.2410        31.556       -.19723E-05   -.22675E-04
  20  norm          .10000E-03    4.8309        .30594E-06** at limit **
  21  Prefactor     .10000E-03    3.7715        .40383E-07** at limit **
  22  norm          .10000E-03    5.4913       -.16218E-05** at limit **
  23  Normalizat    1.3216        .23285        .90970E-06   -.76590E-04
  24  Prefactor     .84814        .12278       -.10303E-06   -.19132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.1808
  norm       = 9.58917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.94378
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.398671
  Prefactor  = 0.268233
  Prefactor  = 16.2287
  Prefactor  = 6.37945
  Prefactor  = 8.41336
  Prefactor  = 3.40912
  Prefactor  = 5.39475
  Prefactor  = 0.0001
  Prefactor  = 4.24103
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.32165
  Prefactor  = 0.84814
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.922     FROM HESSE     STATUS=OK           403 CALLS     3667 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.181        28.074        .67562E-04   -1.4521    
   2  norm          9.5892        6.4697        .64706E-03   -1.5089    
   3  Prefactor     .10000E-03    26.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .88278E-01    .41929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9438        1.9322        .86802E-04   -1.5365    
   8  Prefactor     .10000E-03    11.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    85.152        .48620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .39867        .16636        .19967E-04   -1.5582    
  12  Prefactor     .26823        58.692        .37578E-02   -1.5604    
  13  Prefactor     16.229        48.613        .99367E-04   -1.4902    
  14  Prefactor     6.3794        9.0649        .79453E-03   -1.5203    
  15  Prefactor     8.4134        8.8319        .13821E-03   -1.5128    
  16  Prefactor     3.4091        18.947        .10954E-02   -1.5339    
  17  Prefactor     5.3948        6.9430        .86508E-03   -1.5243    
  18  Prefactor     .10000E-03    4.2316        .15941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2410        31.301        .19567E-03   -1.5296    
  20  norm          .10000E-03    4.8590        .17045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.7929        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.5181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3216        .27341        .30691E-03   -.82923    
  24  Prefactor     .84814        .14530        .20268E-03   -.97977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20595e-09
Minuit parameter uncertainties:
  1  28.0843
  2  6.47022
  3  4.39878e-05
  4  5.07959e-05
  5  5.2421e-07
  6  5.90183e-05
  7  1.93224
  8  2.94899e-05
  9  0.00236461
  10  7.64063e-05
  11  0.166361
  12  7.94196
  13  48.7315
  14  9.06681
  15  8.83325
  16  16.0814
  17  6.94399
  18  1.4044e-06
  19  23.06
  20  1.31934e-05
  21  2.77026e-07
  22  7.63568e-05
  23  0.273713
  24  0.14537
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.987e-01  1.664e-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:  8.481e-01  1.454e-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.322e+00  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.15
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 6.06e-08
Energy Flux (Fixed Index): 4.67e-05 +/- 1.95e-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) = 6305.88246556
delta logL = 0.0399732367678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6305.88184688
delta logL = 0.0405919156419

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36109       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.8989       1.0000          .0000       10.000    
     3 'Normalizat'    1.3357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84378       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=   6305.882     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36110        .17164        .43634E-02    .63298E-02
   2  Index1        1.8988        .33526        .13891       -.29098E-03
   3  Normalizat    1.3357        .22595        .69081E-01    .13165E-03
   4  Prefactor     .84377        .12214        .44284E-01    .14608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.361102
  Index1     = 1.89883
  Normalizat = 1.33569
  Prefactor  = 0.843771
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.882     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36110        .20201        .19432E-04   -1.5588    
   2  Index1        1.8988        .41299        .59275E-02   -.66904    
   3  Normalizat    1.3357        .26758        .30563E-03   -.82507    
   4  Prefactor     .84377        .14406        .20317E-03   -.98135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69848e-10
Minuit parameter uncertainties:
  1  0.202013
  2  0.413755
  3  0.267861
  4  0.144129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580052': 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) = 6305.88184687
delta logL = 0.0405919237619

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.611e-01  2.020e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.899e+00  4.138e-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:  8.438e-01  1.441e-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.336e+00  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.23
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.90 +/- 0.41
Photon Flux (Free Index): 1.31e-07 +/- 7.34e-08
Energy Flux (Free Index): 4.77e-05 +/- 2.05e-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/580052/cmap_HighResolution_602208001_602467201_4FGL_J2253.9+1609_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='4.77e-05', photon_flux_error='6.06e-08', dlogl='4.06e-02', energy_flux='4.67e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-29 02:18:30.798042', photon_index_error2='0.41', photon_index2='1.90', ts='13.15', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.32', time_epoch_completed='1632907110.8', return_code='0', job_id='580052', GAL2='0.84', EG2='1.34', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='7.34e-08', ts2='13.23', photon_index='2.02' WHERE bin_id='1400' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:18:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 580052: <4FGL_J2253.9+1609_daily_bin1400> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1400> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:37 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:38 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:05:38 2021
Terminated at Wed Sep 29 02:18:31 2021
Results reported at Wed Sep 29 02:18:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1400 343.496 16.1506 602208001 602467201 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 :                                   619.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            774 sec.

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

