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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin409
RA = 344.529, Dec = -27.9843
tmin = 345340801, tmax = 345600001
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='597040', job_status='RUN', time_executed='2021-09-29 03:03:07.976100', time_epoch_executed='1632909787.98' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597040

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597040/ft1_4FGL_J2258.1-2759_daily_bin409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597040/ft2_4FGL_J2258.1-2759_daily_bin409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597040/ft1_4FGL_J2258.1-2759_daily_bin409.fits outfile=/scratch/kocevski/597040/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin409.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=345340801.0 tmax=345600001.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.40
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597040/ft1_filtered_4FGL_J2258.1-2759_daily_bin409.fits" evtable="EVENTS" scfile=/scratch/kocevski/597040/ft2_4FGL_J2258.1-2759_daily_bin409.fits sctable="SC_DATA" outfile=/scratch/kocevski/597040/ltcube_345340801_345600001_4FGL_J2258.1-2759_daily_bin409.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/597040/ft2_4FGL_J2258.1-2759_daily_bin409.fits
.....................!
real 12.08
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597040/ft1_filtered_4FGL_J2258.1-2759_daily_bin409.fits evtable="EVENTS" scfile=/scratch/kocevski/597040/ft2_4FGL_J2258.1-2759_daily_bin409.fits sctable="SC_DATA" expcube=/scratch/kocevski/597040/ltcube_345340801_345600001_4FGL_J2258.1-2759_daily_bin409.fits outfile=/scratch/kocevski/597040/expmap_345340801_345600001_4FGL_J2258.1-2759_daily_bin409.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/597040/ltcube_345340801_345600001_4FGL_J2258.1-2759_daily_bin409.fits
.....................!
real 190.36
user 185.20
sys 4.84

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/597040/ft1_filtered_4FGL_J2258.1-2759_daily_bin409.fits scfile=/scratch/kocevski/597040/ft2_4FGL_J2258.1-2759_daily_bin409.fits outfile=/scratch/kocevski/597040/cmap_345340801_345600001_4FGL_J2258.1-2759_daily_bin409.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597040/ft1_filtered_4FGL_J2258.1-2759_daily_bin409.fits scfile=/scratch/kocevski/597040/ft2_4FGL_J2258.1-2759_daily_bin409.fits outfile=/scratch/kocevski/597040/cmap_HighResolution_345340801_345600001_4FGL_J2258.1-2759_daily_bin409.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.58
user 0.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597040/ft1_filtered_4FGL_J2258.1-2759_daily_bin409.fits evtable="EVENTS" scfile=/scratch/kocevski/597040/ft2_4FGL_J2258.1-2759_daily_bin409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597040/Model_4FGL_J2258.1-2759_daily_bin409.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/597040/ft1_filtered_4FGL_J2258.1-2759_daily_bin409.fits.....................!
real 41.92
user 40.60
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4592       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32218E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.042       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72860       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    68.855       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    23.485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .36665       1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.806       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0168       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5248       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.624       1.0000         .10000E-03   10000.    
    17 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    101.70       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.028       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .68530       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96569       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=   5046.756     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2433 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4558        19.617        .42421E-06   -.40433E-04
   2  Prefactor     .10042E-03    8.3492       -.50896E-05** at limit **
   3  norm          .10000E-03    7.0394       -.37638E-06** at limit **
   4  Prefactor     14.033        23.706       -.28094E-05    .34005E-04
   5  Prefactor     .66830        81.050       -.38304E-04   -.18077E-03
   6  norm          .10000E-03    1.1166       -.38577E-06** at limit **
   7  Prefactor     68.870        53.231        .38374E-05   -.32699E-03
   8  Prefactor     .10000E-03    8.1709       -.40074E-06** at limit **
   9  norm          23.486        6.2218        .67183E-07    .60210E-03
  10  Prefactor     .10000E-03    23.523       -.17822E-05** at limit **
  11  Prefactor     .10048E-03    17.306        .10248E-04** at limit **
  12  norm          .36674        .39770        .51287E-06    .30162E-02
  13  Prefactor     66.786        64.930        .53787E-05   -.91731E-04
  14  Prefactor     5.0190        7.7313        .13594E-05    .33614E-03
  15  norm          3.5243        5.6637       -.85310E-06    .34177E-03
  16  Prefactor     24.619        31.115        .39638E-06   -.17432E-04
  17  norm          .10000E-03    1.9140       -.57570E-06** at limit **
  18  Prefactor     .10000E-03    18.323        .61118E-07** at limit **
  19  Prefactor     101.69        81.611        .24275E-05   -.43648E-04
  20  Prefactor     41.026        39.684        .25123E-06   -.18068E-04
  21  Normalizat    .68527        .18251        .30037E-05   -.31725E-03
  22  Prefactor     .96578        .17577        .27353E-06   -.33855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.45582
  Prefactor  = 0.000100418
  norm       = 0.0001
  Prefactor  = 14.0332
  Prefactor  = 0.668301
  norm       = 0.0001
  Prefactor  = 68.8697
  Prefactor  = 0.0001
  norm       = 23.4862
  Prefactor  = 0.0001
  Prefactor  = 0.000100478
  norm       = 0.36674
  Prefactor  = 66.7859
  Prefactor  = 5.01903
  norm       = 3.52426
  Prefactor  = 24.6195
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.686
  Prefactor  = 41.0264
  Normalizat = 0.685269
  Prefactor  = 0.965777
 **********
 **   18 **HESSE 
 **********

 FCN=   5046.756     FROM HESSE     STATUS=OK           358 CALLS     2791 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4558        19.604        .15792E-03   -1.5200    
   2  Prefactor     .10042E-03    9.1011        .54445E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.0413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.033        23.661        .10689E-03   -1.4959    
   5  Prefactor     .66830        97.999        .47839E-02   -1.5544    
   6  norm          .10000E-03    1.1290        .73261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     68.870        54.221        .48373E-04   -1.4046    
   8  Prefactor     .10000E-03    8.3135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          23.486        6.3022        .82657E-04   -1.4738    
  10  Prefactor     .10000E-03    23.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10048E-03    11.461        .48358E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .36674        .39653        .42423E-04   -1.5587    
  13  Prefactor     66.786        65.223        .49104E-04   -1.4072    
  14  Prefactor     5.0190        7.7983        .17953E-03   -1.5260    
  15  norm          3.5243        5.6416        .20602E-03   -1.5332    
  16  Prefactor     24.619        31.211        .80724E-04   -1.4715    
  17  norm          .10000E-03    3.7813        .18968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     101.69        81.788        .39869E-04   -1.3688    
  20  Prefactor     41.026        39.706        .62581E-04   -1.4426    
  21  Normalizat    .68527        .21920        .25137E-03   -1.0448    
  22  Prefactor     .96578        .21115        .21765E-03   -.93879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10748e-09
Minuit parameter uncertainties:
  1  19.6233
  2  0.00390224
  3  1.65765e-05
  4  23.6767
  5  16.2114
  6  2.4104e-05
  7  54.2602
  8  5.26329e-05
  9  6.30242
  10  0.000113637
  11  0.0046801
  12  0.396531
  13  65.2926
  14  7.79986
  15  5.64249
  16  31.2318
  17  5.12903e-05
  18  0.00010119
  19  81.8793
  20  39.7316
  21  0.219479
  22  0.211332
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  3.667e-01  3.965e-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.658e-01  2.113e-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:  6.853e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 7.84e-06 +/- 8.47e-06

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

Saving results to:
/scratch/kocevski/597040/likelihoodResults_345340801_345600001_4FGL_J2258.1-2759_daily_bin409.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) = 5046.68256617
delta logL = 0.073748958891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5046.68185484
delta logL = 0.0744602861278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37870       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9072       1.0000          .0000       5.0000    
     3 'Normalizat'    .69099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96279       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=   5046.682     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      195 TOTAL
                     EDM=   .52E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37870        18.550        .99272E-02   -.77362E-04
   2  alpha         1.9069        4.0075        .42719       -.13921E-05
   3  Normalizat    .69102        .96888E-01    .42170E-01    .18226E-04
   4  Prefactor     .96276        .83057E-01    .45800E-01    .55907E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.378697
  alpha      = 1.90695
  Normalizat = 0.691016
  Prefactor  = 0.962762
 **********
 **   18 **HESSE 
 **********

 FCN=   5046.682     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37870        .39321        .44245E-04   -1.5585    
   2  alpha         1.9069        .96018        .24193E-01   -.23950    
   3  Normalizat    .69102        .20466        .25045E-03   -1.0425    
   4  Prefactor     .96276        .20855        .21799E-03   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18601e-12
Minuit parameter uncertainties:
  1  0.393217
  2  0.987134
  3  0.204889
  4  0.208721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597040': 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) = 5046.6818548
delta logL = 0.074460320362

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  3.787e-01  3.932e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  1.907e+00  9.871e-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.628e-01  2.087e-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:  6.910e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 1.91 +/- 0.99
Photon Flux (Free Index): 1.46e-08 +/- 2.08e-08
Energy Flux (Free Index): 8.53e-06 +/- 9.23e-06

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/597040/cmap_HighResolution_345340801_345600001_4FGL_J2258.1-2759_daily_bin409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='8.53e-06', photon_flux_error='2.24e-08', dlogl='7.45e-02', energy_flux='7.84e-06', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-09-29 03:12:37.374336', photon_index_error2='0.99', photon_index2='1.91', ts='2.71', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.84e-08', energy_flux_error2='9.23e-06', EG='0.69', time_epoch_completed='1632910357.37', return_code='0', job_id='597040', GAL2='0.96', EG2='0.69', return_code2='0', energy_flux_error='8.47e-06', photon_flux_error2='2.08e-08', ts2='2.88', photon_index='2.29' WHERE bin_id='409' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:12:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 597040: <4FGL_J2258.1-2759_daily_bin409> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin409 344.529 -27.9843 345340801 345600001 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 :                                   567.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

