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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1030
RA = 359.817, Dec = -31.5832
tmin = 506304001, tmax = 506563201
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='248819', job_status='RUN', time_executed='2021-09-30 12:18:02.507106', time_epoch_executed='1633029482.51' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248819

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248819/ft1_4FGL_J2359.2-3134_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248819/ft2_4FGL_J2359.2-3134_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248819/ft1_4FGL_J2359.2-3134_daily_bin1030.fits outfile=/scratch/kocevski/248819/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1030.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=506304001.0 tmax=506563201.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.48
user 3.25
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248819/ft1_filtered_4FGL_J2359.2-3134_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/248819/ft2_4FGL_J2359.2-3134_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/248819/ltcube_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.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/248819/ft2_4FGL_J2359.2-3134_daily_bin1030.fits
.....................!
real 12.19
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248819/ft1_filtered_4FGL_J2359.2-3134_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/248819/ft2_4FGL_J2359.2-3134_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/248819/ltcube_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.fits outfile=/scratch/kocevski/248819/expmap_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.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/248819/ltcube_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.fits
.....................!
real 192.06
user 186.20
sys 5.49

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/248819/ft1_filtered_4FGL_J2359.2-3134_daily_bin1030.fits scfile=/scratch/kocevski/248819/ft2_4FGL_J2359.2-3134_daily_bin1030.fits outfile=/scratch/kocevski/248819/cmap_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248819/ft1_filtered_4FGL_J2359.2-3134_daily_bin1030.fits scfile=/scratch/kocevski/248819/ft2_4FGL_J2359.2-3134_daily_bin1030.fits outfile=/scratch/kocevski/248819/cmap_HighResolution_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248819/ft1_filtered_4FGL_J2359.2-3134_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/248819/ft2_4FGL_J2359.2-3134_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248819/Model_4FGL_J2359.2-3134_daily_bin1030.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/248819/ft1_filtered_4FGL_J2359.2-3134_daily_bin1030.fits.....................!
real 47.08
user 45.72
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/248819/ft1_filtered_4FGL_J2359.2-3134_daily_bin1030.fits', '/scratch/kocevski/248819/ft2_4FGL_J2359.2-3134_daily_bin1030.fits', expMap='/scratch/kocevski/248819/expmap_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.fits', expCube='/scratch/kocevski/248819/ltcube_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/248819/Model_4FGL_J2359.2-3134_daily_bin1030.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/248819/ft1_filtered_4FGL_J2359.2-3134_daily_bin1030.fits
Spacecraft file(s): /scratch/kocevski/248819/ft2_4FGL_J2359.2-3134_daily_bin1030.fits
Exposure map: /scratch/kocevski/248819/expmap_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.fits
Exposure cube: /scratch/kocevski/248819/ltcube_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/248819/Model_4FGL_J2359.2-3134_daily_bin1030.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) = 6397.07888861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.999       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.715       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0383       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.057       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.604       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.835       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.331       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.520       1.0000         .10000E-03   10000.    
    13 'norm      '    .10472E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30934E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5998       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.500       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.105       1.0000         .10000E-03   10000.    
    20 'Prefactor '    113.71       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70889       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6397.067     FROM MIGRAD    STATUS=CONVERGED     60 CALLS     1961 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.995        1.1119       -.93837E-07    .47512E-02
   2  Prefactor     .62262        2.1969       -.28661E-05   -.18096E-04
   3  Prefactor     12.720        1.0770       -.10509E-06    .67362E-03
   4  Prefactor     3.0385        1.0178       -.85075E-07    .16773E-03
   5  Prefactor     16.230        1.0163       -.15880E-07    .40280E-03
   6  Prefactor     .10000E-03    23.739       -.37478E-05** at limit **
   7  norm          18.056        2.4725       -.93940E-06    .32924E-02
   8  Prefactor     19.604        1.4471       -.54992E-06    .62143E-02
   9  norm          .10000E-03    1.4532        .12196E-05** at limit **
  10  norm          13.834        1.0110       -.74829E-07    .12870E-02
  11  Prefactor     15.337        1.1950        .17716E-06   -.15827E-02
  12  Prefactor     27.513        1.1976       -.14728E-06    .35772E-02
  13  norm          .10000E-03    4.1491        .57781E-07** at limit **
  14  norm          6.0412        3.2688       -.14705E-05   -.57339E-03
  15  Prefactor     .11645E-03    17.008       -.24124E-05** at limit **
  16  norm          3.6013        3.3308        .41371E-05    .14432E-02
  17  Prefactor     .10252E-03    58.052        .10016E-05** at limit **
  18  Prefactor     14.499        1.0063       -.15000E-07    .51783E-04
  19  Prefactor     10.102        5.4100       -.21393E-05   -.32606E-02
  20  Prefactor     113.71        1.0259       -.35448E-07    .16573E-02
  21  Normalizat    .70920        .17062        .79648E-05    .51464E-04
  22  Prefactor     .93830        .19528       -.14594E-05    .49717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.9951
  Prefactor  = 0.622624
  Prefactor  = 12.7201
  Prefactor  = 3.03846
  Prefactor  = 16.2304
  Prefactor  = 0.0001
  norm       = 18.0564
  Prefactor  = 19.6041
  norm       = 0.0001
  norm       = 13.834
  Prefactor  = 15.3372
  Prefactor  = 27.5133
  norm       = 0.0001
  norm       = 6.04123
  Prefactor  = 0.000116445
  norm       = 3.6013
  Prefactor  = 0.000102522
  Prefactor  = 14.499
  Prefactor  = 10.1023
  Prefactor  = 113.711
  Normalizat = 0.709204
  Prefactor  = 0.9383
 **********
 **   18 **HESSE 
 **********

 FCN=   6397.067     FROM HESSE     STATUS=OK           404 CALLS     2365 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.995        53.880        .13522E-02   -1.4223    
   2  Prefactor     .62262        2.3749        .11770E-01   -1.5550    
   3  Prefactor     12.720        16.855        .28084E-02   -1.4995    
   4  Prefactor     3.0385        5.6905        .58196E-02   -1.5359    
   5  Prefactor     16.230        23.545        .24852E-02   -1.4902    
   6  Prefactor     .10000E-03    23.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.056        6.1826        .23563E-02   -1.4858    
   8  Prefactor     19.604        7.9617        .22615E-02   -1.4822    
   9  norm          .10000E-03    1.4522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.834        8.8115        .26922E-02   -1.4964    
  11  Prefactor     15.337        24.043        .25573E-02   -1.4925    
  12  Prefactor     27.513        30.897        .19092E-02   -1.4658    
  13  norm          .10000E-03    2.1907        .40652E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0412        3.3465        .40843E-02   -1.5216    
  15  Prefactor     .11645E-03    16.113        .98974E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6013        3.4274        .53243E-02   -1.5328    
  17  Prefactor     .10252E-03    69.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.499        21.023        .26296E-02   -1.4946    
  19  Prefactor     10.102        5.8629        .31513E-02   -1.5072    
  20  Prefactor     113.71        43.472        .94316E-03   -1.3571    
  21  Normalizat    .70920        .14981        .42409E-01   -1.0353    
  22  Prefactor     .93830        .16720        .45495E-01   -.94815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80536e-07
Minuit parameter uncertainties:
  1  53.9277
  2  2.3753
  3  16.8614
  4  5.69155
  5  23.5586
  6  0.000111503
  7  6.18281
  8  7.96215
  9  7.95212e-07
  10  8.81236
  11  24.0584
  12  30.9147
  13  4.75293e-06
  14  3.34664
  15  0.0325648
  16  3.42755
  17  0.0265276
  18  21.0334
  19  5.86323
  20  43.4839
  21  0.149897
  22  0.167291
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.137e+02  4.348e+01  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:  9.383e-01  1.673e-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:  7.092e-01  1.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.45
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 9.79e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 9.77e-06

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) = 6396.7182686
delta logL = 0.348332940156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6396.71805652
delta logL = 0.34854502601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    142.25       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2993       1.0000          .0000       10.000    
     3 'Normalizat'    .72872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92093       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=   6396.718     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      266 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     142.16        970.62        .84449E-03   -.59234E-06
   2  Index         2.2987        3.4841        .12821        .58116E-04
   3  Normalizat    .72881        .16102        .42673E-01    .19842E-04
   4  Prefactor     .92091        .16370        .45271E-01    .98930E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 142.158
  Index      = 2.2987
  Normalizat = 0.728807
  Prefactor  = 0.920915
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.718     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     142.16        60.307        .33780E-04   -1.3318    
   2  Index         2.2987        .35125        .52380E-02   -.57075    
   3  Normalizat    .72881        .16967        .23391E-03   -1.0277    
   4  Prefactor     .92091        .19534        .24302E-03   -.95414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91359e-10
Minuit parameter uncertainties:
  1  60.3334
  2  0.351658
  3  0.169796
  4  0.195492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248819': 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) = 6396.71805168
delta logL = 0.348549868647

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.422e+02  6.033e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.299e+00  3.517e-01  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:  9.209e-01  1.955e-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:  7.288e-01  1.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.13
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 2.30 +/- 0.35
Photon Flux (Free Index): 8.47e-08 +/- 3.63e-08
Energy Flux (Free Index): 3.21e-05 +/- 1.66e-05

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/248819/cmap_HighResolution_506304001_506563201_4FGL_J2359.2-3134_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.79e-08', energy_flux2='3.21e-05', photon_flux_error='3.74e-08', dlogl='3.49e-01', energy_flux='2.56e-05', photon_flux2='8.47e-08', job_status='DONE', time_completed='2021-09-30 12:28:18.483294', photon_index_error2='0.35', photon_index2='2.30', ts='16.45', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='0.71', time_epoch_completed='1633030098.48', return_code='0', job_id='248819', GAL2='0.92', EG2='0.73', return_code2='0', energy_flux_error='9.77e-06', photon_flux_error2='3.63e-08', ts2='17.13', photon_index='2.60' WHERE bin_id='1030' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:28:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 248819: <4FGL_J2359.2-3134_daily_bin1030> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1030> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:15:46 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:15:48 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:15:48 2021
Terminated at Thu Sep 30 12:28:21 2021
Results reported at Thu Sep 30 12:28:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1030 359.817 -31.5832 506304001 506563201 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 :                                   584.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            755 sec.

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

