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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1376
RA = 359.522, Dec = -46.0176
tmin = 595987201, tmax = 596246401
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='217656', job_status='RUN', time_executed='2021-09-30 10:36:20.820810', time_epoch_executed='1633023380.82' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217656/ft1_4FGL_J2358.0-4601_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217656/ft2_4FGL_J2358.0-4601_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217656/ft1_4FGL_J2358.0-4601_daily_bin1376.fits outfile=/scratch/kocevski/217656/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1376.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=595987201.0 tmax=596246401.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.14
user 2.92
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217656/ft1_filtered_4FGL_J2358.0-4601_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/217656/ft2_4FGL_J2358.0-4601_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/217656/ltcube_595987201_596246401_4FGL_J2358.0-4601_daily_bin1376.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/217656/ft2_4FGL_J2358.0-4601_daily_bin1376.fits
.....................!
real 12.34
user 11.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217656/ft1_filtered_4FGL_J2358.0-4601_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/217656/ft2_4FGL_J2358.0-4601_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/217656/ltcube_595987201_596246401_4FGL_J2358.0-4601_daily_bin1376.fits outfile=/scratch/kocevski/217656/expmap_595987201_596246401_4FGL_J2358.0-4601_daily_bin1376.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/217656/ltcube_595987201_596246401_4FGL_J2358.0-4601_daily_bin1376.fits
.....................!
real 191.09
user 185.44
sys 5.32

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/217656/ft1_filtered_4FGL_J2358.0-4601_daily_bin1376.fits scfile=/scratch/kocevski/217656/ft2_4FGL_J2358.0-4601_daily_bin1376.fits outfile=/scratch/kocevski/217656/cmap_595987201_596246401_4FGL_J2358.0-4601_daily_bin1376.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217656/ft1_filtered_4FGL_J2358.0-4601_daily_bin1376.fits scfile=/scratch/kocevski/217656/ft2_4FGL_J2358.0-4601_daily_bin1376.fits outfile=/scratch/kocevski/217656/cmap_HighResolution_595987201_596246401_4FGL_J2358.0-4601_daily_bin1376.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/217656/ft1_filtered_4FGL_J2358.0-4601_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/217656/ft2_4FGL_J2358.0-4601_daily_bin1376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217656/Model_4FGL_J2358.0-4601_daily_bin1376.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/217656/ft1_filtered_4FGL_J2358.0-4601_daily_bin1376.fits....................!
real 42.97
user 41.68
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    69.221       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5957       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10550E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    91.462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3361       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7428       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0835       1.0000         .10000E-03   10000.    
    18 'norm      '    15.130       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.065       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.729       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0464       1.0000         .10000E-03   10000.    
    23 'norm      '    .65402       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.891       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .27932       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.617       1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.5272       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .88568       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3898       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=   5975.669     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4445 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.084        43.725        .13882E-06    .40646E-05
   2  Prefactor     .10000E-03    8.2105        .10148E-06** at limit **
   3  Prefactor     69.221        48.459        .96379E-06    .83695E-04
   4  Prefactor     .10000E-03    6.1042       -.12063E-06** at limit **
   5  Prefactor     4.5971        6.9927        .44208E-07    .16336E-04
   6  Prefactor     .10000E-03    11.438        .21325E-06** at limit **
   7  Prefactor     .10000E-03    5.6480       -.14550E-07** at limit **
   8  Prefactor     .10000E-03    1.8435       -.57760E-07** at limit **
   9  norm          .10000E-03    26.956        .11692E-05** at limit **
  10  Prefactor     .10000E-03    9.6783       -.47805E-06** at limit **
  11  norm          .10000E-03    33.796       -.11242E-05** at limit **
  12  Prefactor     91.452        107.85        .56957E-06    .30809E-05
  13  Prefactor     .10000E-03    20.569       -.58243E-06** at limit **
  14  Prefactor     1.3118        36.368        .37413E-05    .86687E-04
  15  norm          1.7529        31.203        .21684E-06    .12717E-05
  16  norm          .10000E-03    2.2334       -.31818E-08** at limit **
  17  norm          3.0836        4.0768       -.42694E-07   -.71861E-04
  18  norm          15.131        11.127       -.19893E-07   -.90086E-05
  19  Prefactor     14.063        8.2165       -.27094E-07    .55245E-04
  20  Prefactor     14.709        43.374       -.61222E-06   -.17260E-04
  21  norm          .10000E-03    4.4517        .77678E-06** at limit **
  22  Prefactor     4.0467        13.568        .10888E-08    .17767E-04
  23  norm          .65445        .99070        .37418E-07    .25182E-03
  24  norm          .10000E-03    3.1312        .37626E-06** at limit **
  25  Prefactor     23.892        15.827        .16402E-06    .44338E-04
  26  Prefactor     .26075        4.6171       -.17310E-05    .47475E-03
  27  Prefactor     22.676        31.685        .28566E-05    .15724E-03
  28  norm          .10000E-03    10.956        .63659E-07** at limit **
  29  Prefactor     .10000E-03    2.1831       -.46881E-07** at limit **
  30  Prefactor     1.5269        3.6363       -.45783E-07    .22606E-04
  31  Normalizat    .88618        .19761       -.18418E-06    .15963E-03
  32  Prefactor     1.3892        .22044        .34346E-06    .10039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.0839
  Prefactor  = 0.0001
  Prefactor  = 69.2214
  Prefactor  = 0.0001
  Prefactor  = 4.5971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 91.4519
  Prefactor  = 0.0001
  Prefactor  = 1.31183
  norm       = 1.75293
  norm       = 0.0001
  norm       = 3.08364
  norm       = 15.1309
  Prefactor  = 14.0629
  Prefactor  = 14.7091
  norm       = 0.0001
  Prefactor  = 4.04673
  norm       = 0.654451
  norm       = 0.0001
  Prefactor  = 23.8917
  Prefactor  = 0.260749
  Prefactor  = 22.6761
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52695
  Normalizat = 0.886179
  Prefactor  = 1.38916
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.669     FROM HESSE     STATUS=OK           653 CALLS     5098 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.084        43.752        .70732E-04   -1.4575    
   2  Prefactor     .10000E-03    8.2155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     69.221        48.464        .48246E-04   -1.4042    
   4  Prefactor     .10000E-03    6.1454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5971        6.9870        .18776E-03   -1.5279    
   6  Prefactor     .10000E-03    11.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7146        .17937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8530        .10248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    27.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    34.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     91.452        107.86        .42019E-04   -1.3792    
  13  Prefactor     .10000E-03    20.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3118        38.356        .18976E-02   -1.5479    
  15  norm          1.7529        31.516        .31775E-03   -1.5443    
  16  norm          .10000E-03    2.2342        .11281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0836        4.0634        .17182E-03   -1.5357    
  18  norm          15.131        11.131        .10297E-03   -1.4930    
  19  Prefactor     14.063        8.1778        .10680E-03   -1.4958    
  20  Prefactor     14.709        43.402        .10436E-03   -1.4941    
  21  norm          .10000E-03    4.4382        .31310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.0467        13.470        .20045E-03   -1.5306    
  23  norm          .65445        .99099        .47537E-04   -1.5546    
  24  norm          .10000E-03    3.1808        .26539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.892        15.830        .81951E-04   -1.4730    
  26  Prefactor     .26075        29.280        .20796E-02   -1.5606    
  27  Prefactor     22.676        37.319        .84225E-04   -1.4755    
  28  norm          .10000E-03    10.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.1972        .11149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.5269        3.6125        .21691E-03   -1.5461    
  31  Normalizat    .88618        .23858        .27063E-03   -.96947    
  32  Prefactor     1.3892        .26710        .25710E-03   -.80693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55344e-09
Minuit parameter uncertainties:
  1  43.7957
  2  1.27636e-06
  3  48.4916
  4  4.74022e-06
  5  6.98826
  6  1.41197e-05
  7  5.78548e-06
  8  4.41041e-07
  9  7.67819e-05
  10  1.84805e-05
  11  2.90295e-05
  12  108.092
  13  4.03686e-05
  14  14.1964
  15  14.8742
  16  1.00751e-06
  17  4.06374
  18  11.1325
  19  8.17843
  20  43.4952
  21  3.63614e-05
  22  13.4797
  23  0.99101
  24  1.78276e-05
  25  15.8333
  26  5.52796
  27  37.357
  28  5.29544e-06
  29  5.62161e-07
  30  3.61298
  31  0.23886
  32  0.267367
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.527e+00  3.613e+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:  1.389e+00  2.674e-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:  8.862e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/217656/likelihoodResults_595987201_596246401_4FGL_J2358.0-4601_daily_bin1376.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) = 5975.16150559
delta logL = 0.507231833081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5975.13388302
delta logL = 0.534854407892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3616       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5399       1.0000          .0000       10.000    
     3 'Normalizat'    .90298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3703       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=   5975.134     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3697        3.0624        .66668E-02   -.21637E-03
   2  Index         1.5408        .50209        .21535       -.33182E-04
   3  Normalizat    .90289        .18684        .44940E-01    .21324E-04
   4  Prefactor     1.3704        .21717        .58430E-01   -.12707E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36966
  Index      = 1.54082
  Normalizat = 0.902892
  Prefactor  = 1.37041
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.134     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3697        3.8210        .14980E-03   -1.5400    
   2  Index         1.5408        .74086        .10522E-01   -.76403    
   3  Normalizat    .90289        .22636        .26832E-03   -.96359    
   4  Prefactor     1.3704        .26311        .25838E-03   -.81237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56607e-11
Minuit parameter uncertainties:
  1  3.82144
  2  0.746164
  3  0.226603
  4  0.26337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217656': 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) = 5975.1338809
delta logL = 0.534856520168

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  2.370e+00  3.821e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  1.541e+00  7.462e-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:  1.370e+00  2.634e-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:  9.029e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 359.522 -46.018
Photon Index (Free Index): 1.54 +/- 0.75
Photon Flux (Free Index): 7.88e-09 +/- 1.35e-08
Energy Flux (Free Index): 2.17e-05 +/- 4.09e-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/217656/cmap_HighResolution_595987201_596246401_4FGL_J2358.0-4601_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', comment='SUCCESS', energy_flux2='2.17e-05', dlogl='5.35e-01', photon_flux2='7.88e-09', job_status='DONE', time_completed='2021-09-30 10:51:18.824552', photon_index_error2='0.75', photon_index2='1.54', ts='0.22', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='9.17e-08', energy_flux_error2='4.09e-05', EG='0.89', time_epoch_completed='1633024278.82', return_code='0', job_id='217656', GAL2='1.37', EG2='0.90', return_code2='0', photon_flux_error2='1.35e-08', ts2='1.29', photon_index='2.58' WHERE bin_id='1376' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 217656: <4FGL_J2358.0-4601_daily_bin1376> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1376> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 10:35:44 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:35:46 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:46 2021
Terminated at Thu Sep 30 10:51:19 2021
Results reported at Thu Sep 30 10:51:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1376 359.522 -46.0176 595987201 596246401 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 :                                   891.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

