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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin134
RA = 344.529, Dec = -27.9843
tmin = 274060801, tmax = 274320001
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='595696', job_status='RUN', time_executed='2021-09-29 02:58:36.146442', time_epoch_executed='1632909516.15' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595696/ft1_4FGL_J2258.1-2759_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595696/ft2_4FGL_J2258.1-2759_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595696/ft1_4FGL_J2258.1-2759_daily_bin134.fits outfile=/scratch/kocevski/595696/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin134.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=274060801.0 tmax=274320001.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.72
user 3.48
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595696/ft2_4FGL_J2258.1-2759_daily_bin134.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/595696/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin134.fits evtable="EVENTS" outfile="/scratch/kocevski/595696/ft1_filtered_4FGL_J2258.1-2759_daily_bin134.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595696/ft1_filtered_4FGL_J2258.1-2759_daily_bin134.fits" evtable="EVENTS" scfile=/scratch/kocevski/595696/ft2_4FGL_J2258.1-2759_daily_bin134.fits sctable="SC_DATA" outfile=/scratch/kocevski/595696/ltcube_274060801_274320001_4FGL_J2258.1-2759_daily_bin134.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/595696/ft2_4FGL_J2258.1-2759_daily_bin134.fits
.....................!
real 11.72
user 11.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595696/ft1_filtered_4FGL_J2258.1-2759_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/595696/ft2_4FGL_J2258.1-2759_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/595696/ltcube_274060801_274320001_4FGL_J2258.1-2759_daily_bin134.fits outfile=/scratch/kocevski/595696/expmap_274060801_274320001_4FGL_J2258.1-2759_daily_bin134.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/595696/ltcube_274060801_274320001_4FGL_J2258.1-2759_daily_bin134.fits
.....................!
real 191.00
user 185.18
sys 5.52

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/595696/ft1_filtered_4FGL_J2258.1-2759_daily_bin134.fits scfile=/scratch/kocevski/595696/ft2_4FGL_J2258.1-2759_daily_bin134.fits outfile=/scratch/kocevski/595696/cmap_274060801_274320001_4FGL_J2258.1-2759_daily_bin134.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/595696/ft1_filtered_4FGL_J2258.1-2759_daily_bin134.fits scfile=/scratch/kocevski/595696/ft2_4FGL_J2258.1-2759_daily_bin134.fits outfile=/scratch/kocevski/595696/cmap_HighResolution_274060801_274320001_4FGL_J2258.1-2759_daily_bin134.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0454       1.0000         .10000E-03   10000.    
     3 'norm      '    11.909       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.742       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11176E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0600       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8541       1.0000         .10000E-03   10000.    
    12 'norm      '    .69867       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18255E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    38.544       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2974       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88130E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    83.519       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0532       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90496       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=   4476.029     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2352 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.041       -.16522E-06** at limit **
   2  Prefactor     3.0466        6.7626        .11235E-05   -.30130E-03
   3  norm          11.919        28.481       -.44532E-05    .26785E-05
   4  Prefactor     .10000E-03    30.276       -.35330E-06** at limit **
   5  Prefactor     35.741        19.072       -.23710E-05    .65287E-04
   6  norm          .10000E-03    1.2455       -.23259E-07** at limit **
   7  Prefactor     .10000E-03    200.86       -.54736E-05** at limit **
   8  Prefactor     5.0667        17.745        .38378E-05   -.47387E-04
   9  norm          .10000E-03    1.9207       -.71228E-07** at limit **
  10  Prefactor     .10000E-03    8.6170       -.20499E-07** at limit **
  11  Prefactor     8.8528        12.999       -.38251E-06   -.10191E-03
  12  norm          .69876        .75791       -.13421E-06   -.82299E-03
  13  Prefactor     .10000E-03    106.99       -.58080E-06** at limit **
  14  Prefactor     .10000E-03    6.8625       -.57005E-07** at limit **
  15  norm          38.541        15.683       -.18948E-05    .47030E-04
  16  Prefactor     5.2953        242.78       -.67877E-05    .36655E-05
  17  norm          4.7409        4.0625        .15777E-06   -.30803E-03
  18  Prefactor     .10009E-03    181.51        .35338E-04** at limit **
  19  Prefactor     83.386        142.43       -.13234E-03   -.23988E-04
  20  Prefactor     .10000E-03    22.962        .12438E-06** at limit **
  21  Normalizat    1.0533        .23995        .82270E-05   -.25851E-03
  22  Prefactor     .90464        .20820        .28519E-06    .43149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.04656
  norm       = 11.9193
  Prefactor  = 0.000100001
  Prefactor  = 35.7409
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.06668
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.85278
  norm       = 0.698759
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 38.5414
  Prefactor  = 5.29534
  norm       = 4.74094
  Prefactor  = 0.000100085
  Prefactor  = 83.3862
  Prefactor  = 0.0001
  Normalizat = 1.05331
  Prefactor  = 0.90464
 **********
 **   18 **HESSE 
 **********

 FCN=   4476.029     FROM HESSE     STATUS=OK           342 CALLS     2694 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0466        6.7417        .23249E-03   -1.5359    
   3  norm          11.919        28.472        .11608E-03   -1.5017    
   4  Prefactor     .10000E-03    30.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.741        19.084        .67034E-04   -1.4512    
   6  norm          .10000E-03    1.2551        .72850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    203.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0667        17.839        .17875E-03   -1.5258    
   9  norm          .10000E-03    1.9266        .90434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8528        13.997        .13470E-03   -1.5113    
  12  norm          .69876        .78524        .46591E-03   -1.5541    
  13  Prefactor     .10000E-03    107.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8979        .17101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          38.541        15.654        .64559E-04   -1.4466    
  16  Prefactor     5.2953        244.23        .17463E-03   -1.5248    
  17  norm          4.7409        4.0568        .11977E-03   -1.5272    
  18  Prefactor     .10009E-03    191.09        .41686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     83.386        142.86        .21977E-03   -1.3879    
  20  Prefactor     .10000E-03    22.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0533        .28689        .24926E-03   -.91265    
  22  Prefactor     .90464        .24766        .25475E-03   -.95979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35997e-09
Minuit parameter uncertainties:
  1  5.70292e-05
  2  6.74339
  3  28.5048
  4  0.000332924
  5  19.0877
  6  1.8364e-06
  7  0.000451336
  8  17.8576
  9  7.41844e-06
  10  8.05822e-06
  11  14.0025
  12  0.785249
  13  0.00066818
  14  1.5728e-05
  15  15.6556
  16  72.2394
  17  4.05704
  18  0.00809695
  19  143.459
  20  6.7693e-05
  21  0.287315
  22  0.247971
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  6.988e-01  7.852e-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.046e-01  2.480e-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.053e+00  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 4.45e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.68e-05

TS (Fixed Index): 2.57
Ra Dec: 344.529 -27.984
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595696/likelihoodResults_274060801_274320001_4FGL_J2258.1-2759_daily_bin134.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) = 4475.95900567
delta logL = 0.0698421067709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4475.95593416
delta logL = 0.0729136166256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62605       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6238       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91301       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=   4475.956     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      224 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62599        9.9893        .91676E-02    .42766E-03
   2  alpha         2.6244        3.4574        .41216        .21214E-04
   3  Normalizat    1.0383        .71371E-01    .41426E-01    .80833E-05
   4  Prefactor     .91287        .57762E-01    .45171E-01    .84915E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.625987
  alpha      = 2.62435
  Normalizat = 1.03828
  Prefactor  = 0.912869
 **********
 **   18 **HESSE 
 **********

 FCN=   4475.956     FROM HESSE     STATUS=OK            35 CALLS      259 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62599        .60750        .41623E-03   -1.5550    
   2  alpha         2.6244        .91951        .15712E-01    .49761E-01
   3  Normalizat    1.0383        .25437        .25080E-03   -.91759    
   4  Prefactor     .91287        .24072        .25368E-03   -.95693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21776e-10
Minuit parameter uncertainties:
  1  0.607502
  2  0.941677
  3  0.25467
  4  0.241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595696': 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) = 4475.95593368
delta logL = 0.0729140903122

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  6.260e-01  6.075e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.624e+00  9.417e-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:  9.129e-01  2.410e-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.038e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.76
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.62 +/- 0.94
Photon Flux (Free Index): 5.35e-08 +/- 5.57e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.21e-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/595696/cmap_HighResolution_274060801_274320001_4FGL_J2258.1-2759_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-05', comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='1.53e-05', photon_flux_error='4.45e-08', dlogl='7.29e-02', energy_flux='1.49e-05', photon_flux2='5.35e-08', job_status='DONE', time_completed='2021-09-29 03:07:30.271412', photon_index_error2='0.94', photon_index2='2.62', ts='2.57', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.21e-05', EG='1.05', time_epoch_completed='1632910050.27', return_code='0', job_id='595696', GAL2='0.91', EG2='1.04', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='5.57e-08', ts2='2.76', photon_index='2.29' WHERE bin_id='134' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:07:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 595696: <4FGL_J2258.1-2759_daily_bin134> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin134 344.529 -27.9843 274060801 274320001 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            709 sec.

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

