aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 193 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 = 7473
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1681
RA = 359.817, Dec = -31.5832
tmin = 675043201, tmax = 675302401
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='757253', job_status='RUN', time_executed='2022-05-27 01:03:49.397709', time_epoch_executed='1653638629.4' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757253/ft1_4FGL_J2359.2-3134_daily_bin1681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757253/ft2_4FGL_J2359.2-3134_daily_bin1681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757253/ft1_4FGL_J2359.2-3134_daily_bin1681.fits outfile=/scratch/kocevski/757253/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1681.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=675043201.0 tmax=675302401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.58
user 3.32
sys 0.22

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

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

Number of photons that the gtmktime cut: 588

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757253/ft1_filtered_4FGL_J2359.2-3134_daily_bin1681.fits" evtable="EVENTS" scfile=/scratch/kocevski/757253/ft2_4FGL_J2359.2-3134_daily_bin1681.fits sctable="SC_DATA" outfile=/scratch/kocevski/757253/ltcube_675043201_675302401_4FGL_J2359.2-3134_daily_bin1681.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/757253/ft2_4FGL_J2359.2-3134_daily_bin1681.fits
.....................!
real 14.55
user 14.19
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757253/ft1_filtered_4FGL_J2359.2-3134_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/757253/ft2_4FGL_J2359.2-3134_daily_bin1681.fits sctable="SC_DATA" expcube=/scratch/kocevski/757253/ltcube_675043201_675302401_4FGL_J2359.2-3134_daily_bin1681.fits outfile=/scratch/kocevski/757253/expmap_675043201_675302401_4FGL_J2359.2-3134_daily_bin1681.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/757253/ltcube_675043201_675302401_4FGL_J2359.2-3134_daily_bin1681.fits
.....................!
real 190.94
user 185.66
sys 4.60

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/757253/ft1_filtered_4FGL_J2359.2-3134_daily_bin1681.fits scfile=/scratch/kocevski/757253/ft2_4FGL_J2359.2-3134_daily_bin1681.fits outfile=/scratch/kocevski/757253/cmap_675043201_675302401_4FGL_J2359.2-3134_daily_bin1681.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757253/ft1_filtered_4FGL_J2359.2-3134_daily_bin1681.fits scfile=/scratch/kocevski/757253/ft2_4FGL_J2359.2-3134_daily_bin1681.fits outfile=/scratch/kocevski/757253/cmap_HighResolution_675043201_675302401_4FGL_J2359.2-3134_daily_bin1681.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=359.817 yref=-31.5832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/757253/ft1_filtered_4FGL_J2359.2-3134_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/757253/ft2_4FGL_J2359.2-3134_daily_bin1681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/757253/Model_4FGL_J2359.2-3134_daily_bin1681.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/757253/ft1_filtered_4FGL_J2359.2-3134_daily_bin1681.fits.....................!
real 48.50
user 47.12
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0761       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.552       1.0000         .10000E-03   10000.    
     7 'norm      '    62.838       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3486       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    23.795       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.433       1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.223       1.0000         .10000E-03   10000.    
    13 'norm      '    .10280E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1250       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.571       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.397       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75252       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86921       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=   6443.269     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2358 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.440        .40697E-06** at limit **
   2  Prefactor     4.0769        4.5095        .12090E-05    .25699E-03
   3  Prefactor     5.0374        50.701       -.18871E-04   -.21904E-03
   4  Prefactor     .10000E-03    6.7756        .22751E-06** at limit **
   5  Prefactor     .10000E-03    7.8558        .28115E-07** at limit **
   6  Prefactor     52.549        30.219       -.82563E-06   -.35182E-04
   7  norm          62.839        10.064        .10313E-08    .79998E-05
   8  Prefactor     4.3479        6.0361        .45930E-05   -.81046E-03
   9  norm          .10000E-03    1.2189       -.98600E-07** at limit **
  10  norm          23.795        10.395        .12865E-06    .16570E-04
  11  Prefactor     36.419        39.175       -.26806E-05   -.11047E-03
  12  Prefactor     62.221        44.810       -.13638E-06   -.52736E-05
  13  norm          .10000E-03    1.8024       -.35363E-06** at limit **
  14  norm          .10000E-03    .78187       -.57411E-07** at limit **
  15  Prefactor     4.1243        17.085        .74263E-05   -.16579E-03
  16  norm          1.2987        2.1323        .16252E-06    .12244E-03
  17  Prefactor     24.559        47.538       -.39801E-05   -.65924E-04
  18  Prefactor     .10000E-03    11.456       -.25697E-06** at limit **
  19  Prefactor     .10000E-03    2.4346        .77621E-07** at limit **
  20  Prefactor     31.402        35.536        .13918E-05    .66775E-04
  21  Normalizat    .75253        .15056        .71026E-06   -.87208E-05
  22  Prefactor     .86923        .16444       -.11586E-05    .10836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.07692
  Prefactor  = 5.0374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.5494
  norm       = 62.8387
  Prefactor  = 4.34786
  norm       = 0.0001
  norm       = 23.7946
  Prefactor  = 36.4191
  Prefactor  = 62.2208
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.12425
  norm       = 1.29868
  Prefactor  = 24.5588
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4023
  Normalizat = 0.752532
  Prefactor  = 0.869235
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.269     FROM HESSE     STATUS=OK           338 CALLS     2696 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0769        4.5288        .12919E-03   -1.5304    
   3  Prefactor     5.0374        57.341        .17846E-03   -1.5259    
   4  Prefactor     .10000E-03    6.8296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.549        30.241        .55326E-04   -1.4257    
   7  norm          62.839        10.074        .50621E-04   -1.4121    
   8  Prefactor     4.3479        6.2626        .96580E-03   -1.5291    
   9  norm          .10000E-03    1.2189        .86540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          23.795        10.395        .82116E-04   -1.4732    
  11  Prefactor     36.419        38.996        .66397E-04   -1.4500    
  12  Prefactor     62.221        44.886        .50869E-04   -1.4129    
  13  norm          .10000E-03    1.8054        .10467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .78556        .69300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1243        17.506        .99237E-03   -1.5302    
  16  norm          1.2987        2.0742        .14158E-03   -1.5480    
  17  Prefactor     24.559        47.691        .80812E-04   -1.4716    
  18  Prefactor     .10000E-03    11.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4747        .12216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.402        35.542        .71508E-04   -1.4587    
  21  Normalizat    .75253        .17824        .23209E-03   -1.0185    
  22  Prefactor     .86923        .19367        .24805E-03   -.97225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47586e-09
Minuit parameter uncertainties:
  1  2.32084e-05
  2  4.52915
  3  34.0321
  4  8.25095e-06
  5  5.13513e-07
  6  30.2503
  7  10.0738
  8  6.26357
  9  3.39994e-07
  10  10.3958
  11  39.0237
  12  44.9104
  13  2.16428e-05
  14  3.47141e-06
  15  17.0021
  16  2.07436
  17  47.7655
  18  2.11597e-05
  19  6.27791e-06
  20  35.5657
  21  0.178375
  22  0.193827
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  3.140e+01  3.557e+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.692e-01  1.938e-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:  7.525e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 7.06e-06 +/- 7.99e-06

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

Saving results to:
/scratch/kocevski/757253/likelihoodResults_675043201_675302401_4FGL_J2359.2-3134_daily_bin1681.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) = 6443.25377184
delta logL = 0.0152292415842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6443.24314636
delta logL = 0.0258547253843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.523       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8334       1.0000          .0000       10.000    
     3 'Normalizat'    .74795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87351       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=   6443.243     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      247 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.481        43.980        .79293E-04   -.26249E-03
   2  Index         2.8338        1.1563        .86416E-02   -.93857E-04
   3  Normalizat    .74799        .17051        .23273E-03   -.13810E-03
   4  Prefactor     .87349        .19348        .24752E-03    .17895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4808
  Index      = 2.83379
  Normalizat = 0.747987
  Prefactor  = 0.873494
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.243     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.481        39.586        .15859E-04   -1.4698    
   2  Index         2.8338        1.0420        .34566E-03   -.44809    
   3  Normalizat    .74799        .17065        .93090E-05   -1.0203    
   4  Prefactor     .87349        .19355        .99007E-05   -.97074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15005e-10
Minuit parameter uncertainties:
  1  39.6272
  2  1.0515
  3  0.170776
  4  0.193705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757253': 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) = 6443.24314563
delta logL = 0.0258554554011

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  2.548e+01  3.963e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.834e+00  1.051e+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:  8.735e-01  1.937e-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:  7.480e-01  1.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 2.83 +/- 1.05
Photon Flux (Free Index): 2.96e-08 +/- 3.26e-08
Energy Flux (Free Index): 6.49e-06 +/- 7.34e-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/757253/cmap_HighResolution_675043201_675302401_4FGL_J2359.2-3134_daily_bin1681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='6.49e-06', photon_flux_error='3.06e-08', dlogl='2.59e-02', energy_flux='7.06e-06', photon_flux2='2.96e-08', job_status='DONE', time_completed='2022-05-27 01:15:03.824080', photon_index_error2='1.05', photon_index2='2.83', ts='1.15', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.22e-08', energy_flux_error2='7.34e-06', EG='0.75', time_epoch_completed='1653639303.82', return_code='0', job_id='757253', GAL2='0.87', EG2='0.75', return_code2='0', energy_flux_error='7.99e-06', photon_flux_error2='3.26e-08', ts2='1.20', photon_index='2.60' WHERE bin_id='1681' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 27 01:15:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 757253: <4FGL_J2359.2-3134_daily_bin1681> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1681> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri May 27 01:00:21 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May 27 01:00:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May 27 01:00:24 2022
Terminated at Fri May 27 01:15:04 2022
Results reported at Fri May 27 01:15:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1681 359.817 -31.5832 675043201 675302401 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 :                                   672.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

