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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1021
RA = 359.817, Dec = -31.5832
tmin = 503971201, tmax = 504230401
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='248806', job_status='RUN', time_executed='2021-09-30 12:16:23.731935', time_epoch_executed='1633029383.73' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248806

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248806/ft1_4FGL_J2359.2-3134_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248806/ft2_4FGL_J2359.2-3134_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248806/ft1_4FGL_J2359.2-3134_daily_bin1021.fits outfile=/scratch/kocevski/248806/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1021.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=503971201.0 tmax=504230401.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 4.03
user 3.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248806/ft1_filtered_4FGL_J2359.2-3134_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/248806/ft2_4FGL_J2359.2-3134_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/248806/ltcube_503971201_504230401_4FGL_J2359.2-3134_daily_bin1021.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/248806/ft2_4FGL_J2359.2-3134_daily_bin1021.fits
.....................!
real 11.76
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248806/ft1_filtered_4FGL_J2359.2-3134_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/248806/ft2_4FGL_J2359.2-3134_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/248806/ltcube_503971201_504230401_4FGL_J2359.2-3134_daily_bin1021.fits outfile=/scratch/kocevski/248806/expmap_503971201_504230401_4FGL_J2359.2-3134_daily_bin1021.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/248806/ltcube_503971201_504230401_4FGL_J2359.2-3134_daily_bin1021.fits
.....................!
real 191.33
user 186.44
sys 4.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/248806/ft1_filtered_4FGL_J2359.2-3134_daily_bin1021.fits scfile=/scratch/kocevski/248806/ft2_4FGL_J2359.2-3134_daily_bin1021.fits outfile=/scratch/kocevski/248806/cmap_503971201_504230401_4FGL_J2359.2-3134_daily_bin1021.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248806/ft1_filtered_4FGL_J2359.2-3134_daily_bin1021.fits scfile=/scratch/kocevski/248806/ft2_4FGL_J2359.2-3134_daily_bin1021.fits outfile=/scratch/kocevski/248806/cmap_HighResolution_503971201_504230401_4FGL_J2359.2-3134_daily_bin1021.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33323E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5022       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.940       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.760       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.425       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.777       1.0000         .10000E-03   10000.    
    13 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.1123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    116.22       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8931       1.0000         .10000E-03   10000.    
    20 'Prefactor '    142.98       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92655       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=   4688.568     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2319 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.574        .55557E-06** at limit **
   2  Prefactor     .10000E-03    3.1197       -.14563E-06** at limit **
   3  Prefactor     .10000E-03    8.3241       -.16829E-07** at limit **
   4  Prefactor     3.5023        21.502        .12144E-04   -.15050E-03
   5  Prefactor     .10000E-03    12.653        .63057E-07** at limit **
   6  Prefactor     .10000E-03    34.781        .45196E-06** at limit **
   7  norm          16.943        10.058       -.52651E-06   -.34106E-04
   8  Prefactor     16.762        13.675        .36660E-07   -.20305E-05
   9  norm          .10000E-03    2.1939        .18010E-06** at limit **
  10  norm          .10000E-03    7.2435       -.55915E-06** at limit **
  11  Prefactor     10.440        51.013        .41342E-05    .50048E-04
  12  Prefactor     15.724        64.798       -.12786E-04   -.13083E-03
  13  norm          .10000E-03    2.5901        .61806E-06** at limit **
  14  norm          4.1126        2.7405       -.27319E-08    .67686E-05
  15  Prefactor     .10000E-03    31.552       -.26587E-06** at limit **
  16  norm          .10000E-03    2.0447        .19662E-06** at limit **
  17  Prefactor     116.24        112.62        .33482E-05    .71859E-04
  18  Prefactor     .10000E-03    34.180        .12488E-06** at limit **
  19  Prefactor     2.8991        7.1556        .77421E-06   -.17387E-04
  20  Prefactor     142.98        65.761       -.89447E-06   -.46998E-04
  21  Normalizat    1.1065        .21940        .12711E-05   -.10602E-03
  22  Prefactor     .92723        .22599       -.23585E-05    .34550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9432
  Prefactor  = 16.7622
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4397
  Prefactor  = 15.7239
  norm       = 0.0001
  norm       = 4.11263
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 116.243
  Prefactor  = 0.0001
  Prefactor  = 2.89907
  Prefactor  = 142.976
  Normalizat = 1.10654
  Prefactor  = 0.927232
 **********
 **   18 **HESSE 
 **********

 FCN=   4688.568     FROM HESSE     STATUS=OK           336 CALLS     2655 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2989        .23182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5023        23.106        .10802E-02   -1.5334    
   5  Prefactor     .10000E-03    12.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.943        10.067        .97311E-04   -1.4884    
   8  Prefactor     16.762        13.687        .97832E-04   -1.4889    
   9  norm          .10000E-03    2.1953        .98989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.2691        .17978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.440        51.226        .12410E-03   -1.5062    
  12  Prefactor     15.724        72.145        .10084E-03   -1.4915    
  13  norm          .10000E-03    2.5901        .10698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.1126        2.7410        .90069E-04   -1.5302    
  15  Prefactor     .10000E-03    32.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0482        .95573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     116.24        113.24        .18661E-03   -1.3547    
  18  Prefactor     .10000E-03    34.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8991        7.1365        .23892E-03   -1.5367    
  20  Prefactor     142.98        65.264        .16847E-03   -1.3311    
  21  Normalizat    1.1065        .25620        .23505E-03   -.89542    
  22  Prefactor     .92723        .26232        .27766E-03   -.95196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95767e-10
Minuit parameter uncertainties:
  1  6.56031e-05
  2  4.01228e-05
  3  2.3935e-06
  4  18.0016
  5  2.48942e-06
  6  4.24462e-05
  7  10.0677
  8  13.6894
  9  6.51427e-06
  10  5.22246e-05
  11  46.3142
  12  67.496
  13  2.23747e-05
  14  2.74104
  15  0.00011031
  16  5.06363e-06
  17  113.449
  18  3.64035e-05
  19  7.13863
  20  65.297
  21  0.25649
  22  0.262679
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.430e+02  6.530e+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.272e-01  2.627e-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.107e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.85
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 5.62e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 1.47e-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) = 4687.84496521
delta logL = 0.722932110936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4687.72835226
delta logL = 0.839545063302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    179.99       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0659       1.0000          .0000       10.000    
     3 'Normalizat'    1.1527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89212       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4687.728     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      243 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     180.05        81.479        .15044E-03   -.96444E-04
   2  Index         2.0659        .39685        .58875E-02   -.81947E-04
   3  Normalizat    1.1527        .23983        .23105E-03   -.88582E-03
   4  Prefactor     .89201        .25989        .28225E-03   -.78054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 180.053
  Index      = 2.06591
  Normalizat = 1.15274
  Prefactor  = 0.892014
 **********
 **   18 **HESSE 
 **********

 FCN=   4687.728     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     180.05        81.448        .30087E-04   -1.3016    
   2  Index         2.0659        .39656        .23550E-03   -.62712    
   3  Normalizat    1.1527        .24002        .46210E-04   -.88076    
   4  Prefactor     .89201        .26011        .56450E-04   -.96421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11678e-09
Minuit parameter uncertainties:
  1  81.4995
  2  0.397201
  3  0.240253
  4  0.260468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248806': 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) = 4687.72835184
delta logL = 0.839545477801

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.801e+02  8.150e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.066e+00  3.972e-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:  8.920e-01  2.605e-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.153e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.54
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 2.07 +/- 0.40
Photon Flux (Free Index): 8.41e-08 +/- 4.94e-08
Energy Flux (Free Index): 4.98e-05 +/- 3.44e-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/248806/cmap_HighResolution_503971201_504230401_4FGL_J2359.2-3134_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='4.98e-05', photon_flux_error='5.62e-08', dlogl='8.40e-01', energy_flux='3.21e-05', photon_flux2='8.41e-08', job_status='DONE', time_completed='2021-09-30 12:25:23.522061', photon_index_error2='0.40', photon_index2='2.07', ts='12.85', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='3.44e-05', EG='1.11', time_epoch_completed='1633029923.52', return_code='0', job_id='248806', GAL2='0.89', EG2='1.15', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='4.94e-08', ts2='14.54', photon_index='2.60' WHERE bin_id='1021' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:25:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 248806: <4FGL_J2359.2-3134_daily_bin1021> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1021 359.817 -31.5832 503971201 504230401 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 :                                   510.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            579 sec.

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

