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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin219
RA = 344.529, Dec = -27.9843
tmin = 296092801, tmax = 296352001
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='595825', job_status='RUN', time_executed='2021-09-29 02:59:47.620775', time_epoch_executed='1632909587.62' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595825/ft1_4FGL_J2258.1-2759_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595825/ft2_4FGL_J2258.1-2759_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595825/ft1_4FGL_J2258.1-2759_daily_bin219.fits outfile=/scratch/kocevski/595825/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin219.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=296092801.0 tmax=296352001.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 2.39
user 2.20
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595825/ft1_filtered_4FGL_J2258.1-2759_daily_bin219.fits" evtable="EVENTS" scfile=/scratch/kocevski/595825/ft2_4FGL_J2258.1-2759_daily_bin219.fits sctable="SC_DATA" outfile=/scratch/kocevski/595825/ltcube_296092801_296352001_4FGL_J2258.1-2759_daily_bin219.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/595825/ft2_4FGL_J2258.1-2759_daily_bin219.fits
.....................!
real 12.05
user 11.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595825/ft1_filtered_4FGL_J2258.1-2759_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/595825/ft2_4FGL_J2258.1-2759_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/595825/ltcube_296092801_296352001_4FGL_J2258.1-2759_daily_bin219.fits outfile=/scratch/kocevski/595825/expmap_296092801_296352001_4FGL_J2258.1-2759_daily_bin219.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/595825/ltcube_296092801_296352001_4FGL_J2258.1-2759_daily_bin219.fits
.....................!
real 190.19
user 185.56
sys 4.27

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/595825/ft1_filtered_4FGL_J2258.1-2759_daily_bin219.fits scfile=/scratch/kocevski/595825/ft2_4FGL_J2258.1-2759_daily_bin219.fits outfile=/scratch/kocevski/595825/cmap_296092801_296352001_4FGL_J2258.1-2759_daily_bin219.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595825/ft1_filtered_4FGL_J2258.1-2759_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/595825/ft2_4FGL_J2258.1-2759_daily_bin219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595825/Model_4FGL_J2258.1-2759_daily_bin219.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/595825/ft1_filtered_4FGL_J2258.1-2759_daily_bin219.fits.....................!
real 49.33
user 47.92
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.982       1.0000         .10000E-03   10000.    
     3 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.730       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.631       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12323E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2331       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1155       1.0000         .10000E-03   10000.    
    12 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.684       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25587       1.0000         .10000E-03   10000.    
    15 'norm      '    .10495E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2446       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.823       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1633       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .62852       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=   6414.670     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2413 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1458        .44423E-06** at limit **
   2  Prefactor     12.985        8.0772       -.31189E-08    .58820E-04
   3  norm          .10000E-03    7.1888        .47803E-06** at limit **
   4  Prefactor     27.733        17.425       -.30349E-07   -.55785E-05
   5  Prefactor     16.631        10.537       -.69089E-06   -.32185E-03
   6  norm          .10000E-03    .51242        .12529E-06** at limit **
   7  Prefactor     .10000E-03    13.599       -.78768E-06** at limit **
   8  Prefactor     .10000E-03    11.286        .23221E-05** at limit **
   9  norm          4.2342        2.9823       -.39768E-06   -.87026E-03
  10  Prefactor     .10000E-03    3.7370        .16543E-06** at limit **
  11  Prefactor     1.1069        4.3212        .20843E-05   -.56633E-03
  12  norm          .10000E-03    .33759        .61683E-06** at limit **
  13  Prefactor     22.733        33.772       -.50617E-05   -.34842E-03
  14  Prefactor     .28280        8.5486       -.22633E-05    .20034E-03
  15  norm          .10001E-03    6.2754       -.99779E-06** at limit **
  16  Prefactor     .10000E-03    15.707        .15366E-05** at limit **
  17  norm          3.2450        3.0989       -.16875E-06   -.27738E-03
  18  Prefactor     41.808        31.175       -.90533E-06   -.13010E-03
  19  Prefactor     .10000E-03    41.264       -.35096E-06** at limit **
  20  Prefactor     37.839        33.411       -.13384E-05   -.16522E-03
  21  Normalizat    1.1631        .17208        .18255E-05   -.32767E-03
  22  Prefactor     .62870        .15717       -.22482E-05   -.25842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.9848
  norm       = 0.0001
  Prefactor  = 27.7335
  Prefactor  = 16.6314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.23417
  Prefactor  = 0.0001
  Prefactor  = 1.10691
  norm       = 0.000100001
  Prefactor  = 22.7333
  Prefactor  = 0.282798
  norm       = 0.000100006
  Prefactor  = 0.000100001
  norm       = 3.24501
  Prefactor  = 41.8081
  Prefactor  = 0.0001
  Prefactor  = 37.8392
  Normalizat = 1.16314
  Prefactor  = 0.628696
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.670     FROM HESSE     STATUS=OK           344 CALLS     2757 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1669        .17759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.985        8.0879        .11117E-03   -1.4987    
   3  norm          .10000E-03    7.2170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.733        17.421        .76078E-04   -1.4654    
   5  Prefactor     16.631        10.558        .98212E-04   -1.4892    
   6  norm          .10000E-03    .51716        .56034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.852        .33902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2342        3.0184        .10859E-03   -1.5296    
  10  Prefactor     .10000E-03    3.7434        .15116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1069        9.1743        .17356E-02   -1.5498    
  12  norm          .10000E-03    .57852        .70064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.733        35.105        .84100E-04   -1.4754    
  14  Prefactor     .28280        57.086        .37079E-02   -1.5602    
  15  norm          .10001E-03    20.112        .32587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2450        3.0831        .12804E-03   -1.5348    
  18  Prefactor     41.808        31.184        .62007E-04   -1.4414    
  19  Prefactor     .10000E-03    41.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.839        33.562        .65169E-04   -1.4477    
  21  Normalizat    1.1631        .19496        .20430E-03   -.87750    
  22  Prefactor     .62870        .18093        .26465E-03   -1.0639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76067e-09
Minuit parameter uncertainties:
  1  3.66995e-05
  2  8.08856
  3  4.86842e-05
  4  17.4237
  5  10.5587
  6  3.72714e-06
  7  0.000101071
  8  0.000290079
  9  3.01848
  10  8.98154e-06
  11  6.37445
  12  4.73269e-05
  13  35.1364
  14  8.04223
  15  0.000677093
  16  0.000218684
  17  3.08329
  18  31.1966
  19  7.51851e-05
  20  33.5789
  21  0.19508
  22  0.181097
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  4.733e-05  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:  6.287e-01  1.811e-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.163e+00  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.529 -27.984
Photon Flux Upper Limit: 4.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595825/likelihoodResults_296092801_296352001_4FGL_J2258.1-2759_daily_bin219.txt

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) = 6414.67865016
delta logL = -0.00864764485141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.67000155
delta logL = 9.59680619417e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3025       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62869       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=   6414.543     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      311 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50009E-02    .94427E-02    .25355E-02   -.16921E-01
   2  alpha         5.0000        4.4737        .41315    ** at limit **
   3  Normalizat    1.1377        .15923        .35866E-01    .19872E-03
   4  Prefactor     .64394        .15464        .41444E-01    .21575E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00500087
  alpha      = 5
  Normalizat = 1.13772
  Prefactor  = 0.643941
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.543     FROM HESSE     STATUS=OK            35 CALLS      346 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50009E-02    .11003E-01    .10545E-03   -1.5722    
   2  alpha         5.0000        4.4695        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1377        .19000        .20625E-03   -.88550    
   4  Prefactor     .64394        .18162        .26150E-03   -1.0577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40049e-11
Minuit parameter uncertainties:
  1  0.0110033
  2  8.84611e-05
  3  0.190119
  4  0.181784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595825': 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) = 6414.5434322
delta logL = 0.126570314589

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  5.001e-03  1.100e-02  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  5.000e+00  8.846e-05  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:  6.439e-01  1.818e-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.138e+00  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.529 -27.984

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/595825/cmap_HighResolution_296092801_296352001_4FGL_J2258.1-2759_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='4.46e-08', time_completed='2021-09-29 03:10:34.021716', job_id='595825', GAL2='0.64', fit_tolerance='1e-08', EG2='1.14', EG='1.16', time_epoch_completed='1632910234.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.27e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='219' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:10:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 595825: <4FGL_J2258.1-2759_daily_bin219> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin219> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:55:51 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:55:53 2021
Terminated at Wed Sep 29 03:10:34 2021
Results reported at Wed Sep 29 03:10:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin219 344.529 -27.9843 296092801 296352001 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 :                                   643.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             279.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

