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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin445
RA = 344.529, Dec = -27.9843
tmin = 354672001, tmax = 354931201
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='597095', job_status='RUN', time_executed='2021-09-29 03:02:55.964873', time_epoch_executed='1632909775.96' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597095/ft1_4FGL_J2258.1-2759_daily_bin445.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597095/ft2_4FGL_J2258.1-2759_daily_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597095/ft1_4FGL_J2258.1-2759_daily_bin445.fits outfile=/scratch/kocevski/597095/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin445.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=354672001.0 tmax=354931201.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.36
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597095/ft2_4FGL_J2258.1-2759_daily_bin445.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/597095/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin445.fits evtable="EVENTS" outfile="/scratch/kocevski/597095/ft1_filtered_4FGL_J2258.1-2759_daily_bin445.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597095/ft1_filtered_4FGL_J2258.1-2759_daily_bin445.fits" evtable="EVENTS" scfile=/scratch/kocevski/597095/ft2_4FGL_J2258.1-2759_daily_bin445.fits sctable="SC_DATA" outfile=/scratch/kocevski/597095/ltcube_354672001_354931201_4FGL_J2258.1-2759_daily_bin445.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/597095/ft2_4FGL_J2258.1-2759_daily_bin445.fits
.....................!
real 11.99
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597095/ft1_filtered_4FGL_J2258.1-2759_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/597095/ft2_4FGL_J2258.1-2759_daily_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/597095/ltcube_354672001_354931201_4FGL_J2258.1-2759_daily_bin445.fits outfile=/scratch/kocevski/597095/expmap_354672001_354931201_4FGL_J2258.1-2759_daily_bin445.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/597095/ltcube_354672001_354931201_4FGL_J2258.1-2759_daily_bin445.fits
.....................!
real 192.26
user 186.64
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/597095/ft1_filtered_4FGL_J2258.1-2759_daily_bin445.fits scfile=/scratch/kocevski/597095/ft2_4FGL_J2258.1-2759_daily_bin445.fits outfile=/scratch/kocevski/597095/cmap_354672001_354931201_4FGL_J2258.1-2759_daily_bin445.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597095/ft1_filtered_4FGL_J2258.1-2759_daily_bin445.fits scfile=/scratch/kocevski/597095/ft2_4FGL_J2258.1-2759_daily_bin445.fits outfile=/scratch/kocevski/597095/cmap_HighResolution_354672001_354931201_4FGL_J2258.1-2759_daily_bin445.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597095/ft1_filtered_4FGL_J2258.1-2759_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/597095/ft2_4FGL_J2258.1-2759_daily_bin445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597095/Model_4FGL_J2258.1-2759_daily_bin445.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/597095/ft1_filtered_4FGL_J2258.1-2759_daily_bin445.fits.....................!
real 49.77
user 48.32
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22260E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.987       1.0000         .10000E-03   10000.    
     3 'norm      '    7.6620       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.629       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.361       1.0000         .10000E-03   10000.    
     9 'norm      '    22.157       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2735       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4751       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6313       1.0000         .10000E-03   10000.    
    16 'Prefactor '    105.15       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2369       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71232       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1226       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=   6507.195     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2381 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    6.9591       -.11396E-06** at limit **
   2  Prefactor     10.989        8.9073        .57132E-05   -.11392E-03
   3  norm          7.6621        15.547        .39393E-06   -.37127E-04
   4  Prefactor     .10000E-03    22.296        .81010E-07** at limit **
   5  Prefactor     18.629        13.329        .83768E-06   -.88376E-04
   6  norm          .10000E-03    .96833        .11134E-06** at limit **
   7  Prefactor     .10000E-03    55.315        .24337E-05** at limit **
   8  Prefactor     23.361        12.642        .55032E-06   -.73972E-04
   9  norm          22.158        6.1838        .34507E-06   -.35047E-04
  10  Prefactor     .10000E-03    6.4073       -.16934E-06** at limit **
  11  Prefactor     .10000E-03    5.8518       -.62506E-07** at limit **
  12  norm          3.2735        .81045        .31344E-07   -.11389E-03
  13  Prefactor     8.4816        53.216        .79520E-05   -.97732E-05
  14  Prefactor     .10000E-03    3.5884        .12402E-07** at limit **
  15  norm          3.6314        5.5043        .14442E-05   -.26852E-03
  16  Prefactor     105.16        56.037        .68525E-05   -.53323E-04
  17  norm          6.2373        3.0222        .27360E-06   -.10645E-03
  18  Prefactor     .10000E-03    9.5700       -.65473E-08** at limit **
  19  Prefactor     .10000E-03    218.96        .83029E-05** at limit **
  20  Prefactor     9.2833        62.383        .56659E-04   -.90267E-05
  21  Normalizat    .71220        .18532       -.77810E-05    .65013E-04
  22  Prefactor     1.1226        .17270        .90183E-06   -.33058E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100065
  Prefactor  = 10.9892
  norm       = 7.66212
  Prefactor  = 0.0001
  Prefactor  = 18.6285
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3612
  norm       = 22.1576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27351
  Prefactor  = 8.48163
  Prefactor  = 0.0001
  norm       = 3.63142
  Prefactor  = 105.161
  norm       = 6.23729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.28329
  Normalizat = 0.712195
  Prefactor  = 1.12265
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.195     FROM HESSE     STATUS=OK           342 CALLS     2723 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    51.035        .41324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.989        8.8910        .12087E-03   -1.5045    
   3  norm          7.6621        15.544        .14487E-03   -1.5154    
   4  Prefactor     .10000E-03    22.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.629        13.366        .92795E-04   -1.4844    
   6  norm          .10000E-03    .99857        .15492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    55.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.361        12.679        .82875E-04   -1.4741    
   9  norm          22.158        6.1943        .85093E-04   -1.4766    
  10  Prefactor     .10000E-03    6.4242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2735        .81081        .33663E-04   -1.5346    
  13  Prefactor     8.4816        53.161        .13770E-03   -1.5125    
  14  Prefactor     .10000E-03    3.6026        .14917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6314        5.4820        .21201E-03   -1.5327    
  16  Prefactor     105.16        56.453        .39216E-04   -1.3653    
  17  norm          6.2373        3.0229        .93914E-04   -1.5208    
  18  Prefactor     .10000E-03    9.5776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    221.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.2833        62.305        .13187E-03   -1.5099    
  21  Normalizat    .71220        .22249        .28691E-03   -1.0341    
  22  Prefactor     1.1226        .20915        .23551E-03   -.88746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15385e-09
Minuit parameter uncertainties:
  1  0.00365945
  2  8.89206
  3  15.5521
  4  8.07857e-05
  5  13.3685
  6  4.1112e-06
  7  0.000190325
  8  12.6804
  9  6.1945
  10  5.71151e-06
  11  2.25911e-05
  12  0.810808
  13  42.5239
  14  9.92136e-06
  15  5.48278
  16  56.4822
  17  3.02302
  18  1.56143e-05
  19  3.28331e-05
  20  48.1721
  21  0.22277
  22  0.209301
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  3.274e+00  8.108e-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.123e+00  2.093e-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.122e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 53.19
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 4.59e-08
Energy Flux (Fixed Index): 6.99e-05 +/- 1.73e-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) = 6506.09500927
delta logL = 1.10021120241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6506.08880932
delta logL = 1.10641115423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7278       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8844       1.0000          .0000       5.0000    
     3 'Normalizat'    .75868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0947       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=   6506.089     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7278        1.1840        .52285E-02   -.28127E-04
   2  alpha         1.8844        .32624        .19324        .17007E-04
   3  Normalizat    .75865        .17493        .63114E-01    .23041E-04
   4  Prefactor     1.0947        .17521        .37791E-01    .57131E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.72776
  alpha      = 1.88442
  Normalizat = 0.758647
  Prefactor  = 1.09466
 **********
 **   18 **HESSE 
 **********

 FCN=   6506.089     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .92E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7278        .93894        .37816E-04   -1.5322    
   2  alpha         1.8844        .26844        .81919E-02   -.24879    
   3  Normalizat    .75865        .20354        .27919E-03   -1.0162    
   4  Prefactor     1.0947        .20494        .23824E-03   -.89638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2039e-14
Minuit parameter uncertainties:
  1  0.938945
  2  0.26899
  3  0.203741
  4  0.205086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597095': 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) = 6506.08880899
delta logL = 1.10641148687

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  3.728e+00  9.389e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  1.884e+00  2.690e-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.095e+00  2.051e-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.586e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.48
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 1.88 +/- 0.27
Photon Flux (Free Index): 1.41e-07 +/- 4.56e-08
Energy Flux (Free Index): 8.49e-05 +/- 2.53e-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/597095/cmap_HighResolution_354672001_354931201_4FGL_J2258.1-2759_daily_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='8.49e-05', photon_flux_error='4.59e-08', dlogl='1.11e+00', energy_flux='6.99e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-29 03:12:38.602662', photon_index_error2='0.27', photon_index2='1.88', ts='53.19', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.53e-05', EG='0.71', time_epoch_completed='1632910358.6', return_code='0', job_id='597095', GAL2='1.09', EG2='0.76', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='4.56e-08', ts2='56.48', photon_index='2.29' WHERE bin_id='445' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:12:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 597095: <4FGL_J2258.1-2759_daily_bin445> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin445> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 03:00:28 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 03:00:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 03:00:29 2021
Terminated at Wed Sep 29 03:12:39 2021
Results reported at Wed Sep 29 03:12:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin445 344.529 -27.9843 354672001 354931201 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 :                                   580.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            731 sec.

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

