/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 123 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7475
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2258.1-2759_daily_bin485
RA = 344.529, Dec = -27.9843
tmin = 365040001, tmax = 365299201
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='597158', job_status='RUN', time_executed='2021-09-29 03:02:46.806013', time_epoch_executed='1632909766.81' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597158

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597158/ft1_4FGL_J2258.1-2759_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597158/ft2_4FGL_J2258.1-2759_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597158/ft1_4FGL_J2258.1-2759_daily_bin485.fits outfile=/scratch/kocevski/597158/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin485.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=365040001.0 tmax=365299201.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.66
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597158/ft2_4FGL_J2258.1-2759_daily_bin485.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/597158/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin485.fits evtable="EVENTS" outfile="/scratch/kocevski/597158/ft1_filtered_4FGL_J2258.1-2759_daily_bin485.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597158/ft1_filtered_4FGL_J2258.1-2759_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/597158/ft2_4FGL_J2258.1-2759_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/597158/ltcube_365040001_365299201_4FGL_J2258.1-2759_daily_bin485.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/597158/ft2_4FGL_J2258.1-2759_daily_bin485.fits
.....................!
real 12.53
user 12.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597158/ft1_filtered_4FGL_J2258.1-2759_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/597158/ft2_4FGL_J2258.1-2759_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/597158/ltcube_365040001_365299201_4FGL_J2258.1-2759_daily_bin485.fits outfile=/scratch/kocevski/597158/expmap_365040001_365299201_4FGL_J2258.1-2759_daily_bin485.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/597158/ltcube_365040001_365299201_4FGL_J2258.1-2759_daily_bin485.fits
.....................!
real 189.94
user 185.01
sys 4.54

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/597158/ft1_filtered_4FGL_J2258.1-2759_daily_bin485.fits scfile=/scratch/kocevski/597158/ft2_4FGL_J2258.1-2759_daily_bin485.fits outfile=/scratch/kocevski/597158/cmap_365040001_365299201_4FGL_J2258.1-2759_daily_bin485.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597158/ft1_filtered_4FGL_J2258.1-2759_daily_bin485.fits scfile=/scratch/kocevski/597158/ft2_4FGL_J2258.1-2759_daily_bin485.fits outfile=/scratch/kocevski/597158/cmap_HighResolution_365040001_365299201_4FGL_J2258.1-2759_daily_bin485.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597158/ft1_filtered_4FGL_J2258.1-2759_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/597158/ft2_4FGL_J2258.1-2759_daily_bin485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597158/Model_4FGL_J2258.1-2759_daily_bin485.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/597158/ft1_filtered_4FGL_J2258.1-2759_daily_bin485.fits.....................!
real 57.71
user 56.40
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.340       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.544       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .49636       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.769       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.619       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18855E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    13.302       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4826       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.909       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97037       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91230       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7635.425     FROM MIGRAD    STATUS=FAILED       829 CALLS     3430 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57547        76.273        .49158E-02    .10041E-02
   2  Prefactor     .10004E-03    13.767        .32246E-02** at limit **
   3  norm          10.341        10.211        .62301E-03    .34020E-03
   4  Prefactor     30.543        18.654        .72498E-04   -.15584E-03
   5  Prefactor     .10000E-03    8.4537        .18142E-02** at limit **
   6  norm          .49632        1.4695        .17857E-03   -.86825E-03
   7  Prefactor     .10000E-03    22.039        .18142E-02** at limit **
   8  Prefactor     12.768        9.9098        .11210E-03   -.15983E-03
   9  norm          .10000E-03    2.1959        .12504E-02** at limit **
  10  Prefactor     .10000E-03    4.4960        .18079E-02** at limit **
  11  Prefactor     23.613        12.231        .82422E-04   -.54470E-03
  12  norm          2.5983        .97857        .37638E-04   -.16631E-02
  13  Prefactor     .10000E-03    12.866        .18142E-02** at limit **
  14  Prefactor     .10003E-03    7.9542        .62068E-01** at limit **
  15  norm          13.301        7.1223        .10983E-03   -.50722E-05
  16  Prefactor     .10000E-03    8.9373        .18142E-02** at limit **
  17  norm          .10000E-03    1.0214        .85176E-03** at limit **
  18  Prefactor     2.4667        40.487        .25946E-03   -.98983E-04
  19  Prefactor     .10000E-03    43.863        .18142E-02** at limit **
  20  Prefactor     28.909        34.623        .74513E-04   -.16630E-04
  21  Normalizat    .97046        .18699        .23751E-03   -.44682E-03
  22  Prefactor     .91224        .18012        .24328E-03   -.30716E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7635.425     FROM SIMPLEX   STATUS=UNCHANGED    982 CALLS     4412 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57547        76.273        .26993E-05   -1.5556    
   2  Prefactor     .10004E-03    13.767        .51381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.341        10.211        .58749E-06   -1.5065    
   4  Prefactor     30.543        18.654        .56757E-06   -1.4602    
   5  Prefactor     .10000E-03    8.4537        .45191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .49632        1.4695        .59240E-06   -1.5567    
   7  Prefactor     .10000E-03    22.039        .55725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.768        9.9098        .56671E-06   -1.4993    
   9  norm          .10000E-03    2.1959        .11740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4960        .25196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.613        12.231        .55865E-06   -1.4736    
  12  norm          2.5983        .97857        .58319E-06   -1.5386    
  13  Prefactor     .10000E-03    12.866        .70453E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    7.9542        .51761E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.301        7.1223        .56803E-06   -1.4978    
  16  Prefactor     .10000E-03    8.9373        .36825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0214        .33377E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4667        40.487        .57902E-06   -1.5394    
  19  Prefactor     .10000E-03    43.863        .48790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.909        34.623        .55147E-06   -1.4632    
  21  Normalizat    .97046        .18699        .35528E-06   -.94027    
  22  Prefactor     .91224        .18012        .36254E-06   -.95715    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7635.425     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     4747 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57556        76.956        .98316E-03    .40676E-04
   2  Prefactor     .10000E-03    13.931        .64493E-03** at limit **
   3  norm          10.340        10.211        .24920E-04    .19160E-05
   4  Prefactor     30.543        18.650        .14500E-04   -.24463E-04
   5  Prefactor     .10000E-03    8.4600        .36285E-03** at limit **
   6  norm          .49634        1.4692        .71430E-05    .16553E-04
   7  Prefactor     .10000E-03    22.040        .36285E-03** at limit **
   8  Prefactor     12.768        9.9082        .44839E-05    .60850E-05
   9  norm          .10000E-03    2.1966        .25007E-03** at limit **
  10  Prefactor     .10000E-03    4.4962        .36157E-03** at limit **
  11  Prefactor     23.613        12.241        .32969E-05    .25656E-03
  12  norm          2.5983        .97871        .15055E-05    .85167E-03
  13  Prefactor     .10000E-03    12.866        .36285E-03** at limit **
  14  Prefactor     .10002E-03    7.5319        .64684E-01** at limit **
  15  norm          13.301        7.1217        .43931E-05    .20703E-05
  16  Prefactor     .10000E-03    8.9374        .36285E-03** at limit **
  17  norm          .10000E-03    1.0216        .17035E-03** at limit **
  18  Prefactor     2.4669        40.455        .10378E-04    .19718E-05
  19  Prefactor     .10000E-03    43.865        .36285E-03** at limit **
  20  Prefactor     28.909        34.629        .29805E-05    .76286E-06
  21  Normalizat    .97046        .18711        .47502E-04    .23789E-04
  22  Prefactor     .91224        .18020        .48656E-04    .23692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.575564
  Prefactor  = 0.0001
  norm       = 10.3405
  Prefactor  = 30.5432
  Prefactor  = 0.0001
  norm       = 0.496342
  Prefactor  = 0.0001
  Prefactor  = 12.7679
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6133
  norm       = 2.59833
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 13.301
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.46689
  Prefactor  = 0.0001
  Prefactor  = 28.9087
  Normalizat = 0.970459
  Prefactor  = 0.912242
 **********
 **   18 **HESSE 
 **********

 FCN=   7635.425     FROM HESSE     STATUS=OK           332 CALLS     5079 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57556        76.840        .19663E-03   -1.5556    
   2  Prefactor     .10000E-03    13.938        .12899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.340        10.211        .49841E-05   -1.5065    
   4  Prefactor     30.543        18.649        .28999E-05   -1.4602    
   5  Prefactor     .10000E-03    8.4602        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .49634        1.4694        .14286E-05   -1.5567    
   7  Prefactor     .10000E-03    22.040        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.768        9.9109        .89679E-06   -1.4993    
   9  norm          .10000E-03    2.1966        .50014E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4962        .72315E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.613        12.253        .65937E-06   -1.4736    
  12  norm          2.5983        .97971        .36682E-06   -1.5386    
  13  Prefactor     .10000E-03    12.866        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    7.6374        .64003E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.301        7.1228        .87861E-06   -1.4978    
  16  Prefactor     .10000E-03    8.9374        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0216        .34071E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4669        40.261        .20757E-05   -1.5394    
  19  Prefactor     .10000E-03    43.866        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.909        34.369        .59611E-06   -1.4632    
  21  Normalizat    .97046        .18713        .95004E-05   -.94027    
  22  Prefactor     .91224        .18023        .97313E-05   -.95715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58548e-11
Minuit parameter uncertainties:
  1  13.3169
  2  2.48399e-05
  3  10.2129
  4  18.6528
  5  1.60512e-06
  6  1.46946
  7  6.62839e-06
  8  9.91216
  9  5.67879e-07
  10  6.22678e-07
  11  12.2539
  12  0.979714
  13  2.21645e-07
  14  0.000841656
  15  7.12324
  16  2.03948e-07
  17  1.16746e-07
  18  19.9474
  19  1.68718e-06
  20  34.3929
  21  0.187254
  22  0.180345
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.598e+00  9.797e-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.122e-01  1.803e-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:  9.705e-01  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.13
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 5.55e-08
Energy Flux (Fixed Index): 5.55e-05 +/- 2.09e-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) = 7634.66129994
delta logL = 0.763465934672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7634.66031386
delta logL = 0.764452019106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0608       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6839       1.0000          .0000       5.0000    
     3 'Normalizat'    .92569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94053       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=   7634.660     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      216 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0608        6.6988        .69921E-02    .36930E-03
   2  alpha         2.6837        3.6370        .16679        .82408E-04
   3  Normalizat    .92576        .85434E-01    .45229E-01    .15881E-04
   4  Prefactor     .94046        .68849E-01    .45520E-01    .11726E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0608
  alpha      = 2.68373
  Normalizat = 0.925762
  Prefactor  = 0.940458
 **********
 **   18 **HESSE 
 **********

 FCN=   7634.660     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0608        .80313        .31028E-04   -1.5421    
   2  alpha         2.6837        .33915        .70273E-02    .73556E-01
   3  Normalizat    .92576        .18050        .24193E-03   -.95561    
   4  Prefactor     .94046        .17799        .23982E-03   -.94741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26553e-12
Minuit parameter uncertainties:
  1  0.803131
  2  0.340205
  3  0.180618
  4  0.178098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597158': 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) = 7634.66031343
delta logL = 0.76445245283

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.061e+00  8.031e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.684e+00  3.402e-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.405e-01  1.781e-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:  9.258e-01  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.05
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.68 +/- 0.34
Photon Flux (Free Index): 1.90e-07 +/- 5.79e-08
Energy Flux (Free Index): 5.21e-05 +/- 1.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/597158/cmap_HighResolution_365040001_365299201_4FGL_J2258.1-2759_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='5.21e-05', photon_flux_error='5.55e-08', dlogl='7.64e-01', energy_flux='5.55e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-29 03:16:47.343105', photon_index_error2='0.34', photon_index2='2.68', ts='25.13', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.97', time_epoch_completed='1632910607.34', return_code='0', job_id='597158', GAL2='0.94', EG2='0.93', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='5.79e-08', ts2='28.05', photon_index='2.29' WHERE bin_id='485' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 597158: <4FGL_J2258.1-2759_daily_bin485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin485 344.529 -27.9843 365040001 365299201 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 :                                   838.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

