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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1598
RA = 359.817, Dec = -31.5832
tmin = 653529601, tmax = 653788801
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='250577', job_status='RUN', time_executed='2021-09-30 12:22:08.328908', time_epoch_executed='1633029728.33' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250577/ft1_4FGL_J2359.2-3134_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250577/ft2_4FGL_J2359.2-3134_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250577/ft1_4FGL_J2359.2-3134_daily_bin1598.fits outfile=/scratch/kocevski/250577/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1598.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.28
user 5.04
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250577/ft1_filtered_4FGL_J2359.2-3134_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/250577/ft2_4FGL_J2359.2-3134_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/250577/ltcube_653529601_653788801_4FGL_J2359.2-3134_daily_bin1598.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/250577/ft2_4FGL_J2359.2-3134_daily_bin1598.fits
.....................!
real 11.45
user 11.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250577/ft1_filtered_4FGL_J2359.2-3134_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/250577/ft2_4FGL_J2359.2-3134_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/250577/ltcube_653529601_653788801_4FGL_J2359.2-3134_daily_bin1598.fits outfile=/scratch/kocevski/250577/expmap_653529601_653788801_4FGL_J2359.2-3134_daily_bin1598.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/250577/ltcube_653529601_653788801_4FGL_J2359.2-3134_daily_bin1598.fits
.....................!
real 189.39
user 184.80
sys 4.28

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

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

This is gtbin version HEAD
real 0.52
user 0.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250577/ft1_filtered_4FGL_J2359.2-3134_daily_bin1598.fits scfile=/scratch/kocevski/250577/ft2_4FGL_J2359.2-3134_daily_bin1598.fits outfile=/scratch/kocevski/250577/cmap_HighResolution_653529601_653788801_4FGL_J2359.2-3134_daily_bin1598.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.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250577/ft1_filtered_4FGL_J2359.2-3134_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/250577/ft2_4FGL_J2359.2-3134_daily_bin1598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250577/Model_4FGL_J2359.2-3134_daily_bin1598.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/250577/ft1_filtered_4FGL_J2359.2-3134_daily_bin1598.fits.....................!
real 43.32
user 42.14
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11736E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.217       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.154       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5557       1.0000         .10000E-03   10000.    
     9 'norm      '    3.2252       1.0000         .10000E-03   10000.    
    10 'norm      '    15.464       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15143E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12620E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5331       1.0000         .10000E-03   10000.    
    16 'norm      '    .11571E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24937       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12796E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1021       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67243       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=   5810.796     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2040 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.690        .25639E-05** at limit **
   2  Prefactor     .10000E-03    1.4828        .44783E-08** at limit **
   3  Prefactor     .10000E-03    5.7045        .68390E-07** at limit **
   4  Prefactor     .10000E-03    11.858       -.23036E-06** at limit **
   5  Prefactor     10.215        13.583       -.85570E-07    .31859E-05
   6  Prefactor     .10000E-03    48.414        .18523E-05** at limit **
   7  norm          10.155        5.5097        .91816E-06   -.20629E-04
   8  Prefactor     4.5581        6.5202       -.31864E-05   -.24644E-03
   9  norm          3.2205        3.0811        .12016E-06    .49549E-03
  10  norm          15.464        7.6631        .40403E-07    .17382E-03
  11  Prefactor     .10000E-03    142.63       -.73988E-04** at limit **
  12  Prefactor     .10000E-03    65.362        .15952E-04** at limit **
  13  norm          .10000E-03    3.0050        .18314E-06** at limit **
  14  norm          3.6337        2.7018       -.70052E-07   -.15247E-04
  15  Prefactor     7.5369        22.862        .72825E-06   -.16191E-04
  16  norm          .10000E-03    3.3193        .13898E-06** at limit **
  17  Prefactor     .10000E-03    47.699       -.26085E-05** at limit **
  18  Prefactor     .10000E-03    12.838       -.29050E-07** at limit **
  19  Prefactor     .21595        3.0691       -.19058E-05    .12405E-02
  20  Prefactor     .10000E-03    71.828        .23540E-05** at limit **
  21  Normalizat    1.1021        .14813        .10243E-05    .78346E-03
  22  Prefactor     .67228        .16371       -.31512E-06    .44831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.215
  Prefactor  = 0.0001
  norm       = 10.1553
  Prefactor  = 4.55814
  norm       = 3.22053
  norm       = 15.4643
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.63366
  Prefactor  = 7.53693
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.215951
  Prefactor  = 0.0001
  Normalizat = 1.10214
  Prefactor  = 0.672277
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.796     FROM HESSE     STATUS=OK           338 CALLS     2378 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5143        .90576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7089        .17782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.215        13.581        .12535E-03   -1.5069    
   6  Prefactor     .10000E-03    49.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.155        5.5085        .12575E-03   -1.5071    
   8  Prefactor     4.5581        6.5723        .18860E-03   -1.5281    
   9  norm          3.2205        3.0860        .12767E-03   -1.5349    
  10  norm          15.464        7.6640        .10185E-03   -1.4921    
  11  Prefactor     .10000E-03    142.88        .20463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    65.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0897        .25768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6337        2.6937        .10245E-03   -1.5327    
  15  Prefactor     7.5369        22.809        .14612E-03   -1.5159    
  16  norm          .10000E-03    3.4518        .27102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .21595        41.192        .24321E-02   -1.5615    
  20  Prefactor     .10000E-03    72.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1021        .17613        .19236E-03   -.89683    
  22  Prefactor     .67228        .19209        .27232E-03   -1.0462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47019e-08
Minuit parameter uncertainties:
  1  4.45909e-06
  2  4.90998e-07
  3  1.38242e-06
  4  2.92205e-05
  5  13.5846
  6  3.06242e-05
  7  5.50873
  8  6.57334
  9  3.08618
  10  7.66453
  11  0.00167897
  12  0.000181831
  13  3.38803e-05
  14  2.69377
  15  22.8353
  16  2.71355e-05
  17  2.02851e-05
  18  1.47819e-06
  19  5.96782
  20  0.000241209
  21  0.176223
  22  0.192279
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  2.412e-04  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.723e-01  1.923e-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.102e+00  1.762e-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: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250577/likelihoodResults_653529601_653788801_4FGL_J2359.2-3134_daily_bin1598.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) = 5810.79638635
delta logL = -6.57126965962e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5810.79632085
delta logL = -2.1640516934e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5532       1.0000          .0000       10.000    
     3 'Normalizat'    1.1021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67228       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=   5810.796     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      281 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    9426.4        .18142E-02** at limit **
   2  Index         2.6554        5.5862        .50000       -.18425E-04
   3  Normalizat    1.1021        .57448E-01    .19236E-03    .28546E-04
   4  Prefactor     .67228        .65142E-01    .27232E-03   -.23128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100037
  Index      = 2.65541
  Normalizat = 1.10214
  Prefactor  = 0.672277
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.796     FROM HESSE     STATUS=OK            29 CALLS      310 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    126.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6554        6.3245        .50000       -.48807    
   3  Normalizat    1.1021        .16795        .76945E-05   -.89683    
   4  Prefactor     .67228        .19057        .10893E-04   -1.0462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76522e-10
Minuit parameter uncertainties:
  1  0.00434886
  2  5.00404
  3  0.168026
  4  0.190757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250577': 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) = 5810.79632043
delta logL = 2.04024217965e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  4.349e-03  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.655e+00  5.004e+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.723e-01  1.908e-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.102e+00  1.680e-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/250577/cmap_HighResolution_653529601_653788801_4FGL_J2359.2-3134_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-09-30 12:32:27.778612', job_id='250577', GAL2='0.67', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1633030347.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1598' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:32:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 250577: <4FGL_J2359.2-3134_daily_bin1598> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1598> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:20:59 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:21:01 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:21:01 2021
Terminated at Thu Sep 30 12:32:28 2021
Results reported at Thu Sep 30 12:32:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1598 359.817 -31.5832 653529601 653788801 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 :                                   607.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            689 sec.

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

