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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1407
RA = 359.817, Dec = -31.5832
tmin = 604022401, tmax = 604281601
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='250289', job_status='RUN', time_executed='2021-09-30 12:21:05.662848', time_epoch_executed='1633029665.66' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250289/ft1_4FGL_J2359.2-3134_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250289/ft2_4FGL_J2359.2-3134_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250289/ft1_4FGL_J2359.2-3134_daily_bin1407.fits outfile=/scratch/kocevski/250289/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1407.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=604022401.0 tmax=604281601.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.45
user 3.97
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250289/ft1_filtered_4FGL_J2359.2-3134_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/250289/ft2_4FGL_J2359.2-3134_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/250289/ltcube_604022401_604281601_4FGL_J2359.2-3134_daily_bin1407.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/250289/ft2_4FGL_J2359.2-3134_daily_bin1407.fits
.....................!
real 11.80
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250289/ft1_filtered_4FGL_J2359.2-3134_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/250289/ft2_4FGL_J2359.2-3134_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/250289/ltcube_604022401_604281601_4FGL_J2359.2-3134_daily_bin1407.fits outfile=/scratch/kocevski/250289/expmap_604022401_604281601_4FGL_J2359.2-3134_daily_bin1407.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/250289/ltcube_604022401_604281601_4FGL_J2359.2-3134_daily_bin1407.fits
.....................!
real 190.33
user 184.91
sys 5.11

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/250289/ft1_filtered_4FGL_J2359.2-3134_daily_bin1407.fits scfile=/scratch/kocevski/250289/ft2_4FGL_J2359.2-3134_daily_bin1407.fits outfile=/scratch/kocevski/250289/cmap_604022401_604281601_4FGL_J2359.2-3134_daily_bin1407.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/250289/ft1_filtered_4FGL_J2359.2-3134_daily_bin1407.fits scfile=/scratch/kocevski/250289/ft2_4FGL_J2359.2-3134_daily_bin1407.fits outfile=/scratch/kocevski/250289/cmap_HighResolution_604022401_604281601_4FGL_J2359.2-3134_daily_bin1407.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=359.817 yref=-31.5832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.488       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.680       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.210       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14799E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.3518       1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.134       1.0000         .10000E-03   10000.    
    16 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21324E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.403       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8145       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.667       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61375       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.5054       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=   4699.382     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2381 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.904        .47600E-06** at limit **
   2  Prefactor     .10000E-03    2.3906       -.20175E-06** at limit **
   3  Prefactor     21.009        28.469        .84761E-05    .13486E-04
   4  Prefactor     18.481        20.748       -.20580E-04   -.79982E-05
   5  Prefactor     16.679        19.420       -.35118E-05    .33295E-05
   6  Prefactor     .10000E-03    10.948       -.12202E-07** at limit **
   7  norm          21.204        9.9719        .14877E-05    .22008E-04
   8  Prefactor     .10000E-03    6.3666       -.29004E-07** at limit **
   9  norm          .10000E-03    1.5842        .49187E-08** at limit **
  10  norm          .10000E-03    3.6522       -.53810E-07** at limit **
  11  Prefactor     .10000E-03    30.494       -.17924E-06** at limit **
  12  Prefactor     .10000E-03    177.76        .10270E-04** at limit **
  13  norm          .10000E-03    2.1558       -.11265E-07** at limit **
  14  norm          9.3524        6.9493       -.78438E-06   -.74038E-04
  15  Prefactor     48.119        60.598        .44619E-05    .46989E-04
  16  norm          .10000E-03    2.4177       -.73858E-07** at limit **
  17  Prefactor     .10001E-03    857.92       -.47969E-04** at limit **
  18  Prefactor     22.433        63.337       -.90899E-06    .66085E-05
  19  Prefactor     1.8134        4.0637       -.55272E-06   -.44218E-03
  20  Prefactor     41.669        47.330       -.35484E-05    .11849E-04
  21  Normalizat    .61380        .20187        .25514E-05    .17346E-04
  22  Prefactor     1.5056        .22735        .38648E-06    .71304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0092
  Prefactor  = 18.4813
  Prefactor  = 16.6788
  Prefactor  = 0.0001
  norm       = 21.2039
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 9.35242
  Prefactor  = 48.119
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 22.4331
  Prefactor  = 1.81337
  Prefactor  = 41.669
  Normalizat = 0.613795
  Prefactor  = 1.50562
 **********
 **   18 **HESSE 
 **********

 FCN=   4699.382     FROM HESSE     STATUS=OK           338 CALLS     2719 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4095        .10321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.009        28.412        .87407E-04   -1.4791    
   4  Prefactor     18.481        20.738        .93148E-04   -1.4848    
   5  Prefactor     16.679        19.418        .98067E-04   -1.4891    
   6  Prefactor     .10000E-03    10.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.204        9.9701        .86971E-04   -1.4787    
   8  Prefactor     .10000E-03    6.4048        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5846        .84268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.6879        .12793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    182.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.1755        .98254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.3524        6.9475        .13105E-03   -1.5096    
  15  Prefactor     48.119        60.781        .57797E-04   -1.4319    
  16  norm          .10000E-03    2.4674        .10406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    864.76        .18258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.433        63.355        .84626E-04   -1.4760    
  19  Prefactor     1.8134        4.0247        .19832E-03   -1.5439    
  20  Prefactor     41.669        47.278        .62101E-04   -1.4416    
  21  Normalizat    .61380        .24026        .29783E-03   -1.0740    
  22  Prefactor     1.5056        .27270        .23194E-03   -.77383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82841e-10
Minuit parameter uncertainties:
  1  5.33163e-05
  2  2.77552e-05
  3  28.4302
  4  20.7461
  5  19.4258
  6  3.22841e-06
  7  9.97084
  8  1.32207e-05
  9  7.50295e-07
  10  7.85704e-06
  11  4.63943e-05
  12  0.00120127
  13  7.25286e-06
  14  6.94808
  15  60.8598
  16  7.73473e-06
  17  0.00430456
  18  63.546
  19  4.02527
  20  47.3201
  21  0.240673
  22  0.272967
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  4.167e+01  4.732e+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:  1.506e+00  2.730e-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:  6.138e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 9.37e-06 +/- 1.06e-05

TS (Fixed Index): 1.24
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250289/likelihoodResults_604022401_604281601_4FGL_J2359.2-3134_daily_bin1407.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) = 4699.36821467
delta logL = 0.0136621029133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4699.3602409
delta logL = 0.0216358771731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.261       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8287       1.0000          .0000       10.000    
     3 'Normalizat'    .60631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5120       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=   4699.360     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      259 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.283        55.792        .67487E-04   -.15161E-05
   2  Index         2.8266        1.1827        .82058E-02    .19875E-03
   3  Normalizat    .60659        .23581        .29948E-03    .11835E-02
   4  Prefactor     1.5117        .27254        .23156E-03    .15326E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.2828
  Index      = 2.82661
  Normalizat = 0.606593
  Prefactor  = 1.51169
 **********
 **   18 **HESSE 
 **********

 FCN=   4699.360     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.283        52.217        .26995E-05   -1.4519    
   2  Index         2.8266        1.1078        .16412E-02   -.44968    
   3  Normalizat    .60659        .23586        .59896E-04   -1.0770    
   4  Prefactor     1.5117        .27257        .46311E-04   -.77213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11493e-09
Minuit parameter uncertainties:
  1  52.2851
  2  1.1193
  3  0.236249
  4  0.272838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250289': 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) = 4699.36023797
delta logL = 0.0216388078043

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  3.528e+01  5.229e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.827e+00  1.119e+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:  1.512e+00  2.728e-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:  6.066e-01  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 2.83 +/- 1.12
Photon Flux (Free Index): 4.06e-08 +/- 4.72e-08
Energy Flux (Free Index): 8.94e-06 +/- 9.74e-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/250289/cmap_HighResolution_604022401_604281601_4FGL_J2359.2-3134_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='8.94e-06', photon_flux_error='4.07e-08', dlogl='2.16e-02', energy_flux='9.37e-06', photon_flux2='4.06e-08', job_status='DONE', time_completed='2021-09-30 12:30:56.085396', photon_index_error2='1.12', photon_index2='2.83', ts='1.24', fit_tolerance='1e-08', GAL='1.51', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='9.74e-06', EG='0.61', time_epoch_completed='1633030256.09', return_code='0', job_id='250289', GAL2='1.51', EG2='0.61', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.72e-08', ts2='1.29', photon_index='2.60' WHERE bin_id='1407' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 250289: <4FGL_J2359.2-3134_daily_bin1407> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1407> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:20:36 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:20:38 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:20:38 2021
Terminated at Thu Sep 30 12:30:56 2021
Results reported at Thu Sep 30 12:30:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1407 359.817 -31.5832 604022401 604281601 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 :                                   567.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            620 sec.

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

