/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 8 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2359.2-3134_daily_bin248
RA = 359.817, Dec = -31.5832
tmin = 303609601, tmax = 303868801
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='244107', job_status='RUN', time_executed='2021-09-30 12:01:20.950067', time_epoch_executed='1633028480.95' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244107/ft1_4FGL_J2359.2-3134_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244107/ft1_4FGL_J2359.2-3134_daily_bin248.fits outfile=/scratch/kocevski/244107/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin248.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=303609601.0 tmax=303868801.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.46
user 3.15
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.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/244107/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin248.fits evtable="EVENTS" outfile="/scratch/kocevski/244107/ft1_filtered_4FGL_J2359.2-3134_daily_bin248.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244107/ft1_filtered_4FGL_J2359.2-3134_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/244107/ltcube_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.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/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits
.....................!
real 12.32
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244107/ft1_filtered_4FGL_J2359.2-3134_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/244107/ltcube_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.fits outfile=/scratch/kocevski/244107/expmap_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.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/244107/ltcube_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.fits
.....................!
real 191.78
user 185.10
sys 4.94

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J2359.2-3134 @ 359.817 -31.5832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/244107/ft1_filtered_4FGL_J2359.2-3134_daily_bin248.fits scfile=/scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits outfile=/scratch/kocevski/244107/cmap_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.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.817 yref=-31.5832 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244107/ft1_filtered_4FGL_J2359.2-3134_daily_bin248.fits scfile=/scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits outfile=/scratch/kocevski/244107/cmap_HighResolution_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.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.817 yref=-31.5832 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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244107/ft1_filtered_4FGL_J2359.2-3134_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244107/Model_4FGL_J2359.2-3134_daily_bin248.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/244107/ft1_filtered_4FGL_J2359.2-3134_daily_bin248.fits.....................!
real 40.60
user 39.14
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/244107/ft1_filtered_4FGL_J2359.2-3134_daily_bin248.fits', '/scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits', expMap='/scratch/kocevski/244107/expmap_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.fits', expCube='/scratch/kocevski/244107/ltcube_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/244107/Model_4FGL_J2359.2-3134_daily_bin248.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.2-3134'

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  8.155e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/244107/ft1_filtered_4FGL_J2359.2-3134_daily_bin248.fits
Spacecraft file(s): /scratch/kocevski/244107/ft2_4FGL_J2359.2-3134_daily_bin248.fits
Exposure map: /scratch/kocevski/244107/expmap_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.fits
Exposure cube: /scratch/kocevski/244107/ltcube_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/244107/Model_4FGL_J2359.2-3134_daily_bin248.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) = 5058.89748494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8741       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.833       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10925E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32748E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .76067       1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.851       1.0000         .10000E-03   10000.    
     9 'norm      '    7.1428       1.0000         .10000E-03   10000.    
    10 'norm      '    5.3589       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.595       1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.841       1.0000         .10000E-03   10000.    
    13 'norm      '    .25034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0295       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.695       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    97.885       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7757       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88675       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5058.879     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2716 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.072       -.23568E-06** at limit **
   2  Prefactor     3.8735        4.2007        .26714E-06   -.10583E-03
   3  Prefactor     13.840        22.434       -.30101E-05   -.16559E-03
   4  Prefactor     .10000E-03    33.794        .10288E-05** at limit **
   5  Prefactor     .10000E-03    8.2527        .87331E-09** at limit **
   6  Prefactor     .10154E-03    27.130       -.25068E-05** at limit **
   7  norm          .75824        6.2203        .93614E-06   -.32472E-03
   8  Prefactor     63.851        13.914        .70424E-07    .18368E-03
   9  norm          7.1565        5.3798        .11028E-06    .23708E-03
  10  norm          5.3604        6.3174        .18153E-06   -.10956E-04
  11  Prefactor     19.662        30.278       -.56793E-05   -.31745E-03
  12  Prefactor     44.821        36.539       -.21872E-05   -.14198E-03
  13  norm          .10000E-03    3.0336        .51820E-06** at limit **
  14  norm          3.0291        3.4027        .59738E-07   -.90240E-04
  15  Prefactor     .10000E-03    9.3590        .13912E-07** at limit **
  16  norm          10.701        5.3105        .26620E-06   -.12250E-03
  17  Prefactor     .10000E-03    33.896       -.15362E-05** at limit **
  18  Prefactor     97.906        52.526        .57316E-05    .39662E-03
  19  Prefactor     4.7755        4.3533        .15192E-05   -.21401E-02
  20  Prefactor     .10000E-03    26.452        .39101E-06** at limit **
  21  Normalizat    .88663        .16655       -.51910E-06    .46614E-04
  22  Prefactor     .80108        .18282       -.89094E-07    .16803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.87345
  Prefactor  = 13.8401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101538
  norm       = 0.758241
  Prefactor  = 63.8507
  norm       = 7.15647
  norm       = 5.3604
  Prefactor  = 19.6621
  Prefactor  = 44.8206
  norm       = 0.000100003
  norm       = 3.02909
  Prefactor  = 0.0001
  norm       = 10.701
  Prefactor  = 0.0001
  Prefactor  = 97.9056
  Prefactor  = 4.77547
  Prefactor  = 0.0001
  Normalizat = 0.886628
  Prefactor  = 0.801078
 **********
 **   18 **HESSE 
 **********

 FCN=   5058.879     FROM HESSE     STATUS=OK           346 CALLS     3062 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8735        4.1860        .13265E-03   -1.5314    
   3  Prefactor     13.840        22.399        .10769E-03   -1.4964    
   4  Prefactor     .10000E-03    34.729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10154E-03    258.76        .70400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .75824        6.6545        .34669E-03   -1.5534    
   8  Prefactor     63.851        13.892        .50220E-04   -1.4108    
   9  norm          7.1565        5.3057        .67522E-03   -1.5173    
  10  norm          5.3604        6.3117        .17360E-03   -1.5245    
  11  Prefactor     19.662        30.590        .90480E-04   -1.4821    
  12  Prefactor     44.821        36.581        .59872E-04   -1.4368    
  13  norm          .10000E-03    6.7765        .22943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0291        3.3962        .13464E-03   -1.5360    
  15  Prefactor     .10000E-03    9.3649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.701        5.2830        .10971E-03   -1.5054    
  17  Prefactor     .10000E-03    33.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     97.906        53.539        .20315E-03   -1.3726    
  19  Prefactor     4.7755        6.0057        .91615E-03   -1.5271    
  20  Prefactor     .10000E-03    26.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88663        .19530        .22147E-03   -.96932    
  22  Prefactor     .80108        .21270        .26120E-03   -.99689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08738e-08
Minuit parameter uncertainties:
  1  1.81294e-05
  2  4.18629
  3  22.4125
  4  8.41466e-05
  5  3.04203e-06
  6  0.0400728
  7  4.4929
  8  13.8924
  9  5.30603
  10  6.31249
  11  30.6141
  12  36.5992
  13  0.000266326
  14  3.3964
  15  6.74022e-07
  16  5.2832
  17  0.000192982
  18  53.5657
  19  6.00643
  20  1.70631e-05
  21  0.195459
  22  0.212918
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  1.706e-05  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.011e-01  2.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  8.866e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244107/likelihoodResults_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.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) = 5058.87886863
delta logL = -0.000179868093255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5058.8786889
delta logL = -1.39994881465e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5058.879     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7186.6        .90712E-02** at limit **
   2  Index         2.5397        5.3647        .50000       -.69147E-05
   3  Normalizat    .88663        .96058E-01    .44731E-01    .27845E-04
   4  Prefactor     .80108        .10824        .43731E-01    .20289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53966
  Normalizat = 0.886627
  Prefactor  = 0.801078
 **********
 **   18 **HESSE 
 **********

 FCN=   5058.879     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5397        6.2698        .50000       -.51446    
   3  Normalizat    .88663        .18491        .22147E-03   -.96932    
   4  Prefactor     .80108        .20936        .26120E-03   -.99689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10505e-11
Minuit parameter uncertainties:
  1  0.000198959
  2  4.59252
  3  0.185041
  4  0.209563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244107': 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) = 5058.87868887
delta logL = -1.05024810182e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  1.990e-04  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.540e+00  4.593e+00  0.000e+00  1.000e+01 (-1.000e+00)
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.011e-01  2.096e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  8.866e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.817 -31.583

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/244107/cmap_HighResolution_303609601_303868801_4FGL_J2359.2-3134_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-30 12:11:42.013567', job_id='244107', GAL2='0.80', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1633029102.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='248' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:11:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 244107: <4FGL_J2359.2-3134_daily_bin248> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin248> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 12:01:02 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:01:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 12:01:05 2021
Terminated at Thu Sep 30 12:11:42 2021
Results reported at Thu Sep 30 12:11:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin248 359.817 -31.5832 303609601 303868801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.2-3134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   611.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            640 sec.

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

