/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 5 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 = 7534
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1421
RA = 359.522, Dec = -46.0176
tmin = 607651201, tmax = 607910401
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='217725', job_status='RUN', time_executed='2021-09-30 10:36:07.549917', time_epoch_executed='1633023367.55' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217725/ft1_4FGL_J2358.0-4601_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217725/ft1_4FGL_J2358.0-4601_daily_bin1421.fits outfile=/scratch/kocevski/217725/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1421.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=607651201.0 tmax=607910401.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.84
user 3.59
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.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/217725/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1421.fits evtable="EVENTS" outfile="/scratch/kocevski/217725/ft1_filtered_4FGL_J2358.0-4601_daily_bin1421.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217725/ft1_filtered_4FGL_J2358.0-4601_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/217725/ltcube_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.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/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits
.....................!
real 12.10
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217725/ft1_filtered_4FGL_J2358.0-4601_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/217725/ltcube_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.fits outfile=/scratch/kocevski/217725/expmap_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.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/217725/ltcube_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.fits
.....................!
real 190.44
user 185.03
sys 5.05

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2358.0-4601 @ 359.522 -46.0176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217725/ft1_filtered_4FGL_J2358.0-4601_daily_bin1421.fits scfile=/scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits outfile=/scratch/kocevski/217725/cmap_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.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=359.522 yref=-46.0176 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217725/ft1_filtered_4FGL_J2358.0-4601_daily_bin1421.fits scfile=/scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits outfile=/scratch/kocevski/217725/cmap_HighResolution_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.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=359.522 yref=-46.0176 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217725/ft1_filtered_4FGL_J2358.0-4601_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217725/Model_4FGL_J2358.0-4601_daily_bin1421.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/217725/ft1_filtered_4FGL_J2358.0-4601_daily_bin1421.fits.....................!
real 47.24
user 45.84
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217725/ft1_filtered_4FGL_J2358.0-4601_daily_bin1421.fits', '/scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits', expMap='/scratch/kocevski/217725/expmap_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.fits', expCube='/scratch/kocevski/217725/ltcube_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217725/Model_4FGL_J2358.0-4601_daily_bin1421.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.0-4601'

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.024e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.582e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217725/ft1_filtered_4FGL_J2358.0-4601_daily_bin1421.fits
Spacecraft file(s): /scratch/kocevski/217725/ft2_4FGL_J2358.0-4601_daily_bin1421.fits
Exposure map: /scratch/kocevski/217725/expmap_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.fits
Exposure cube: /scratch/kocevski/217725/ltcube_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217725/Model_4FGL_J2358.0-4601_daily_bin1421.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) = 6511.21405913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11266E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7583       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0462       1.0000         .10000E-03   10000.    
     9 'norm      '    37.055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6473       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.444       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1869       1.0000         .10000E-03   10000.    
    17 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.924       1.0000         .10000E-03   10000.    
    21 'norm      '    .10509E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0437       1.0000         .10000E-03   10000.    
    23 'norm      '    .26806       1.0000         .10000E-03   10000.    
    24 'norm      '    .71854       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.1242       1.0000         .10000E-03   10000.    
    28 'norm      '    .11863E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .91679E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75372       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6511.171     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4412 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.078       -.15018E-05** at limit **
   2  Prefactor     .10000E-03    8.9652       -.84972E-06** at limit **
   3  Prefactor     .10000E-03    8.4139        .80256E-06** at limit **
   4  Prefactor     .10000E-03    6.4948       -.15329E-06** at limit **
   5  Prefactor     4.9318        4.5074       -.78167E-07   -.86859E-04
   6  Prefactor     9.7496        21.294        .60563E-06    .21716E-04
   7  Prefactor     .10000E-03    2.1329        .22781E-07** at limit **
   8  Prefactor     9.0471        4.8350        .13455E-06    .58875E-05
   9  norm          37.049        31.402        .28322E-06   -.11818E-04
  10  Prefactor     .10000E-03    13.062        .96396E-06** at limit **
  11  norm          4.6488        24.730        .37324E-06   -.18744E-04
  12  Prefactor     22.542        55.145       -.13466E-04   -.22507E-03
  13  Prefactor     .10000E-03    19.051        .11607E-05** at limit **
  14  Prefactor     21.447        16.263       -.39591E-06   -.34062E-04
  15  norm          .10000E-03    5.4716       -.84692E-07** at limit **
  16  norm          5.1860        5.7758        .22672E-05   -.47740E-03
  17  norm          .10000E-03    1.4332        .88054E-07** at limit **
  18  norm          .10000E-03    4.0958        .68823E-07** at limit **
  19  Prefactor     7.2158        6.1869       -.14656E-05   -.10487E-03
  20  Prefactor     34.808        34.258       -.12546E-05    .44982E-04
  21  norm          .10000E-03    1.7997        .32282E-06** at limit **
  22  Prefactor     5.0422        10.930        .64861E-05   -.34577E-03
  23  norm          .26807        .68176       -.41569E-07   -.57290E-03
  24  norm          .72340        3.7547        .72528E-06   -.15051E-03
  25  Prefactor     .10000E-03    5.7326        .24664E-06** at limit **
  26  Prefactor     .10000E-03    1.0587        .16438E-07** at limit **
  27  Prefactor     8.1270        15.584       -.29932E-06   -.37152E-04
  28  norm          .10000E-03    42.365       -.84091E-06** at limit **
  29  Prefactor     .10006E-03    2.0267        .39651E-06** at limit **
  30  Prefactor     .10000E-03    2.5174        .65130E-07** at limit **
  31  Normalizat    .75343        .15446       -.15234E-05   -.11024E-03
  32  Prefactor     1.1580        .17418        .49073E-06   -.22183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.93182
  Prefactor  = 9.74959
  Prefactor  = 0.0001
  Prefactor  = 9.04714
  norm       = 37.0492
  Prefactor  = 0.0001
  norm       = 4.64879
  Prefactor  = 22.5418
  Prefactor  = 0.0001
  Prefactor  = 21.4467
  norm       = 0.0001
  norm       = 5.18599
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.21575
  Prefactor  = 34.8079
  norm       = 0.0001
  Prefactor  = 5.04218
  norm       = 0.268066
  norm       = 0.723398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.12703
  norm       = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  Normalizat = 0.753434
  Prefactor  = 1.15797
 **********
 **   18 **HESSE 
 **********

 FCN=   6511.171     FROM HESSE     STATUS=OK           661 CALLS     5073 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9318        4.5093        .15909E-03   -1.5264    
   6  Prefactor     9.7496        21.268        .12828E-03   -1.5083    
   7  Prefactor     .10000E-03    2.1440        .11508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0471        4.8340        .11661E-03   -1.5106    
   9  norm          37.049        31.393        .65839E-04   -1.4490    
  10  Prefactor     .10000E-03    13.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6488        24.702        .18669E-03   -1.5277    
  12  Prefactor     22.542        58.126        .84173E-04   -1.4758    
  13  Prefactor     .10000E-03    19.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.447        16.050        .86496E-04   -1.4781    
  15  norm          .10000E-03    5.5097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1860        5.8292        .88255E-03   -1.5252    
  17  norm          .10000E-03    1.4345        .94328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1204        .15948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2158        6.1715        .14933E-03   -1.5171    
  20  Prefactor     34.808        33.038        .67811E-04   -1.4527    
  21  norm          .10000E-03    1.8084        .10527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.0422        11.078        .89523E-03   -1.5259    
  23  norm          .26807        .61497        .96212E-03   -1.5604    
  24  norm          .72340        6.0412        .25042E-02   -1.5538    
  25  Prefactor     .10000E-03    5.7580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.0764        .80901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.1270        15.474        .14066E-03   -1.5138    
  28  norm          .10000E-03    43.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10006E-03    49.321        .21792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.6258        .24971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .75343        .18348        .23917E-03   -1.0182    
  32  Prefactor     1.1580        .20959        .23340E-03   -.87635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02501e-08
Minuit parameter uncertainties:
  1  0.000146351
  2  6.00711e-05
  3  5.97672e-05
  4  1.04376e-06
  5  4.50958
  6  21.2849
  7  2.36655e-06
  8  4.83424
  9  31.4073
  10  7.12992e-05
  11  21.4456
  12  58.2729
  13  0.000122042
  14  16.0529
  15  8.68306e-06
  16  5.82986
  17  2.824e-07
  18  1.58294e-06
  19  6.172
  20  33.055
  21  1.28544e-06
  22  11.0821
  23  0.614983
  24  4.18127
  25  1.33441e-05
  26  2.3161e-07
  27  15.4812
  28  0.000154693
  29  0.00348909
  30  1.54461e-06
  31  0.183635
  32  0.20974
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  1.545e-06  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.582e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.158e+00  2.097e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.534e-01  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.522 -46.018
Photon Flux Upper Limit: 5.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217725/likelihoodResults_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.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): 102
logL (Free Index) = 6511.17245462
delta logL = -0.00181769931805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6511.17063759
delta logL = -6.68792381475e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5842       1.0000          .0000       10.000    
     3 'Normalizat'    .75329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1582       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6511.171     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    153.91        .90712E-02** at limit **
   2  Index         2.5865        5.9828        .50000       -.83174E-05
   3  Normalizat    .75343        .30280E-01    .42998E-01    .14521E-03
   4  Prefactor     1.1580        .35929E-01    .52790E-01    .11280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58649
  Normalizat = 0.753433
  Prefactor  = 1.15797
 **********
 **   18 **HESSE 
 **********

 FCN=   6511.171     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6550        .24972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5865        6.2886        .50000       -.50374    
   3  Normalizat    .75343        .17360        .23917E-03   -1.0182    
   4  Prefactor     1.1580        .20679        .23340E-03   -.87635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33443e-10
Minuit parameter uncertainties:
  1  4.17639e-05
  2  4.40452
  3  0.173726
  4  0.206931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217725': 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) = 6511.17063691
delta logL = 8.61109583639e-09

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  4.176e-05  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.586e+00  4.405e+00  0.000e+00  1.000e+01 (-1.000e+00)
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.158e+00  2.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.534e-01  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.522 -46.018

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/217725/cmap_HighResolution_607651201_607910401_4FGL_J2358.0-4601_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-03', job_status='DONE', photon_flux_upper_limit='5.32e-08', time_completed='2021-09-30 10:51:57.028466', job_id='217725', GAL2='1.16', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1633024317.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='8.61e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1421' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:51:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 217725: <4FGL_J2358.0-4601_daily_bin1421> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1421> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 10:35:52 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:35:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 10:35:54 2021
Terminated at Thu Sep 30 10:51:57 2021
Results reported at Thu Sep 30 10:51:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1421 359.522 -46.0176 607651201 607910401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.0-4601 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   941.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

