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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1049
RA = 359.817, Dec = -31.5832
tmin = 511228801, tmax = 511488001
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='248853', job_status='RUN', time_executed='2021-09-30 12:19:16.348688', time_epoch_executed='1633029556.35' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248853

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248853/ft1_4FGL_J2359.2-3134_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248853/ft2_4FGL_J2359.2-3134_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248853/ft1_4FGL_J2359.2-3134_daily_bin1049.fits outfile=/scratch/kocevski/248853/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1049.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=511228801.0 tmax=511488001.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.49
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248853/ft1_filtered_4FGL_J2359.2-3134_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/248853/ft2_4FGL_J2359.2-3134_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/248853/ltcube_511228801_511488001_4FGL_J2359.2-3134_daily_bin1049.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/248853/ft2_4FGL_J2359.2-3134_daily_bin1049.fits
.....................!
real 11.68
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248853/ft1_filtered_4FGL_J2359.2-3134_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/248853/ft2_4FGL_J2359.2-3134_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/248853/ltcube_511228801_511488001_4FGL_J2359.2-3134_daily_bin1049.fits outfile=/scratch/kocevski/248853/expmap_511228801_511488001_4FGL_J2359.2-3134_daily_bin1049.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/248853/ltcube_511228801_511488001_4FGL_J2359.2-3134_daily_bin1049.fits
.....................!
real 191.23
user 186.94
sys 3.93

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/248853/ft1_filtered_4FGL_J2359.2-3134_daily_bin1049.fits scfile=/scratch/kocevski/248853/ft2_4FGL_J2359.2-3134_daily_bin1049.fits outfile=/scratch/kocevski/248853/cmap_511228801_511488001_4FGL_J2359.2-3134_daily_bin1049.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248853/ft1_filtered_4FGL_J2359.2-3134_daily_bin1049.fits scfile=/scratch/kocevski/248853/ft2_4FGL_J2359.2-3134_daily_bin1049.fits outfile=/scratch/kocevski/248853/cmap_HighResolution_511228801_511488001_4FGL_J2359.2-3134_daily_bin1049.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248853/ft1_filtered_4FGL_J2359.2-3134_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/248853/ft2_4FGL_J2359.2-3134_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248853/Model_4FGL_J2359.2-3134_daily_bin1049.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/248853/ft1_filtered_4FGL_J2359.2-3134_daily_bin1049.fits.....................!
real 47.88
user 46.57
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.233       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37944E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.309       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9416       1.0000         .10000E-03   10000.    
    10 'norm      '    10.131       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.614       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.179       1.0000         .10000E-03   10000.    
    13 'norm      '    9.2245       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1625       1.0000         .10000E-03   10000.    
    16 'norm      '    .73929       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3511       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64817E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.186       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87354       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85068       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=   6355.194     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2426 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.212        32.071        .16224E-04   -.61099E-05
   2  Prefactor     .10000E-03    1.2530        .25604E-06** at limit **
   3  Prefactor     .10000E-03    8.7062       -.46326E-07** at limit **
   4  Prefactor     .10000E-03    3.0307       -.30778E-07** at limit **
   5  Prefactor     .10000E-03    17.162       -.18027E-08** at limit **
   6  Prefactor     .10000E-03    14.302       -.35761E-06** at limit **
   7  norm          15.310        5.9839       -.67031E-06   -.10365E-04
   8  Prefactor     .10000E-03    2.1161       -.55058E-07** at limit **
   9  norm          3.9441        3.7282        .12860E-06    .22325E-03
  10  norm          10.134        7.6593       -.14515E-05   -.67850E-04
  11  Prefactor     20.534        54.272       -.58810E-04    .90697E-06
  12  Prefactor     10.197        29.973       -.21800E-04   -.11945E-04
  13  norm          9.2217        6.0909        .62923E-05   -.40295E-03
  14  norm          .10000E-03    1.0278        .60322E-07** at limit **
  15  Prefactor     6.1669        19.985       -.87776E-05   -.29414E-04
  16  norm          .74497        2.7429        .87317E-06   -.69123E-03
  17  Prefactor     2.3542        94.660       -.92424E-05   -.23640E-04
  18  Prefactor     10.409        36.444       -.26737E-05   -.17615E-04
  19  Prefactor     .10001E-03    2.2552        .90013E-06** at limit **
  20  Prefactor     16.222        36.955       -.11602E-04   -.12853E-03
  21  Normalizat    .87315        .14239        .50601E-05   -.55489E-03
  22  Prefactor     .85110        .15963       -.17056E-05    .11648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2118
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.31
  Prefactor  = 0.0001
  norm       = 3.94412
  norm       = 10.1337
  Prefactor  = 20.5338
  Prefactor  = 10.1973
  norm       = 9.22174
  norm       = 0.0001
  Prefactor  = 6.16686
  norm       = 0.74497
  Prefactor  = 2.35418
  Prefactor  = 10.4091
  Prefactor  = 0.000100012
  Prefactor  = 16.2221
  Normalizat = 0.873153
  Prefactor  = 0.851104
 **********
 **   18 **HESSE 
 **********

 FCN=   6355.194     FROM HESSE     STATUS=OK           354 CALLS     2780 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.212        32.067        .89045E-04   -1.4809    
   2  Prefactor     .10000E-03    27.960        .16764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0453        .13553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.310        5.9854        .10236E-03   -1.4925    
   8  Prefactor     .10000E-03    2.1215        .11325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9441        3.7294        .14383E-03   -1.5311    
  10  norm          10.134        7.6535        .12589E-03   -1.5071    
  11  Prefactor     20.534        53.697        .88217E-04   -1.4801    
  12  Prefactor     10.197        30.018        .12559E-03   -1.5069    
  13  norm          9.2217        6.0840        .11353E-03   -1.5101    
  14  norm          .10000E-03    1.0347        .78847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1669        19.965        .16172E-03   -1.5211    
  16  norm          .74497        2.6357        .23110E-03   -1.5535    
  17  Prefactor     2.3542        95.160        .26733E-03   -1.5401    
  18  Prefactor     10.409        36.396        .12400E-03   -1.5063    
  19  Prefactor     .10001E-03    38.694        .22127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.222        35.462        .99551E-04   -1.4902    
  21  Normalizat    .87315        .16857        .20774E-03   -.97410    
  22  Prefactor     .85110        .19011        .24360E-03   -.97871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45092e-09
Minuit parameter uncertainties:
  1  32.0944
  2  0.000400669
  3  2.84288e-06
  4  4.77955e-06
  5  5.45603e-05
  6  4.18948e-05
  7  5.98562
  8  7.50303e-06
  9  3.72967
  10  7.65423
  11  53.8238
  12  30.0628
  13  6.08442
  14  6.04984e-06
  15  19.9867
  16  2.63609
  17  29.9855
  18  36.4735
  19  0.00137988
  20  35.5082
  21  0.168669
  22  0.190261
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.622e+01  3.551e+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:  8.511e-01  1.903e-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:  8.732e-01  1.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 7.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248853/likelihoodResults_511228801_511488001_4FGL_J2359.2-3134_daily_bin1049.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): 0
logL (Free Index) = 6354.7132502
delta logL = 0.480954638774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6354.71017945
delta logL = 0.484025391253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5228       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8609       1.0000          .0000       10.000    
     3 'Normalizat'    .83602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87844       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6354.710     FROM MIGRAD    STATUS=FAILED        94 CALLS      315 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5229        340.58        .73109E-03   -.23769E-03
   2  Index         3.8615        6.7505        .75765E-02    .50451E-03
   3  Normalizat    .83611        .16234        .21179E-03   -.20506E-04
   4  Prefactor     .87823        .18655        .24017E-03    .14343E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6354.710     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      412 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5229        340.58        .24619E-03   -.23769E-03
   2  Index         3.8615        6.7505        .11522E-02    .50451E-03
   3  Normalizat    .83611        .16234        .13734E-03   -.20506E-04
   4  Prefactor     .87823        .18655        .77135E-04    .14343E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6354.710     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      445 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5231        18.525        .29244E-04   -.69976E-05
   2  Index         3.8615        1.5007        .15153E-02    .18970E-04
   3  Normalizat    .83611        .16796        .84715E-05   -.80519E-06
   4  Prefactor     .87823        .19057        .96068E-05    .47336E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.52309
  Index      = 3.86152
  Normalizat = 0.836113
  Prefactor  = 0.878231
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.710     FROM HESSE     STATUS=OK            25 CALLS      470 TOTAL
                     EDM=   .41E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5231        17.303        .11697E-05   -1.5159    
   2  Index         3.8615        1.4037        .30306E-03   -.22971    
   3  Normalizat    .83611        .16808        .16943E-05   -.98743    
   4  Prefactor     .87823        .19071        .19214E-05   -.96906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0912e-14
Minuit parameter uncertainties:
  1  17.3144
  2  1.42388
  3  0.168181
  4  0.190855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248853': 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) = 6354.71017793
delta logL = 0.484026913591

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  7.523e+00  1.731e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.862e+00  1.424e+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:  8.782e-01  1.909e-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:  8.361e-01  1.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 3.86 +/- 1.42
Photon Flux (Free Index): 3.92e-08 +/- 3.93e-08
Energy Flux (Free Index): 6.02e-06 +/- 6.06e-06

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/248853/cmap_HighResolution_511228801_511488001_4FGL_J2359.2-3134_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', comment='SUCCESS', energy_flux2='6.02e-06', dlogl='4.84e-01', photon_flux2='3.92e-08', job_status='DONE', time_completed='2021-09-30 12:31:08.773409', photon_index_error2='1.42', photon_index2='3.86', ts='0.25', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='7.93e-08', energy_flux_error2='6.06e-06', EG='0.87', time_epoch_completed='1633030268.77', return_code='0', job_id='248853', GAL2='0.88', EG2='0.84', return_code2='0', photon_flux_error2='3.93e-08', ts2='1.29', photon_index='2.60' WHERE bin_id='1049' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:31:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 248853: <4FGL_J2359.2-3134_daily_bin1049> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1049 359.817 -31.5832 511228801 511488001 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 :                                   671.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

