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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1036
RA = 359.522, Dec = -46.0176
tmin = 507859201, tmax = 508118401
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='216141', job_status='RUN', time_executed='2021-09-30 10:31:41.591260', time_epoch_executed='1633023101.59' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216141

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216141/ft1_4FGL_J2358.0-4601_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216141/ft2_4FGL_J2358.0-4601_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216141/ft1_4FGL_J2358.0-4601_daily_bin1036.fits outfile=/scratch/kocevski/216141/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1036.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=507859201.0 tmax=508118401.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 4.15
user 3.92
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/216141/ft2_4FGL_J2358.0-4601_daily_bin1036.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/216141/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1036.fits evtable="EVENTS" outfile="/scratch/kocevski/216141/ft1_filtered_4FGL_J2358.0-4601_daily_bin1036.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216141/ft1_filtered_4FGL_J2358.0-4601_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/216141/ft2_4FGL_J2358.0-4601_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/216141/ltcube_507859201_508118401_4FGL_J2358.0-4601_daily_bin1036.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/216141/ft2_4FGL_J2358.0-4601_daily_bin1036.fits
.....................!
real 11.89
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216141/ft1_filtered_4FGL_J2358.0-4601_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/216141/ft2_4FGL_J2358.0-4601_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/216141/ltcube_507859201_508118401_4FGL_J2358.0-4601_daily_bin1036.fits outfile=/scratch/kocevski/216141/expmap_507859201_508118401_4FGL_J2358.0-4601_daily_bin1036.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/216141/ltcube_507859201_508118401_4FGL_J2358.0-4601_daily_bin1036.fits
.....................!
real 189.73
user 184.94
sys 4.48

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/216141/ft1_filtered_4FGL_J2358.0-4601_daily_bin1036.fits scfile=/scratch/kocevski/216141/ft2_4FGL_J2358.0-4601_daily_bin1036.fits outfile=/scratch/kocevski/216141/cmap_507859201_508118401_4FGL_J2358.0-4601_daily_bin1036.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216141/ft1_filtered_4FGL_J2358.0-4601_daily_bin1036.fits scfile=/scratch/kocevski/216141/ft2_4FGL_J2358.0-4601_daily_bin1036.fits outfile=/scratch/kocevski/216141/cmap_HighResolution_507859201_508118401_4FGL_J2358.0-4601_daily_bin1036.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/216141/ft1_filtered_4FGL_J2358.0-4601_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/216141/ft2_4FGL_J2358.0-4601_daily_bin1036.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216141/Model_4FGL_J2358.0-4601_daily_bin1036.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/216141/ft1_filtered_4FGL_J2358.0-4601_daily_bin1036.fits....................!
real 42.87
user 41.61
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.833       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8877       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0745       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.7867       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.818       1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3052       1.0000         .10000E-03   10000.    
    17 'norm      '    .10778E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    40.096       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.509       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7633       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .54776       1.0000         .10000E-03   10000.    
    24 'norm      '    .10878E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4760       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.1281       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0182       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .91830       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=   5685.890     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4283 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.863        .50416E-07** at limit **
   2  Prefactor     .10000E-03    7.2235        .16334E-06** at limit **
   3  Prefactor     19.864        28.033        .36692E-07    .10177E-03
   4  Prefactor     4.8889        7.4329        .36773E-05    .37885E-04
   5  Prefactor     .10000E-03    3.1229        .25248E-06** at limit **
   6  Prefactor     .10000E-03    11.464        .68814E-07** at limit **
   7  Prefactor     3.0753        5.2901        .38784E-06    .34224E-05
   8  Prefactor     .10000E-03    2.1055        .11521E-06** at limit **
   9  norm          .10000E-03    14.783       -.74263E-07** at limit **
  10  Prefactor     .10000E-03    12.875        .12939E-06** at limit **
  11  norm          8.7951        20.403        .27488E-06    .21042E-04
  12  Prefactor     .10000E-03    22.429        .42984E-07** at limit **
  13  Prefactor     .10000E-03    13.087       -.18855E-07** at limit **
  14  Prefactor     23.824        14.507       -.64995E-08    .60167E-05
  15  norm          .10000E-03    5.0352       -.18881E-07** at limit **
  16  norm          3.3050        3.4338       -.66925E-07    .50031E-05
  17  norm          .10000E-03    2.2622       -.58852E-06** at limit **
  18  norm          40.090        15.096        .12461E-06   -.11489E-04
  19  Prefactor     .10000E-03    3.5900       -.46261E-07** at limit **
  20  Prefactor     51.463        44.370        .12022E-05   -.81940E-04
  21  norm          2.7619        5.1835       -.48340E-06    .54158E-04
  22  Prefactor     .10000E-03    7.1178       -.99571E-07** at limit **
  23  norm          .54775        .82598        .12857E-06    .43739E-03
  24  norm          .10000E-03    2.4791       -.65574E-06** at limit **
  25  Prefactor     .10000E-03    6.2399       -.78927E-07** at limit **
  26  Prefactor     7.4797        4.6720       -.22872E-06    .23927E-07
  27  Prefactor     .10000E-03    8.0102        .13972E-06** at limit **
  28  norm          .10000E-03    20.553        .15669E-07** at limit **
  29  Prefactor     .10000E-03    3.2792       -.12668E-06** at limit **
  30  Prefactor     3.1296        3.7575        .25144E-06    .95198E-05
  31  Normalizat    1.0174        .17377        .43339E-06   -.24504E-04
  32  Prefactor     .91908        .19239       -.14527E-05    .44193E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8639
  Prefactor  = 4.88887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07531
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.79515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8242
  norm       = 0.0001
  norm       = 3.30499
  norm       = 0.0001
  norm       = 40.0902
  Prefactor  = 0.0001
  Prefactor  = 51.4629
  norm       = 2.76194
  Prefactor  = 0.0001
  norm       = 0.547754
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.4797
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.12956
  Normalizat = 1.01738
  Prefactor  = 0.919077
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.890     FROM HESSE     STATUS=OK           653 CALLS     4936 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.864        27.895        .89936E-04   -1.4816    
   4  Prefactor     4.8889        7.4186        .90970E-03   -1.5266    
   5  Prefactor     .10000E-03    3.1316        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0753        5.2733        .22011E-03   -1.5357    
   8  Prefactor     .10000E-03    2.1225        .10682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.7951        20.398        .13522E-03   -1.5115    
  12  Prefactor     .10000E-03    22.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.824        14.435        .82077E-04   -1.4731    
  15  norm          .10000E-03    5.0424        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3050        3.4404        .13890E-03   -1.5344    
  17  norm          .10000E-03    2.2669        .11066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          40.090        15.093        .63301E-04   -1.4441    
  19  Prefactor     .10000E-03    3.6507        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.463        43.560        .55880E-04   -1.4272    
  21  norm          2.7619        5.0611        .17001E-03   -1.5376    
  22  Prefactor     .10000E-03    7.1507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .54775        .70814        .79561E-03   -1.5560    
  24  norm          .10000E-03    2.5328        .23125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.2529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4797        4.4699        .11490E-03   -1.5161    
  27  Prefactor     .10000E-03    8.0131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    20.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    14.587        .24875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.1296        3.7471        .15298E-03   -1.5354    
  31  Normalizat    1.0174        .20310        .22474E-03   -.92450    
  32  Prefactor     .91908        .22400        .26755E-03   -.95478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86597e-10
Minuit parameter uncertainties:
  1  2.46208e-05
  2  3.00266e-06
  3  27.9132
  4  7.42002
  5  5.0663e-07
  6  6.48711e-06
  7  5.27407
  8  9.64203e-07
  9  2.73777e-05
  10  4.62363e-06
  11  20.4146
  12  6.30933e-06
  13  9.5471e-06
  14  14.4368
  15  8.32714e-06
  16  3.44062
  17  1.20396e-06
  18  15.0948
  19  7.86777e-07
  20  43.5867
  21  5.06193
  22  2.2348e-06
  23  0.708155
  24  2.23022e-06
  25  1.8517e-05
  26  4.47012
  27  2.39084e-05
  28  4.19672e-05
  29  0.000198042
  30  3.74734
  31  0.203252
  32  0.224227
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  3.130e+00  3.747e+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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.191e-01  2.242e-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.017e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/216141/likelihoodResults_507859201_508118401_4FGL_J2358.0-4601_daily_bin1036.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) = 5685.76356806
delta logL = 0.126140237634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5685.75270516
delta logL = 0.137003139453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0226       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1056       1.0000          .0000       10.000    
     3 'Normalizat'    1.0306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90677       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5685.753     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      278 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0228        4.5449        .16512E-03   -.57146E-04
   2  Index         2.1064        .79578        .10992E-01   -.26198E-05
   3  Normalizat    1.0305        .19657        .22345E-03   -.79574E-04
   4  Prefactor     .90691        .22378        .26906E-03   -.79564E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.02285
  Index      = 2.10645
  Normalizat = 1.03052
  Prefactor  = 0.906906
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.753     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0228        4.5405        .66048E-05   -1.5307    
   2  Index         2.1064        .79503        .43968E-03   -.61715    
   3  Normalizat    1.0305        .19673        .89379E-05   -.92015    
   4  Prefactor     .90691        .22396        .10762E-04   -.95900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35076e-12
Minuit parameter uncertainties:
  1  4.54086
  2  0.800152
  3  0.196872
  4  0.224186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216141': 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) = 5685.75270436
delta logL = 0.137003937912

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  4.023e+00  4.541e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.106e+00  8.002e-01  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:  9.069e-01  2.242e-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.031e+00  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 359.522 -46.018
Photon Index (Free Index): 2.11 +/- 0.80
Photon Flux (Free Index): 1.95e-08 +/- 2.69e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.54e-05

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/216141/cmap_HighResolution_507859201_508118401_4FGL_J2358.0-4601_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.37e-01', photon_flux2='1.95e-08', job_status='DONE', time_completed='2021-09-30 10:46:00.012572', photon_index_error2='0.80', photon_index2='2.11', ts='0.97', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.94e-08', energy_flux_error2='1.54e-05', EG='1.02', time_epoch_completed='1633023960.01', return_code='0', job_id='216141', GAL2='0.91', EG2='1.03', return_code2='0', photon_flux_error2='2.69e-08', ts2='1.25', photon_index='2.58' WHERE bin_id='1036' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:46:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 216141: <4FGL_J2358.0-4601_daily_bin1036> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1036> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 10:30:37 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:30:39 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:39 2021
Terminated at Thu Sep 30 10:46:00 2021
Results reported at Thu Sep 30 10:46:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1036 359.522 -46.0176 507859201 508118401 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 :                                   854.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

