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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1165
RA = 359.522, Dec = -46.0176
tmin = 541296001, tmax = 541555201
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='217276', job_status='RUN', time_executed='2021-09-30 10:37:36.593261', time_epoch_executed='1633023456.59' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217276

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217276/ft1_4FGL_J2358.0-4601_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217276/ft2_4FGL_J2358.0-4601_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217276/ft1_4FGL_J2358.0-4601_daily_bin1165.fits outfile=/scratch/kocevski/217276/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1165.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=541296001.0 tmax=541555201.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.70
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217276/ft1_filtered_4FGL_J2358.0-4601_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/217276/ft2_4FGL_J2358.0-4601_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/217276/ltcube_541296001_541555201_4FGL_J2358.0-4601_daily_bin1165.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/217276/ft2_4FGL_J2358.0-4601_daily_bin1165.fits
.....................!
real 12.19
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217276/ft1_filtered_4FGL_J2358.0-4601_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/217276/ft2_4FGL_J2358.0-4601_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/217276/ltcube_541296001_541555201_4FGL_J2358.0-4601_daily_bin1165.fits outfile=/scratch/kocevski/217276/expmap_541296001_541555201_4FGL_J2358.0-4601_daily_bin1165.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/217276/ltcube_541296001_541555201_4FGL_J2358.0-4601_daily_bin1165.fits
.....................!
real 191.01
user 185.30
sys 4.91

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/217276/ft1_filtered_4FGL_J2358.0-4601_daily_bin1165.fits scfile=/scratch/kocevski/217276/ft2_4FGL_J2358.0-4601_daily_bin1165.fits outfile=/scratch/kocevski/217276/cmap_541296001_541555201_4FGL_J2358.0-4601_daily_bin1165.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217276/ft1_filtered_4FGL_J2358.0-4601_daily_bin1165.fits scfile=/scratch/kocevski/217276/ft2_4FGL_J2358.0-4601_daily_bin1165.fits outfile=/scratch/kocevski/217276/cmap_HighResolution_541296001_541555201_4FGL_J2358.0-4601_daily_bin1165.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=359.522 yref=-46.0176 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217276/ft1_filtered_4FGL_J2358.0-4601_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/217276/ft2_4FGL_J2358.0-4601_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217276/Model_4FGL_J2358.0-4601_daily_bin1165.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/217276/ft1_filtered_4FGL_J2358.0-4601_daily_bin1165.fits.....................!
real 37.25
user 35.73
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.201       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.695       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46418       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.100       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    92.103       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.067       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3935       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.252       1.0000         .10000E-03   10000.    
    23 'norm      '    2.8537       1.0000         .10000E-03   10000.    
    24 'norm      '    13.374       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.002       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.9932       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2184       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .83344       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=   4429.949     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4348 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.202        57.510        .85408E-07   -.36374E-05
   2  Prefactor     17.703        32.041       -.26083E-06   -.41430E-04
   3  Prefactor     .10000E-03    71.079       -.32493E-06** at limit **
   4  Prefactor     7.5320        9.2383        .30293E-07   -.16141E-04
   5  Prefactor     .46593        7.4065        .34412E-06   -.10101E-03
   6  Prefactor     .10000E-03    12.002       -.12562E-06** at limit **
   7  Prefactor     .10000E-03    5.4632       -.19515E-06** at limit **
   8  Prefactor     .10000E-03    2.4275       -.91459E-07** at limit **
   9  norm          .10000E-03    23.565       -.11226E-06** at limit **
  10  Prefactor     33.105        28.554        .66698E-07   -.86824E-05
  11  norm          .10000E-03    11.912        .78533E-08** at limit **
  12  Prefactor     92.110        104.33       -.37902E-07   -.12042E-04
  13  Prefactor     26.522        49.961        .63014E-06    .21259E-04
  14  Prefactor     .10000E-03    5.0652        .18328E-06** at limit **
  15  norm          .10000E-03    4.7394       -.69195E-07** at limit **
  16  norm          .10000E-03    5.4423       -.16394E-06** at limit **
  17  norm          .10000E-03    3.6919       -.38599E-07** at limit **
  18  norm          23.066        23.575        .14866E-06   -.40475E-06
  19  Prefactor     2.4020        9.6828        .20946E-05   -.61155E-05
  20  Prefactor     .10000E-03    52.575        .30608E-06** at limit **
  21  norm          .10000E-03    3.8840       -.29454E-07** at limit **
  22  Prefactor     28.226        29.726       -.10549E-05    .13982E-05
  23  norm          2.8538        1.7173        .37101E-07   -.22484E-03
  24  norm          13.371        7.7754        .80211E-07   -.12383E-04
  25  Prefactor     .10000E-03    4.3830        .62231E-07** at limit **
  26  Prefactor     .10000E-03    4.3971        .23855E-05** at limit **
  27  Prefactor     21.963        31.828       -.13341E-05   -.74756E-04
  28  norm          .10000E-03    8.4458        .30260E-07** at limit **
  29  Prefactor     .10000E-03    2.0323        .13718E-06** at limit **
  30  Prefactor     6.9947        6.1156        .66383E-07   -.47743E-04
  31  Normalizat    1.2181        .22077       -.37953E-06   -.98691E-04
  32  Prefactor     .83369        .23692        .69715E-07   -.99533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.2025
  Prefactor  = 17.7034
  Prefactor  = 0.0001
  Prefactor  = 7.53204
  Prefactor  = 0.465927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.1055
  norm       = 0.0001
  Prefactor  = 92.11
  Prefactor  = 26.5222
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 23.0665
  Prefactor  = 2.40202
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.2256
  norm       = 2.85377
  norm       = 13.3715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9627
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.99466
  Normalizat = 1.21814
  Prefactor  = 0.83369
 **********
 **   18 **HESSE 
 **********

 FCN=   4429.949     FROM HESSE     STATUS=OK           655 CALLS     5003 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.202        57.534        .64847E-04   -1.4471    
   2  Prefactor     17.703        31.942        .95213E-04   -1.4866    
   3  Prefactor     .10000E-03    71.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5320        9.2370        .14613E-03   -1.5159    
   5  Prefactor     .46593        21.154        .34463E-02   -1.5571    
   6  Prefactor     .10000E-03    12.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4882        .15184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4321        .10119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.105        28.639        .69649E-04   -1.4557    
  11  norm          .10000E-03    11.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     92.110        104.45        .41873E-04   -1.3786    
  13  Prefactor     26.522        49.923        .77765E-04   -1.4678    
  14  Prefactor     .10000E-03    5.0648        .14626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7393        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.4664        .15147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.7066        .12488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.066        23.588        .83400E-04   -1.4747    
  19  Prefactor     2.4020        9.8149        .13235E-02   -1.5398    
  20  Prefactor     .10000E-03    52.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.9096        .12795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.226        29.890        .75374E-04   -1.4645    
  23  norm          2.8538        1.7055        .31032E-03   -1.5370    
  24  norm          13.371        7.7705        .10953E-03   -1.4976    
  25  Prefactor     .10000E-03    4.3844        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.4792        .26872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.963        32.552        .85393E-04   -1.4770    
  28  norm          .10000E-03    8.4473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.0420        .92648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.9947        6.1120        .14004E-03   -1.5179    
  31  Normalizat    1.2181        .26707        .23318E-03   -.86044    
  32  Prefactor     .83369        .28409        .30429E-03   -.98498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91158e-08
Minuit parameter uncertainties:
  1  57.6175
  2  31.9726
  3  0.000141922
  4  9.23878
  5  6.28061
  6  6.36525e-06
  7  7.55916e-07
  8  1.11623e-06
  9  5.89084e-07
  10  28.6514
  11  1.03993e-05
  12  104.658
  13  50.0016
  14  8.97464e-06
  15  8.30168e-06
  16  1.24233e-06
  17  6.31385e-08
  18  23.5976
  19  9.71347
  20  8.18531e-05
  21  5.43728e-07
  22  29.9063
  23  1.70552
  24  7.77113
  25  5.37799e-06
  26  1.56664e-05
  27  32.578
  28  3.90641e-07
  29  2.33832e-07
  30  6.11259
  31  0.267374
  32  0.284593
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  6.995e+00  6.113e+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:  8.337e-01  2.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.218e+00  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.31
Ra Dec: 359.522 -46.018
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 5.84e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.36e-05

TS (Fixed Index): 3.31
Ra Dec: 359.522 -46.018
Photon Flux Upper Limit: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217276/likelihoodResults_541296001_541555201_4FGL_J2358.0-4601_daily_bin1165.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) = 4429.94446608
delta logL = 0.00466440007222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4429.94303717
delta logL = 0.00609330828593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7286       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6811       1.0000          .0000       10.000    
     3 'Normalizat'    1.2115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4429.943     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7284        6.3933        .13334E-03    .57626E-03
   2  Index         2.6812        .92736        .87673E-02    .67273E-04
   3  Normalizat    1.2115        .26441        .23369E-03   -.58816E-04
   4  Prefactor     .83854        .28509        .30349E-03   -.61734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.7284
  Index      = 2.6812
  Normalizat = 1.21146
  Prefactor  = 0.838542
 **********
 **   18 **HESSE 
 **********

 FCN=   4429.943     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7284        6.1691        .53338E-05   -1.5189    
   2  Index         2.6812        .89371        .35069E-03   -.48224    
   3  Normalizat    1.2115        .26434        .93477E-05   -.86249    
   4  Prefactor     .83854        .28513        .12139E-04   -.98323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94875e-10
Minuit parameter uncertainties:
  1  6.16965
  2  0.89989
  3  0.264636
  4  0.285637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217276': 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) = 4429.94303716
delta logL = 0.00609331973828

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  6.728e+00  6.170e+00  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.681e+00  8.999e-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:  8.385e-01  2.856e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.211e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 359.522 -46.018
Photon Index (Free Index): 2.68 +/- 0.90
Photon Flux (Free Index): 6.38e-08 +/- 7.01e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.27e-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/217276/cmap_HighResolution_541296001_541555201_4FGL_J2358.0-4601_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='5.84e-08', energy_flux2='1.56e-05', photon_flux_error='5.10e-08', dlogl='6.09e-03', energy_flux='1.56e-05', photon_flux2='6.38e-08', job_status='DONE', time_completed='2021-09-30 10:50:05.613497', photon_index_error2='0.90', photon_index2='2.68', ts='3.31', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.27e-05', EG='1.22', time_epoch_completed='1633024205.61', return_code='0', job_id='217276', GAL2='0.84', EG2='1.21', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='7.01e-08', ts2='3.32', photon_index='2.58' WHERE bin_id='1165' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:50:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 217276: <4FGL_J2358.0-4601_daily_bin1165> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1165 359.522 -46.0176 541296001 541555201 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 :                                   743.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

