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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1019
RA = 359.817, Dec = -31.5832
tmin = 503452801, tmax = 503712001
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='248803', job_status='RUN', time_executed='2021-09-30 12:17:30.458669', time_epoch_executed='1633029450.46' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248803/ft1_4FGL_J2359.2-3134_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248803/ft2_4FGL_J2359.2-3134_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248803/ft1_4FGL_J2359.2-3134_daily_bin1019.fits outfile=/scratch/kocevski/248803/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1019.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.76
user 7.45
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248803/ft1_filtered_4FGL_J2359.2-3134_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/248803/ft2_4FGL_J2359.2-3134_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/248803/ltcube_503452801_503712001_4FGL_J2359.2-3134_daily_bin1019.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/248803/ft2_4FGL_J2359.2-3134_daily_bin1019.fits
.....................!
real 11.64
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248803/ft1_filtered_4FGL_J2359.2-3134_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/248803/ft2_4FGL_J2359.2-3134_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/248803/ltcube_503452801_503712001_4FGL_J2359.2-3134_daily_bin1019.fits outfile=/scratch/kocevski/248803/expmap_503452801_503712001_4FGL_J2359.2-3134_daily_bin1019.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/248803/ltcube_503452801_503712001_4FGL_J2359.2-3134_daily_bin1019.fits
.....................!
real 191.42
user 186.55
sys 4.56

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/248803/ft1_filtered_4FGL_J2359.2-3134_daily_bin1019.fits scfile=/scratch/kocevski/248803/ft2_4FGL_J2359.2-3134_daily_bin1019.fits outfile=/scratch/kocevski/248803/cmap_503452801_503712001_4FGL_J2359.2-3134_daily_bin1019.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248803/ft1_filtered_4FGL_J2359.2-3134_daily_bin1019.fits scfile=/scratch/kocevski/248803/ft2_4FGL_J2359.2-3134_daily_bin1019.fits outfile=/scratch/kocevski/248803/cmap_HighResolution_503452801_503712001_4FGL_J2359.2-3134_daily_bin1019.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/248803/ft1_filtered_4FGL_J2359.2-3134_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/248803/ft2_4FGL_J2359.2-3134_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248803/Model_4FGL_J2359.2-3134_daily_bin1019.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/248803/ft1_filtered_4FGL_J2359.2-3134_daily_bin1019.fits.....................!
real 47.43
user 46.20
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5283       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0671       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.504       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.749       1.0000         .10000E-03   10000.    
     6 'Prefactor '    109.37       1.0000         .10000E-03   10000.    
     7 'norm      '    15.791       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4332       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1300       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2153       1.0000         .10000E-03   10000.    
    14 'norm      '    .10374E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6935       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0370       1.0000         .10000E-03   10000.    
    20 'Prefactor '    254.34       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72361       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0066       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=   5997.792     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2400 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.472        .64639E-05** at limit **
   2  Prefactor     3.5292        5.5776        .43365E-06   -.42681E-03
   3  Prefactor     9.0655        30.048       -.20358E-05   -.13618E-04
   4  Prefactor     14.504        13.331       -.10998E-06   -.23223E-04
   5  Prefactor     26.719        48.286       -.45629E-04   -.67300E-05
   6  Prefactor     109.40        69.845        .26102E-04    .39971E-05
   7  norm          15.792        7.7733       -.50897E-06   -.39255E-04
   8  Prefactor     .10000E-03    8.7219       -.74158E-06** at limit **
   9  norm          2.4336        5.6297       -.96935E-06   -.53870E-03
  10  norm          5.1298        5.1430        .85215E-06    .44408E-04
  11  Prefactor     .10000E-03    55.295       -.12348E-05** at limit **
  12  Prefactor     .10000E-03    20.410        .55558E-05** at limit **
  13  norm          1.2158        3.8848       -.43947E-06   -.92295E-03
  14  norm          .10000E-03    1.4422       -.10717E-06** at limit **
  15  Prefactor     5.6992        17.574        .42885E-07   -.30717E-04
  16  norm          .10000E-03    1.8986        .12787E-06** at limit **
  17  Prefactor     .10000E-03    28.576       -.54205E-05** at limit **
  18  Prefactor     .10000E-03    21.330       -.66717E-05** at limit **
  19  Prefactor     8.0383        6.5397        .96915E-06   -.46405E-04
  20  Prefactor     254.33        73.862       -.63133E-05    .11453E-04
  21  Normalizat    .72327        .16600        .10457E-05    .96995E-05
  22  Prefactor     1.0069        .17728        .24656E-06    .50724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.5292
  Prefactor  = 9.06545
  Prefactor  = 14.504
  Prefactor  = 26.7189
  Prefactor  = 109.401
  norm       = 15.7923
  Prefactor  = 0.0001
  norm       = 2.43355
  norm       = 5.12979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21575
  norm       = 0.0001
  Prefactor  = 5.69923
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.03831
  Prefactor  = 254.331
  Normalizat = 0.723273
  Prefactor  = 1.00695
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.792     FROM HESSE     STATUS=OK           350 CALLS     2750 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5292        5.4703        .17542E-03   -1.5332    
   3  Prefactor     9.0655        29.636        .13310E-03   -1.5106    
   4  Prefactor     14.504        13.326        .10517E-03   -1.4946    
   5  Prefactor     26.719        48.243        .77458E-04   -1.4674    
   6  Prefactor     109.40        69.757        .19230E-03   -1.3612    
   7  norm          15.792        7.7822        .10079E-03   -1.4913    
   8  Prefactor     .10000E-03    8.8399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4336        5.5274        .23487E-03   -1.5396    
  10  norm          5.1298        5.1440        .17060E-03   -1.5255    
  11  Prefactor     .10000E-03    55.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2158        3.7831        .22810E-03   -1.5487    
  14  norm          .10000E-03    2.5724        .17751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6992        17.313        .16834E-03   -1.5230    
  16  norm          .10000E-03    1.9168        .10409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0383        6.5305        .14143E-03   -1.5141    
  20  Prefactor     254.33        73.644        .12703E-03   -1.2505    
  21  Normalizat    .72327        .19486        .25150E-03   -1.0298    
  22  Prefactor     1.0069        .20826        .23968E-03   -.92498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01651e-09
Minuit parameter uncertainties:
  1  2.20927e-05
  2  5.47106
  3  29.6841
  4  13.3287
  5  48.3132
  6  69.8089
  7  7.78266
  8  9.70203e-05
  9  5.52854
  10  5.14449
  11  0.000113204
  12  1.77215e-05
  13  3.78381
  14  1.10341e-05
  15  17.328
  16  2.65992e-06
  17  6.13955e-07
  18  6.02686e-05
  19  6.53107
  20  73.6711
  21  0.195046
  22  0.20843
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  2.543e+02  7.367e+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.007e+00  2.084e-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.233e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.35
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 2.19e-07 +/- 6.34e-08
Energy Flux (Fixed Index): 5.72e-05 +/- 1.66e-05

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) = 5997.75879214
delta logL = 0.0334485579042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5997.74582302
delta logL = 0.0464176751002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    270.30       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5180       1.0000          .0000       10.000    
     3 'Normalizat'    .73567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99682       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=   5997.746     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      283 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     270.30        89.687        .12333E-03    .53111E-03
   2  Index         2.5181        .28523        .36722E-02    .41942E-03
   3  Normalizat    .73566        .19268        .24964E-03   -.56970E-04
   4  Prefactor     .99682        .20895        .24074E-03   -.84060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 270.301
  Index      = 2.51806
  Normalizat = 0.73566
  Prefactor  = 0.996817
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.746     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     270.30        88.256        .24665E-04   -1.2405    
   2  Index         2.5181        .28047        .14689E-03   -.51943    
   3  Normalizat    .73566        .19285        .99858E-05   -1.0250    
   4  Prefactor     .99682        .20913        .96294E-05   -.92836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09082e-10
Minuit parameter uncertainties:
  1  88.2996
  2  0.280669
  3  0.193033
  4  0.2093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248803': 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) = 5997.74582301
delta logL = 0.046417680679

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  2.703e+02  8.830e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.518e+00  2.807e-01  0.000e+00  1.000e+01 (-1.000e+00)
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.968e-01  2.093e-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.357e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.71
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 2.52 +/- 0.28
Photon Flux (Free Index): 2.09e-07 +/- 6.64e-08
Energy Flux (Free Index): 5.94e-05 +/- 1.81e-05

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/248803/cmap_HighResolution_503452801_503712001_4FGL_J2359.2-3134_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-07', energy_flux2='5.94e-05', photon_flux_error='6.34e-08', dlogl='4.64e-02', energy_flux='5.72e-05', photon_flux2='2.09e-07', job_status='DONE', time_completed='2021-09-30 12:27:41.356256', photon_index_error2='0.28', photon_index2='2.52', ts='29.35', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='0.72', time_epoch_completed='1633030061.36', return_code='0', job_id='248803', GAL2='1.00', EG2='0.74', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='6.64e-08', ts2='29.71', photon_index='2.60' WHERE bin_id='1019' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:27:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 248803: <4FGL_J2359.2-3134_daily_bin1019> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1019> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:15:44 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:15:46 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:15:46 2021
Terminated at Thu Sep 30 12:27:41 2021
Results reported at Thu Sep 30 12:27:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1019 359.817 -31.5832 503452801 503712001 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 :                                   597.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

