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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin443
RA = 344.529, Dec = -27.9843
tmin = 354153601, tmax = 354412801
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='597092', job_status='RUN', time_executed='2021-09-29 03:04:03.338432', time_epoch_executed='1632909843.34' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597092/ft1_4FGL_J2258.1-2759_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597092/ft2_4FGL_J2258.1-2759_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597092/ft1_4FGL_J2258.1-2759_daily_bin443.fits outfile=/scratch/kocevski/597092/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin443.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=354153601.0 tmax=354412801.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.92
user 3.70
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597092/ft2_4FGL_J2258.1-2759_daily_bin443.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/597092/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin443.fits evtable="EVENTS" outfile="/scratch/kocevski/597092/ft1_filtered_4FGL_J2258.1-2759_daily_bin443.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597092/ft1_filtered_4FGL_J2258.1-2759_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/597092/ft2_4FGL_J2258.1-2759_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/597092/ltcube_354153601_354412801_4FGL_J2258.1-2759_daily_bin443.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/597092/ft2_4FGL_J2258.1-2759_daily_bin443.fits
.....................!
real 11.91
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597092/ft1_filtered_4FGL_J2258.1-2759_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/597092/ft2_4FGL_J2258.1-2759_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/597092/ltcube_354153601_354412801_4FGL_J2258.1-2759_daily_bin443.fits outfile=/scratch/kocevski/597092/expmap_354153601_354412801_4FGL_J2258.1-2759_daily_bin443.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/597092/ltcube_354153601_354412801_4FGL_J2258.1-2759_daily_bin443.fits
.....................!
real 189.78
user 185.42
sys 4.02

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/597092/ft1_filtered_4FGL_J2258.1-2759_daily_bin443.fits scfile=/scratch/kocevski/597092/ft2_4FGL_J2258.1-2759_daily_bin443.fits outfile=/scratch/kocevski/597092/cmap_354153601_354412801_4FGL_J2258.1-2759_daily_bin443.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597092/ft1_filtered_4FGL_J2258.1-2759_daily_bin443.fits scfile=/scratch/kocevski/597092/ft2_4FGL_J2258.1-2759_daily_bin443.fits outfile=/scratch/kocevski/597092/cmap_HighResolution_354153601_354412801_4FGL_J2258.1-2759_daily_bin443.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/597092/ft1_filtered_4FGL_J2258.1-2759_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/597092/ft2_4FGL_J2258.1-2759_daily_bin443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597092/Model_4FGL_J2258.1-2759_daily_bin443.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/597092/ft1_filtered_4FGL_J2258.1-2759_daily_bin443.fits.....................!
real 42.75
user 41.35
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.0962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.123       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3524       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.740       1.0000         .10000E-03   10000.    
     9 'norm      '    5.5639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11810E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.026       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1617       1.0000         .10000E-03   10000.    
    13 'Prefactor '    125.74       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11751E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0590       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71402       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1661       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=   5230.270     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2340 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.634        .17163E-05** at limit **
   2  Prefactor     .10000E-03    2.4133        .48317E-08** at limit **
   3  norm          9.0964        25.600       -.21624E-05   -.31260E-03
   4  Prefactor     18.110        25.522       -.51314E-05   -.60371E-05
   5  Prefactor     .10000E-03    9.7045       -.49739E-07** at limit **
   6  norm          5.3531        3.1941       -.12869E-06   -.98800E-03
   7  Prefactor     .10000E-03    90.284       -.49819E-04** at limit **
   8  Prefactor     35.740        16.317        .23830E-06    .39702E-04
   9  norm          5.5638        5.2874        .51645E-06    .33481E-04
  10  Prefactor     .10000E-03    14.487       -.43101E-05** at limit **
  11  Prefactor     39.035        16.271       -.76260E-06    .29676E-03
  12  norm          1.1609        .90439        .75162E-07    .83859E-04
  13  Prefactor     125.74        67.774       -.89593E-06    .35506E-05
  14  Prefactor     .10000E-03    20.711        .22328E-05** at limit **
  15  norm          5.0590        5.6352        .21501E-05   -.68850E-04
  16  Prefactor     .10000E-03    27.572       -.92271E-05** at limit **
  17  norm          4.6236        3.9379       -.15509E-06   -.32203E-03
  18  Prefactor     .10000E-03    12.367        .12876E-05** at limit **
  19  Prefactor     .10000E-03    72.110        .45781E-04** at limit **
  20  Prefactor     .10000E-03    20.415        .42867E-05** at limit **
  21  Normalizat    .71422        .20614        .12206E-05    .47421E-04
  22  Prefactor     1.1659        .19482       -.11298E-06    .10361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.09643
  Prefactor  = 18.1101
  Prefactor  = 0.0001
  norm       = 5.35306
  Prefactor  = 0.0001
  Prefactor  = 35.7398
  norm       = 5.56375
  Prefactor  = 0.0001
  Prefactor  = 39.0354
  norm       = 1.16092
  Prefactor  = 125.743
  Prefactor  = 0.0001
  norm       = 5.05902
  Prefactor  = 0.0001
  norm       = 4.62358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.714223
  Prefactor  = 1.16593
 **********
 **   18 **HESSE 
 **********

 FCN=   5230.270     FROM HESSE     STATUS=OK           340 CALLS     2680 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4171        .10971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.0964        25.741        .66444E-03   -1.5105    
   4  Prefactor     18.110        25.553        .94081E-04   -1.4857    
   5  Prefactor     .10000E-03    9.7481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3531        3.1919        .47420E-03   -1.5245    
   7  Prefactor     .10000E-03    89.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.740        16.335        .67035E-04   -1.4512    
   9  norm          5.5638        5.2723        .14737E-03   -1.5236    
  10  Prefactor     .10000E-03    14.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.035        16.192        .64161E-04   -1.4458    
  12  norm          1.1609        .88074        .49872E-04   -1.5492    
  13  Prefactor     125.74        67.799        .35898E-04   -1.3461    
  14  Prefactor     .10000E-03    21.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0590        5.6240        .17601E-03   -1.5258    
  16  Prefactor     .10000E-03    27.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6236        3.9373        .12618E-03   -1.5278    
  18  Prefactor     .10000E-03    12.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    71.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71422        .24908        .29877E-03   -1.0333    
  22  Prefactor     1.1659        .23619        .23523E-03   -.87386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91079e-10
Minuit parameter uncertainties:
  1  5.39054e-06
  2  4.35199e-06
  3  25.7725
  4  25.5687
  5  1.32483e-05
  6  3.19201
  7  0.000357511
  8  16.3366
  9  5.27273
  10  2.38276e-05
  11  16.1942
  12  0.880752
  13  67.8409
  14  5.51532e-05
  15  5.62463
  16  2.53083e-05
  17  3.93752
  18  3.04e-06
  19  5.24166e-05
  20  5.36006e-06
  21  0.249473
  22  0.2364
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.161e+00  8.808e-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.166e+00  2.364e-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.142e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 6.57e-08 +/- 4.99e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.88e-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) = 5230.17332694
delta logL = 0.0970347430748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5230.17183573
delta logL = 0.0985259550671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1563       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9500       1.0000          .0000       5.0000    
     3 'Normalizat'    .72958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1584       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=   5230.172     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      229 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1558        24.806        .10732E-01    .18934E-03
   2  alpha         1.9494        3.3634        .42486       -.10299E-04
   3  Normalizat    .72990        .17442        .66913E-01    .20021E-04
   4  Prefactor     1.1581        .11010        .53389E-01    .30189E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15582
  alpha      = 1.94945
  Normalizat = 0.729898
  Prefactor  = 1.15808
 **********
 **   18 **HESSE 
 **********

 FCN=   5230.172     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1558        .80604        .51737E-04   -1.5493    
   2  alpha         1.9494        .73682        .17538E-01   -.22204    
   3  Normalizat    .72990        .23520        .29607E-03   -1.0272    
   4  Prefactor     1.1581        .23160        .23604E-03   -.87631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71765e-13
Minuit parameter uncertainties:
  1  0.806051
  2  0.748521
  3  0.235527
  4  0.231799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597092': 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) = 5230.17183449
delta logL = 0.0985272021126

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.156e+00  8.061e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  1.949e+00  7.485e-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.158e+00  2.318e-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.299e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.01
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 1.95 +/- 0.75
Photon Flux (Free Index): 4.63e-08 +/- 4.95e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.78e-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/597092/cmap_HighResolution_354153601_354412801_4FGL_J2258.1-2759_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.57e-08', energy_flux2='2.56e-05', photon_flux_error='4.99e-08', dlogl='9.85e-02', energy_flux='2.48e-05', photon_flux2='4.63e-08', job_status='DONE', time_completed='2021-09-29 03:12:45.116764', photon_index_error2='0.75', photon_index2='1.95', ts='4.66', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.71', time_epoch_completed='1632910365.12', return_code='0', job_id='597092', GAL2='1.16', EG2='0.73', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='4.95e-08', ts2='5.01', photon_index='2.29' WHERE bin_id='443' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:12:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 597092: <4FGL_J2258.1-2759_daily_bin443> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin443> 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) <bullet0264>, 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:45 2021
Results reported at Wed Sep 29 03:12:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin443 344.529 -27.9843 354153601 354412801 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 :                                   520.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            737 sec.

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

