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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1152
RA = 359.817, Dec = -31.5832
tmin = 537926401, tmax = 538185601
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='249006', job_status='RUN', time_executed='2021-09-30 12:17:10.633008', time_epoch_executed='1633029430.63' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249006/ft1_4FGL_J2359.2-3134_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249006/ft2_4FGL_J2359.2-3134_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249006/ft1_4FGL_J2359.2-3134_daily_bin1152.fits outfile=/scratch/kocevski/249006/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1152.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.49
user 6.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249006/ft1_filtered_4FGL_J2359.2-3134_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/249006/ft2_4FGL_J2359.2-3134_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/249006/ltcube_537926401_538185601_4FGL_J2359.2-3134_daily_bin1152.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/249006/ft2_4FGL_J2359.2-3134_daily_bin1152.fits
.....................!
real 11.88
user 11.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249006/ft1_filtered_4FGL_J2359.2-3134_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/249006/ft2_4FGL_J2359.2-3134_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/249006/ltcube_537926401_538185601_4FGL_J2359.2-3134_daily_bin1152.fits outfile=/scratch/kocevski/249006/expmap_537926401_538185601_4FGL_J2359.2-3134_daily_bin1152.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/249006/ltcube_537926401_538185601_4FGL_J2359.2-3134_daily_bin1152.fits
.....................!
real 192.70
user 186.58
sys 4.88

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/249006/ft1_filtered_4FGL_J2359.2-3134_daily_bin1152.fits scfile=/scratch/kocevski/249006/ft2_4FGL_J2359.2-3134_daily_bin1152.fits outfile=/scratch/kocevski/249006/cmap_537926401_538185601_4FGL_J2359.2-3134_daily_bin1152.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249006/ft1_filtered_4FGL_J2359.2-3134_daily_bin1152.fits scfile=/scratch/kocevski/249006/ft2_4FGL_J2359.2-3134_daily_bin1152.fits outfile=/scratch/kocevski/249006/cmap_HighResolution_537926401_538185601_4FGL_J2359.2-3134_daily_bin1152.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/249006/ft1_filtered_4FGL_J2359.2-3134_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/249006/ft2_4FGL_J2359.2-3134_daily_bin1152.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/249006/Model_4FGL_J2359.2-3134_daily_bin1152.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/249006/ft1_filtered_4FGL_J2359.2-3134_daily_bin1152.fits.....................!
real 41.55
user 40.10
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1804       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8761       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3492       1.0000         .10000E-03   10000.    
     9 'norm      '    5.0090       1.0000         .10000E-03   10000.    
    10 'norm      '    .10401E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.418       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4630       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.276       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96001       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89053       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=   5078.191     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     1993 TOTAL
                     EDM=   .27E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.126        .19479E-05** at limit **
   2  Prefactor     2.1808        3.5126        .30323E-06    .66648E-04
   3  Prefactor     .10000E-03    7.5491        .40639E-08** at limit **
   4  Prefactor     .10000E-03    3.7801        .67853E-08** at limit **
   5  Prefactor     .10000E-03    9.6043        .33887E-06** at limit **
   6  Prefactor     3.8791        48.205       -.22314E-06   -.45588E-05
   7  norm          2.4929        3.9470       -.32349E-06   -.11004E-04
   8  Prefactor     4.3494        4.3898        .23270E-06   -.31840E-05
   9  norm          5.0091        4.1141        .25234E-07   -.11606E-04
  10  norm          .10000E-03    9.4807       -.25842E-06** at limit **
  11  Prefactor     .10000E-03    65.682        .12921E-05** at limit **
  12  Prefactor     .10000E-03    19.504        .10688E-05** at limit **
  13  norm          .10000E-03    2.4856       -.67953E-07** at limit **
  14  norm          .10000E-03    1.3573        .42213E-09** at limit **
  15  Prefactor     50.419        29.221        .26614E-07    .69381E-05
  16  norm          .10000E-03    2.7633       -.64217E-07** at limit **
  17  Prefactor     .10000E-03    31.401       -.27636E-05** at limit **
  18  Prefactor     .10000E-03    17.396       -.11952E-05** at limit **
  19  Prefactor     3.4634        5.2491        .22578E-05    .11503E-04
  20  Prefactor     23.289        37.566       -.29699E-05    .40925E-05
  21  Normalizat    .95984        .16101       -.82752E-06    .83608E-05
  22  Prefactor     .89071        .18036        .62110E-06    .16896E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.18083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.87909
  norm       = 2.49294
  Prefactor  = 4.34937
  norm       = 5.00905
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 50.4191
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46342
  Prefactor  = 23.2885
  Normalizat = 0.959838
  Prefactor  = 0.890715
 **********
 **   18 **HESSE 
 **********

 FCN=   5078.191     FROM HESSE     STATUS=OK           340 CALLS     2333 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1808        3.4887        .15580E-03   -1.5413    
   3  Prefactor     .10000E-03    7.5520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7839        .13531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8791        48.414        .20495E-03   -1.5314    
   7  norm          2.4929        3.9343        .17263E-03   -1.5392    
   8  Prefactor     4.3494        4.3902        .14586E-03   -1.5291    
   9  norm          5.0091        4.1155        .12787E-03   -1.5260    
  10  norm          .10000E-03    9.8456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    66.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5225        .10966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3671        .81027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.419        29.205        .56479E-04   -1.4287    
  16  norm          .10000E-03    2.8072        .11564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4634        5.2550        .93251E-03   -1.5336    
  20  Prefactor     23.289        37.589        .83026E-04   -1.4742    
  21  Normalizat    .95984        .18998        .20687E-03   -.94388    
  22  Prefactor     .89071        .21330        .24707E-03   -.96466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40865e-12
Minuit parameter uncertainties:
  1  2.03873e-05
  2  3.489
  3  2.88956e-06
  4  5.8936e-07
  5  5.89711e-08
  6  27.4353
  7  3.93474
  8  4.39048
  9  4.11569
  10  1.89177e-07
  11  7.54619e-05
  12  7.41181e-06
  13  3.74064e-06
  14  4.29923e-10
  15  29.2131
  16  3.69189e-06
  17  2.21767e-05
  18  2.00628e-05
  19  5.25569
  20  37.6271
  21  0.190116
  22  0.213497
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  2.329e+01  3.763e+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:  8.907e-01  2.135e-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:  9.598e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/249006/likelihoodResults_537926401_538185601_4FGL_J2359.2-3134_daily_bin1152.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): 0
logL (Free Index) = 5077.65562601
delta logL = 0.5349306389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5077.62443629
delta logL = 0.566120359523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2385       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1871       1.0000          .0000       10.000    
     3 'Normalizat'    .90733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93489       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=   5077.624     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      271 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2124        17.683        .10079E-01    .69241E-03
   2  Index         5.2020        3.2916        .15610        .10485E-03
   3  Normalizat    .90749        .39265E-01    .44995E-01    .24947E-04
   4  Prefactor     .93467        .45469E-01    .45448E-01   -.51266E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21235
  Index      = 5.202
  Normalizat = 0.907492
  Prefactor  = 0.934665
 **********
 **   18 **HESSE 
 **********

 FCN=   5077.624     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      304 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2124        44.028        .64830E-04   -1.5488    
   2  Index         5.2020        7.5650        .55410E-02    .40411E-01
   3  Normalizat    .90749        .15715        .21190E-03   -.96197    
   4  Prefactor     .93467        .17983        .24190E-03   -.94940    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.24699e-10
Minuit parameter uncertainties:
  1  14.623
  2  7.20117
  3  0.157228
  4  0.179948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249006': 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): 102
logL (Free Index) = 5077.62442254
delta logL = 0.566134107793

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.212e+00  1.462e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  5.202e+00  7.201e+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:  9.347e-01  1.799e-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:  9.075e-01  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 5.20 +/- 7.20
Photon Flux (Free Index): 5.46e-08 +/- 4.61e-08
Energy Flux (Free Index): 7.14e-06 +/- 7.60e-06

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/249006/cmap_HighResolution_537926401_538185601_4FGL_J2359.2-3134_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', comment='SUCCESS', energy_flux2='7.14e-06', dlogl='5.66e-01', photon_flux2='5.46e-08', job_status='DONE', time_completed='2021-09-30 12:27:13.631568', photon_index_error2='7.20', photon_index2='5.20', ts='0.60', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.58e-08', energy_flux_error2='7.60e-06', EG='0.96', time_epoch_completed='1633030033.63', return_code='0', job_id='249006', GAL2='0.93', EG2='0.91', return_code2='102', photon_flux_error2='4.61e-08', ts2='1.84', photon_index='2.60' WHERE bin_id='1152' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:27:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 249006: <4FGL_J2359.2-3134_daily_bin1152> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1152> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:16:03 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:16:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 12:16:05 2021
Terminated at Thu Sep 30 12:27:14 2021
Results reported at Thu Sep 30 12:27:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1152 359.817 -31.5832 537926401 538185601 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 :                                   585.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             284.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            671 sec.

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

