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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin395
RA = 344.529, Dec = -27.9843
tmin = 341712001, tmax = 341971201
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='597019', job_status='RUN', time_executed='2021-09-29 03:03:34.681719', time_epoch_executed='1632909814.68' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597019/ft1_4FGL_J2258.1-2759_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597019/ft2_4FGL_J2258.1-2759_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597019/ft1_4FGL_J2258.1-2759_daily_bin395.fits outfile=/scratch/kocevski/597019/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin395.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=341712001.0 tmax=341971201.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.42
user 3.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597019/ft1_filtered_4FGL_J2258.1-2759_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/597019/ft2_4FGL_J2258.1-2759_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/597019/ltcube_341712001_341971201_4FGL_J2258.1-2759_daily_bin395.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/597019/ft2_4FGL_J2258.1-2759_daily_bin395.fits
.....................!
real 12.00
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597019/ft1_filtered_4FGL_J2258.1-2759_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/597019/ft2_4FGL_J2258.1-2759_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/597019/ltcube_341712001_341971201_4FGL_J2258.1-2759_daily_bin395.fits outfile=/scratch/kocevski/597019/expmap_341712001_341971201_4FGL_J2258.1-2759_daily_bin395.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/597019/ltcube_341712001_341971201_4FGL_J2258.1-2759_daily_bin395.fits
.....................!
real 190.40
user 185.25
sys 4.72

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/597019/ft1_filtered_4FGL_J2258.1-2759_daily_bin395.fits scfile=/scratch/kocevski/597019/ft2_4FGL_J2258.1-2759_daily_bin395.fits outfile=/scratch/kocevski/597019/cmap_341712001_341971201_4FGL_J2258.1-2759_daily_bin395.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597019/ft1_filtered_4FGL_J2258.1-2759_daily_bin395.fits scfile=/scratch/kocevski/597019/ft2_4FGL_J2258.1-2759_daily_bin395.fits outfile=/scratch/kocevski/597019/cmap_HighResolution_341712001_341971201_4FGL_J2258.1-2759_daily_bin395.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597019/ft1_filtered_4FGL_J2258.1-2759_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/597019/ft2_4FGL_J2258.1-2759_daily_bin395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597019/Model_4FGL_J2258.1-2759_daily_bin395.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/597019/ft1_filtered_4FGL_J2258.1-2759_daily_bin395.fits.....................!
real 52.44
user 51.12
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1231       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.0388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.714       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.298       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.579       1.0000         .10000E-03   10000.    
     9 'norm      '    5.7716       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56377       1.0000         .10000E-03   10000.    
    12 'norm      '    .41376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.532       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9234       1.0000         .10000E-03   10000.    
    15 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.129       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21975E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60415       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98201       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=   6958.739     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2374 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1233        9.4899        .25266E-05    .46886E-03
   2  Prefactor     .10000E-03    5.2275       -.35616E-07** at limit **
   3  norm          9.0412        16.271       -.41441E-06   -.64379E-05
   4  Prefactor     .10000E-03    4.9449       -.78245E-08** at limit **
   5  Prefactor     15.720        10.806       -.72381E-06   -.52478E-04
   6  norm          2.2386        1.5514       -.24231E-06   -.22282E-03
   7  Prefactor     29.261        34.407        .49539E-05    .33201E-03
   8  Prefactor     13.578        8.4924       -.98121E-07   -.10270E-03
   9  norm          5.7605        3.3078       -.12168E-06   -.17362E-03
  10  Prefactor     .10000E-03    2.9088        .38934E-07** at limit **
  11  Prefactor     .65778        8.8886        .35198E-05   -.10183E-02
  12  norm          .41171        .40155       -.10834E-06   -.16697E-02
  13  Prefactor     33.546        33.099       -.14145E-05   -.13784E-03
  14  Prefactor     4.9130        4.8672       -.58680E-07   -.92324E-04
  15  norm          .10000E-03    3.5235        .15433E-06** at limit **
  16  Prefactor     38.144        34.795       -.14649E-05   -.15419E-03
  17  norm          2.1559        2.0245        .23231E-07    .75889E-04
  18  Prefactor     .10000E-03    42.337       -.47013E-06** at limit **
  19  Prefactor     .10000E-03    14.669       -.44537E-07** at limit **
  20  Prefactor     .10000E-03    10.652       -.15863E-06** at limit **
  21  Normalizat    .60336        .14123        .39528E-06   -.51186E-05
  22  Prefactor     .98261        .13606       -.27339E-06    .26308E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12329
  Prefactor  = 0.0001
  norm       = 9.04121
  Prefactor  = 0.0001
  Prefactor  = 15.7204
  norm       = 2.23859
  Prefactor  = 29.261
  Prefactor  = 13.5779
  norm       = 5.7605
  Prefactor  = 0.0001
  Prefactor  = 0.657781
  norm       = 0.411715
  Prefactor  = 33.5461
  Prefactor  = 4.91299
  norm       = 0.0001
  Prefactor  = 38.1443
  norm       = 2.15592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.603362
  Prefactor  = 0.982608
 **********
 **   18 **HESSE 
 **********

 FCN=   6958.739     FROM HESSE     STATUS=OK           348 CALLS     2722 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1233        9.7757        .11471E-02   -1.5354    
   2  Prefactor     .10000E-03    5.4015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.0412        16.260        .13331E-03   -1.5107    
   4  Prefactor     .10000E-03    4.9548        .18116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.720        10.844        .10104E-03   -1.4915    
   6  norm          2.2386        1.5592        .79880E-04   -1.5409    
   7  Prefactor     29.261        36.403        .74018E-04   -1.4626    
   8  Prefactor     13.578        8.4877        .10870E-03   -1.4971    
   9  norm          5.7605        3.3564        .10275E-03   -1.5228    
  10  Prefactor     .10000E-03    2.9098        .13887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .65778        22.865        .24575E-02   -1.5546    
  12  norm          .41171        .40440        .42530E-03   -1.5580    
  13  Prefactor     33.546        33.197        .69200E-04   -1.4549    
  14  Prefactor     4.9130        4.8956        .16826E-03   -1.5265    
  15  norm          .10000E-03    3.5802        .15288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.144        35.073        .64908E-04   -1.4472    
  17  norm          2.1559        2.0138        .11044E-03   -1.5414    
  18  Prefactor     .10000E-03    43.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .60336        .16800        .24705E-03   -1.0784    
  22  Prefactor     .98261        .16231        .20265E-03   -.93312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20968e-09
Minuit parameter uncertainties:
  1  9.78065
  2  9.49641e-06
  3  16.2683
  4  1.48636e-07
  5  10.8454
  6  1.55927
  7  36.4304
  8  8.48848
  9  3.35648
  10  6.91946e-06
  11  7.75891
  12  0.404406
  13  33.2157
  14  4.89604
  15  1.76017e-05
  16  35.0915
  17  2.01382
  18  0.000121925
  19  5.90135e-06
  20  1.54858e-05
  21  0.168141
  22  0.162394
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  4.117e-01  4.044e-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.826e-01  1.624e-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.034e-01  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.20
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 8.80e-06 +/- 8.64e-06

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

Saving results to:
/scratch/kocevski/597019/likelihoodResults_341712001_341971201_4FGL_J2258.1-2759_daily_bin395.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) = 6958.63674192
delta logL = 0.102529901357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6958.63412246
delta logL = 0.105149363379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39957       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7125       1.0000          .0000       5.0000    
     3 'Normalizat'    .61545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6958.634     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      241 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39944        .36388        .44304E-03   -.25009E-02
   2  alpha         1.7126        1.0486        .28201E-01   -.50272E-04
   3  Normalizat    .61543        .15299        .24490E-03   -.82288E-03
   4  Prefactor     .97576        .15766        .20332E-03   -.10214E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.399442
  alpha      = 1.7126
  Normalizat = 0.615426
  Prefactor  = 0.975755
 **********
 **   18 **HESSE 
 **********

 FCN=   6958.634     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39944        .37077        .17722E-04   -1.5582    
   2  alpha         1.7126        1.0673        .11280E-02   -.32041    
   3  Normalizat    .61543        .15307        .48979E-04   -1.0733    
   4  Prefactor     .97576        .15777        .40664E-04   -.93542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37191e-09
Minuit parameter uncertainties:
  1  0.370768
  2  1.10702
  3  0.153171
  4  0.15784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597019': 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) = 6958.63412236
delta logL = 0.105149463709

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  3.994e-01  3.708e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  1.713e+00  1.107e+00  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.758e-01  1.578e-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.154e-01  1.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.44
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 1.71 +/- 1.11
Photon Flux (Free Index): 1.32e-08 +/- 1.90e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.01e-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/597019/cmap_HighResolution_341712001_341971201_4FGL_J2258.1-2759_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='1.02e-05', photon_flux_error='2.29e-08', dlogl='1.05e-01', energy_flux='8.80e-06', photon_flux2='1.32e-08', job_status='DONE', time_completed='2021-09-29 03:14:35.719376', photon_index_error2='1.11', photon_index2='1.71', ts='3.20', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.69e-08', energy_flux_error2='1.01e-05', EG='0.60', time_epoch_completed='1632910475.72', return_code='0', job_id='597019', GAL2='0.98', EG2='0.62', return_code2='0', energy_flux_error='8.64e-06', photon_flux_error2='1.90e-08', ts2='3.44', photon_index='2.29' WHERE bin_id='395' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:14:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 597019: <4FGL_J2258.1-2759_daily_bin395> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin395 344.529 -27.9843 341712001 341971201 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 :                                   659.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

