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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1276
RA = 359.522, Dec = -46.0176
tmin = 570067201, tmax = 570326401
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='217507', job_status='RUN', time_executed='2021-09-30 10:38:51.799917', time_epoch_executed='1633023531.8' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217507

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217507/ft1_4FGL_J2358.0-4601_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217507/ft2_4FGL_J2358.0-4601_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217507/ft1_4FGL_J2358.0-4601_daily_bin1276.fits outfile=/scratch/kocevski/217507/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1276.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=570067201.0 tmax=570326401.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.63
user 3.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217507/ft2_4FGL_J2358.0-4601_daily_bin1276.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/217507/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/217507/ft1_filtered_4FGL_J2358.0-4601_daily_bin1276.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.50
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217507/ft1_filtered_4FGL_J2358.0-4601_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/217507/ft2_4FGL_J2358.0-4601_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/217507/ltcube_570067201_570326401_4FGL_J2358.0-4601_daily_bin1276.fits outfile=/scratch/kocevski/217507/expmap_570067201_570326401_4FGL_J2358.0-4601_daily_bin1276.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/217507/ltcube_570067201_570326401_4FGL_J2358.0-4601_daily_bin1276.fits
.....................!
real 190.08
user 185.29
sys 4.47

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/217507/ft1_filtered_4FGL_J2358.0-4601_daily_bin1276.fits scfile=/scratch/kocevski/217507/ft2_4FGL_J2358.0-4601_daily_bin1276.fits outfile=/scratch/kocevski/217507/cmap_570067201_570326401_4FGL_J2358.0-4601_daily_bin1276.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=359.522 yref=-46.0176 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217507/ft1_filtered_4FGL_J2358.0-4601_daily_bin1276.fits scfile=/scratch/kocevski/217507/ft2_4FGL_J2358.0-4601_daily_bin1276.fits outfile=/scratch/kocevski/217507/cmap_HighResolution_570067201_570326401_4FGL_J2358.0-4601_daily_bin1276.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.61
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217507/ft1_filtered_4FGL_J2358.0-4601_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/217507/ft2_4FGL_J2358.0-4601_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217507/Model_4FGL_J2358.0-4601_daily_bin1276.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/217507/ft1_filtered_4FGL_J2358.0-4601_daily_bin1276.fits.....................!
real 32.31
user 31.03
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.705       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3672       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    67.480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11380E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.739       1.0000         .10000E-03   10000.    
    15 'norm      '    26.240       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7363       1.0000         .10000E-03   10000.    
    18 'norm      '    6.6258       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1296       1.0000         .10000E-03   10000.    
    23 'norm      '    .55007       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.009       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.4631       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .83306       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95400       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=   3749.249     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4298 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.011        .15134E-04** at limit **
   2  Prefactor     .10000E-03    5.4921       -.33199E-06** at limit **
   3  Prefactor     .10000E-03    12.218       -.68329E-05** at limit **
   4  Prefactor     10.706        9.1856       -.20514E-07   -.29092E-04
   5  Prefactor     .10000E-03    10.916        .93302E-05** at limit **
   6  Prefactor     .10000E-03    12.211       -.68275E-05** at limit **
   7  Prefactor     9.3693        9.1450       -.12698E-06   -.10893E-03
   8  Prefactor     .10000E-03    2.9128       -.33193E-07** at limit **
   9  norm          .10000E-03    22.014        .54714E-06** at limit **
  10  Prefactor     .10000E-03    23.281       -.87426E-05** at limit **
  11  norm          67.488        37.116        .42512E-05    .29436E-04
  12  Prefactor     .10000E-03    48.637        .41588E-04** at limit **
  13  Prefactor     .10000E-03    98.480       -.33417E-04** at limit **
  14  Prefactor     11.741        16.159        .26267E-06    .30265E-04
  15  norm          26.239        16.794        .17446E-06    .20899E-04
  16  norm          .10000E-03    2.5919        .12569E-07** at limit **
  17  norm          3.7355        3.7905       -.56731E-06    .11791E-03
  18  norm          6.6259        13.505       -.69239E-07   -.64112E-04
  19  Prefactor     .10000E-03    6.5350       -.21553E-05** at limit **
  20  Prefactor     .10000E-03    40.232        .27861E-05** at limit **
  21  norm          .10000E-03    1.2614        .21232E-07** at limit **
  22  Prefactor     3.1332        21.693       -.45605E-06   -.33730E-04
  23  norm          .54927        1.1075       -.75638E-07   -.56206E-03
  24  norm          .10000E-03    .95355        .18802E-07** at limit **
  25  Prefactor     15.011        20.744        .12261E-06   -.46692E-05
  26  Prefactor     .10000E-03    2.6210        .29492E-07** at limit **
  27  Prefactor     .10000E-03    6.1907        .21213E-05** at limit **
  28  norm          .10000E-03    33.790       -.27045E-04** at limit **
  29  Prefactor     4.4652        6.0446       -.38684E-07    .51258E-04
  30  Prefactor     .10000E-03    3.4242        .91878E-08** at limit **
  31  Normalizat    .83292        .19575       -.67707E-06    .43436E-04
  32  Prefactor     .95408        .22304        .21268E-06    .28618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.36933
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 67.4879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7408
  norm       = 26.2388
  norm       = 0.0001
  norm       = 3.73552
  norm       = 6.6259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.13324
  norm       = 0.549274
  norm       = 0.0001
  Prefactor  = 15.0108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.46521
  Prefactor  = 0.0001
  Normalizat = 0.832924
  Prefactor  = 0.954085
 **********
 **   18 **HESSE 
 **********

 FCN=   3749.249     FROM HESSE     STATUS=OK           653 CALLS     4951 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4932        .14015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.706        9.1845        .12246E-03   -1.5053    
   5  Prefactor     .10000E-03    11.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3693        9.1532        .13094E-03   -1.5096    
   8  Prefactor     .10000E-03    2.9410        .10200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    22.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          67.488        37.155        .48860E-04   -1.4063    
  12  Prefactor     .10000E-03    48.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    98.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.741        16.032        .11692E-03   -1.5023    
  15  norm          26.239        16.803        .78204E-04   -1.4683    
  16  norm          .10000E-03    2.5922        .96271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7355        3.7959        .11718E-03   -1.5321    
  18  norm          6.6259        13.498        .15590E-03   -1.5193    
  19  Prefactor     .10000E-03    6.5535        .15189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2659        .67151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1332        20.214        .22917E-03   -1.5354    
  23  norm          .54927        .94407        .81358E-03   -1.5560    
  24  norm          .10000E-03    .95424        .58393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.011        20.722        .10338E-03   -1.4933    
  26  Prefactor     .10000E-03    2.7385        .19319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.1929        .14880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    33.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.4652        6.0250        .16376E-03   -1.5285    
  30  Prefactor     .10000E-03    3.5309        .22104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .83292        .23688        .21918E-03   -.98859    
  32  Prefactor     .95408        .26975        .24188E-03   -.94276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81689e-11
Minuit parameter uncertainties:
  1  6.44362e-07
  2  7.49997e-07
  3  6.86364e-07
  4  9.18572
  5  4.17369e-05
  6  1.95936e-06
  7  9.15453
  8  2.03233e-06
  9  1.04934e-06
  10  1.44026e-05
  11  37.1682
  12  7.49346e-06
  13  0.00020694
  14  16.0375
  15  16.8062
  16  7.41333e-07
  17  3.79617
  18  13.5044
  19  2.24781e-05
  20  3.57056e-05
  21  8.13824e-07
  22  15.9242
  23  0.9441
  24  2.82217e-07
  25  20.7316
  26  5.67334e-06
  27  2.43823e-06
  28  0.000137353
  29  6.02587
  30  5.21389e-06
  31  0.237177
  32  0.270134
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
584   Normalization:  8.329e-01  2.372e-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: 7.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217507/likelihoodResults_570067201_570326401_4FGL_J2358.0-4601_daily_bin1276.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) = 3749.25080146
delta logL = -0.00135178727714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3749.24944991
delta logL = -2.41769157583e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6124       1.0000          .0000       10.000    
     3 'Normalizat'    .83271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95439       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=   3749.249     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4768        .90712E-02** at limit **
   2  Index         2.6452        6.3220        .50000       -.85635E-04
   3  Normalizat    .83292        .18716        .44036E-01   -.28545E-04
   4  Prefactor     .95409        .22066        .45695E-01   -.28675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.64515
  Normalizat = 0.832923
  Prefactor  = 0.954085
 **********
 **   18 **HESSE 
 **********

 FCN=   3749.249     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3254        .22964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6452        6.3221        .50000       -.49039    
   3  Normalizat    .83292        .22487        .21918E-03   -.98859    
   4  Prefactor     .95409        .26536        .24188E-03   -.94276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84092e-09
Minuit parameter uncertainties:
  1  0.000152002
  2  4.67902
  3  0.225123
  4  0.265718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217507': 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) = 3749.2494485
delta logL = 1.17224863061e-06

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  1.520e-04  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.645e+00  4.679e+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:  9.541e-01  2.657e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  8.329e-01  2.251e-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/217507/cmap_HighResolution_570067201_570326401_4FGL_J2358.0-4601_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2021-09-30 10:50:14.126791', job_id='217507', GAL2='0.95', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1633024214.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1276' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:50:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 217507: <4FGL_J2358.0-4601_daily_bin1276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1276 359.522 -46.0176 570067201 570326401 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 :                                   673.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            883 sec.

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

