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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1438
RA = 359.522, Dec = -46.0176
tmin = 612057601, tmax = 612316801
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='217751', job_status='RUN', time_executed='2021-09-30 10:36:04.376102', time_epoch_executed='1633023364.38' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217751

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217751/ft1_4FGL_J2358.0-4601_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217751/ft2_4FGL_J2358.0-4601_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217751/ft1_4FGL_J2358.0-4601_daily_bin1438.fits outfile=/scratch/kocevski/217751/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1438.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=612057601.0 tmax=612316801.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.52
user 4.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217751/ft1_filtered_4FGL_J2358.0-4601_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/217751/ft2_4FGL_J2358.0-4601_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/217751/ltcube_612057601_612316801_4FGL_J2358.0-4601_daily_bin1438.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/217751/ft2_4FGL_J2358.0-4601_daily_bin1438.fits
.....................!
real 15.17
user 14.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217751/ft1_filtered_4FGL_J2358.0-4601_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/217751/ft2_4FGL_J2358.0-4601_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/217751/ltcube_612057601_612316801_4FGL_J2358.0-4601_daily_bin1438.fits outfile=/scratch/kocevski/217751/expmap_612057601_612316801_4FGL_J2358.0-4601_daily_bin1438.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/217751/ltcube_612057601_612316801_4FGL_J2358.0-4601_daily_bin1438.fits
.....................!
real 191.48
user 185.85
sys 5.24

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/217751/ft1_filtered_4FGL_J2358.0-4601_daily_bin1438.fits scfile=/scratch/kocevski/217751/ft2_4FGL_J2358.0-4601_daily_bin1438.fits outfile=/scratch/kocevski/217751/cmap_612057601_612316801_4FGL_J2358.0-4601_daily_bin1438.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217751/ft1_filtered_4FGL_J2358.0-4601_daily_bin1438.fits scfile=/scratch/kocevski/217751/ft2_4FGL_J2358.0-4601_daily_bin1438.fits outfile=/scratch/kocevski/217751/cmap_HighResolution_612057601_612316801_4FGL_J2358.0-4601_daily_bin1438.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217751/ft1_filtered_4FGL_J2358.0-4601_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/217751/ft2_4FGL_J2358.0-4601_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217751/Model_4FGL_J2358.0-4601_daily_bin1438.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/217751/ft1_filtered_4FGL_J2358.0-4601_daily_bin1438.fits.....................!
real 41.64
user 40.37
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11335E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.324       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9125       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .60311E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21956E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    23.991       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6698       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.5894       1.0000         .10000E-03   10000.    
    18 'norm      '    7.1019       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3100       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12239E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13120E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .36720       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.212       1.0000         .10000E-03   10000.    
    28 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91172       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73170       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=   5688.157     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4431 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.653       -.13583E-05** at limit **
   2  Prefactor     12.333        13.162       -.44674E-07    .10384E-03
   3  Prefactor     .10000E-03    14.226       -.34959E-05** at limit **
   4  Prefactor     .42414        6.7096        .38376E-06    .31787E-04
   5  Prefactor     .49845        4.0102        .16549E-06    .70491E-04
   6  Prefactor     1.9149        26.341       -.37717E-05    .53819E-04
   7  Prefactor     .10000E-03    3.0916       -.10807E-06** at limit **
   8  Prefactor     .10000E-03    2.2654        .10647E-07** at limit **
   9  norm          .10000E-03    75.299        .87687E-06** at limit **
  10  Prefactor     .10018E-03    71.172       -.22784E-04** at limit **
  11  norm          24.006        22.546       -.17076E-05    .21709E-04
  12  Prefactor     .10000E-03    42.474       -.54407E-05** at limit **
  13  Prefactor     .10000E-03    10.244        .21020E-05** at limit **
  14  Prefactor     4.6721        7.6888       -.41697E-06    .92141E-04
  15  norm          .10000E-03    2.9655       -.96018E-07** at limit **
  16  norm          .10000E-03    1.5380       -.49332E-07** at limit **
  17  norm          4.5794        4.0074       -.60681E-07    .32637E-03
  18  norm          7.1003        6.9390       -.36336E-07    .91490E-04
  19  Prefactor     9.3096        5.1104        .24249E-06    .66844E-03
  20  Prefactor     .10000E-03    11.584       -.76443E-07** at limit **
  21  norm          .10000E-03    2.1179        .17668E-05** at limit **
  22  Prefactor     .10001E-03    5.5326        .10681E-05** at limit **
  23  norm          .10000E-03    .21204       -.97768E-07** at limit **
  24  norm          .36615        1.2965       -.39227E-06    .10060E-02
  25  Prefactor     .10000E-03    21.049        .42760E-05** at limit **
  26  Prefactor     .10002E-03    2.3035       -.30378E-05** at limit **
  27  Prefactor     12.202        17.244        .38877E-06    .15075E-03
  28  norm          .10000E-03    5.2876       -.97062E-06** at limit **
  29  Prefactor     .10000E-03    1.6920       -.12351E-06** at limit **
  30  Prefactor     .10000E-03    .91551       -.95556E-07** at limit **
  31  Normalizat    .91150        .14150        .86264E-06    .54691E-03
  32  Prefactor     .73171        .15912        .93846E-06    .54148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.333
  Prefactor  = 0.0001
  Prefactor  = 0.424137
  Prefactor  = 0.49845
  Prefactor  = 1.91487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100184
  norm       = 24.0064
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.6721
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.57938
  norm       = 7.10028
  Prefactor  = 9.30964
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 0.366154
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 12.2017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.911501
  Prefactor  = 0.731713
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.157     FROM HESSE     STATUS=OK           663 CALLS     5094 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.333        13.159        .11410E-03   -1.5005    
   3  Prefactor     .10000E-03    14.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .42414        27.670        .37468E-02   -1.5578    
   5  Prefactor     .49845        17.654        .28769E-02   -1.5567    
   6  Prefactor     1.9149        26.014        .30058E-03   -1.5431    
   7  Prefactor     .10000E-03    3.1160        .12950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2867        .11036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    78.266        .42123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10018E-03    90.588        .45224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          24.006        22.510        .81780E-04   -1.4728    
  12  Prefactor     .10000E-03    42.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6721        7.6733        .18623E-03   -1.5276    
  15  norm          .10000E-03    2.9675        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5385        .91344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.5794        3.6859        .12604E-03   -1.5280    
  18  norm          7.1003        6.9341        .15053E-03   -1.5175    
  19  Prefactor     9.3096        4.9220        .11721E-03   -1.5098    
  20  Prefactor     .10000E-03    11.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.8943        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    17.376        .32177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .21716        .33896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .36615        1.4269        .15452E-02   -1.5587    
  25  Prefactor     .10000E-03    21.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    5.4008        .17753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.202        16.429        .11463E-03   -1.5009    
  28  norm          .10000E-03    5.2985        .16955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.7047        .95766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .92072        .70460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .91150        .17130        .19125E-03   -.96057    
  32  Prefactor     .73171        .19490        .24274E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9593e-09
Minuit parameter uncertainties:
  1  0.000129951
  2  13.1623
  3  0.000125044
  4  6.85402
  5  5.93421
  6  14.1229
  7  1.36478e-05
  8  2.42294e-05
  9  0.00051461
  10  0.00818146
  11  22.5176
  12  0.000300692
  13  4.07415e-05
  14  7.67491
  15  4.09879e-06
  16  4.70859e-07
  17  3.68605
  18  6.93491
  19  4.92225
  20  4.68707e-06
  21  0.000217348
  22  0.000632887
  23  1.35321e-06
  24  1.42707
  25  0.000135219
  26  0.000604644
  27  16.4347
  28  1.96319e-05
  29  1.37555e-05
  30  4.52599e-06
  31  0.171402
  32  0.19508
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  4.526e-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:  7.317e-01  1.951e-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.115e-01  1.714e-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: 3.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217751/likelihoodResults_612057601_612316801_4FGL_J2358.0-4601_daily_bin1438.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) = 5688.16187756
delta logL = -0.00512099516163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5688.15675887
delta logL = -2.30778096011e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5667       1.0000          .0000       10.000    
     3 'Normalizat'    .91136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73171       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=   5688.157     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      210 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    8.4060        .90712E-02** at limit **
   2  Index         2.0429        7.1102        .50000       -.30323E-05
   3  Normalizat    .91150        .92227E-02    .45047E-01    .87715E-05
   4  Prefactor     .73171        .10650E-01    .42822E-01    .16444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04289
  Normalizat = 0.911502
  Prefactor  = 0.731711
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.157     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      241 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    92.170        .77513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0429        8.7565        .50000       -.63282    
   3  Normalizat    .91150        .33714E-01    .19125E-03   -.96057    
   4  Prefactor     .73171        .38927E-01    .24274E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.7067e-07
Minuit parameter uncertainties:
  1  4.37604e-05
  2  575.478
  3  0.0337144
  4  0.0389282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217751': 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): 102
logL (Free Index) = 5688.1567473
delta logL = 9.2588024927e-06

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  4.376e-05  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.043e+00  5.755e+02  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.317e-01  3.893e-02  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.115e-01  3.371e-02  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/217751/cmap_HighResolution_612057601_612316801_4FGL_J2358.0-4601_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-03', job_status='DONE', photon_flux_upper_limit='3.88e-08', time_completed='2021-09-30 10:50:46.940238', job_id='217751', GAL2='0.73', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1633024246.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='9.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1438' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 217751: <4FGL_J2358.0-4601_daily_bin1438> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1438> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 10:35:54 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:35:55 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:55 2021
Terminated at Thu Sep 30 10:50:47 2021
Results reported at Thu Sep 30 10:50:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1438 359.522 -46.0176 612057601 612316801 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 :                                   876.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

