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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin999
RA = 359.817, Dec = -31.5832
tmin = 498268801, tmax = 498528001
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='248774', job_status='RUN', time_executed='2021-09-30 12:18:26.572637', time_epoch_executed='1633029506.57' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248774

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248774/ft1_4FGL_J2359.2-3134_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248774/ft2_4FGL_J2359.2-3134_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248774/ft1_4FGL_J2359.2-3134_daily_bin999.fits outfile=/scratch/kocevski/248774/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin999.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=498268801.0 tmax=498528001.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.81
user 4.59
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248774/ft1_filtered_4FGL_J2359.2-3134_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/248774/ft2_4FGL_J2359.2-3134_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/248774/ltcube_498268801_498528001_4FGL_J2359.2-3134_daily_bin999.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/248774/ft2_4FGL_J2359.2-3134_daily_bin999.fits
.....................!
real 11.78
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248774/ft1_filtered_4FGL_J2359.2-3134_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/248774/ft2_4FGL_J2359.2-3134_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/248774/ltcube_498268801_498528001_4FGL_J2359.2-3134_daily_bin999.fits outfile=/scratch/kocevski/248774/expmap_498268801_498528001_4FGL_J2359.2-3134_daily_bin999.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/248774/ltcube_498268801_498528001_4FGL_J2359.2-3134_daily_bin999.fits
.....................!
real 191.75
user 186.51
sys 4.93

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/248774/ft1_filtered_4FGL_J2359.2-3134_daily_bin999.fits scfile=/scratch/kocevski/248774/ft2_4FGL_J2359.2-3134_daily_bin999.fits outfile=/scratch/kocevski/248774/cmap_498268801_498528001_4FGL_J2359.2-3134_daily_bin999.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.075       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.648       1.0000         .10000E-03   10000.    
     9 'norm      '    4.4553       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1993       1.0000         .10000E-03   10000.    
    13 'norm      '    .18047E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.250       1.0000         .10000E-03   10000.    
    16 'norm      '    7.7884       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0372       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1973       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7409       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1569       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58072       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=   3865.443     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2385 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    111.25       -.30611E-06** at limit **
   2  Prefactor     .10000E-03    4.4414        .21900E-06** at limit **
   3  Prefactor     .10000E-03    17.461        .14283E-07** at limit **
   4  Prefactor     .10000E-03    9.7928       -.14477E-07** at limit **
   5  Prefactor     36.372        34.006        .16432E-05    .63837E-04
   6  Prefactor     .10000E-03    13.273        .96693E-08** at limit **
   7  norm          17.074        7.7996       -.29783E-07    .48703E-04
   8  Prefactor     15.647        11.904        .40355E-07   -.32489E-04
   9  norm          4.4626        6.1254       -.10991E-05   -.40845E-03
  10  norm          .10000E-03    2.6472       -.30826E-08** at limit **
  11  Prefactor     42.855        50.753       -.11925E-05   -.15427E-03
  12  Prefactor     9.1997        33.434       -.36238E-06   -.21915E-04
  13  norm          .10002E-03    4.6644        .18913E-05** at limit **
  14  norm          4.5989        3.5159        .24243E-07   -.17963E-04
  15  Prefactor     49.247        31.566        .27483E-06   -.48400E-06
  16  norm          7.7913        4.8060       -.37475E-06   -.42177E-03
  17  Prefactor     .10000E-03    26.232        .18165E-07** at limit **
  18  Prefactor     3.0413        90.368        .56628E-05    .89226E-05
  19  Prefactor     1.1981        4.8665        .97393E-06   -.20141E-03
  20  Prefactor     1.6154        324.88        .56254E-05   -.36271E-05
  21  Normalizat    1.1570        .19926       -.13084E-05   -.16457E-03
  22  Prefactor     .58073        .21206        .64444E-06   -.17452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.3723
  Prefactor  = 0.0001
  norm       = 17.0738
  Prefactor  = 15.6466
  norm       = 4.4626
  norm       = 0.0001
  Prefactor  = 42.8551
  Prefactor  = 9.19973
  norm       = 0.000100018
  norm       = 4.59895
  Prefactor  = 49.2468
  norm       = 7.79126
  Prefactor  = 0.0001
  Prefactor  = 3.04133
  Prefactor  = 1.19808
  Prefactor  = 1.61538
  Normalizat = 1.15701
  Prefactor  = 0.580732
 **********
 **   18 **HESSE 
 **********

 FCN=   3865.443     FROM HESSE     STATUS=OK           342 CALLS     2727 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5319        .25457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.8302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.372        34.156        .66430E-04   -1.4501    
   6  Prefactor     .10000E-03    13.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.074        7.8030        .48463E-03   -1.4881    
   8  Prefactor     15.647        11.918        .10125E-03   -1.4917    
   9  norm          4.4626        6.1788        .17227E-03   -1.5285    
  10  norm          .10000E-03    2.6515        .98787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.855        51.033        .61315E-04   -1.4398    
  12  Prefactor     9.1997        33.578        .13214E-03   -1.5101    
  13  norm          .10002E-03    15.397        .22239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5989        3.5114        .97700E-04   -1.5279    
  15  Prefactor     49.247        31.565        .57142E-04   -1.4303    
  16  norm          7.7913        4.8198        .10207E-03   -1.5150    
  17  Prefactor     .10000E-03    26.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0413        89.090        .23283E-03   -1.5359    
  19  Prefactor     1.1981        4.6906        .24854E-03   -1.5489    
  20  Prefactor     1.6154        308.42        .31796E-03   -1.5454    
  21  Normalizat    1.1570        .23025        .19575E-03   -.87942    
  22  Prefactor     .58073        .24593        .29707E-03   -1.0840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51558e-09
Minuit parameter uncertainties:
  1  4.64347e-06
  2  1.94361e-05
  3  1.08339e-05
  4  9.11247e-06
  5  34.1743
  6  1.52662e-08
  7  7.80343
  8  11.9201
  9  6.17971
  10  1.2727e-06
  11  51.085
  12  33.6469
  13  0.00105876
  14  3.51151
  15  31.5758
  16  4.82001
  17  1.71545e-06
  18  32.9748
  19  4.69206
  20  44.8762
  21  0.230454
  22  0.246384
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.615e+00  4.488e+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:  5.807e-01  2.464e-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.157e+00  2.305e-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: 9.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248774/likelihoodResults_498268801_498528001_4FGL_J2359.2-3134_daily_bin999.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) = 3865.44076068
delta logL = 0.00263344990526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3865.40186744
delta logL = 0.0415266940367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3712       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7025       1.0000          .0000       10.000    
     3 'Normalizat'    1.1606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57414       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=   3865.402     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      272 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3884        36.730        .13091E-03   -.12679E-03
   2  Index         1.7034        1.5306        .14127E-01   -.23829E-04
   3  Normalizat    1.1606        .21949        .19546E-03   -.15710E-02
   4  Prefactor     .57413        .24421        .29859E-03   -.87401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.38838
  Index      = 1.70344
  Normalizat = 1.16064
  Prefactor  = 0.574131
 **********
 **   18 **HESSE 
 **********

 FCN=   3865.402     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3884        37.736        .52366E-05   -1.5095    
   2  Index         1.7034        1.5658        .56509E-03   -.71990    
   3  Normalizat    1.1606        .21964        .39092E-04   -.87828    
   4  Prefactor     .57413        .24437        .59717E-04   -1.0869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80896e-09
Minuit parameter uncertainties:
  1  37.686
  2  1.61499
  3  0.219814
  4  0.244819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248774': 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) = 3865.40186723
delta logL = 0.0415269035821

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  9.388e+00  3.769e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  1.703e+00  1.615e+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:  5.741e-01  2.448e-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.161e+00  2.198e-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/248774/cmap_HighResolution_498268801_498528001_4FGL_J2359.2-3134_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-03', job_status='DONE', photon_flux_upper_limit='9.91e-08', time_completed='2021-09-30 12:27:25.488450', job_id='248774', GAL2='0.57', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1633030045.49', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='4.15e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='999' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:27:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 248774: <4FGL_J2359.2-3134_daily_bin999> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin999 359.817 -31.5832 498268801 498528001 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 :                                   531.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            704 sec.

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

