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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin1626
RA = 344.529, Dec = -27.9843
tmin = 660787201, tmax = 661046401
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='171956', job_status='RUN', time_executed='2021-12-13 00:36:55.050052', time_epoch_executed='1639384615.05' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171956/ft1_4FGL_J2258.1-2759_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171956/ft1_4FGL_J2258.1-2759_daily_bin1626.fits outfile=/scratch/kocevski/171956/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin1626.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=660787201.0 tmax=661046401.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.55
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.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/171956/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin1626.fits evtable="EVENTS" outfile="/scratch/kocevski/171956/ft1_filtered_4FGL_J2258.1-2759_daily_bin1626.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171956/ft1_filtered_4FGL_J2258.1-2759_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/171956/ltcube_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.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/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits
.....................!
real 11.84
user 11.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171956/ft1_filtered_4FGL_J2258.1-2759_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/171956/ltcube_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.fits outfile=/scratch/kocevski/171956/expmap_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.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/171956/ltcube_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.fits
.....................!
real 191.63
user 187.03
sys 4.24

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2258.1-2759 @ 344.529 -27.9843

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171956/ft1_filtered_4FGL_J2258.1-2759_daily_bin1626.fits scfile=/scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits outfile=/scratch/kocevski/171956/cmap_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.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=344.529 yref=-27.9843 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171956/ft1_filtered_4FGL_J2258.1-2759_daily_bin1626.fits scfile=/scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits outfile=/scratch/kocevski/171956/cmap_HighResolution_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.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=344.529 yref=-27.9843 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171956/ft1_filtered_4FGL_J2258.1-2759_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171956/Model_4FGL_J2258.1-2759_daily_bin1626.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/171956/ft1_filtered_4FGL_J2258.1-2759_daily_bin1626.fits.....................!
real 39.13
user 37.89
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171956/ft1_filtered_4FGL_J2258.1-2759_daily_bin1626.fits', '/scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits', expMap='/scratch/kocevski/171956/expmap_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.fits', expCube='/scratch/kocevski/171956/ltcube_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171956/Model_4FGL_J2258.1-2759_daily_bin1626.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2258.1-2759'

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.011e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.287e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171956/ft1_filtered_4FGL_J2258.1-2759_daily_bin1626.fits
Spacecraft file(s): /scratch/kocevski/171956/ft2_4FGL_J2258.1-2759_daily_bin1626.fits
Exposure map: /scratch/kocevski/171956/expmap_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.fits
Exposure cube: /scratch/kocevski/171956/ltcube_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171956/Model_4FGL_J2258.1-2759_daily_bin1626.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) = 4383.23040794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.073       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15715E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    135.86       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.316       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.551       1.0000         .10000E-03   10000.    
    12 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11810E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.341       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10906E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84482       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0831       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4383.182     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2465 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4770       -.24223E-06** at limit **
   2  Prefactor     .10000E-03    3.8043        .12854E-07** at limit **
   3  norm          .10000E-03    9.7479        .53505E-07** at limit **
   4  Prefactor     18.072        23.016        .15678E-06   -.50437E-04
   5  Prefactor     .10056E-03    16.994        .19715E-05** at limit **
   6  norm          .10000E-03    1.1902        .22461E-06** at limit **
   7  Prefactor     135.87        67.808        .29432E-05    .81501E-04
   8  Prefactor     10.318        15.382       -.67618E-06   -.26483E-03
   9  norm          .10000E-03    1.6688        .18916E-06** at limit **
  10  Prefactor     .10000E-03    6.7204        .32923E-06** at limit **
  11  Prefactor     11.547        12.164       -.62048E-06   -.83887E-03
  12  norm          .10000E-03    .47761        .98793E-06** at limit **
  13  Prefactor     .10001E-03    221.17       -.59393E-05** at limit **
  14  Prefactor     11.335        17.785        .28691E-06   -.40708E-03
  15  norm          .10000E-03    3.2743       -.54212E-08** at limit **
  16  Prefactor     .10000E-03    60.413       -.71278E-06** at limit **
  17  norm          .10000E-03    2.9875       -.26774E-07** at limit **
  18  Prefactor     .10000E-03    103.86       -.37459E-05** at limit **
  19  Prefactor     .10000E-03    108.54        .28231E-05** at limit **
  20  Prefactor     .10000E-03    17.692        .24052E-06** at limit **
  21  Normalizat    .84465        .21852       -.17397E-05   -.52959E-03
  22  Prefactor     1.0834        .20479       -.25229E-06   -.60326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.0722
  Prefactor  = 0.000100555
  norm       = 0.0001
  Prefactor  = 135.873
  Prefactor  = 10.3176
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5472
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 11.3354
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.84465
  Prefactor  = 1.08337
 **********
 **   18 **HESSE 
 **********

 FCN=   4383.182     FROM HESSE     STATUS=OK           336 CALLS     2801 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8148        .12610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.7520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.072        23.012        .94211E-04   -1.4857    
   5  Prefactor     .10056E-03    108.54        .46777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1882        .70242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     135.87        67.549        .17277E-03   -1.3371    
   8  Prefactor     10.318        15.503        .12475E-03   -1.5065    
   9  norm          .10000E-03    1.6757        .83468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7271        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.547        12.413        .11787E-03   -1.5028    
  12  norm          .10000E-03    .61203        .74400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    222.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.335        17.650        .11896E-03   -1.5034    
  15  norm          .10000E-03    3.2834        .11699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    60.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.0889        .22323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    105.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    109.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84465        .25633        .25686E-03   -.98433    
  22  Prefactor     1.0834        .24329        .22610E-03   -.90000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49541e-09
Minuit parameter uncertainties:
  1  2.22322e-05
  2  5.45325e-06
  3  4.51899e-06
  4  23.0228
  5  0.0155508
  6  1.51632e-06
  7  67.5876
  8  15.5094
  9  7.20168e-07
  10  2.00993e-06
  11  12.4162
  12  2.88667e-05
  13  0.00243546
  14  17.6583
  15  3.51964e-06
  16  9.62789e-05
  17  9.45495e-06
  18  0.000984854
  19  0.00109077
  20  3.82488e-05
  21  0.256702
  22  0.243543
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  2.887e-05  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.287e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.083e+00  2.435e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.447e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.529 -27.984
Photon Flux Upper Limit: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171956/likelihoodResults_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.txt

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): 102
logL (Free Index) = 4383.18977195
delta logL = -0.0077926635413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4383.18171562
delta logL = 0.000263662500402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17589E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2599       1.0000          .0000       5.0000    
     3 'Normalizat'    .84466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4383.174     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      267 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20570E-01    1.6465        .90712E-02    .27196E-02
   2  alpha         3.7019        3.1376        .50000        .31548E-04
   3  Normalizat    .83782        .18835E-01    .44190E-01    .13287E-04
   4  Prefactor     1.0865        .18650E-01    .38256E-01   -.11212E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0205699
  alpha      = 3.70191
  Normalizat = 0.837822
  Prefactor  = 1.08647
 **********
 **   18 **HESSE 
 **********

 FCN=   4383.174     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      302 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20570E-01    57.980        .43903E-03   -1.5679    
   2  alpha         3.7019        4.1910        .86877E-01    .50153    
   3  Normalizat    .83782        .13606        .25771E-03   -.98681    
   4  Prefactor     1.0865        .12809        .22576E-03   -.89900    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25892e-09
Minuit parameter uncertainties:
  1  2.18096
  2  46.9845
  3  0.13612
  4  0.128131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171956': 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): 102
logL (Free Index) = 4383.17399788
delta logL = 0.0079814050805

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.057e-02  2.181e+00  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  3.702e+00  4.698e+01  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.086e+00  1.281e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.378e-01  1.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.529 -27.984

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/171956/cmap_HighResolution_660787201_661046401_4FGL_J2258.1-2759_daily_bin1626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-12-13 00:45:51.089965', job_id='171956', GAL2='1.09', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1639385151.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='7.98e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1626' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:45:51 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 171956: <4FGL_J2258.1-2759_daily_bin1626> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin1626> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Dec 13 00:36:01 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:36:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:36:03 2021
Terminated at Mon Dec 13 00:45:51 2021
Results reported at Mon Dec 13 00:45:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin1626 344.529 -27.9843 660787201 661046401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2258.1-2759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   538.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            590 sec.

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

