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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1619
RA = 359.817, Dec = -31.5832
tmin = 658972801, tmax = 659232001
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='506946', job_status='RUN', time_executed='2021-12-08 09:53:30.044590', time_epoch_executed='1638986010.04' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506946/ft1_4FGL_J2359.2-3134_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506946/ft2_4FGL_J2359.2-3134_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506946/ft1_4FGL_J2359.2-3134_daily_bin1619.fits outfile=/scratch/kocevski/506946/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1619.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=658972801.0 tmax=659232001.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.00
user 2.76
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506946/ft1_filtered_4FGL_J2359.2-3134_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/506946/ft2_4FGL_J2359.2-3134_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/506946/ltcube_658972801_659232001_4FGL_J2359.2-3134_daily_bin1619.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/506946/ft2_4FGL_J2359.2-3134_daily_bin1619.fits
.....................!
real 15.31
user 14.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506946/ft1_filtered_4FGL_J2359.2-3134_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/506946/ft2_4FGL_J2359.2-3134_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/506946/ltcube_658972801_659232001_4FGL_J2359.2-3134_daily_bin1619.fits outfile=/scratch/kocevski/506946/expmap_658972801_659232001_4FGL_J2359.2-3134_daily_bin1619.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/506946/ltcube_658972801_659232001_4FGL_J2359.2-3134_daily_bin1619.fits
.....................!
real 192.34
user 187.10
sys 4.82

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11568E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    107.63       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2730       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.261       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.887       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.335       1.0000         .10000E-03   10000.    
    13 'norm      '    .10480E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5325       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.703       1.0000         .10000E-03   10000.    
    16 'norm      '    .10372E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1877       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.566       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1891       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20776E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2489       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57718       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6631.148     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     1970 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.650        .28724E-05** at limit **
   2  Prefactor     .10000E-03    6.5383        .23728E-05** at limit **
   3  Prefactor     38.699        16.502        .18727E-04    .23020E-02
   4  Prefactor     .10000E-03    7.6408       -.78846E-05** at limit **
   5  Prefactor     .10000E-03    13.439       -.22261E-05** at limit **
   6  Prefactor     107.64        1.4783       -.17080E-06    .79578E-04
   7  norm          .10000E-03    2.9784        .17174E-05** at limit **
   8  Prefactor     3.2729        3.6969       -.25385E-05    .37116E-05
   9  norm          .10000E-03    1.7481       -.40780E-06** at limit **
  10  norm          16.260        1.0520        .39913E-06    .80387E-03
  11  Prefactor     53.943        7.6633        .34862E-05   -.13555E-02
  12  Prefactor     15.328        8.9966        .15681E-04   -.60156E-03
  13  norm          .10000E-03    2.3894       -.56997E-05** at limit **
  14  norm          2.5325        2.2379       -.77922E-06    .28765E-04
  15  Prefactor     23.695        10.610        .14965E-04   -.77391E-03
  16  norm          .10000E-03    3.0822        .43359E-06** at limit **
  17  Prefactor     5.1879        1.2477        .23412E-05   -.22823E-03
  18  Prefactor     34.543        5.8594        .48105E-05   -.32884E-02
  19  Prefactor     4.1931        5.0282        .59654E-05    .39980E-04
  20  Prefactor     .10001E-03    355.31       -.10884E-03** at limit **
  21  Normalizat    1.2490        .18389       -.44195E-05    .11351E-04
  22  Prefactor     .57716        .19704       -.47697E-05    .86632E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.6988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.642
  norm       = 0.0001
  Prefactor  = 3.27289
  norm       = 0.0001
  norm       = 16.26
  Prefactor  = 53.9432
  Prefactor  = 15.3278
  norm       = 0.0001
  norm       = 2.53249
  Prefactor  = 23.6946
  norm       = 0.0001
  Prefactor  = 5.18794
  Prefactor  = 34.5426
  Prefactor  = 4.19313
  Prefactor  = 0.00010001
  Normalizat = 1.24897
  Prefactor  = 0.577161
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.148     FROM HESSE     STATUS=OK           404 CALLS     2374 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9263        .57962E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.699        21.952        .16106E-02   -1.4463    
   4  Prefactor     .10000E-03    7.6166        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.419        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     107.64        39.202        .96912E-03   -1.3629    
   7  norm          .10000E-03    2.9491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2729        3.6996        .55958E-02   -1.5346    
   9  norm          .10000E-03    1.7371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.260        8.5461        .24831E-02   -1.4901    
  11  Prefactor     53.943        45.041        .13660E-02   -1.4238    
  12  Prefactor     15.328        22.760        .25569E-02   -1.4925    
  13  norm          .10000E-03    2.3827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5325        2.2486        .64165E-02   -1.5390    
  15  Prefactor     23.695        22.794        .20569E-02   -1.4734    
  16  norm          .10000E-03    3.0200        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1879        505.38        .44124E-02   -1.5252    
  18  Prefactor     34.543        33.581        .17040E-02   -1.4532    
  19  Prefactor     4.1931        5.2349        .49226E-02   -1.5298    
  20  Prefactor     .10001E-03    43.574        .12962       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2490        .16712        .33789E-01   -.85103    
  22  Prefactor     .57716        .17269        .70447E-01   -1.0856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03096e-08
Minuit parameter uncertainties:
  1  4.03889e-05
  2  7.44643e-06
  3  21.9562
  4  7.46088e-08
  5  5.70284e-06
  6  39.2118
  7  1.41458e-06
  8  3.69987
  9  2.6955e-07
  10  8.54675
  11  45.0696
  12  22.7724
  13  5.60692e-06
  14  2.24863
  15  22.8025
  16  7.34346e-07
  17  103.318
  18  33.5992
  19  5.23545
  20  0.00133049
  21  0.167187
  22  0.172844
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  1.330e-03  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:  5.772e-01  1.728e-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.249e+00  1.672e-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.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506946/likelihoodResults_658972801_659232001_4FGL_J2359.2-3134_daily_bin1619.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) = 6631.14787525
delta logL = -1.28116525957e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6631.14787525
delta logL = -1.28100109578e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6047       1.0000          .0000       10.000    
     3 'Normalizat'    1.2490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57717       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6631.139     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      385 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6374        74.040        .18142E-02   -.16363E-03
   2  Index         3.2696        3.7968        .12208E-01   -.38036E-04
   3  Normalizat    1.2425        .18719        .20269E-03   -.61815E-03
   4  Prefactor     .58086        .19853        .31088E-03   -.42065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6374
  Index      = 3.26964
  Normalizat = 1.24247
  Prefactor  = 0.580858
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.139     FROM HESSE     STATUS=OK            23 CALLS      408 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6374        50.570        .72570E-04   -1.5383    
   2  Index         3.2696        3.3007        .48831E-03   -.35338    
   3  Normalizat    1.2425        .18722        .40539E-04   -.85300    
   4  Prefactor     .58086        .19874        .12435E-04   -1.0840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95349e-10
Minuit parameter uncertainties:
  1  23.1196
  2  3.66131
  3  0.18732
  4  0.198984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506946': 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) = 6631.13899409
delta logL = 0.00886834951416

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  2.637e+00  2.312e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.270e+00  3.661e+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:  5.809e-01  1.990e-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.242e+00  1.873e-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/506946/cmap_HighResolution_658972801_659232001_4FGL_J2359.2-3134_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2021-12-08 10:04:31.867088', job_id='506946', GAL2='0.58', fit_tolerance='1e-08', EG2='1.24', EG='1.25', time_epoch_completed='1638986671.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='8.87e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1619' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 10:04:31 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 506946: <4FGL_J2359.2-3134_daily_bin1619> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1619> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 09:50:25 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:51:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:51:54 2021
Terminated at Wed Dec  8 10:04:32 2021
Results reported at Wed Dec  8 10:04:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1619 359.817 -31.5832 658972801 659232001 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 :                                   661.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            847 sec.

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

