/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 1 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2358.0-4601_daily_bin379
RA = 359.522, Dec = -46.0176
tmin = 337564801, tmax = 337824001
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='211549', job_status='RUN', time_executed='2021-09-30 10:15:34.156836', time_epoch_executed='1633022134.16' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211549

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211549/ft1_4FGL_J2358.0-4601_daily_bin379.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211549/ft2_4FGL_J2358.0-4601_daily_bin379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211549/ft1_4FGL_J2358.0-4601_daily_bin379.fits outfile=/scratch/kocevski/211549/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin379.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=337564801.0 tmax=337824001.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 6.28
user 6.02
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211549/ft2_4FGL_J2358.0-4601_daily_bin379.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/211549/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin379.fits evtable="EVENTS" outfile="/scratch/kocevski/211549/ft1_filtered_4FGL_J2358.0-4601_daily_bin379.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/211549/ft1_filtered_4FGL_J2358.0-4601_daily_bin379.fits" evtable="EVENTS" scfile=/scratch/kocevski/211549/ft2_4FGL_J2358.0-4601_daily_bin379.fits sctable="SC_DATA" outfile=/scratch/kocevski/211549/ltcube_337564801_337824001_4FGL_J2358.0-4601_daily_bin379.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/211549/ft2_4FGL_J2358.0-4601_daily_bin379.fits
.....................!
real 11.49
user 11.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211549/ft1_filtered_4FGL_J2358.0-4601_daily_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/211549/ft2_4FGL_J2358.0-4601_daily_bin379.fits sctable="SC_DATA" expcube=/scratch/kocevski/211549/ltcube_337564801_337824001_4FGL_J2358.0-4601_daily_bin379.fits outfile=/scratch/kocevski/211549/expmap_337564801_337824001_4FGL_J2358.0-4601_daily_bin379.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/211549/ltcube_337564801_337824001_4FGL_J2358.0-4601_daily_bin379.fits
.....................!
real 190.90
user 185.26
sys 5.25

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/211549/ft1_filtered_4FGL_J2358.0-4601_daily_bin379.fits scfile=/scratch/kocevski/211549/ft2_4FGL_J2358.0-4601_daily_bin379.fits outfile=/scratch/kocevski/211549/cmap_337564801_337824001_4FGL_J2358.0-4601_daily_bin379.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211549/ft1_filtered_4FGL_J2358.0-4601_daily_bin379.fits scfile=/scratch/kocevski/211549/ft2_4FGL_J2358.0-4601_daily_bin379.fits outfile=/scratch/kocevski/211549/cmap_HighResolution_337564801_337824001_4FGL_J2358.0-4601_daily_bin379.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211549/ft1_filtered_4FGL_J2358.0-4601_daily_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/211549/ft2_4FGL_J2358.0-4601_daily_bin379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211549/Model_4FGL_J2358.0-4601_daily_bin379.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/211549/ft1_filtered_4FGL_J2358.0-4601_daily_bin379.fits.....................!
real 44.47
user 43.21
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.417       1.0000         .10000E-03   10000.    
     3 'Prefactor '    82.464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .97837       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0986       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2461       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0373       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.1580       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3278       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3645       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20961E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.376       1.0000         .10000E-03   10000.    
    23 'norm      '    14.582       1.0000         .10000E-03   10000.    
    24 'norm      '    4.0163       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.7177       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14945E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .78839       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84569       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=   6231.500     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4362 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.149        26.045        .55946E-07    .17832E-04
   2  Prefactor     17.424        20.497       -.40655E-06    .10519E-03
   3  Prefactor     82.455        42.185        .55857E-06   -.19507E-03
   4  Prefactor     .98582        7.4357        .89074E-06   -.67592E-04
   5  Prefactor     4.0994        4.8998        .34616E-08   -.97808E-04
   6  Prefactor     .10000E-03    13.332       -.13191E-06** at limit **
   7  Prefactor     3.2472        5.7004        .27750E-06    .29765E-04
   8  Prefactor     5.0366        4.0589        .30079E-07   -.13678E-03
   9  norm          .10000E-03    19.588        .36473E-06** at limit **
  10  Prefactor     .10000E-03    8.9189        .31866E-06** at limit **
  11  norm          6.1593        30.439        .35114E-05    .73813E-04
  12  Prefactor     .10000E-03    28.139       -.13729E-05** at limit **
  13  Prefactor     .10000E-03    13.428       -.56322E-07** at limit **
  14  Prefactor     8.3275        17.597        .22560E-06    .69655E-04
  15  norm          .10000E-03    10.949       -.30736E-06** at limit **
  16  norm          .10000E-03    3.8041        .21380E-07** at limit **
  17  norm          .10000E-03    1.2151        .17635E-07** at limit **
  18  norm          3.3645        5.9813        .49273E-05    .12933E-02
  19  Prefactor     .10053E-03    16.813       -.68379E-05** at limit **
  20  Prefactor     .10000E-03    22.114        .14516E-06** at limit **
  21  norm          .10000E-03    1.2402        .91495E-07** at limit **
  22  Prefactor     19.354        18.872       -.56684E-06    .31961E-03
  23  norm          14.582        2.3782       -.41206E-07    .94026E-03
  24  norm          4.0172        3.7204        .10674E-06    .24103E-03
  25  Prefactor     .10000E-03    17.504        .29725E-06** at limit **
  26  Prefactor     1.7200        3.2285       -.12031E-06    .85162E-04
  27  Prefactor     .10005E-03    21.747       -.92093E-05** at limit **
  28  norm          .10000E-03    7.1712       -.86751E-07** at limit **
  29  Prefactor     .10000E-03    3.0866       -.22958E-06** at limit **
  30  Prefactor     .10000E-03    1.9480        .27590E-06** at limit **
  31  Normalizat    .78822        .15833       -.59526E-06    .58216E-05
  32  Prefactor     .84586        .17359       -.73484E-06   -.40008E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1494
  Prefactor  = 17.4243
  Prefactor  = 82.455
  Prefactor  = 0.985824
  Prefactor  = 4.0994
  Prefactor  = 0.0001
  Prefactor  = 3.24725
  Prefactor  = 5.03657
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.15933
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 8.32748
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.36448
  Prefactor  = 0.000100525
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.3535
  norm       = 14.5825
  norm       = 4.01718
  Prefactor  = 0.000100002
  Prefactor  = 1.71995
  Prefactor  = 0.00010005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.788218
  Prefactor  = 0.845865
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.500     FROM HESSE     STATUS=OK           659 CALLS     5021 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.149        26.048        .72970E-04   -1.4609    
   2  Prefactor     17.424        20.463        .95970E-04   -1.4873    
   3  Prefactor     82.455        42.265        .44232E-04   -1.3889    
   4  Prefactor     .98582        17.289        .40889E-02   -1.5509    
   5  Prefactor     4.0994        4.8931        .18424E-03   -1.5303    
   6  Prefactor     .10000E-03    13.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2472        5.6841        .22480E-03   -1.5348    
   8  Prefactor     5.0366        4.0557        .13588E-03   -1.5259    
   9  norm          .10000E-03    19.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.1593        30.859        .80889E-03   -1.5212    
  12  Prefactor     .10000E-03    28.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3275        17.544        .13892E-03   -1.5131    
  15  norm          .10000E-03    11.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8344        .15031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2167        .84979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3645        6.5627        .11031E-02   -1.5341    
  19  Prefactor     .10053E-03    57.179        .37934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2487        .85766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.354        15.301        .90991E-04   -1.4828    
  23  norm          14.582        2.3545        .41951E-04   -1.4944    
  24  norm          4.0172        3.7117        .13930E-03   -1.5307    
  25  Prefactor     .10000E-03    17.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.7200        3.1134        .17714E-03   -1.5446    
  27  Prefactor     .10005E-03    57.553        .53049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.1754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.1387        .13523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.9787        .10751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .78822        .18739        .23157E-03   -1.0051    
  32  Prefactor     .84586        .20566        .25732E-03   -.98059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89988e-08
Minuit parameter uncertainties:
  1  26.0581
  2  20.4713
  3  42.2808
  4  8.25918
  5  4.8936
  6  2.62564e-05
  7  5.68509
  8  4.05596
  9  0.000232463
  10  0.000116676
  11  27.5957
  12  0.000741272
  13  2.9847e-05
  14  17.555
  15  0.000229507
  16  9.52315e-06
  17  6.42971e-07
  18  6.56415
  19  0.0109695
  20  0.000154197
  21  7.59034e-06
  22  15.3043
  23  2.35456
  24  3.71193
  25  0.000381092
  26  3.11365
  27  0.00340282
  28  2.15181e-05
  29  1.8689e-05
  30  3.14496e-05
  31  0.187545
  32  0.205843
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  3.145e-05  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:  8.459e-01  2.058e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.882e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/211549/likelihoodResults_337564801_337824001_4FGL_J2358.0-4601_daily_bin379.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) = 6231.50236215
delta logL = -0.00240710541675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6231.49995507
delta logL = -2.86945578409e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5911       1.0000          .0000       10.000    
     3 'Normalizat'    .78823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84590       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6231.500     FROM MIGRAD    STATUS=FAILED        86 CALLS      233 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    487.83        .10784E-02** at limit **
   2  Index         2.6007        7.5544        .50000       -.43976E-04
   3  Normalizat    .78822        .16773        .23157E-03   -.35396E-04
   4  Prefactor     .84587        .19336        .25732E-03    .13387E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6231.500     FROM SIMPLEX   STATUS=UNCHANGED    177 CALLS      410 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    487.83        .24477E-03** at limit **
   2  Index         2.6007        7.5544        .18279E-05   -.43976E-04
   3  Normalizat    .78822        .16773        .25447E-06   -.35396E-04
   4  Prefactor     .84587        .19336        .18104E-06    .13387E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6231.500     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      444 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0849        .21568E-03** at limit **
   2  Index         2.6011        6.2977        .50000       -.43998E-04
   3  Normalizat    .78822        .17577        .92630E-05   -.49829E-04
   4  Prefactor     .84587        .20295        .10293E-04    .37553E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.60113
  Normalizat = 0.788218
  Prefactor  = 0.845866
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.500     FROM HESSE     STATUS=OK            29 CALLS      473 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9963        .43136E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6011        6.2945        .50000       -.50040    
   3  Normalizat    .78822        .17587        .18526E-05   -1.0051    
   4  Prefactor     .84587        .20305        .20586E-05   -.98059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69453e-09
Minuit parameter uncertainties:
  1  0.000174415
  2  4.39123
  3  0.175994
  4  0.203226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211549': 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) = 6231.49995485
delta logL = 1.8805712898e-07

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  1.744e-04  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.601e+00  4.391e+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:  8.459e-01  2.032e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.882e-01  1.760e-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/211549/cmap_HighResolution_337564801_337824001_4FGL_J2358.0-4601_daily_bin379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.81e-08', time_completed='2021-09-30 10:31:37.396616', job_id='211549', GAL2='0.85', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1633023097.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='379' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:31:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 211549: <4FGL_J2358.0-4601_daily_bin379> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin379> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 10:15:23 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:15:25 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:15:25 2021
Terminated at Thu Sep 30 10:31:38 2021
Results reported at Thu Sep 30 10:31:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin379 359.522 -46.0176 337564801 337824001 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 :                                   959.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

