/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 118 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2258.1-2759_daily_bin18
RA = 344.529, Dec = -27.9843
tmin = 243993601, tmax = 244252801
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='595524', job_status='RUN', time_executed='2021-09-29 02:57:38.216568', time_epoch_executed='1632909458.22' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595524/ft1_4FGL_J2258.1-2759_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595524/ft2_4FGL_J2258.1-2759_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595524/ft1_4FGL_J2258.1-2759_daily_bin18.fits outfile=/scratch/kocevski/595524/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin18.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.39
user 1.21
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595524/ft1_filtered_4FGL_J2258.1-2759_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/595524/ft2_4FGL_J2258.1-2759_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/595524/ltcube_243993601_244252801_4FGL_J2258.1-2759_daily_bin18.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/595524/ft2_4FGL_J2258.1-2759_daily_bin18.fits
.....................!
real 12.70
user 12.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595524/ft1_filtered_4FGL_J2258.1-2759_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/595524/ft2_4FGL_J2258.1-2759_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/595524/ltcube_243993601_244252801_4FGL_J2258.1-2759_daily_bin18.fits outfile=/scratch/kocevski/595524/expmap_243993601_244252801_4FGL_J2258.1-2759_daily_bin18.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/595524/ltcube_243993601_244252801_4FGL_J2258.1-2759_daily_bin18.fits
.....................!
real 193.59
user 188.10
sys 5.10

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/595524/ft1_filtered_4FGL_J2258.1-2759_daily_bin18.fits scfile=/scratch/kocevski/595524/ft2_4FGL_J2258.1-2759_daily_bin18.fits outfile=/scratch/kocevski/595524/cmap_243993601_244252801_4FGL_J2258.1-2759_daily_bin18.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595524/ft1_filtered_4FGL_J2258.1-2759_daily_bin18.fits scfile=/scratch/kocevski/595524/ft2_4FGL_J2258.1-2759_daily_bin18.fits outfile=/scratch/kocevski/595524/cmap_HighResolution_243993601_244252801_4FGL_J2258.1-2759_daily_bin18.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595524/ft1_filtered_4FGL_J2258.1-2759_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/595524/ft2_4FGL_J2258.1-2759_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595524/Model_4FGL_J2258.1-2759_daily_bin18.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/595524/ft1_filtered_4FGL_J2258.1-2759_daily_bin18.fits.....................!
real 46.31
user 44.94
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4163       1.0000         .10000E-03   10000.    
     3 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .27863       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.781       1.0000         .10000E-03   10000.    
     9 'norm      '    .65232       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .42550       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.090       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.882       1.0000         .10000E-03   10000.    
    17 'norm      '    9.4616       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5234       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76874       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0125       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=   5909.085     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2054 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0614       -.42033E-07** at limit **
   2  Prefactor     8.4171        8.7296        .17782E-05   -.33907E-03
   3  norm          .10000E-03    10.579        .14176E-05** at limit **
   4  Prefactor     .10000E-03    19.553        .19302E-06** at limit **
   5  Prefactor     .10000E-03    4.8036        .36492E-06** at limit **
   6  norm          .27862        2.9624        .20478E-05   -.35846E-03
   7  Prefactor     22.416        44.252       -.14527E-05    .48900E-04
   8  Prefactor     10.784        11.596       -.41144E-07   -.55867E-04
   9  norm          .65183        2.0223        .49561E-06   -.24285E-03
  10  Prefactor     .10000E-03    3.3168        .13531E-06** at limit **
  11  Prefactor     .10000E-03    3.2819        .69271E-07** at limit **
  12  norm          .42555        .34408       -.26913E-07   -.45353E-03
  13  Prefactor     .10000E-03    11.419       -.14758E-05** at limit **
  14  Prefactor     .10000E-03    3.6052        .10069E-06** at limit **
  15  norm          10.090        6.8331        .37316E-06   -.11383E-03
  16  Prefactor     17.880        22.894       -.36875E-06   -.35724E-04
  17  norm          9.4615        3.5243        .61106E-07   -.10847E-04
  18  Prefactor     4.4659        21.625        .92275E-07   -.15113E-04
  19  Prefactor     .10000E-03    31.397       -.61617E-07** at limit **
  20  Prefactor     2.5053        157.94       -.21771E-04   -.61152E-04
  21  Normalizat    .76854        .17067       -.12415E-05   -.65081E-04
  22  Prefactor     1.0127        .16295        .21387E-06   -.14343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.41714
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.278622
  Prefactor  = 22.4155
  Prefactor  = 10.7835
  norm       = 0.651828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.425552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0899
  Prefactor  = 17.8803
  norm       = 9.46153
  Prefactor  = 4.46585
  Prefactor  = 0.0001
  Prefactor  = 2.50528
  Normalizat = 0.768543
  Prefactor  = 1.01269
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.085     FROM HESSE     STATUS=OK           346 CALLS     2400 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4171        8.8252        .69091E-03   -1.5128    
   3  norm          .10000E-03    10.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8276        .16452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .27862        3.1087        .20369E-03   -1.5602    
   7  Prefactor     22.416        44.633        .84630E-04   -1.4761    
   8  Prefactor     10.784        11.613        .12202E-03   -1.5051    
   9  norm          .65183        2.0485        .18180E-02   -1.5547    
  10  Prefactor     .10000E-03    3.3202        .13669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3265        .13566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .42555        .33894        .38578E-04   -1.5578    
  13  Prefactor     .10000E-03    11.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6242        .14249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.090        6.8374        .63072E-03   -1.5073    
  16  Prefactor     17.880        22.921        .94713E-04   -1.4862    
  17  norm          9.4615        3.5196        .82810E-04   -1.5093    
  18  Prefactor     4.4659        21.557        .19051E-03   -1.5285    
  19  Prefactor     .10000E-03    31.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5053        172.29        .25716E-03   -1.5391    
  21  Normalizat    .76854        .20373        .24460E-03   -1.0125    
  22  Prefactor     1.0127        .19528        .21709E-03   -.92308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12239e-08
Minuit parameter uncertainties:
  1  1.56206e-06
  2  8.82659
  3  7.1655e-05
  4  2.05066e-06
  5  1.17524e-06
  6  1.86113
  7  44.6998
  8  11.6156
  9  2.04869
  10  2.10978e-06
  11  6.13435e-06
  12  0.338938
  13  9.43227e-05
  14  5.72402e-07
  15  6.83794
  16  22.9327
  17  3.51972
  18  19.6348
  19  2.04081e-05
  20  41.6766
  21  0.203932
  22  0.195417
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  4.256e-01  3.389e-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:  1.013e+00  1.954e-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.685e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 9.09e-06 +/- 7.24e-06

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) = 5908.97415673
delta logL = 0.11052643448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5908.97218497
delta logL = 0.112498196433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44645       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8900       1.0000          .0000       5.0000    
     3 'Normalizat'    .77643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0090       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=   5908.972     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      222 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44599        13.590        .93772E-02    .13782E-03
   2  alpha         1.8888        3.8878        .42818        .28802E-05
   3  Normalizat    .77648        .94997E-01    .43302E-01    .18971E-04
   4  Prefactor     1.0089        .77746E-01    .43482E-01    .16527E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.445994
  alpha      = 1.88878
  Normalizat = 0.776485
  Prefactor  = 1.00892
 **********
 **   18 **HESSE 
 **********

 FCN=   5908.972     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .76E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44599        .37322        .41150E-04   -1.5574    
   2  alpha         1.8888        .83855        .21916E-01   -.24699    
   3  Normalizat    .77648        .19026        .24347E-03   -1.0095    
   4  Prefactor     1.0089        .19220        .21746E-03   -.92433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57454e-13
Minuit parameter uncertainties:
  1  0.373224
  2  0.856242
  3  0.190426
  4  0.192331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595524': 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) = 5908.97218346
delta logL = 0.112499701272

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  4.460e-01  3.732e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  1.889e+00  8.562e-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.009e+00  1.923e-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.765e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 1.89 +/- 0.86
Photon Flux (Free Index): 1.69e-08 +/- 1.99e-08
Energy Flux (Free Index): 1.01e-05 +/- 9.03e-06

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/595524/cmap_HighResolution_243993601_244252801_4FGL_J2258.1-2759_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='1.01e-05', photon_flux_error='1.92e-08', dlogl='1.12e-01', energy_flux='9.09e-06', photon_flux2='1.69e-08', job_status='DONE', time_completed='2021-09-29 03:06:24.597157', photon_index_error2='0.86', photon_index2='1.89', ts='4.63', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='9.03e-06', EG='0.77', time_epoch_completed='1632909984.6', return_code='0', job_id='595524', GAL2='1.01', EG2='0.78', return_code2='0', energy_flux_error='7.24e-06', photon_flux_error2='1.99e-08', ts2='4.85', photon_index='2.29' WHERE bin_id='18' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:06:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 595524: <4FGL_J2258.1-2759_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin18 344.529 -27.9843 243993601 244252801 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 :                                   522.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            656 sec.

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

