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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1431
RA = 359.817, Dec = -31.5832
tmin = 610243201, tmax = 610502401
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='250323', job_status='RUN', time_executed='2021-09-30 12:22:43.999126', time_epoch_executed='1633029764.0' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250323

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250323/ft1_4FGL_J2359.2-3134_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250323/ft2_4FGL_J2359.2-3134_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250323/ft1_4FGL_J2359.2-3134_daily_bin1431.fits outfile=/scratch/kocevski/250323/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1431.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=610243201.0 tmax=610502401.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.94
user 3.70
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250323/ft2_4FGL_J2359.2-3134_daily_bin1431.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/250323/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1431.fits evtable="EVENTS" outfile="/scratch/kocevski/250323/ft1_filtered_4FGL_J2359.2-3134_daily_bin1431.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/250323/ft1_filtered_4FGL_J2359.2-3134_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/250323/ft2_4FGL_J2359.2-3134_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/250323/ltcube_610243201_610502401_4FGL_J2359.2-3134_daily_bin1431.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/250323/ft2_4FGL_J2359.2-3134_daily_bin1431.fits
.....................!
real 11.92
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250323/ft1_filtered_4FGL_J2359.2-3134_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/250323/ft2_4FGL_J2359.2-3134_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/250323/ltcube_610243201_610502401_4FGL_J2359.2-3134_daily_bin1431.fits outfile=/scratch/kocevski/250323/expmap_610243201_610502401_4FGL_J2359.2-3134_daily_bin1431.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/250323/ltcube_610243201_610502401_4FGL_J2359.2-3134_daily_bin1431.fits
.....................!
real 190.22
user 184.41
sys 5.50

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/250323/ft1_filtered_4FGL_J2359.2-3134_daily_bin1431.fits scfile=/scratch/kocevski/250323/ft2_4FGL_J2359.2-3134_daily_bin1431.fits outfile=/scratch/kocevski/250323/cmap_610243201_610502401_4FGL_J2359.2-3134_daily_bin1431.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.54
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250323/ft1_filtered_4FGL_J2359.2-3134_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/250323/ft2_4FGL_J2359.2-3134_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250323/Model_4FGL_J2359.2-3134_daily_bin1431.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/250323/ft1_filtered_4FGL_J2359.2-3134_daily_bin1431.fits.....................!
real 35.53
user 34.24
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49060       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8724       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.0124       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8918       1.0000         .10000E-03   10000.    
     9 'norm      '    4.2503       1.0000         .10000E-03   10000.    
    10 'norm      '    21.661       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .67149       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17258E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1730       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .62364       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=   4121.140     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2031 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.242       -.57027E-05** at limit **
   2  Prefactor     .47746        2.8771       -.71610E-06   -.22250E-03
   3  Prefactor     .10000E-03    12.716       -.77665E-08** at limit **
   4  Prefactor     9.8680        12.039       -.99471E-07   -.19492E-04
   5  Prefactor     .10000E-03    13.452       -.28636E-06** at limit **
   6  Prefactor     .10000E-03    23.958       -.55209E-05** at limit **
   7  norm          8.0115        6.2991        .33816E-05   -.39390E-04
   8  Prefactor     9.8876        9.8839       -.27320E-06   -.38496E-04
   9  norm          4.2541        4.3791        .26098E-05   -.28316E-04
  10  norm          21.663        11.763        .81875E-08   -.77244E-04
  11  Prefactor     13.610        26.369       -.33038E-04   -.10138E-04
  12  Prefactor     .10000E-03    61.517        .81773E-05** at limit **
  13  norm          .10000E-03    1.3179        .22413E-06** at limit **
  14  norm          .67093        2.9877       -.14515E-05   -.93493E-03
  15  Prefactor     .10000E-03    22.224       -.20720E-05** at limit **
  16  norm          .10000E-03    1.2838        .11764E-06** at limit **
  17  Prefactor     .10000E-03    29.787        .61782E-05** at limit **
  18  Prefactor     .10000E-03    20.682        .40221E-05** at limit **
  19  Prefactor     .10008E-03    3.9301        .14018E-05** at limit **
  20  Prefactor     .10000E-03    21.289        .13701E-05** at limit **
  21  Normalizat    1.1734        .19068        .44629E-06   -.11939E-03
  22  Prefactor     .62330        .20059        .32349E-06   -.49673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.477456
  Prefactor  = 0.0001
  Prefactor  = 9.86802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.0115
  Prefactor  = 9.88765
  norm       = 4.25409
  norm       = 21.6629
  Prefactor  = 13.6102
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.670932
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100082
  Prefactor  = 0.0001
  Normalizat = 1.17341
  Prefactor  = 0.623299
 **********
 **   18 **HESSE 
 **********

 FCN=   4121.140     FROM HESSE     STATUS=OK           342 CALLS     2373 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .47746        8.9168        .20064E-02   -1.5570    
   3  Prefactor     .10000E-03    12.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8680        12.031        .12753E-03   -1.5080    
   5  Prefactor     .10000E-03    13.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.0115        6.2883        .13819E-03   -1.5142    
   8  Prefactor     9.8876        9.9141        .12741E-03   -1.5079    
   9  norm          4.2541        4.3849        .12861E-03   -1.5295    
  10  norm          21.663        11.762        .86061E-04   -1.4777    
  11  Prefactor     13.610        26.331        .10840E-03   -1.4970    
  12  Prefactor     .10000E-03    61.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3241        .71996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .67093        2.9270        .21594E-03   -1.5544    
  15  Prefactor     .10000E-03    22.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2880        .71041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10008E-03    20.228        .24147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1734        .22051        .19689E-03   -.87429    
  22  Prefactor     .62330        .23306        .28621E-03   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31376e-09
Minuit parameter uncertainties:
  1  8.85489e-06
  2  4.12696
  3  7.81264e-06
  4  12.0344
  5  8.71479e-07
  6  5.98942e-06
  7  6.2888
  8  9.91572
  9  4.38523
  10  11.7628
  11  26.3534
  12  3.52816e-05
  13  3.4817e-05
  14  2.80276
  15  2.06879e-05
  16  2.08074e-05
  17  1.71685e-06
  18  6.0325e-06
  19  0.00257338
  20  8.80568e-06
  21  0.220681
  22  0.233418
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  8.806e-06  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:  6.233e-01  2.334e-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.173e+00  2.207e-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: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250323/likelihoodResults_610243201_610502401_4FGL_J2359.2-3134_daily_bin1431.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) = 4121.14062632
delta logL = -0.000223528576498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4121.14040285
delta logL = -5.84514054935e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5119       1.0000          .0000       10.000    
     3 'Normalizat'    1.1734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62331       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=   4121.140     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6359.5        .90712E-02** at limit **
   2  Index         2.5174        6.2010        .50000       -.24088E-05
   3  Normalizat    1.1734        .68544E-01    .35579E-01    .14874E-05
   4  Prefactor     .62330        .75029E-01    .64684E-01    .17914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51742
  Normalizat = 1.17341
  Prefactor  = 0.623299
 **********
 **   18 **HESSE 
 **********

 FCN=   4121.140     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5174        6.2365        .50000       -.51958    
   3  Normalizat    1.1734        .20835        .19689E-03   -.87428    
   4  Prefactor     .62330        .22779        .28621E-03   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25043e-12
Minuit parameter uncertainties:
  1  1.4155e-06
  2  5.1419
  3  0.208498
  4  0.228133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250323': 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) = 4121.14040284
delta logL = -5.08634911967e-08

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  1.415e-06  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.517e+00  5.142e+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:  6.233e-01  2.281e-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.173e+00  2.085e-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/250323/cmap_HighResolution_610243201_610502401_4FGL_J2359.2-3134_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-30 12:33:12.336563', job_id='250323', GAL2='0.62', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1633030392.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='-5.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1431' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:33:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 250323: <4FGL_J2359.2-3134_daily_bin1431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1431 359.817 -31.5832 610243201 610502401 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 :                                   515.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

