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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1028
RA = 359.817, Dec = -31.5832
tmin = 505785601, tmax = 506044801
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='248816', job_status='RUN', time_executed='2021-09-30 12:18:42.671039', time_epoch_executed='1633029522.67' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248816

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248816/ft1_4FGL_J2359.2-3134_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248816/ft2_4FGL_J2359.2-3134_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248816/ft1_4FGL_J2359.2-3134_daily_bin1028.fits outfile=/scratch/kocevski/248816/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1028.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=505785601.0 tmax=506044801.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.66
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248816/ft2_4FGL_J2359.2-3134_daily_bin1028.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/248816/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1028.fits evtable="EVENTS" outfile="/scratch/kocevski/248816/ft1_filtered_4FGL_J2359.2-3134_daily_bin1028.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248816/ft1_filtered_4FGL_J2359.2-3134_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/248816/ft2_4FGL_J2359.2-3134_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/248816/ltcube_505785601_506044801_4FGL_J2359.2-3134_daily_bin1028.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/248816/ft2_4FGL_J2359.2-3134_daily_bin1028.fits
.....................!
real 12.72
user 12.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248816/ft1_filtered_4FGL_J2359.2-3134_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/248816/ft2_4FGL_J2359.2-3134_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/248816/ltcube_505785601_506044801_4FGL_J2359.2-3134_daily_bin1028.fits outfile=/scratch/kocevski/248816/expmap_505785601_506044801_4FGL_J2359.2-3134_daily_bin1028.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/248816/ltcube_505785601_506044801_4FGL_J2359.2-3134_daily_bin1028.fits
.....................!
real 192.77
user 186.67
sys 5.59

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/248816/ft1_filtered_4FGL_J2359.2-3134_daily_bin1028.fits scfile=/scratch/kocevski/248816/ft2_4FGL_J2359.2-3134_daily_bin1028.fits outfile=/scratch/kocevski/248816/cmap_505785601_506044801_4FGL_J2359.2-3134_daily_bin1028.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248816/ft1_filtered_4FGL_J2359.2-3134_daily_bin1028.fits scfile=/scratch/kocevski/248816/ft2_4FGL_J2359.2-3134_daily_bin1028.fits outfile=/scratch/kocevski/248816/cmap_HighResolution_505785601_506044801_4FGL_J2359.2-3134_daily_bin1028.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248816/ft1_filtered_4FGL_J2359.2-3134_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/248816/ft2_4FGL_J2359.2-3134_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248816/Model_4FGL_J2359.2-3134_daily_bin1028.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/248816/ft1_filtered_4FGL_J2359.2-3134_daily_bin1028.fits.....................!
real 45.11
user 43.78
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.524       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12622E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0647       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2346       1.0000         .10000E-03   10000.    
     7 'norm      '    .70724       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.7216       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    78.179       1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2570       1.0000         .10000E-03   10000.    
    16 'norm      '    .11804E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.034       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.113       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5275       1.0000         .10000E-03   10000.    
    20 'Prefactor '    147.62       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0788       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79520       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=   5789.766     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2385 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.516        40.352       -.97506E-06   -.46850E-04
   2  Prefactor     .10000E-03    1.8843        .35755E-06** at limit **
   3  Prefactor     .10000E-03    9.2633        .89143E-07** at limit **
   4  Prefactor     .10000E-03    4.6140        .38720E-07** at limit **
   5  Prefactor     1.0198        22.657        .13889E-05   -.11289E-03
   6  Prefactor     9.2337        19.319        .52700E-06    .26611E-04
   7  norm          .70644        3.5554        .66218E-06   -.19923E-03
   8  Prefactor     .10000E-03    8.0600        .27994E-06** at limit **
   9  norm          .10000E-03    1.5990        .75788E-07** at limit **
  10  norm          6.7214        7.9423        .26450E-05   -.13269E-03
  11  Prefactor     5.4931        62.885       -.13421E-05   -.37439E-04
  12  Prefactor     78.165        51.319       -.14949E-05   -.13143E-03
  13  norm          .10000E-03    2.7728        .65980E-06** at limit **
  14  norm          3.7365        3.3191        .18585E-07    .74183E-05
  15  Prefactor     8.2542        17.668        .21238E-05   -.21644E-04
  16  norm          .10000E-03    2.8808        .82673E-06** at limit **
  17  Prefactor     18.007        65.896       -.41701E-05   -.69700E-04
  18  Prefactor     54.091        47.187       -.17006E-05   -.16434E-03
  19  Prefactor     2.5263        3.5312        .23796E-06    .58408E-04
  20  Prefactor     147.63        54.111        .74077E-06    .39432E-04
  21  Normalizat    1.0790        .16746       -.59955E-06   -.30256E-03
  22  Prefactor     .79509        .18239       -.47806E-06   -.22628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01977
  Prefactor  = 9.23367
  norm       = 0.706443
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.72136
  Prefactor  = 5.49309
  Prefactor  = 78.1648
  norm       = 0.0001
  norm       = 3.7365
  Prefactor  = 8.25416
  norm       = 0.000100001
  Prefactor  = 18.0067
  Prefactor  = 54.0908
  Prefactor  = 2.52631
  Prefactor  = 147.631
  Normalizat = 1.07898
  Prefactor  = 0.795089
 **********
 **   18 **HESSE 
 **********

 FCN=   5789.766     FROM HESSE     STATUS=OK           352 CALLS     2737 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.516        40.457        .10892E-03   -1.4973    
   2  Prefactor     .10000E-03    3.8761        .20036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6444        .15962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0198        121.49        .69071E-02   -1.5506    
   6  Prefactor     9.2337        19.361        .13188E-03   -1.5100    
   7  norm          .70644        6.5521        .27238E-02   -1.5540    
   8  Prefactor     .10000E-03    8.2749        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5998        .93952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.7214        7.9965        .77385E-03   -1.5189    
  11  Prefactor     5.4931        59.102        .17155E-03   -1.5239    
  12  Prefactor     78.165        51.634        .45418E-04   -1.3937    
  13  norm          .10000E-03    2.8111        .24543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7365        3.3134        .12473E-03   -1.5321    
  15  Prefactor     8.2542        17.669        .69759E-03   -1.5133    
  16  norm          .10000E-03    5.5315        .24001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.007        66.924        .94313E-04   -1.4859    
  18  Prefactor     54.091        47.934        .27263E-03   -1.4236    
  19  Prefactor     2.5263        3.5155        .16266E-03   -1.5390    
  20  Prefactor     147.63        54.098        .16584E-03   -1.3272    
  21  Normalizat    1.0790        .19442        .21132E-03   -.90430    
  22  Prefactor     .79509        .21145        .27319E-03   -.99910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33583e-08
Minuit parameter uncertainties:
  1  40.5395
  2  5.02679e-05
  3  1.99009e-06
  4  1.15268e-06
  5  22.3067
  6  19.3744
  7  4.3032
  8  1.19709e-05
  9  1.43796e-07
  10  7.99774
  11  36.0816
  12  51.6637
  13  3.11573e-06
  14  3.31361
  15  17.6798
  16  0.000161886
  17  67.205
  18  47.9681
  19  3.51574
  20  54.1166
  21  0.194544
  22  0.211663
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.476e+02  5.412e+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:  7.951e-01  2.117e-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:  1.079e+00  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.85
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 4.65e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.22e-05

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) = 5788.62118344
delta logL = 1.14506227858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5788.3406105
delta logL = 1.42563521269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    199.08       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0632       1.0000          .0000       10.000    
     3 'Normalizat'    1.1258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75593       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=   5788.341     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      211 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     199.08        90.035        .71590E-03   -.18921E-02
   2  Index         2.0632        .33968        .11960        .70863E-05
   3  Normalizat    1.1258        .16047        .37037E-01    .35332E-05
   4  Prefactor     .75592        .17974        .63163E-01    .18553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 199.08
  Index      = 2.06317
  Normalizat = 1.12576
  Prefactor  = 0.755917
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.341     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     199.08        73.471        .14318E-03   -1.2877    
   2  Index         2.0632        .29391        .49727E-02   -.62780    
   3  Normalizat    1.1258        .18785        .20761E-03   -.88929    
   4  Prefactor     .75592        .20969        .27940E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.9569e-09
Minuit parameter uncertainties:
  1  73.5046
  2  0.294169
  3  0.187962
  4  0.209915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248816': 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) = 5788.3406105
delta logL = 1.42563521725

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.991e+02  7.350e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.063e+00  2.942e-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:  7.559e-01  2.099e-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:  1.126e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.77
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 2.06 +/- 0.29
Photon Flux (Free Index): 9.28e-08 +/- 4.16e-08
Energy Flux (Free Index): 5.52e-05 +/- 3.05e-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/248816/cmap_HighResolution_505785601_506044801_4FGL_J2359.2-3134_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='5.52e-05', photon_flux_error='4.65e-08', dlogl='1.43e+00', energy_flux='3.32e-05', photon_flux2='9.28e-08', job_status='DONE', time_completed='2021-09-30 12:28:51.502490', photon_index_error2='0.29', photon_index2='2.06', ts='16.85', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='3.05e-05', EG='1.08', time_epoch_completed='1633030131.5', return_code='0', job_id='248816', GAL2='0.76', EG2='1.13', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.16e-08', ts2='19.77', photon_index='2.60' WHERE bin_id='1028' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:28:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 248816: <4FGL_J2359.2-3134_daily_bin1028> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1028> 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) <bullet0077>, 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:52 2021
Results reported at Thu Sep 30 12:28:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1028 359.817 -31.5832 505785601 506044801 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 :                                   577.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            786 sec.

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

