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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1035
RA = 359.817, Dec = -31.5832
tmin = 507600001, tmax = 507859201
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='248827', job_status='RUN', time_executed='2021-09-30 12:19:46.906898', time_epoch_executed='1633029586.91' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248827/ft1_4FGL_J2359.2-3134_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248827/ft2_4FGL_J2359.2-3134_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248827/ft1_4FGL_J2359.2-3134_daily_bin1035.fits outfile=/scratch/kocevski/248827/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1035.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=507600001.0 tmax=507859201.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.60
user 3.35
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248827/ft1_filtered_4FGL_J2359.2-3134_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/248827/ft2_4FGL_J2359.2-3134_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/248827/ltcube_507600001_507859201_4FGL_J2359.2-3134_daily_bin1035.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/248827/ft2_4FGL_J2359.2-3134_daily_bin1035.fits
.....................!
real 12.16
user 11.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248827/ft1_filtered_4FGL_J2359.2-3134_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/248827/ft2_4FGL_J2359.2-3134_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/248827/ltcube_507600001_507859201_4FGL_J2359.2-3134_daily_bin1035.fits outfile=/scratch/kocevski/248827/expmap_507600001_507859201_4FGL_J2359.2-3134_daily_bin1035.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/248827/ltcube_507600001_507859201_4FGL_J2359.2-3134_daily_bin1035.fits
.....................!
real 191.73
user 185.77
sys 5.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/248827/ft1_filtered_4FGL_J2359.2-3134_daily_bin1035.fits scfile=/scratch/kocevski/248827/ft2_4FGL_J2359.2-3134_daily_bin1035.fits outfile=/scratch/kocevski/248827/cmap_507600001_507859201_4FGL_J2359.2-3134_daily_bin1035.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.57
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248827/ft1_filtered_4FGL_J2359.2-3134_daily_bin1035.fits scfile=/scratch/kocevski/248827/ft2_4FGL_J2359.2-3134_daily_bin1035.fits outfile=/scratch/kocevski/248827/cmap_HighResolution_507600001_507859201_4FGL_J2359.2-3134_daily_bin1035.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248827/ft1_filtered_4FGL_J2359.2-3134_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/248827/ft2_4FGL_J2359.2-3134_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248827/Model_4FGL_J2359.2-3134_daily_bin1035.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/248827/ft1_filtered_4FGL_J2359.2-3134_daily_bin1035.fits.....................!
real 45.16
user 43.78
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.840       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.087       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.202       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.507       1.0000         .10000E-03   10000.    
     9 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    29.423       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.177       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12228E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.122       1.0000         .10000E-03   10000.    
    14 'norm      '    .76624       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    75.344       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.321       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    116.01       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1288       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .47134       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=   5793.252     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2998 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.251        40.854       -.85731E-06    .23209E-05
   2  Prefactor     .10000E-03    2.4531       -.14369E-05** at limit **
   3  Prefactor     10.843        11.042       -.40365E-05    .17547E-03
   4  Prefactor     14.087        12.444       -.53177E-06    .45558E-04
   5  Prefactor     .10000E-03    8.1364       -.39917E-07** at limit **
   6  Prefactor     .10000E-03    14.848       -.14297E-06** at limit **
   7  norm          20.202        7.2432        .41238E-07    .24808E-04
   8  Prefactor     13.506        8.0528       -.36580E-06   -.75878E-03
   9  norm          .10000E-03    3.8550        .22984E-06** at limit **
  10  norm          29.426        11.193       -.41978E-06    .87962E-04
  11  Prefactor     61.172        65.554       -.48615E-05   -.13106E-04
  12  Prefactor     .10000E-03    104.97       -.14973E-04** at limit **
  13  norm          12.123        7.4177        .64068E-06   -.25063E-03
  14  norm          .76742        2.2034       -.73430E-06   -.13245E-02
  15  Prefactor     .10000E-03    99.556        .18889E-04** at limit **
  16  norm          .10000E-03    2.0707        .12307E-06** at limit **
  17  Prefactor     75.333        65.792       -.10251E-04   -.14914E-04
  18  Prefactor     17.312        36.261       -.13963E-04    .11321E-04
  19  Prefactor     .10000E-03    1.7178       -.19374E-06** at limit **
  20  Prefactor     116.04        47.508        .16910E-04    .20334E-03
  21  Normalizat    1.1288        .16330       -.71489E-06    .29478E-03
  22  Prefactor     .47139        .17334        .85771E-06    .34131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.2511
  Prefactor  = 0.000100005
  Prefactor  = 10.8429
  Prefactor  = 14.0872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.202
  Prefactor  = 13.5061
  norm       = 0.0001
  norm       = 29.4255
  Prefactor  = 61.1722
  Prefactor  = 0.0001
  norm       = 12.1226
  norm       = 0.767423
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 75.3331
  Prefactor  = 17.3117
  Prefactor  = 0.0001
  Prefactor  = 116.038
  Normalizat = 1.12883
  Prefactor  = 0.471388
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.252     FROM HESSE     STATUS=OK           346 CALLS     3344 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.251        40.864        .51689E-04   -1.4154    
   2  Prefactor     .10000E-03    5.5325        .22720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.843        10.935        .12169E-03   -1.5049    
   4  Prefactor     14.087        12.465        .10672E-03   -1.4957    
   5  Prefactor     .10000E-03    8.1399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.202        7.2435        .89111E-04   -1.4809    
   8  Prefactor     13.506        8.0782        .54494E-03   -1.4973    
   9  norm          .10000E-03    11.788        .27877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          29.426        11.193        .73861E-04   -1.4623    
  11  Prefactor     61.172        66.020        .51300E-04   -1.4142    
  12  Prefactor     .10000E-03    105.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.123        7.2514        .11381E-03   -1.5011    
  14  norm          .76742        2.1621        .18569E-03   -1.5533    
  15  Prefactor     .10000E-03    103.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0932        .10682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     75.333        65.899        .23129E-03   -1.3970    
  18  Prefactor     17.312        36.218        .96235E-04   -1.4876    
  19  Prefactor     .10000E-03    1.7259        .97422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     116.04        47.435        .18677E-03   -1.3549    
  21  Normalizat    1.1288        .18636        .19919E-03   -.88832    
  22  Prefactor     .47139        .19555        .32368E-03   -1.1331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62711e-09
Minuit parameter uncertainties:
  1  40.8829
  2  0.000324055
  3  10.9369
  4  12.4673
  5  6.79554e-07
  6  2.58245e-06
  7  7.24386
  8  8.0788
  9  0.000113167
  10  11.1942
  11  66.0993
  12  0.000205841
  13  7.25192
  14  2.16228
  15  0.000159817
  16  7.48477e-06
  17  65.963
  18  36.2644
  19  2.40546e-05
  20  47.4507
  21  0.186468
  22  0.195826
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.160e+02  4.745e+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:  4.714e-01  1.958e-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.129e+00  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.64
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 9.99e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.07e-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) = 5791.77034709
delta logL = 1.48211371896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5791.68592452
delta logL = 1.56653629248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    142.14       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8930       1.0000          .0000       10.000    
     3 'Normalizat'    1.1926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42257       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=   5791.686     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      212 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     142.14        64.300        .84479E-03   -.11527E-02
   2  Index         1.8930        .32869        .14742       -.34703E-04
   3  Normalizat    1.1926        .16227        .35076E-01   -.71270E-06
   4  Prefactor     .42258        .17509        .76857E-01    .40140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 142.142
  Index      = 1.89299
  Normalizat = 1.19256
  Prefactor  = 0.422581
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.686     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     142.14        65.184        .16896E-03   -1.3318    
   2  Index         1.8930        .36387        .59455E-02   -.67053    
   3  Normalizat    1.1926        .18036        .19461E-03   -.86833    
   4  Prefactor     .42258        .19323        .34043E-03   -1.1567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75902e-09
Minuit parameter uncertainties:
  1  65.2168
  2  0.3644
  3  0.180457
  4  0.193525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248827': 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) = 5791.68592451
delta logL = 1.56653629842

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.421e+02  6.522e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  1.893e+00  3.644e-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:  4.226e-01  1.935e-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.193e+00  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.66
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 1.89 +/- 0.36
Photon Flux (Free Index): 5.71e-08 +/- 3.46e-08
Energy Flux (Free Index): 5.22e-05 +/- 3.84e-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/248827/cmap_HighResolution_507600001_507859201_4FGL_J2359.2-3134_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.99e-08', energy_flux2='5.22e-05', photon_flux_error='4.08e-08', dlogl='1.57e+00', energy_flux='2.61e-05', photon_flux2='5.71e-08', job_status='DONE', time_completed='2021-09-30 12:30:37.273396', photon_index_error2='0.36', photon_index2='1.89', ts='15.64', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', energy_flux_error2='3.84e-05', EG='1.13', time_epoch_completed='1633030237.27', return_code='0', job_id='248827', GAL2='0.42', EG2='1.19', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.46e-08', ts2='18.66', photon_index='2.60' WHERE bin_id='1035' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:30:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 248827: <4FGL_J2359.2-3134_daily_bin1035> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1035 359.817 -31.5832 507600001 507859201 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 :                                   613.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             246.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

