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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin303
RA = 344.529, Dec = -27.9843
tmin = 317865601, tmax = 318124801
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='595921', job_status='RUN', time_executed='2021-09-29 02:58:31.531461', time_epoch_executed='1632909511.53' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595921/ft1_4FGL_J2258.1-2759_daily_bin303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595921/ft2_4FGL_J2258.1-2759_daily_bin303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595921/ft1_4FGL_J2258.1-2759_daily_bin303.fits outfile=/scratch/kocevski/595921/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin303.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=317865601.0 tmax=318124801.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.31
user 3.11
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595921/ft1_filtered_4FGL_J2258.1-2759_daily_bin303.fits" evtable="EVENTS" scfile=/scratch/kocevski/595921/ft2_4FGL_J2258.1-2759_daily_bin303.fits sctable="SC_DATA" outfile=/scratch/kocevski/595921/ltcube_317865601_318124801_4FGL_J2258.1-2759_daily_bin303.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/595921/ft2_4FGL_J2258.1-2759_daily_bin303.fits
.....................!
real 12.04
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595921/ft1_filtered_4FGL_J2258.1-2759_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/595921/ft2_4FGL_J2258.1-2759_daily_bin303.fits sctable="SC_DATA" expcube=/scratch/kocevski/595921/ltcube_317865601_318124801_4FGL_J2258.1-2759_daily_bin303.fits outfile=/scratch/kocevski/595921/expmap_317865601_318124801_4FGL_J2258.1-2759_daily_bin303.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/595921/ltcube_317865601_318124801_4FGL_J2258.1-2759_daily_bin303.fits
.....................!
real 190.38
user 184.97
sys 5.08

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/595921/ft1_filtered_4FGL_J2258.1-2759_daily_bin303.fits scfile=/scratch/kocevski/595921/ft2_4FGL_J2258.1-2759_daily_bin303.fits outfile=/scratch/kocevski/595921/cmap_317865601_318124801_4FGL_J2258.1-2759_daily_bin303.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595921/ft1_filtered_4FGL_J2258.1-2759_daily_bin303.fits scfile=/scratch/kocevski/595921/ft2_4FGL_J2258.1-2759_daily_bin303.fits outfile=/scratch/kocevski/595921/cmap_HighResolution_317865601_318124801_4FGL_J2258.1-2759_daily_bin303.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595921/ft1_filtered_4FGL_J2258.1-2759_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/595921/ft2_4FGL_J2258.1-2759_daily_bin303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595921/Model_4FGL_J2258.1-2759_daily_bin303.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/595921/ft1_filtered_4FGL_J2258.1-2759_daily_bin303.fits.....................!
real 47.37
user 45.99
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.083       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.393       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8726       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0275       1.0000         .10000E-03   10000.    
     6 'norm      '    .10932E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.986       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18341E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .32238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.733       1.0000         .10000E-03   10000.    
    15 'norm      '    13.164       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.513       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6206       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.100       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.097       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80532       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99708       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=   5915.194     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2369 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.085        19.683        .42093E-07   -.98672E-05
   2  Prefactor     19.394        8.4402       -.61097E-08    .18958E-05
   3  norm          1.8704        14.482        .12899E-05   -.13760E-04
   4  Prefactor     .10000E-03    4.4473        .13182E-09** at limit **
   5  Prefactor     5.0279        8.7348        .19878E-06    .10154E-04
   6  norm          .10000E-03    .91227        .26696E-07** at limit **
   7  Prefactor     .10000E-03    24.687        .73457E-07** at limit **
   8  Prefactor     24.989        13.712       -.22459E-06   -.40253E-04
   9  norm          2.2253        2.5778        .12135E-05   -.85302E-04
  10  Prefactor     .10000E-03    4.7410       -.55283E-07** at limit **
  11  Prefactor     .10000E-03    10.435       -.29882E-06** at limit **
  12  norm          .32245        .64494       -.33701E-07   -.19976E-03
  13  Prefactor     .10000E-03    137.55       -.14115E-05** at limit **
  14  Prefactor     21.739        12.130       -.61977E-07   -.32484E-04
  15  norm          13.165        7.3412       -.14618E-07   -.91078E-05
  16  Prefactor     24.521        37.904        .20114E-07    .13655E-04
  17  norm          3.6207        2.4374        .44201E-07   -.14166E-04
  18  Prefactor     12.099        15.604        .71845E-07    .30667E-05
  19  Prefactor     .10000E-03    119.99        .90467E-06** at limit **
  20  Prefactor     53.061        61.515       -.27642E-06   -.57438E-04
  21  Normalizat    .80510        .18035        .87818E-06   -.58009E-04
  22  Prefactor     .99731        .17151       -.11061E-05    .43960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0846
  Prefactor  = 19.394
  norm       = 1.87044
  Prefactor  = 0.0001
  Prefactor  = 5.02792
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 24.9891
  norm       = 2.22525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.32245
  Prefactor  = 0.000100002
  Prefactor  = 21.7387
  norm       = 13.1646
  Prefactor  = 24.5207
  norm       = 3.62068
  Prefactor  = 12.0991
  Prefactor  = 0.000100002
  Prefactor  = 53.0608
  Normalizat = 0.805102
  Prefactor  = 0.997306
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.194     FROM HESSE     STATUS=OK           350 CALLS     2719 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.085        19.692        .99871E-04   -1.4906    
   2  Prefactor     19.394        8.4487        .90949E-04   -1.4827    
   3  norm          1.8704        14.385        .30433E-03   -1.5434    
   4  Prefactor     .10000E-03    4.4497        .15841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0279        8.7313        .17934E-03   -1.5259    
   6  norm          .10000E-03    7.4741        .14200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.989        13.778        .80139E-04   -1.4708    
   9  norm          2.2253        2.5845        .63888E-03   -1.5410    
  10  Prefactor     .10000E-03    4.7471        .16346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .32245        .59906        .66796E-04   -1.5594    
  13  Prefactor     .10000E-03    138.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.739        11.739        .85920E-04   -1.4775    
  15  norm          13.165        7.3413        .11040E-03   -1.4982    
  16  Prefactor     24.521        38.054        .80906E-04   -1.4717    
  17  norm          3.6207        2.4332        .94850E-04   -1.5327    
  18  Prefactor     12.099        15.602        .11516E-03   -1.5012    
  19  Prefactor     .10000E-03    120.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.061        61.744        .55043E-04   -1.4250    
  21  Normalizat    .80510        .21037        .25204E-03   -.99880    
  22  Prefactor     .99731        .19821        .23063E-03   -.92819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38117e-10
Minuit parameter uncertainties:
  1  19.6995
  2  8.44926
  3  10.3774
  4  4.31313e-07
  5  8.73355
  6  0.000170971
  7  2.35316e-05
  8  13.78
  9  2.58458
  10  5.64991e-06
  11  4.71965e-05
  12  0.599075
  13  0.00114353
  14  11.7399
  15  7.34182
  16  38.092
  17  2.43328
  18  15.6077
  19  0.000919826
  20  61.8182
  21  0.210585
  22  0.198353
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  3.225e-01  5.991e-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:  9.973e-01  1.984e-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.051e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/595921/likelihoodResults_317865601_318124801_4FGL_J2258.1-2759_daily_bin303.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): 0
logL (Free Index) = 5914.6672027
delta logL = 0.526720707324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5914.66352909
delta logL = 0.53039431875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19169       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3584       1.0000          .0000       5.0000    
     3 'Normalizat'    .77559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0136       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=   5914.664     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19149        2.6579        .66037E-02    .20409E-02
   2  alpha         3.3594        4.1389        .41504        .46988E-04
   3  Normalizat    .77601        .35824E-01    .43291E-01    .16730E-04
   4  Prefactor     1.0131        .36231E-01    .42852E-01    .37978E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.191487
  alpha      = 3.35943
  Normalizat = 0.776013
  Prefactor  = 1.01311
 **********
 **   18 **HESSE 
 **********

 FCN=   5914.664     FROM HESSE     STATUS=OK            35 CALLS      275 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19149        1.0050        .30168E-03   -1.5620    
   2  alpha         3.3594        3.9217        .15406E-01    .35093    
   3  Normalizat    .77601        .19821        .25598E-03   -1.0096    
   4  Prefactor     1.0131        .19988        .22882E-03   -.92294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15639e-09
Minuit parameter uncertainties:
  1  0.877161
  2  2.9758
  3  0.198398
  4  0.200025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595921': 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) = 5914.66352571
delta logL = 0.530397702022

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.915e-01  8.772e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  3.359e+00  2.976e+00  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.013e+00  2.000e-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:  7.760e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 3.36 +/- 2.98
Photon Flux (Free Index): 4.68e-08 +/- 4.28e-08
Energy Flux (Free Index): 9.17e-06 +/- 1.24e-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/595921/cmap_HighResolution_317865601_318124801_4FGL_J2258.1-2759_daily_bin303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', comment='SUCCESS', energy_flux2='9.17e-06', dlogl='5.30e-01', photon_flux2='4.68e-08', job_status='DONE', time_completed='2021-09-29 03:08:47.139994', photon_index_error2='2.98', photon_index2='3.36', ts='0.48', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.27e-08', energy_flux_error2='1.24e-05', EG='0.81', time_epoch_completed='1632910127.14', return_code='0', job_id='595921', GAL2='1.01', EG2='0.78', return_code2='0', photon_flux_error2='4.28e-08', ts2='1.58', photon_index='2.29' WHERE bin_id='303' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:08:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 595921: <4FGL_J2258.1-2759_daily_bin303> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin303 344.529 -27.9843 317865601 318124801 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            766 sec.

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

