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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin932
RA = 359.522, Dec = -46.0176
tmin = 480902401, tmax = 481161601
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='215983', job_status='RUN', time_executed='2021-09-30 10:34:16.641382', time_epoch_executed='1633023256.64' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215983

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215983/ft1_4FGL_J2358.0-4601_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215983/ft2_4FGL_J2358.0-4601_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215983/ft1_4FGL_J2358.0-4601_daily_bin932.fits outfile=/scratch/kocevski/215983/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin932.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=480902401.0 tmax=481161601.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.63
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215983/ft2_4FGL_J2358.0-4601_daily_bin932.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/215983/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin932.fits evtable="EVENTS" outfile="/scratch/kocevski/215983/ft1_filtered_4FGL_J2358.0-4601_daily_bin932.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215983/ft1_filtered_4FGL_J2358.0-4601_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/215983/ft2_4FGL_J2358.0-4601_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/215983/ltcube_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.fits outfile=/scratch/kocevski/215983/expmap_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.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/215983/ltcube_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.fits
.....................!
real 191.41
user 185.34
sys 5.68

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/215983/ft1_filtered_4FGL_J2358.0-4601_daily_bin932.fits scfile=/scratch/kocevski/215983/ft2_4FGL_J2358.0-4601_daily_bin932.fits outfile=/scratch/kocevski/215983/cmap_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215983/ft1_filtered_4FGL_J2358.0-4601_daily_bin932.fits scfile=/scratch/kocevski/215983/ft2_4FGL_J2358.0-4601_daily_bin932.fits outfile=/scratch/kocevski/215983/cmap_HighResolution_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.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/215983/ft1_filtered_4FGL_J2358.0-4601_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/215983/ft2_4FGL_J2358.0-4601_daily_bin932.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215983/Model_4FGL_J2358.0-4601_daily_bin932.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/215983/ft1_filtered_4FGL_J2358.0-4601_daily_bin932.fits.....................!
real 35.68
user 34.30
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/215983/ft1_filtered_4FGL_J2358.0-4601_daily_bin932.fits', '/scratch/kocevski/215983/ft2_4FGL_J2358.0-4601_daily_bin932.fits', expMap='/scratch/kocevski/215983/expmap_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.fits', expCube='/scratch/kocevski/215983/ltcube_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/215983/Model_4FGL_J2358.0-4601_daily_bin932.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/215983/ft1_filtered_4FGL_J2358.0-4601_daily_bin932.fits
Spacecraft file(s): /scratch/kocevski/215983/ft2_4FGL_J2358.0-4601_daily_bin932.fits
Exposure map: /scratch/kocevski/215983/expmap_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.fits
Exposure cube: /scratch/kocevski/215983/ltcube_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/215983/Model_4FGL_J2358.0-4601_daily_bin932.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) = 4319.6421829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.731       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5488       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2923       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.590       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14883E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    143.93       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3244       1.0000         .10000E-03   10000.    
    15 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8330       1.0000         .10000E-03   10000.    
    17 'norm      '    12.998       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6022       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .54604       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.621       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7058       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5688       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.787       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .83056       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.871       1.0000         .10000E-03   10000.    
    28 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .48903       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .36034E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2332       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .76316       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4319.632     FROM MIGRAD    STATUS=CONVERGED     72 CALLS     3597 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.722        2.1936       -.17738E-05    .71480E-02
   2  Prefactor     .10001E-03    9.5244        .23200E-04** at limit **
   3  Prefactor     .10003E-03    3.3018       -.45436E-05** at limit **
   4  Prefactor     .10000E-03    5.9145       -.56384E-06** at limit **
   5  Prefactor     4.5483        1.2138        .54931E-06   -.98561E-04
   6  Prefactor     .10001E-03    4.1019       -.15053E-04** at limit **
   7  Prefactor     1.2962        1.1310       -.21286E-06   -.24929E-04
   8  Prefactor     11.579        1.5076       -.42194E-06    .64337E-04
   9  norm          .10000E-03    5.7972        .12932E-04** at limit **
  10  Prefactor     .10002E-03    53.781       -.14930E-04** at limit **
  11  norm          .10001E-03    4.3323       -.14043E-04** at limit **
  12  Prefactor     143.93        1.0113        .64682E-07   -.12142E-02
  13  Prefactor     .10000E-03    5.2395        .10792E-04** at limit **
  14  Prefactor     4.3261        1.0178       -.34271E-06    .50755E-06
  15  norm          .10002E-03    4.0048       -.40488E-06** at limit **
  16  norm          1.8331        1.0593       -.20684E-06   -.16095E-03
  17  norm          12.999        1.0522        .34822E-06    .17226E-02
  18  norm          5.6048        1.0332       -.51744E-06    .27851E-03
  19  Prefactor     .10000E-03    3.2682       -.48202E-07** at limit **
  20  Prefactor     .10000E-03    4.6186       -.17238E-04** at limit **
  21  norm          .54771        1.5043        .56674E-05    .15888E-02
  22  Prefactor     10.620        1.0240       -.28535E-06    .26681E-03
  23  norm          1.7058        .99922       -.38139E-07    .20087E-03
  24  norm          1.5683        3.3932       -.47928E-05   -.92551E-03
  25  Prefactor     11.782        1.3665       -.90111E-06    .10555E-02
  26  Prefactor     .82589        4.2194       -.67496E-06    .11770E-03
  27  Prefactor     10.873        1.0349        .14718E-06   -.10187E-03
  28  norm          .10001E-03    6.3657        .14793E-04** at limit **
  29  Prefactor     .54355        11.982        .11082E-04   -.16390E-03
  30  Prefactor     .10006E-03    .96581        .78229E-05** at limit **
  31  Normalizat    1.2332        .25185       -.51222E-06   -.55291E-04
  32  Prefactor     .76298        .28230        .11690E-05   -.50724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7225
  Prefactor  = 0.000100009
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 4.54831
  Prefactor  = 0.000100011
  Prefactor  = 1.29621
  Prefactor  = 11.579
  norm       = 0.000100002
  Prefactor  = 0.000100016
  norm       = 0.000100013
  Prefactor  = 143.93
  Prefactor  = 0.0001
  Prefactor  = 4.32607
  norm       = 0.00010002
  norm       = 1.8331
  norm       = 12.999
  norm       = 5.60478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.547714
  Prefactor  = 10.6203
  norm       = 1.70578
  norm       = 1.56827
  Prefactor  = 11.7817
  Prefactor  = 0.82589
  Prefactor  = 10.8727
  norm       = 0.000100007
  Prefactor  = 0.54355
  Prefactor  = 0.000100058
  Normalizat = 1.23318
  Prefactor  = 0.762984
 **********
 **   18 **HESSE 
 **********

 FCN=   4319.632     FROM HESSE     STATUS=OK           737 CALLS     4334 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.722        56.138        .17783E-02   -1.4581    
   2  Prefactor     .10001E-03    12.033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    17.835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5483        7.8299        .47187E-02   -1.5281    
   6  Prefactor     .10001E-03    16.294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2962        20.251        .97348E-02   -1.5480    
   8  Prefactor     11.579        7.2632        .29418E-02   -1.5027    
   9  norm          .10000E-03    19.723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    53.069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    14.365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     143.93        115.95        .83961E-03   -1.3303    
  13  Prefactor     .10000E-03    19.514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3261        10.210        .48428E-02   -1.5292    
  15  norm          .10002E-03    13.108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8331        6.1582        .77054E-02   -1.5437    
  17  norm          12.999        7.7303        .27776E-02   -1.4987    
  18  norm          5.6048        11.804        .42432E-02   -1.5234    
  19  Prefactor     .10000E-03    3.2612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .54771        8.0521        .11457E-01   -1.5560    
  22  Prefactor     10.620        14.012        .30735E-02   -1.5056    
  23  norm          1.7058        1.0135        .80492E-02   -1.5447    
  24  norm          1.5683        3.8043        .84866E-02   -1.5458    
  25  Prefactor     11.782        20.365        .29171E-02   -1.5021    
  26  Prefactor     .82589        4.9239        .12553E-01   -1.5526    
  27  Prefactor     10.873        19.371        .30379E-02   -1.5048    
  28  norm          .10001E-03    19.900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .54355        4.0047        .66948E-01   -1.5561    
  30  Prefactor     .10006E-03    2.9287        .74815E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2332        .22175        .34123E-01   -.85583    
  32  Prefactor     .76298        .24173        .67293E-01   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79008e-06
Minuit parameter uncertainties:
  1  56.2318
  2  0.000662261
  3  0.00136929
  4  6.70773e-06
  5  7.83164
  6  0.000865032
  7  10.2506
  8  7.26371
  9  0.000434475
  10  0.00183359
  11  0.0008585
  12  116.135
  13  6.98465e-05
  14  10.2141
  15  0.00103393
  16  6.16031
  17  7.73089
  18  11.8094
  19  8.30729e-06
  20  5.83407e-06
  21  4.20042
  22  14.0162
  23  1.01348
  24  3.80491
  25  20.377
  26  4.03342
  27  19.382
  28  0.000771312
  29  2.95077
  30  0.000826542
  31  0.221924
  32  0.242069
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.001e-04  8.265e-04  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:  7.630e-01  2.421e-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:  1.233e+00  2.219e-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: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215983/likelihoodResults_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.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) = 4319.6320764
delta logL = -0.000143409107295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4319.63188563
delta logL = 4.73589461762e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10192E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1541       1.0000          .0000       10.000    
     3 'Normalizat'    1.2333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76285       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=   4319.631     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      303 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28246        55.102        .52572E-01    .34832E-03
   2  Index         2.2469        6.1220        .50000        .36100E-05
   3  Normalizat    1.2329        .14247E-01    .34121E-01    .65050E-05
   4  Prefactor     .76190        .16010E-01    .67337E-01    .31324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.282461
  Index      = 2.24689
  Normalizat = 1.2329
  Prefactor  = 0.761904
 **********
 **   18 **HESSE 
 **********

 FCN=   4319.631     FROM HESSE     STATUS=OK            35 CALLS      338 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28246        57.082        .33158E-02   -1.5602    
   2  Index         2.2469        3.2159        .22807E-01   -.58311    
   3  Normalizat    1.2329        .24974        .21504E-03   -.85592    
   4  Prefactor     .76190        .28181        .29793E-03   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13238e-08
Minuit parameter uncertainties:
  1  8.03719
  2  3.67135
  3  0.249986
  4  0.28234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215983': 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) = 4319.6310093
delta logL = 0.000923688132389

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  2.825e-01  8.037e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.247e+00  3.671e+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:  7.619e-01  2.823e-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:  1.233e+00  2.500e-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/215983/cmap_HighResolution_480902401_481161601_4FGL_J2358.0-4601_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-30 10:45:58.294155', job_id='215983', GAL2='0.76', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1633023958.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='9.24e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='932' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:45:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 215983: <4FGL_J2358.0-4601_daily_bin932> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin932> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 10:30:22 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:30:24 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:30:24 2021
Terminated at Thu Sep 30 10:45:59 2021
Results reported at Thu Sep 30 10:45:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin932 359.522 -46.0176 480902401 481161601 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

