/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 187 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 = 7357
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2258.1-2759_daily_bin475
RA = 344.529, Dec = -27.9843
tmin = 362448001, tmax = 362707201
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='597143', job_status='RUN', time_executed='2021-09-29 03:03:48.476979', time_epoch_executed='1632909828.48' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597143

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597143/ft1_4FGL_J2258.1-2759_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597143/ft2_4FGL_J2258.1-2759_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597143/ft1_4FGL_J2258.1-2759_daily_bin475.fits outfile=/scratch/kocevski/597143/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin475.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=362448001.0 tmax=362707201.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 5.55
user 5.30
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597143/ft1_filtered_4FGL_J2258.1-2759_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/597143/ft2_4FGL_J2258.1-2759_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/597143/ltcube_362448001_362707201_4FGL_J2258.1-2759_daily_bin475.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/597143/ft2_4FGL_J2258.1-2759_daily_bin475.fits
.....................!
real 11.31
user 10.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597143/ft1_filtered_4FGL_J2258.1-2759_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/597143/ft2_4FGL_J2258.1-2759_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/597143/ltcube_362448001_362707201_4FGL_J2258.1-2759_daily_bin475.fits outfile=/scratch/kocevski/597143/expmap_362448001_362707201_4FGL_J2258.1-2759_daily_bin475.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/597143/ltcube_362448001_362707201_4FGL_J2258.1-2759_daily_bin475.fits
.....................!
real 190.73
user 185.42
sys 5.00

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/597143/ft1_filtered_4FGL_J2258.1-2759_daily_bin475.fits scfile=/scratch/kocevski/597143/ft2_4FGL_J2258.1-2759_daily_bin475.fits outfile=/scratch/kocevski/597143/cmap_362448001_362707201_4FGL_J2258.1-2759_daily_bin475.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597143/ft1_filtered_4FGL_J2258.1-2759_daily_bin475.fits scfile=/scratch/kocevski/597143/ft2_4FGL_J2258.1-2759_daily_bin475.fits outfile=/scratch/kocevski/597143/cmap_HighResolution_362448001_362707201_4FGL_J2258.1-2759_daily_bin475.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/597143/ft1_filtered_4FGL_J2258.1-2759_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/597143/ft2_4FGL_J2258.1-2759_daily_bin475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597143/Model_4FGL_J2258.1-2759_daily_bin475.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/597143/ft1_filtered_4FGL_J2258.1-2759_daily_bin475.fits.....................!
real 37.35
user 36.04
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1827       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.989       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.694       1.0000         .10000E-03   10000.    
     9 'norm      '    8.5769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46709E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0972       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.809       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1580       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.063       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9267       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.116       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1714       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84016       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4252.953     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     3084 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.058        .18142E-02** at limit **
   2  Prefactor     9.1835        13.175        .66129E-03   -.15634E-03
   3  norm          .10000E-03    12.138        .18142E-02** at limit **
   4  Prefactor     .10000E-03    14.586        .18142E-02** at limit **
   5  Prefactor     29.991        20.891        .73163E-04   -.10395E-03
   6  norm          .10000E-03    1.0017        .63649E-03** at limit **
   7  Prefactor     .10001E-03    142.34        .18142E-02** at limit **
   8  Prefactor     13.696        15.271        .10824E-03    .15755E-04
   9  norm          8.5781        6.5376        .13322E-03    .78594E-04
  10  Prefactor     .10000E-03    30.901        .18142E-02** at limit **
  11  Prefactor     .10000E-03    52.038        .54711E-01** at limit **
  12  norm          5.0974        1.6844        .36197E-04    .77495E-03
  13  Prefactor     10.735        49.760        .12186E-03   -.95998E-04
  14  Prefactor     7.1442        21.855        .14993E-03    .60661E-04
  15  norm          .10000E-03    3.4865        .11886E-02** at limit **
  16  Prefactor     71.086        74.102        .47621E-04    .73052E-04
  17  norm          1.9272        3.9379        .17665E-03    .91838E-04
  18  Prefactor     .10000E-03    57.307        .18142E-02** at limit **
  19  Prefactor     .10000E-03    39.290        .18142E-02** at limit **
  20  Prefactor     59.140        73.745        .26090E-03    .60742E-04
  21  Normalizat    1.1712        .30276        .25538E-03   -.11351E-03
  22  Prefactor     .84031        .25921        .27791E-03    .11888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.18353
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9907
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 13.6959
  norm       = 8.57814
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.09735
  Prefactor  = 10.7347
  Prefactor  = 7.14423
  norm       = 0.0001
  Prefactor  = 71.086
  norm       = 1.92719
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 59.1399
  Normalizat = 1.17122
  Prefactor  = 0.840309
 **********
 **   18 **HESSE 
 **********

 FCN=   4252.953     FROM HESSE     STATUS=OK           330 CALLS     3414 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1835        13.173        .26452E-04   -1.5102    
   3  norm          .10000E-03    12.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.991        20.892        .29265E-05   -1.4612    
   6  norm          .10000E-03    1.0017        .12730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    142.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.696        15.271        .43296E-05   -1.4968    
   9  norm          8.5781        6.5281        .53290E-05   -1.5122    
  10  Prefactor     .10000E-03    30.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.478        .74065E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0974        1.6726        .72394E-05   -1.5256    
  13  Prefactor     10.735        49.759        .24372E-04   -1.5053    
  14  Prefactor     7.1442        21.776        .59972E-05   -1.5173    
  15  norm          .10000E-03    3.4866        .23773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     71.086        74.103        .95242E-05   -1.4020    
  17  norm          1.9272        3.9375        .70660E-05   -1.5430    
  18  Prefactor     .10000E-03    57.322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     59.140        73.744        .10436E-04   -1.4168    
  21  Normalizat    1.1712        .30285        .51075E-04   -.87497    
  22  Prefactor     .84031        .25927        .11116E-04   -.98259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6908e-10
Minuit parameter uncertainties:
  1  4.93244e-05
  2  13.1774
  3  6.9886e-06
  4  0.000124391
  5  20.8974
  6  1.13956e-06
  7  0.00246415
  8  15.2751
  9  6.52866
  10  7.60932e-05
  11  0.000497954
  12  1.67263
  13  46.2862
  14  21.7999
  15  2.34286e-07
  16  74.1996
  17  3.93806
  18  0.000860029
  19  0.000516307
  20  73.8577
  21  0.303307
  22  0.259653
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  5.097e+00  1.673e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.403e-01  2.597e-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.171e+00  3.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.16
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.89e-07 +/- 9.47e-08
Energy Flux (Fixed Index): 1.09e-04 +/- 3.57e-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) = 4252.95017514
delta logL = 0.00305120896337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4252.9489059
delta logL = 0.00432044726494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0366       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3158       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84385       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=   4252.949     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0366        17.443        .44794E-02   -.90237E-03
   2  alpha         2.3157        3.6529        .14692        .37255E-04
   3  Normalizat    1.1650        .43845        .57865E-01    .58305E-05
   4  Prefactor     .84381        .29848        .44285E-01    .10204E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.03659
  alpha      = 2.31571
  Normalizat = 1.16505
  Prefactor  = 0.843808
 **********
 **   18 **HESSE 
 **********

 FCN=   4252.949     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0366        1.4786        .35792E-04   -1.5259    
   2  alpha         2.3157        .30758        .62835E-02   -.73781E-01
   3  Normalizat    1.1650        .27733        .25590E-03   -.87690    
   4  Prefactor     .84381        .25498        .27737E-03   -.98133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35292e-11
Minuit parameter uncertainties:
  1  1.47864
  2  0.308367
  3  0.277681
  4  0.255342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597143': 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) = 4252.94890585
delta logL = 0.00432049239498

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  5.037e+00  1.479e+00  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.316e+00  3.084e-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:  8.438e-01  2.553e-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.165e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 44.87
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.32 +/- 0.31
Photon Flux (Free Index): 2.95e-07 +/- 9.86e-08
Energy Flux (Free Index): 1.08e-04 +/- 2.91e-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/597143/cmap_HighResolution_362448001_362707201_4FGL_J2258.1-2759_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.89e-07', energy_flux2='1.08e-04', photon_flux_error='9.47e-08', dlogl='4.32e-03', energy_flux='1.09e-04', photon_flux2='2.95e-07', job_status='DONE', time_completed='2021-09-29 03:12:32.325053', photon_index_error2='0.31', photon_index2='2.32', ts='44.16', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.91e-05', EG='1.17', time_epoch_completed='1632910352.33', return_code='0', job_id='597143', GAL2='0.84', EG2='1.17', return_code2='0', energy_flux_error='3.57e-05', photon_flux_error2='9.86e-08', ts2='44.87', photon_index='2.29' WHERE bin_id='475' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:12:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 597143: <4FGL_J2258.1-2759_daily_bin475> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin475> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 03:00:32 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 03:00:33 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:33 2021
Terminated at Wed Sep 29 03:12:33 2021
Results reported at Wed Sep 29 03:12:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin475 344.529 -27.9843 362448001 362707201 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 :                                   521.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

