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


Performing analysis on: 4FGL_J2358.0-4601_daily_bin1077
RA = 359.522, Dec = -46.0176
tmin = 518486401, tmax = 518745601
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='216203', job_status='RUN', time_executed='2021-09-30 10:34:44.549377', time_epoch_executed='1633023284.55' WHERE source_name='4FGL J2358.0-4601' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216203/ft1_4FGL_J2358.0-4601_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216203/ft2_4FGL_J2358.0-4601_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216203/ft1_4FGL_J2358.0-4601_daily_bin1077.fits outfile=/scratch/kocevski/216203/ft1_filteredMKT_4FGL_J2358.0-4601_daily_bin1077.fits ra=359.522 dec=-46.0176 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.82
user 6.55
sys 0.25

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216203/ft1_filtered_4FGL_J2358.0-4601_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/216203/ft2_4FGL_J2358.0-4601_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/216203/ltcube_518486401_518745601_4FGL_J2358.0-4601_daily_bin1077.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/216203/ft2_4FGL_J2358.0-4601_daily_bin1077.fits
.....................!
real 11.66
user 11.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216203/ft1_filtered_4FGL_J2358.0-4601_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/216203/ft2_4FGL_J2358.0-4601_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/216203/ltcube_518486401_518745601_4FGL_J2358.0-4601_daily_bin1077.fits outfile=/scratch/kocevski/216203/expmap_518486401_518745601_4FGL_J2358.0-4601_daily_bin1077.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/216203/ltcube_518486401_518745601_4FGL_J2358.0-4601_daily_bin1077.fits
.....................!
real 190.45
user 184.93
sys 5.09

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

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

This is gtbin version HEAD
real 0.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216203/ft1_filtered_4FGL_J2358.0-4601_daily_bin1077.fits scfile=/scratch/kocevski/216203/ft2_4FGL_J2358.0-4601_daily_bin1077.fits outfile=/scratch/kocevski/216203/cmap_HighResolution_518486401_518745601_4FGL_J2358.0-4601_daily_bin1077.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.447       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0708       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.017       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10728E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.8238       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9265       1.0000         .10000E-03   10000.    
    20 'Prefactor '    83.286       1.0000         .10000E-03   10000.    
    21 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8424       1.0000         .10000E-03   10000.    
    24 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.523       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .77551       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2391       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=   2867.328     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4300 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.445        59.804       -.53986E-07    .40660E-05
   2  Prefactor     1.0728        27.195       -.34998E-06    .14617E-04
   3  Prefactor     32.139        48.548       -.65957E-06   -.26008E-04
   4  Prefactor     20.017        15.588       -.71862E-07   -.11441E-05
   5  Prefactor     2.9526        7.5222        .39799E-06   -.99730E-05
   6  Prefactor     .10000E-03    13.295        .65976E-07** at limit **
   7  Prefactor     .10000E-03    4.7355        .48949E-07** at limit **
   8  Prefactor     .10000E-03    3.2462        .12290E-06** at limit **
   9  norm          .10000E-03    36.208       -.29843E-06** at limit **
  10  Prefactor     .10000E-03    44.985        .63057E-06** at limit **
  11  norm          .10001E-03    110.16       -.95776E-06** at limit **
  12  Prefactor     .10000E-03    48.457        .44060E-06** at limit **
  13  Prefactor     .10000E-03    20.294        .38650E-06** at limit **
  14  Prefactor     .10000E-03    25.430        .33134E-06** at limit **
  15  norm          .10000E-03    38.969       -.46426E-06** at limit **
  16  norm          .10000E-03    4.3790       -.34596E-08** at limit **
  17  norm          .10000E-03    3.1968       -.28231E-06** at limit **
  18  norm          8.8220        16.754        .18207E-06    .42656E-04
  19  Prefactor     4.9266        8.9933        .17601E-05    .10030E-05
  20  Prefactor     83.237        63.947       -.40812E-06    .15444E-03
  21  norm          .10000E-03    15.528       -.78013E-05** at limit **
  22  Prefactor     .10000E-03    72.072        .54966E-06** at limit **
  23  norm          2.8425        1.8125        .38963E-07   -.18060E-04
  24  norm          .10000E-03    8.0066       -.22869E-05** at limit **
  25  Prefactor     44.513        29.647       -.52890E-07   -.35181E-04
  26  Prefactor     .10000E-03    1.8808       -.12920E-07** at limit **
  27  Prefactor     .10000E-03    30.056       -.31478E-06** at limit **
  28  norm          .10000E-03    13.060        .12623E-06** at limit **
  29  Prefactor     .10000E-03    5.5550       -.19364E-07** at limit **
  30  Prefactor     .10000E-03    1.9196       -.18713E-07** at limit **
  31  Normalizat    .77567        .26022        .27188E-05    .72722E-04
  32  Prefactor     1.2389        .28933       -.26860E-05    .17830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.4449
  Prefactor  = 1.07285
  Prefactor  = 32.1394
  Prefactor  = 20.0172
  Prefactor  = 2.95255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.82198
  Prefactor  = 4.92662
  Prefactor  = 83.2369
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84245
  norm       = 0.0001
  Prefactor  = 44.5134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.775666
  Prefactor  = 1.23892
 **********
 **   18 **HESSE 
 **********

 FCN=   2867.328     FROM HESSE     STATUS=OK           647 CALLS     4947 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.445        59.815        .47827E-04   -1.4027    
   2  Prefactor     1.0728        143.28        .52434E-02   -1.5501    
   3  Prefactor     32.139        48.553        .70667E-04   -1.4574    
   4  Prefactor     20.017        15.590        .89522E-04   -1.4813    
   5  Prefactor     2.9526        7.4953        .22661E-03   -1.5364    
   6  Prefactor     .10000E-03    13.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7426        .11380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2669        .94199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    36.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    111.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    39.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.3802        .10944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.1977        .93497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.8220        16.758        .13494E-03   -1.5114    
  19  Prefactor     4.9266        8.9450        .18121E-03   -1.5264    
  20  Prefactor     83.237        63.213        .22007E-03   -1.3881    
  21  norm          .10000E-03    15.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    73.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8425        1.8088        .54258E-04   -1.5371    
  24  norm          .10000E-03    8.0980        .14740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     44.513        29.659        .60085E-04   -1.4373    
  26  Prefactor     .10000E-03    1.8862        .71696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    30.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    13.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.6504        .12316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.9218        .72430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .77567        .30632        .26293E-03   -1.0098    
  32  Prefactor     1.2389        .34017        .24552E-03   -.85142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53041e-10
Minuit parameter uncertainties:
  1  59.8657
  2  24.8565
  3  48.6127
  4  15.5933
  5  7.49772
  6  3.10246e-06
  7  5.12857e-07
  8  1.81948e-06
  9  0.000247556
  10  5.15505e-05
  11  0.00165112
  12  0.000258314
  13  0.000170382
  14  3.5481e-05
  15  0.000197086
  16  3.19406e-06
  17  3.39883e-06
  18  16.7665
  19  8.94745
  20  63.2645
  21  5.13095e-05
  22  0.000121246
  23  1.80881
  24  4.32317e-05
  25  29.6686
  26  1.03741e-06
  27  0.00016606
  28  4.60439e-05
  29  2.38122e-06
  30  2.23269e-07
  31  0.307005
  32  0.34078
Done.

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

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  2.233e-07  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.239e+00  3.408e-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:  7.757e-01  3.070e-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: 8.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/216203/likelihoodResults_518486401_518745601_4FGL_J2358.0-4601_daily_bin1077.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) = 2867.33023055
delta logL = -0.00231671726169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2867.32791365
delta logL = 1.82277290151e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2867.328     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.704        .73363E-02** at limit **
   2  Index         1.9552        5.1810        .50000       -.79058E-07
   3  Normalizat    .77567        .20087E-01    .26293E-03   -.33951E-03
   4  Prefactor     1.2389        .23254E-01    .24552E-03   -.35356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95524
  Normalizat = 0.775668
  Prefactor  = 1.23892
 **********
 **   18 **HESSE 
 **********

 FCN=   2867.328     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    211.94        .82727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9552        5.9686        .50000       -.65474    
   3  Normalizat    .77567        .61494E-01    .52586E-04   -1.0098    
   4  Prefactor     1.2389        .71189E-01    .49104E-04   -.85142    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73064e-10
Minuit parameter uncertainties:
  1  1.8413e-06
  2  850.553
  3  0.0614995
  4  0.071195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216203': 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): 102
logL (Free Index) = 2867.32790779
delta logL = 6.04555771133e-06

Extracting fit parameters...

4FGL J2358.0-4601
   Spectrum: PowerLaw
569    Prefactor:  1.000e-04  1.841e-06  1.000e-04  1.000e+04 ( 1.000e-12)
570        Index:  1.955e+00  8.506e+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:  1.239e+00  7.120e-02  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:  7.757e-01  6.150e-02  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/216203/cmap_HighResolution_518486401_518745601_4FGL_J2358.0-4601_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2021-09-30 10:44:49.012332', job_id='216203', GAL2='1.24', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1633023889.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='6.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1077' AND source_name='4FGL J2358.0-4601' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:44:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 216203: <4FGL_J2358.0-4601_daily_bin1077> in cluster <slac> Done

Job <4FGL_J2358.0-4601_daily_bin1077> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 10:30:43 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:30:46 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:30:46 2021
Terminated at Thu Sep 30 10:44:49 2021
Results reported at Thu Sep 30 10:44:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.0-4601_daily_bin1077 359.522 -46.0176 518486401 518745601 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 :                                   598.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             234.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            846 sec.

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

