/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 226 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1773
RA = 359.522, Dec = -46.0176
tmin = 698889601, tmax = 699148801
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='808591', job_status='RUN', time_executed='2023-02-27 10:49:28.350034', time_epoch_executed='1677523768.35' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808591

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808591/ft1_4FGL_J2358.0-4601_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808591/ft2_4FGL_J2358.0-4601_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808591/ft1_4FGL_J2358.0-4601_daily_bin1773.fits outfile=/scratch/kocevski/808591/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1773.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=698889601.0 tmax=699148801.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 2.94
user 2.74
sys 0.19

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

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

Number of photons that the gtmktime cut: 236

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808591/ft1_filtered_4FGL_J2358.0-4601_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/808591/ft2_4FGL_J2358.0-4601_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/808591/ltcube_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.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/808591/ft2_4FGL_J2358.0-4601_daily_bin1773.fits
.....................!
real 14.98
user 14.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808591/ft1_filtered_4FGL_J2358.0-4601_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/808591/ft2_4FGL_J2358.0-4601_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/808591/ltcube_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.fits outfile=/scratch/kocevski/808591/expmap_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.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/808591/ltcube_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.fits
.....................!
real 191.65
user 187.32
sys 4.30

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/808591/ft1_filtered_4FGL_J2358.0-4601_daily_bin1773.fits scfile=/scratch/kocevski/808591/ft2_4FGL_J2358.0-4601_daily_bin1773.fits outfile=/scratch/kocevski/808591/cmap_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808591/ft1_filtered_4FGL_J2358.0-4601_daily_bin1773.fits scfile=/scratch/kocevski/808591/ft2_4FGL_J2358.0-4601_daily_bin1773.fits outfile=/scratch/kocevski/808591/cmap_HighResolution_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808591/ft1_filtered_4FGL_J2358.0-4601_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/808591/ft2_4FGL_J2358.0-4601_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808591/Model_4FGL_J2358.0-4601_daily_bin1773.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/808591/ft1_filtered_4FGL_J2358.0-4601_daily_bin1773.fits......................!
real 27.26
user 26.15
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/808591/ft1_filtered_4FGL_J2358.0-4601_daily_bin1773.fits', '/scratch/kocevski/808591/ft2_4FGL_J2358.0-4601_daily_bin1773.fits', expMap='/scratch/kocevski/808591/expmap_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.fits', expCube='/scratch/kocevski/808591/ltcube_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/808591/Model_4FGL_J2358.0-4601_daily_bin1773.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  0.000e+00  1.000e+06 ( 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/808591/ft1_filtered_4FGL_J2358.0-4601_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/808591/ft2_4FGL_J2358.0-4601_daily_bin1773.fits
Exposure map: /scratch/kocevski/808591/expmap_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.fits
Exposure cube: /scratch/kocevski/808591/ltcube_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/808591/Model_4FGL_J2358.0-4601_daily_bin1773.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) = 2566.59549534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    123.89       1.0000          .0000       .10000E+07
     2 'Prefactor '    31.104       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14692E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .52364E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.218       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14821E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    9.0849       1.0000          .0000       .10000E+07
     8 'norm      '    .23482E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    25.230       1.0000          .0000       .10000E+07
    10 'norm      '    21.640       1.0000          .0000       .10000E+07
    11 'Prefactor '    .82941E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .38898E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    71.629       1.0000          .0000       .10000E+07
    14 'norm      '    .92992E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .79036E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .76811E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .27760E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .30097E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13153E-01   1.0000          .0000       .10000E+07
    20 'norm      '    .46878E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .54943E-02   1.0000          .0000       .10000E+07
    22 'norm      '    1.3863       1.0000          .0000       .10000E+07
    23 'norm      '    .16203E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .54796E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    4.9022       1.0000          .0000       .10000E+07
    26 'Prefactor '    .88166E-01   1.0000          .0000       .10000E+07
    27 'norm      '    .79010E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    .11596E-03   1.0000          .0000       .10000E+07
    29 'Prefactor '    .10042E-03   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1319       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75500       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=   2566.592     FROM MIGRAD    STATUS=CONVERGED    228 CALLS     3070 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     123.89        1.7781        .75453E-08    .43925E-02
   2  Prefactor     31.151        25.450        .32321E-06   -.39670E-01
   3  Prefactor     .11385E-06    23.346       -.16885E-06** at limit **
   4  Prefactor     .19190E-06    5.5291        .21924E-06** at limit **
   5  Prefactor     13.215        12.820        .27797E-07   -.13001E-02
   6  Prefactor      .0000        2.6104        .13958E-06** at limit **
   7  Prefactor     9.0543        7.0148       -.16124E-06    .31621E-02
   8  norm          .58231E-07    51.641       -.72586E-06** at limit **
   9  Prefactor     25.200        9.4686       -.12905E-06   -.43010E-01
  10  norm          21.616        13.099       -.18534E-06   -.41610E-01
  11  Prefactor     .12774E-04    191.14        .36883E-05** at limit **
  12  Prefactor     .84609E-05    314.84        .47879E-05** at limit **
  13  Prefactor     71.745        1.3449       -.76630E-08    .62008E-02
  14  norm          .12202E-04    81.182       -.31620E-06** at limit **
  15  norm           .0000        5.1993        .56537E-07** at limit **
  16  norm           .0000        5.3158        .29901E-07** at limit **
  17  norm          .30936E-04    57.641        .11566E-07** at limit **
  18  Prefactor      .0000        6.0427        .83491E-07** at limit **
  19  Prefactor     .38780E-06    14.343       -.21902E-06** at limit **
  20  norm           .0000        4.0428        .26840E-06** at limit **
  21  Prefactor     .22204E-09    11.082       -.21946E-06** at limit **
  22  norm          1.3822        2.0019       -.15618E-07   -.19877E-04
  23  norm           .0000        3.3377       -.30955E-06** at limit **
  24  Prefactor     .17097E-06    5.6710        .25336E-06** at limit **
  25  Prefactor     4.9610        6.4881        .39908E-06   -.12850E-02
  26  Prefactor     .11102E-09    36.316       -.10853E-05** at limit **
  27  norm          .27756E-09    17.109       -.14639E-06** at limit **
  28  Prefactor      .0000        4.4641       -.45584E-06** at limit **
  29  Prefactor     .25330E-06    11.614       -.50986E-07** at limit **
  30  Normalizat    1.1317        .31521        .87931E-05    .31262E-05
  31  Prefactor     .75512        .34128       -.15040E-04    .21579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 123.893
  Prefactor  = 31.1506
  Prefactor  = 1.13853e-07
  Prefactor  = 1.91902e-07
  Prefactor  = 13.2154
  Prefactor  = 0
  Prefactor  = 9.05429
  norm       = 5.82312e-08
  Prefactor  = 25.1996
  norm       = 21.6155
  Prefactor  = 1.27744e-05
  Prefactor  = 8.4609e-06
  Prefactor  = 71.7455
  norm       = 1.22019e-05
  norm       = 0
  norm       = 0
  norm       = 3.09364e-05
  Prefactor  = 0
  Prefactor  = 3.87801e-07
  norm       = 0
  Prefactor  = 2.22045e-10
  norm       = 1.38218
  norm       = 0
  Prefactor  = 1.70974e-07
  Prefactor  = 4.96099
  Prefactor  = 1.11022e-10
  norm       = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 2.53297e-07
  Normalizat = 1.13172
  Prefactor  = 0.755119
 **********
 **   18 **HESSE 
 **********

 FCN=   2566.592     FROM HESSE     STATUS=OK           674 CALLS     3744 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     123.89        92.472        .89849E-04   -1.5485    
   2  Prefactor     31.151        31.219        .17933E-03   -1.5596    
   3  Prefactor     .11385E-06    24.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19190E-06    11.142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.215        12.844        .27525E-03   -1.5635    
   6  Prefactor      .0000        2.6102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0543        7.3285        .33228E-03   -1.5648    
   8  norm          .58231E-07    51.891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.200        28.522        .19913E-03   -1.5608    
  10  norm          21.616        28.964        .21503E-03   -1.5615    
  11  Prefactor     .12774E-04    211.86        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .84609E-05    328.87        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     71.745        50.016        .11816E-03   -1.5539    
  14  norm          .12202E-04    117.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        5.2010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        5.3181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .30936E-04    132.76        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        6.0538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38780E-06    24.010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        4.0458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .22204E-09    11.101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3822        2.1535        .92325E-03   -1.5684    
  23  norm           .0000        3.3399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .17097E-06    11.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.9610        6.5336        .45405E-03   -1.5663    
  26  Prefactor     .11102E-09    36.174        .14259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .27756E-09    17.154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor      .0000        4.4638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .25330E-06    25.341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1317        .27350        .36829E-01   -.88740    
  31  Prefactor     .75512        .29034        .66189E-01   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75286e-07
Minuit parameter uncertainties:
  1  92.4728
  2  31.2188
  3  0.00333523
  4  0.00292455
  5  12.8437
  6  6.13109e-06
  7  7.32847
  8  0.00347703
  9  28.5223
  10  28.9646
  11  0.104051
  12  0.105505
  13  50.0164
  14  0.0756732
  15  8.75109e-06
  16  9.2649e-06
  17  0.128178
  18  1.77759e-05
  19  0.00610275
  20  1.49316e-05
  21  9.80853e-05
  22  2.15349
  23  9.66261e-06
  24  0.00274761
  25  6.53357
  26  0.000128935
  27  0.000143647
  28  1.61712e-05
  29  0.00506724
  30  0.273841
  31  0.290929
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  2.533e-07  5.067e-03  0.000e+00  1.000e+06 ( 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:  7.551e-01  2.909e-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.132e+00  2.738e-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: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808591/likelihoodResults_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.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) = 2566.62009795
delta logL = -0.028261696194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2566.45578534
delta logL = 0.136050910976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16948       1.0000          .0000       .10000E+07
     2 'Index     '    4.7539       1.0000          .0000       10.000    
     3 'Normalizat'    1.0886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78559       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=   2566.456     FROM MIGRAD    STATUS=FAILED        84 CALLS      262 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16950        35.323        .41784E-04** at limit **
   2  Index         4.7541        6.0434        .80641E-02   -.25589E-03
   3  Normalizat    1.0887        .22166        .22379E-03   -.26686E-03
   4  Prefactor     .78559        .24295        .28753E-03   -.12253E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2566.456     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      350 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16950        35.323        .76025E-05** at limit **
   2  Index         4.7541        6.0434        .17083E-02   -.25589E-03
   3  Normalizat    1.0887        .22166        .21959E-03   -.26686E-03
   4  Prefactor     .78559        .24295        .14073E-03   -.12253E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2566.456     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      384 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16947        1.4333        .16714E-05** at limit **
   2  Index         4.7543        3.2121        .32256E-03   -.73309E-05
   3  Normalizat    1.0887        .31755        .44758E-04    .25578E-04
   4  Prefactor     .78559        .34666        .11501E-04    .15025E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.169465
  Index      = 4.75426
  Normalizat = 1.08868
  Prefactor  = 0.78559
 **********
 **   18 **HESSE 
 **********

 FCN=   2566.456     FROM HESSE     STATUS=OK            25 CALLS      409 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16947        1.2950        .74862E-07   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.7543        3.0779        .12903E-04   -.49168E-01
   3  Normalizat    1.0887        .31780        .89515E-05   -.90116    
   4  Prefactor     .78559        .34700        .23002E-05   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09686e-11
Minuit parameter uncertainties:
  1  0.936918
  2  3.31632
  3  0.318357
  4  0.347965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808591': 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) = 2566.45578523
delta logL = 0.136051021863

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.695e-01  9.369e-01  0.000e+00  1.000e+06 ( 1.000e-12)
570        Index:  4.754e+00  3.316e+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:  7.856e-01  3.480e-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.089e+00  3.184e-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/808591/cmap_HighResolution_698889601_699148801_4FGL_J2358.0-4601_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2023-02-27 10:57:58.424264', job_id='808591', GAL2='0.79', fit_tolerance='1e-08', EG2='1.09', EG='1.13', time_epoch_completed='1677524278.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.36e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1773' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:57:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0131>
Subject: Job 808591: <4FGL_J2358.0-4601_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 10:45:14 2023
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:45:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:45:15 2023
Terminated at Mon Feb 27 10:58:01 2023
Results reported at Mon Feb 27 10:58:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1773 359.522 -46.0176 698889601 699148801 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 :                                   513.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            767 sec.

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

