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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1648
RA = 359.522, Dec = -46.0176
tmin = 666489601, tmax = 666748801
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='45149', job_status='RUN', time_executed='2022-02-17 02:38:34.114795', time_epoch_executed='1645094314.11' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1648'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45149/ft1_4FGL_J2358.0-4601_daily_bin1648.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45149/ft2_4FGL_J2358.0-4601_daily_bin1648.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45149/ft1_4FGL_J2358.0-4601_daily_bin1648.fits outfile=/scratch/kocevski/45149/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1648.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=666489601.0 tmax=666748801.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.38
user 3.01
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45149/ft1_filtered_4FGL_J2358.0-4601_daily_bin1648.fits" evtable="EVENTS" scfile=/scratch/kocevski/45149/ft2_4FGL_J2358.0-4601_daily_bin1648.fits sctable="SC_DATA" outfile=/scratch/kocevski/45149/ltcube_666489601_666748801_4FGL_J2358.0-4601_daily_bin1648.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/45149/ft2_4FGL_J2358.0-4601_daily_bin1648.fits
.....................!
real 15.11
user 14.74
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45149/ft1_filtered_4FGL_J2358.0-4601_daily_bin1648.fits evtable="EVENTS" scfile=/scratch/kocevski/45149/ft2_4FGL_J2358.0-4601_daily_bin1648.fits sctable="SC_DATA" expcube=/scratch/kocevski/45149/ltcube_666489601_666748801_4FGL_J2358.0-4601_daily_bin1648.fits outfile=/scratch/kocevski/45149/expmap_666489601_666748801_4FGL_J2358.0-4601_daily_bin1648.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/45149/ltcube_666489601_666748801_4FGL_J2358.0-4601_daily_bin1648.fits
.....................!
real 191.66
user 185.80
sys 5.24

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2358.0-4601 @ 359.522 -46.0176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/45149/ft1_filtered_4FGL_J2358.0-4601_daily_bin1648.fits scfile=/scratch/kocevski/45149/ft2_4FGL_J2358.0-4601_daily_bin1648.fits outfile=/scratch/kocevski/45149/cmap_666489601_666748801_4FGL_J2358.0-4601_daily_bin1648.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45149/ft1_filtered_4FGL_J2358.0-4601_daily_bin1648.fits scfile=/scratch/kocevski/45149/ft2_4FGL_J2358.0-4601_daily_bin1648.fits outfile=/scratch/kocevski/45149/cmap_HighResolution_666489601_666748801_4FGL_J2358.0-4601_daily_bin1648.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.59
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45149/ft1_filtered_4FGL_J2358.0-4601_daily_bin1648.fits evtable="EVENTS" scfile=/scratch/kocevski/45149/ft2_4FGL_J2358.0-4601_daily_bin1648.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45149/Model_4FGL_J2358.0-4601_daily_bin1648.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/45149/ft1_filtered_4FGL_J2358.0-4601_daily_bin1648.fits.....................!
real 19.44
user 18.23
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4247       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50782E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    55.947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10000.       1.0000         .10000E-03   10000.    
    16 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    202.64       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15200E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6941.5       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89877       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=   1092.972     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4524 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.072       -.68767E-05** at limit **
   2  Prefactor     .10000E-03    15.673       -.36995E-05** at limit **
   3  Prefactor     .10000E-03    21.462       -.11024E-04** at limit **
   4  Prefactor     2.4207        46.648        .35555E-05   -.35968E-04
   5  Prefactor     .10000E-03    5.2261        .25340E-07** at limit **
   6  Prefactor     .10000E-03    19.605        .87131E-05** at limit **
   7  Prefactor     .10000E-03    3.0569        .40454E-07** at limit **
   8  Prefactor     .10000E-03    14.067        .12409E-05** at limit **
   9  norm          .10000E-03    15.800        .18766E-05** at limit **
  10  Prefactor     .10746E-03    70.416        .23333E-05** at limit **
  11  norm          55.947        40.876        .56238E-06   -.61818E-04
  12  Prefactor     .10000E-03    37.062       -.22321E-04** at limit **
  13  Prefactor     .10000E-03    112.82       -.11269E-04** at limit **
  14  Prefactor     .10000E-03    356.67        .33431E-03** at limit **
  15  norm         10000.0        7010.8        .15818E-02** at limit **
  16  norm         10000.0        9529.9        .14129E-02** at limit **
  17  norm          .10000E-03    103.12       -.33000E-04** at limit **
  18  norm          202.64        261.08       -.23565E-05    .88391E-06
  19  Prefactor    10000.0        778.44        .34412E-03** at limit **
  20  Prefactor     .10000E-03    575.45       -.35769E-04** at limit **
  21  norm          .10000E-03    31.690        .19721E-04** at limit **
  22  Prefactor     .10000E-03    1095.1       -.69017E-03** at limit **
  23  norm          6941.2        1364.7       -.57972E-04   -.75900E-05
  24  norm          .10000E-03    11.374       -.12126E-06** at limit **
  25  Prefactor     .10000E-03    566.02       -.19610E-04** at limit **
  26  Prefactor     .10000E-03    9.5374        .19148E-06** at limit **
  27  Prefactor     .10000E-03    79.199       -.12185E-04** at limit **
  28  norm          .10000E-03    62.159        .39760E-04** at limit **
  29  Prefactor     .10000E-03    9.1158       -.35063E-07** at limit **
  30  Prefactor     .10000E-03    3.4688        .34450E-07** at limit **
  31  Normalizat    .10000E-01    .63626E-01    .11726E-05** at limit **
  32  Prefactor     .89869        .19925        .30357E-05   -.94756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.42073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000107462
  norm       = 55.947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 10000
  norm       = 0.0001
  norm       = 202.64
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6941.23
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.898685
 **********
 **   18 **HESSE 
 **********

 FCN=   1092.972     FROM HESSE     STATUS=OK           633 CALLS     5157 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.673        .12788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.462        .14965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4207        46.416        .26283E-03   -1.5397    
   5  Prefactor     .10000E-03    5.2337        .73826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.611        .14302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0576        .56463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.340        .24079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.801        .12839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10746E-03    931.13        .50947E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          55.947        40.536        .53630E-04   -1.4211    
  12  Prefactor     .10000E-03    37.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    112.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    356.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        7010.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        9530.6        .19093E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    103.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          202.64        261.16        .28388E-04   -1.2851    
  19  Prefactor    10000.0        778.35        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    575.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    31.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1094.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6941.2        1338.3        .43406E-04    .39873    
  24  norm          .10000E-03    11.373        .10893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    566.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.5374        .99744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    79.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    62.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.1158        .97514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.4688        .60148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .64728E-01    .50467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .89869        .19466        .20549E-03   -.96187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43876e-09
Minuit parameter uncertainties:
  1  1.33961e-05
  2  4.85707e-06
  3  1.16433e-05
  4  21.2185
  5  7.67352e-06
  6  2.24896e-05
  7  4.32397e-06
  8  0.000111453
  9  8.21997e-06
  10  0.169412
  11  40.5561
  12  3.619e-05
  13  5.57139e-06
  14  5.43271e-05
  15  0.000226765
  16  0.0129883
  17  7.14727e-06
  18  262.675
  19  0.000347388
  20  9.39411e-05
  21  7.43694e-06
  22  0.000646744
  23  1357.86
  24  2.23264e-06
  25  0.000358187
  26  6.16789e-06
  27  0.000119922
  28  4.07513e-06
  29  6.31454e-06
  30  2.77485e-06
  31  9.94971e-07
  32  0.194813
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  2.775e-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:  8.987e-01  1.948e-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.000e-02  9.950e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/45149/likelihoodResults_666489601_666748801_4FGL_J2358.0-4601_daily_bin1648.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) = 1092.97339631
delta logL = -0.00132784612379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1092.97207077
delta logL = -2.3044651698e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11722E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5608       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89865       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=   1092.972     FROM MIGRAD    STATUS=FAILED       105 CALLS      257 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.836        .61380E-02** at limit **
   2  Index         1.7368        5.3059        .50000       -.10458E-05
   3  Normalizat    .10000E-01    .17936E-02    .50468E-02** at limit **
   4  Prefactor     .89869        .30261E-01    .20549E-03   -.75041E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1092.972     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      428 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.836        .34832E-03** at limit **
   2  Index         1.7368        5.3059        .40864E-05   -.10458E-05
   3  Normalizat    .10000E-01    .17936E-02    .79841E-03** at limit **
   4  Prefactor     .89869        .30261E-01    .39289E-07   -.75041E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1092.972     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      459 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    497.80        .76195E-03** at limit **
   2  Index         1.7384        9.1280        .50000        .92405E-07
   3  Normalizat    .10000E-01    .14386E-01    .10094E-02** at limit **
   4  Prefactor     .89869        .85704E-01    .41097E-04   -.74883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73835
  Normalizat = 0.01
  Prefactor  = 0.898685
 **********
 **   18 **HESSE 
 **********

 FCN=   1092.972     FROM HESSE     STATUS=OK            29 CALLS      488 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.961        .15239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7384        5.3288        .50000       -.71065    
   3  Normalizat    .10000E-01    .64729E-01    .20187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .89869        .18185        .82195E-05   -.96187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0207e-11
Minuit parameter uncertainties:
  1  0.000122634
  2  316.683
  3  3.26672e-08
  4  0.181975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45149': 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) = 1092.97206303
delta logL = 5.43138776266e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.987e-01  1.820e-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.000e-02  3.267e-08  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/45149/cmap_HighResolution_666489601_666748801_4FGL_J2358.0-4601_daily_bin1648.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2022-02-17 02:45:57.507335', job_id='45149', GAL2='0.90', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1645094757.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='5.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1648' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb 17 02:45:57 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 45149: <4FGL_J2358.0-4601_daily_bin1648> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1648> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Feb 17 02:30:36 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb 17 02:38:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb 17 02:38:19 2022
Terminated at Thu Feb 17 02:45:58 2022
Results reported at Thu Feb 17 02:45:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1648 359.522 -46.0176 666489601 666748801 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 :                                   445.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   458 sec.
    Turnaround time :                            922 sec.

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

