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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1072
RA = 359.817, Dec = -31.5832
tmin = 517190401, tmax = 517449601
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='248887', job_status='RUN', time_executed='2021-09-30 12:18:42.310515', time_epoch_executed='1633029522.31' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248887/ft1_4FGL_J2359.2-3134_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248887/ft2_4FGL_J2359.2-3134_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248887/ft1_4FGL_J2359.2-3134_daily_bin1072.fits outfile=/scratch/kocevski/248887/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1072.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=517190401.0 tmax=517449601.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 4.62
user 4.38
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248887/ft1_filtered_4FGL_J2359.2-3134_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/248887/ft2_4FGL_J2359.2-3134_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/248887/ltcube_517190401_517449601_4FGL_J2359.2-3134_daily_bin1072.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/248887/ft2_4FGL_J2359.2-3134_daily_bin1072.fits
.....................!
real 11.92
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248887/ft1_filtered_4FGL_J2359.2-3134_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/248887/ft2_4FGL_J2359.2-3134_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/248887/ltcube_517190401_517449601_4FGL_J2359.2-3134_daily_bin1072.fits outfile=/scratch/kocevski/248887/expmap_517190401_517449601_4FGL_J2359.2-3134_daily_bin1072.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/248887/ltcube_517190401_517449601_4FGL_J2359.2-3134_daily_bin1072.fits
.....................!
real 189.37
user 184.80
sys 4.26

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/248887/ft1_filtered_4FGL_J2359.2-3134_daily_bin1072.fits scfile=/scratch/kocevski/248887/ft2_4FGL_J2359.2-3134_daily_bin1072.fits outfile=/scratch/kocevski/248887/cmap_517190401_517449601_4FGL_J2359.2-3134_daily_bin1072.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.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248887/ft1_filtered_4FGL_J2359.2-3134_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/248887/ft2_4FGL_J2359.2-3134_daily_bin1072.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248887/Model_4FGL_J2359.2-3134_daily_bin1072.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/248887/ft1_filtered_4FGL_J2359.2-3134_daily_bin1072.fits.....................!
real 42.10
user 40.83
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.427       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.278       1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.836       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.623       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.774       1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.4605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.320       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15088E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8999       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6394       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7588       1.0000         .10000E-03   10000.    
    16 'norm      '    .12258E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.006       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5884       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1828       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87442       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=   5149.482     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2442 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.626        .37964E-06** at limit **
   2  Prefactor     .10000E-03    1.6214        .10217E-07** at limit **
   3  Prefactor     67.421        33.627       -.17552E-06   -.28210E-05
   4  Prefactor     15.279        18.630        .26214E-07    .77816E-05
   5  Prefactor     49.837        47.480       -.41648E-07    .21950E-05
   6  Prefactor     .10000E-03    35.153       -.10641E-06** at limit **
   7  norm          13.623        7.2141        .32628E-07    .41352E-04
   8  Prefactor     17.777        12.414        .69499E-07    .21849E-04
   9  norm          .10000E-03    1.9136        .68159E-07** at limit **
  10  norm          5.4607        6.7019        .22269E-06   -.32894E-04
  11  Prefactor     25.242        51.180       -.12142E-04   -.28839E-03
  12  Prefactor     .10000E-03    259.27        .72603E-05** at limit **
  13  norm          1.9058        4.5875        .20739E-05    .22578E-03
  14  norm          2.6405        4.6682       -.40217E-06   -.17616E-03
  15  Prefactor     2.7619        25.099        .12331E-04   -.29250E-03
  16  norm          .10000E-03    4.9653       -.51863E-06** at limit **
  17  Prefactor     .10000E-03    87.429       -.80033E-06** at limit **
  18  Prefactor     25.020        43.586        .66142E-06    .24329E-04
  19  Prefactor     1.5884        5.5274        .87857E-06   -.14433E-03
  20  Prefactor     .10000E-03    21.194       -.24319E-07** at limit **
  21  Normalizat    1.1828        .19765        .12903E-05   -.19075E-03
  22  Prefactor     .87429        .21050       -.17756E-05    .22699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.4207
  Prefactor  = 15.2793
  Prefactor  = 49.8374
  Prefactor  = 0.0001
  norm       = 13.6234
  Prefactor  = 17.7769
  norm       = 0.0001
  norm       = 5.46065
  Prefactor  = 25.2425
  Prefactor  = 0.000100003
  norm       = 1.90578
  norm       = 2.64047
  Prefactor  = 2.76188
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0202
  Prefactor  = 1.58838
  Prefactor  = 0.0001
  Normalizat = 1.18281
  Prefactor  = 0.874294
 **********
 **   18 **HESSE 
 **********

 FCN=   5149.482     FROM HESSE     STATUS=OK           342 CALLS     2784 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6287        .89171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.421        33.640        .48879E-04   -1.4064    
   4  Prefactor     15.279        18.657        .10247E-03   -1.4926    
   5  Prefactor     49.837        47.566        .56806E-04   -1.4295    
   6  Prefactor     .10000E-03    35.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.623        7.2172        .10852E-03   -1.4970    
   8  Prefactor     17.777        12.429        .95000E-04   -1.4864    
   9  norm          .10000E-03    1.9145        .96849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4607        6.6958        .17195E-03   -1.5241    
  11  Prefactor     25.242        55.462        .79610E-04   -1.4703    
  12  Prefactor     .10000E-03    267.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9058        4.6391        .19205E-03   -1.5432    
  14  norm          2.6405        4.6490        .19361E-03   -1.5383    
  15  Prefactor     2.7619        29.096        .12253E-02   -1.5376    
  16  norm          .10000E-03    5.1616        .31106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    87.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.020        43.611        .80107E-04   -1.4707    
  19  Prefactor     1.5884        5.5392        .29819E-03   -1.5456    
  20  Prefactor     .10000E-03    21.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1828        .24190        .22641E-03   -.87136    
  22  Prefactor     .87429        .25591        .28569E-03   -.97045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60404e-09
Minuit parameter uncertainties:
  1  6.08194e-05
  2  1.67189e-06
  3  33.6498
  4  18.6641
  5  47.6024
  6  2.03329e-05
  7  7.21766
  8  12.4306
  9  4.58824e-06
  10  6.69671
  11  55.5759
  12  0.00174687
  13  4.63999
  14  4.64968
  15  17.9394
  16  9.78711e-05
  17  0.000238597
  18  43.6663
  19  5.54103
  20  1.67984e-05
  21  0.242134
  22  0.256257
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  1.680e-05  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.743e-01  2.563e-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.183e+00  2.421e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248887/likelihoodResults_517190401_517449601_4FGL_J2359.2-3134_daily_bin1072.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) = 5149.48258206
delta logL = -0.000224556376452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5149.48235877
delta logL = -1.26513987198e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1258       1.0000          .0000       10.000    
     3 'Normalizat'    1.1828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87430       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=   5149.482     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10589E-03    16.162        .18142E-01** at limit **
   2  Index         2.9905        6.4227        .50000        .15156E-04
   3  Normalizat    1.1828        .46800E-02    .22640E-03   -.11750E-04
   4  Prefactor     .87429        .51830E-02    .28569E-03    .22045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105886
  Index      = 2.99053
  Normalizat = 1.18281
  Prefactor  = 0.874291
 **********
 **   18 **HESSE 
 **********

 FCN=   5149.482     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10589E-03    113.91        .27962E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9905        5.8873        .50000       -.41358    
   3  Normalizat    1.1828        .12488E-01    .90562E-05   -.87136    
   4  Prefactor     .87429        .13831E-01    .11428E-04   -.97045    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.78116e-09
Minuit parameter uncertainties:
  1  0.0518842
  2  468.834
  3  0.0124885
  4  0.0138308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248887': 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): 102
logL (Free Index) = 5149.48235846
delta logL = -9.50632966124e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.059e-04  5.188e-02  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.991e+00  4.688e+02  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.743e-01  1.383e-02  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.183e+00  1.249e-02  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/248887/cmap_HighResolution_517190401_517449601_4FGL_J2359.2-3134_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-09-30 12:29:11.516011', job_id='248887', GAL2='0.87', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1633030151.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-9.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1072' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:29:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 248887: <4FGL_J2359.2-3134_daily_bin1072> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1072 359.817 -31.5832 517190401 517449601 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.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

