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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1348
RA = 359.522, Dec = -46.0176
tmin = 588729601, tmax = 588988801
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='217613', job_status='RUN', time_executed='2021-09-30 10:38:39.996796', time_epoch_executed='1633023520.0' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217613/ft1_4FGL_J2358.0-4601_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217613/ft1_4FGL_J2358.0-4601_daily_bin1348.fits outfile=/scratch/kocevski/217613/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1348.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=588729601.0 tmax=588988801.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.12
user 2.88
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.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/217613/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1348.fits evtable="EVENTS" outfile="/scratch/kocevski/217613/ft1_filtered_4FGL_J2358.0-4601_daily_bin1348.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217613/ft1_filtered_4FGL_J2358.0-4601_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/217613/ltcube_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.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/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.fits
.....................!
real 12.32
user 11.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217613/ft1_filtered_4FGL_J2358.0-4601_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/217613/ltcube_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.fits outfile=/scratch/kocevski/217613/expmap_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.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/217613/ltcube_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.fits
.....................!
real 191.83
user 186.22
sys 5.18

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/217613/ft1_filtered_4FGL_J2358.0-4601_daily_bin1348.fits scfile=/scratch/kocevski/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.fits outfile=/scratch/kocevski/217613/cmap_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217613/ft1_filtered_4FGL_J2358.0-4601_daily_bin1348.fits scfile=/scratch/kocevski/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.fits outfile=/scratch/kocevski/217613/cmap_HighResolution_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.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/217613/ft1_filtered_4FGL_J2358.0-4601_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217613/Model_4FGL_J2358.0-4601_daily_bin1348.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/217613/ft1_filtered_4FGL_J2358.0-4601_daily_bin1348.fits.....!
real 13.89
user 12.58
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217613/ft1_filtered_4FGL_J2358.0-4601_daily_bin1348.fits', '/scratch/kocevski/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.fits', expMap='/scratch/kocevski/217613/expmap_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.fits', expCube='/scratch/kocevski/217613/ltcube_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217613/Model_4FGL_J2358.0-4601_daily_bin1348.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/217613/ft1_filtered_4FGL_J2358.0-4601_daily_bin1348.fits
Spacecraft file(s): /scratch/kocevski/217613/ft2_4FGL_J2358.0-4601_daily_bin1348.fits
Exposure map: /scratch/kocevski/217613/expmap_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.fits
Exposure cube: /scratch/kocevski/217613/ltcube_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217613/Model_4FGL_J2358.0-4601_daily_bin1348.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 67.0594025805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 63.5845073189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0348       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7583       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6389       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3391       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62825E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10177       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20947E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72533E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8727       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.678       1.0000         .10000E-03   10000.    
    11 'norm      '    148.63       1.0000         .10000E-03   10000.    
    12 'Prefactor '    407.67       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4465       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8880       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1545       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0119       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3757       1.0000         .10000E-03   10000.    
    18 'norm      '    7.1966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1786       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1287       1.0000         .10000E-03   10000.    
    21 'norm      '    4.9807       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2868       1.0000         .10000E-03   10000.    
    23 'norm      '    7.1964       1.0000         .10000E-03   10000.    
    24 'norm      '    1.8393       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .85866       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9232       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3125       1.0000         .10000E-03   10000.    
    28 'norm      '    2.9659       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.4255       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.6786       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .40248E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   61.04209     FROM MIGRAD    STATUS=CONVERGED    320 CALLS      653 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6335.4        .31058E-05** at limit **
   2  Prefactor    10000.0        6704.3        .88117E-04** at limit **
   3  Prefactor     .10001E-03    9000.7       -.48237E-04** at limit **
   4  Prefactor     .10000E-03    6275.8        .20665E-04** at limit **
   5  Prefactor     .10000E-03    157.98       -.10885E-05** at limit **
   6  Prefactor     .10000E-03    168.67        .25674E-05** at limit **
   7  Prefactor     .10000E-03    61.058        .40299E-06** at limit **
   8  Prefactor     .10000E-03    33.564       -.21633E-05** at limit **
   9  norm          .10000E-03    388.58        .40348E-05** at limit **
  10  Prefactor     166.07        158.24       -.52006E-05    .32774E-04
  11  norm          .10008E-03    227.88        .19369E-04** at limit **
  12  Prefactor     324.72        334.85       -.66688E-05   -.15845E-04
  13  Prefactor     .10003E-03    918.30       -.47520E-05** at limit **
  14  Prefactor     .10016E-03    6355.7        .12588E-04** at limit **
  15  norm          2.1545        9197.3         .0000         .0000    
  16  norm          .10029E-03    9901.4       -.31380E-04** at limit **
  17  norm          1.3757        9208.5         .0000         .0000    
  18  norm          7.1966        9149.7         .0000         .0000    
  19  Prefactor    10000.0        5013.1        .85870E-03** at limit **
  20  Prefactor     7.1287        9150.2         .0000         .0000    
  21  norm          4.9807        9167.6         .0000         .0000    
  22  Prefactor    10000.0        5139.2       -.35033E-03** at limit **
  23  norm          .10003E-03    8468.8       -.82287E-04** at limit **
  24  norm         10000.0        9885.9        .32527E-03** at limit **
  25  Prefactor     .10000E-03    1149.3       -.41322E-04** at limit **
  26  Prefactor    10000.0        9895.8       -.96657E-04** at limit **
  27  Prefactor    10000.0        5052.9       -.10512E-03** at limit **
  28  norm         10000.0        9973.1       -.15011E-03** at limit **
  29  Prefactor    10000.0        7526.8        .10064E-03** at limit **
  30  Prefactor     .10124E-03    7783.8       -.72315E-04** at limit **
  31  Normalizat    .10000E-01    .17083        .81184E-05** at limit **
  32  Prefactor     .11585E-11    .15848       -.31211E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 10000
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 166.073
  norm       = 0.000100081
  Prefactor  = 324.721
  Prefactor  = 0.000100028
  Prefactor  = 0.000100161
  norm       = 2.15453
  norm       = 0.000100288
  norm       = 1.37575
  norm       = 7.19664
  Prefactor  = 10000
  Prefactor  = 7.12868
  norm       = 4.98067
  Prefactor  = 10000
  norm       = 0.000100025
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000101241
  Normalizat = 0.01
  Prefactor  = 1.15852e-12
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   61.04209     FROM HESSE     STATUS=FAILED        65 CALLS      718 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6311.0        .40861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        6857.0        .35991E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    9055.6        .34095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6321.3        .94721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    137.50        .93325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    160.17        .95197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.347        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.298        .93209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    355.50        .51262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     166.07        161.01        .12671E-02   -1.3123    
  11  norm          .10008E-03    275.75        .82642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     324.72        323.49        .50569E-03   -1.2084    
  13  Prefactor     .10003E-03    876.24        .43044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10016E-03    6305.0        .59785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          566.51        564.23         .0000       -1.5414    
  16  norm          .10029E-03    .42901       -.31380E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3757        1.0889         .0000       -1.5473    
  18  norm          7.1966        1.0024         .0000       -1.5171    
  19  Prefactor    10000.0        .80728E-01    .85870E-03   -4.7123    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1287        1.0025         .0000       -1.5174    
  21  norm          4.9807        1.0051         .0000       -1.5262    
  22  Prefactor    10000.0        .77937E-01   -.35033E-03   -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10003E-03    .34934E-01   -.82287E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm         10000.0        .14783        .32527E-03   -4.7123    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .40048       -.41322E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        .14024       -.96657E-04   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor    10000.0        .11373       -.10512E-03   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm         10000.0        .86862E-01   -.15011E-03   -4.7123    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor    10000.0        .74635E-01    .10064E-03   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10124E-03    .69292E-01   -.72315E-04    4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .25594        .81184E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .11585E-11    .25749       -.31211E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.29779e-10
Minuit parameter uncertainties:
  1  0.0112002
  2  0.468249
  3  0.0190933
  4  0.00210073
  5  0.000486821
  6  0.000482766
  7  2.34744e-05
  8  3.55503e-06
  9  0.000104241
  10  161.437
  11  0.00946997
  12  325.314
  13  0.0100788
  14  0.0429791
  15  1.02984
  16  0.000702766
  17  1.08891
  18  1.00243
  19  0.00155239
  20  1.00248
  21  1.00513
  22  0.00148864
  23  5.96874e-05
  24  0.00462219
  25  1.40559e-05
  26  3.27998e-05
  27  0.000379972
  28  0.0012022
  29  0.000107977
  30  0.000586529
  31  2.76449e-06
  32  1.09712e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 61.0420856115

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.012e-04  5.865e-04  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  2.582e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
571        Scale:  6.628e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.159e-12  1.097e-06  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.000e-02  2.764e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.491963441364

TS (Fixed Index): -0.00
Ra Dec: 359.522 -46.018
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.82e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217613/likelihoodResults_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.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) = 61.0424334564
delta logL = -0.000347844953957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 61.0424334554
delta logL = -0.000347843939416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.5834       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=   61.04243     FROM MIGRAD    STATUS=CONVERGED     20 CALLS       85 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.5845        3.6838        .50000       -.43532E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 2.58445
 **********
 **   18 **HESSE 
 **********

 FCN=   61.04243     FROM HESSE     STATUS=OK            11 CALLS       96 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.5845        3.6838        .50000       -.50420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89505e-11
Minuit parameter uncertainties:
  1  4.3778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217613': 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) = 61.0424334544
delta logL = -0.000347842922814

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  9.637e-03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
570        Index:  2.584e+00  4.378e+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:  2.052e-08  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/217613/cmap_HighResolution_588729601_588988801_4FGL_J2358.0-4601_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.82e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-30 10:44:10.903145', job_id='217613', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633023850.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-3.48e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1348' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:44:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 217613: <4FGL_J2358.0-4601_daily_bin1348> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1348 359.522 -46.0176 588729601 588988801 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 :                                   323.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            511 sec.

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

