/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 158 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 = 7383
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2258.1-2759_daily_bin276
RA = 344.529, Dec = -27.9843
tmin = 310867201, tmax = 311126401
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='595894', job_status='RUN', time_executed='2021-09-29 02:58:46.994138', time_epoch_executed='1632909526.99' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595894/ft1_4FGL_J2258.1-2759_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595894/ft2_4FGL_J2258.1-2759_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595894/ft1_4FGL_J2258.1-2759_daily_bin276.fits outfile=/scratch/kocevski/595894/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin276.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=310867201.0 tmax=311126401.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.52
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595894/ft2_4FGL_J2258.1-2759_daily_bin276.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/595894/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin276.fits evtable="EVENTS" outfile="/scratch/kocevski/595894/ft1_filtered_4FGL_J2258.1-2759_daily_bin276.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595894/ft1_filtered_4FGL_J2258.1-2759_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/595894/ft2_4FGL_J2258.1-2759_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/595894/ltcube_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.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/595894/ft2_4FGL_J2258.1-2759_daily_bin276.fits
.....................!
real 11.90
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595894/ft1_filtered_4FGL_J2258.1-2759_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/595894/ft2_4FGL_J2258.1-2759_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/595894/ltcube_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.fits outfile=/scratch/kocevski/595894/expmap_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.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/595894/ltcube_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.fits
.....................!
real 192.86
user 187.48
sys 4.94

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/595894/ft1_filtered_4FGL_J2258.1-2759_daily_bin276.fits scfile=/scratch/kocevski/595894/ft2_4FGL_J2258.1-2759_daily_bin276.fits outfile=/scratch/kocevski/595894/cmap_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595894/ft1_filtered_4FGL_J2258.1-2759_daily_bin276.fits scfile=/scratch/kocevski/595894/ft2_4FGL_J2258.1-2759_daily_bin276.fits outfile=/scratch/kocevski/595894/cmap_HighResolution_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595894/ft1_filtered_4FGL_J2258.1-2759_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/595894/ft2_4FGL_J2258.1-2759_daily_bin276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595894/Model_4FGL_J2258.1-2759_daily_bin276.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/595894/ft1_filtered_4FGL_J2258.1-2759_daily_bin276.fits.....................!
real 44.68
user 43.34
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/595894/ft1_filtered_4FGL_J2258.1-2759_daily_bin276.fits', '/scratch/kocevski/595894/ft2_4FGL_J2258.1-2759_daily_bin276.fits', expMap='/scratch/kocevski/595894/expmap_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.fits', expCube='/scratch/kocevski/595894/ltcube_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/595894/Model_4FGL_J2258.1-2759_daily_bin276.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/595894/ft1_filtered_4FGL_J2258.1-2759_daily_bin276.fits
Spacecraft file(s): /scratch/kocevski/595894/ft2_4FGL_J2258.1-2759_daily_bin276.fits
Exposure map: /scratch/kocevski/595894/expmap_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.fits
Exposure cube: /scratch/kocevski/595894/ltcube_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/595894/Model_4FGL_J2258.1-2759_daily_bin276.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) = 5216.74759915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.065       1.0000         .10000E-03   10000.    
     3 'norm      '    15.618       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91071E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0585       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.600       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.440       1.0000         .10000E-03   10000.    
     9 'norm      '    .33454       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91517       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0498       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.888       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3886       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57912       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5216.725     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2082 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3405       -.35643E-05** at limit **
   2  Prefactor     14.070        2.8375        .15038E-05    .24086E-02
   3  norm          15.591        4.7263        .30211E-05   -.47057E-02
   4  Prefactor     .10001E-03    595.61       -.12067E-03** at limit **
   5  Prefactor     .10001E-03    29.191        .12142E-04** at limit **
   6  norm          1.0578        2.5997       -.16633E-05    .81542E-04
   7  Prefactor     29.649        5.0212        .37097E-05   -.53537E-02
   8  Prefactor     16.446        1.7728       -.68092E-06   -.76786E-03
   9  norm          .33554        9.5578        .20336E-04    .25166E-03
  10  Prefactor     .10000E-03    7.1789        .35869E-05** at limit **
  11  Prefactor     .88804        42.298       -.56979E-05    .42335E-05
  12  norm          2.3500        .99556        .10879E-06    .13854E-02
  13  Prefactor     60.568        2.4520       -.98553E-06    .17837E-02
  14  Prefactor     .10000E-03    7.0870       -.16941E-05** at limit **
  15  norm          2.0490        5.3408       -.66314E-05   -.26648E-03
  16  Prefactor     26.907        1.8498        .26416E-06    .98194E-03
  17  norm          .10000E-03    1.0171        .42025E-06** at limit **
  18  Prefactor     18.956        4.0610       -.28630E-05    .43030E-02
  19  Prefactor     .10029E-03    47.273        .29752E-04** at limit **
  20  Prefactor     .10025E-03    41.605       -.30864E-04** at limit **
  21  Normalizat    1.3878        .23851        .14839E-05    .31965E-03
  22  Prefactor     .57986        .22219       -.26429E-05    .21926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.0698
  norm       = 15.5905
  Prefactor  = 0.000100006
  Prefactor  = 0.000100005
  norm       = 1.05781
  Prefactor  = 29.6489
  Prefactor  = 16.446
  norm       = 0.335536
  Prefactor  = 0.0001
  Prefactor  = 0.888037
  norm       = 2.35002
  Prefactor  = 60.5679
  Prefactor  = 0.0001
  norm       = 2.04902
  Prefactor  = 26.9071
  norm       = 0.0001
  Prefactor  = 18.9559
  Prefactor  = 0.000100294
  Prefactor  = 0.000100249
  Normalizat = 1.38781
  Prefactor  = 0.579863
 **********
 **   18 **HESSE 
 **********

 FCN=   5216.725     FROM HESSE     STATUS=OK           412 CALLS     2494 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.070        10.621        .26700E-02   -1.4958    
   3  norm          15.591        28.820        .25337E-02   -1.4918    
   4  Prefactor     .10001E-03    27.437        .11277       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    28.955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0578        7.7581        .11931E-01   -1.5502    
   7  Prefactor     29.649        110.96        .18410E-02   -1.4618    
   8  Prefactor     16.446        11.555        .24695E-02   -1.4897    
   9  norm          .33554        2.9973        .60195E-01   -1.5592    
  10  Prefactor     .10000E-03    7.1774        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .88804        9.9627        .94669E-01   -1.5519    
  12  norm          2.3500        .97574        .66880E-02   -1.5401    
  13  Prefactor     60.568        71.034        .12886E-02   -1.4150    
  14  Prefactor     .10000E-03    7.0312        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0490        5.3959        .72187E-02   -1.5422    
  16  Prefactor     26.907        46.770        .19314E-02   -1.4670    
  17  norm          .10000E-03    1.0124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.956        26.170        .23008E-02   -1.4837    
  19  Prefactor     .10029E-03    48.471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10025E-03    42.792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3878        .21065        .48965E-01   -.80982    
  22  Prefactor     .57986        .18682        .67991E-01   -1.0844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82572e-06
Minuit parameter uncertainties:
  1  6.29819e-05
  2  10.622
  3  28.846
  4  0.00083047
  5  0.000789035
  6  5.73023
  7  111.75
  8  11.5567
  9  2.00552
  10  1.88787e-06
  11  5.94979
  12  0.975746
  13  71.1334
  14  2.0204e-05
  15  5.39722
  16  46.8341
  17  1.38916e-06
  18  26.1854
  19  0.00755333
  20  0.00653751
  21  0.210778
  22  0.187019
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.350e+00  9.757e-01  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:  5.799e-01  1.870e-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:  1.388e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.65
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 5.52e-08
Energy Flux (Fixed Index): 5.02e-05 +/- 2.08e-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) = 5216.71196109
delta logL = 0.0133873439036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5216.70715216
delta logL = 0.0181962710622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2789       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3608       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58510       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=   5216.707     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2788        10.730        .67998E-02    .51545E-04
   2  alpha         2.3610        3.6614        .20786        .38150E-04
   3  Normalizat    1.3789        .17554        .49086E-01    .11337E-05
   4  Prefactor     .58518        .10941        .67699E-01    .24883E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.27881
  alpha      = 2.36103
  Normalizat = 1.37885
  Prefactor  = 0.585182
 **********
 **   18 **HESSE 
 **********

 FCN=   5216.707     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2788        .85441        .33931E-04   -1.5406    
   2  alpha         2.3610        .39080        .86415E-02   -.55618E-01
   3  Normalizat    1.3789        .23569        .21700E-03   -.81242    
   4  Prefactor     .58518        .21814        .29961E-03   -1.0821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80311e-10
Minuit parameter uncertainties:
  1  0.854411
  2  0.392413
  3  0.235876
  4  0.218453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595894': 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) = 5216.70715195
delta logL = 0.0181964820104

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.279e+00  8.544e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.361e+00  3.924e-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:  5.852e-01  2.185e-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:  1.379e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.70
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.36 +/- 0.39
Photon Flux (Free Index): 1.40e-07 +/- 5.96e-08
Energy Flux (Free Index): 4.95e-05 +/- 1.66e-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/595894/cmap_HighResolution_310867201_311126401_4FGL_J2258.1-2759_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='4.95e-05', photon_flux_error='5.52e-08', dlogl='1.82e-02', energy_flux='5.02e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-29 03:07:28.022752', photon_index_error2='0.39', photon_index2='2.36', ts='26.65', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='1.39', time_epoch_completed='1632910048.02', return_code='0', job_id='595894', GAL2='0.59', EG2='1.38', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='5.96e-08', ts2='26.70', photon_index='2.29' WHERE bin_id='276' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:07:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 595894: <4FGL_J2258.1-2759_daily_bin276> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin276> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:55:58 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:56:00 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:56:00 2021
Terminated at Wed Sep 29 03:07:28 2021
Results reported at Wed Sep 29 03:07:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin276 344.529 -27.9843 310867201 311126401 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 :                                   516.33 sec.
    Max Memory :                                 1176 MB
    Average Memory :                             324.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            690 sec.

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

