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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1052
RA = 359.817, Dec = -31.5832
tmin = 512006401, tmax = 512265601
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='248858', job_status='RUN', time_executed='2021-09-30 12:17:46.290965', time_epoch_executed='1633029466.29' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248858/ft1_4FGL_J2359.2-3134_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248858/ft2_4FGL_J2359.2-3134_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248858/ft1_4FGL_J2359.2-3134_daily_bin1052.fits outfile=/scratch/kocevski/248858/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1052.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=512006401.0 tmax=512265601.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.52
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248858/ft1_filtered_4FGL_J2359.2-3134_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/248858/ft2_4FGL_J2359.2-3134_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/248858/ltcube_512006401_512265601_4FGL_J2359.2-3134_daily_bin1052.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/248858/ft2_4FGL_J2359.2-3134_daily_bin1052.fits
.....................!
real 12.08
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248858/ft1_filtered_4FGL_J2359.2-3134_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/248858/ft2_4FGL_J2359.2-3134_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/248858/ltcube_512006401_512265601_4FGL_J2359.2-3134_daily_bin1052.fits outfile=/scratch/kocevski/248858/expmap_512006401_512265601_4FGL_J2359.2-3134_daily_bin1052.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/248858/ltcube_512006401_512265601_4FGL_J2359.2-3134_daily_bin1052.fits
.....................!
real 190.53
user 185.03
sys 5.08

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/248858/ft1_filtered_4FGL_J2359.2-3134_daily_bin1052.fits scfile=/scratch/kocevski/248858/ft2_4FGL_J2359.2-3134_daily_bin1052.fits outfile=/scratch/kocevski/248858/cmap_512006401_512265601_4FGL_J2359.2-3134_daily_bin1052.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248858/ft1_filtered_4FGL_J2359.2-3134_daily_bin1052.fits scfile=/scratch/kocevski/248858/ft2_4FGL_J2359.2-3134_daily_bin1052.fits outfile=/scratch/kocevski/248858/cmap_HighResolution_512006401_512265601_4FGL_J2359.2-3134_daily_bin1052.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 1.15
user 0.37
sys 0.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .17873E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.493       1.0000         .10000E-03   10000.    
     7 'norm      '    20.611       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5887       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.5056       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0512       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2621       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    91.899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9713       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9909       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97639       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87406       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=   6054.828     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2352 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.789       -.98961E-07** at limit **
   2  Prefactor     .10000E-03    1.7096        .18892E-07** at limit **
   3  Prefactor     2.5842        14.147        .57431E-06   -.38893E-04
   4  Prefactor     .10000E-03    4.2207        .16377E-07** at limit **
   5  Prefactor     .10000E-03    16.289        .26888E-05** at limit **
   6  Prefactor     24.492        25.924       -.70937E-07   -.41745E-04
   7  norm          20.611        7.1969        .67981E-07    .39058E-04
   8  Prefactor     6.5883        7.5104        .25436E-06    .41285E-05
   9  norm          .10000E-03    1.4214       -.83689E-08** at limit **
  10  norm          6.5054        6.8326        .22759E-05   -.96211E-03
  11  Prefactor     .10001E-03    18.285       -.44464E-05** at limit **
  12  Prefactor     .10000E-03    28.254        .35376E-05** at limit **
  13  norm          4.0510        3.4247       -.19882E-07    .57890E-04
  14  norm          1.0115        2.5356        .11959E-05    .80782E-04
  15  Prefactor     4.2723        47.863        .20481E-05    .57183E-04
  16  norm          2.3440        2.5340       -.97500E-09    .35253E-04
  17  Prefactor     91.883        80.731       -.37461E-05   -.18641E-03
  18  Prefactor     .10000E-03    46.051       -.22056E-05** at limit **
  19  Prefactor     9.9700        6.3312       -.21301E-06   -.31763E-03
  20  Prefactor     8.9911        34.595        .52889E-06   -.10030E-04
  21  Normalizat    .97661        .15794       -.40650E-06   -.83132E-04
  22  Prefactor     .87382        .17433       -.19781E-06   -.68267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58419
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 24.4918
  norm       = 20.6108
  Prefactor  = 6.58832
  norm       = 0.0001
  norm       = 6.50536
  Prefactor  = 0.000100006
  Prefactor  = 0.000100004
  norm       = 4.051
  norm       = 1.01148
  Prefactor  = 4.27227
  norm       = 2.34396
  Prefactor  = 91.8827
  Prefactor  = 0.000100001
  Prefactor  = 9.96998
  Prefactor  = 8.99114
  Normalizat = 0.976606
  Prefactor  = 0.873816
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.828     FROM HESSE     STATUS=OK           350 CALLS     2702 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9499        .18719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5842        13.337        .25426E-03   -1.5386    
   4  Prefactor     .10000E-03    4.2332        .15612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.492        25.947        .80940E-04   -1.4718    
   7  norm          20.611        7.2032        .88223E-04   -1.4800    
   8  Prefactor     6.5883        7.5093        .15634E-03   -1.5195    
   9  norm          .10000E-03    1.4219        .90573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.5054        7.1697        .78673E-03   -1.5198    
  11  Prefactor     .10001E-03    19.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0510        3.4093        .12548E-03   -1.5305    
  14  norm          1.0115        2.2535        .18213E-02   -1.5507    
  15  Prefactor     4.2723        43.846        .19516E-03   -1.5295    
  16  norm          2.3440        2.5280        .12279E-03   -1.5402    
  17  Prefactor     91.883        82.595        .41919E-04   -1.3788    
  18  Prefactor     .10000E-03    46.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9700        6.3524        .12690E-03   -1.5076    
  20  Prefactor     8.9911        34.173        .13367E-03   -1.5108    
  21  Normalizat    .97661        .18755        .21400E-03   -.93818    
  22  Prefactor     .87382        .20698        .25732E-03   -.97062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69395e-09
Minuit parameter uncertainties:
  1  1.07701e-05
  2  1.9016e-05
  3  11.7454
  4  1.1504e-06
  5  0.00037957
  6  25.9585
  7  7.20352
  8  7.51033
  9  1.00554e-07
  10  7.17063
  11  0.000668695
  12  0.000652555
  13  3.40948
  14  2.25367
  15  27.3988
  16  2.52813
  17  82.6983
  18  0.000474351
  19  6.35282
  20  34.247
  21  0.187678
  22  0.207164
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  8.991e+00  3.425e+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.738e-01  2.072e-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:  9.766e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248858/likelihoodResults_512006401_512265601_4FGL_J2359.2-3134_daily_bin1052.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) = 6054.817343
delta logL = 0.0102344026091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6054.8150953
delta logL = 0.0124821009613

Fit tolerance = 1e-08

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

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

 FCN=   6054.815     FROM MIGRAD    STATUS=FAILED        85 CALLS      361 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6434        107.58        .15574E-03    .31790E-03
   2  Index         3.1441        6.5480        .64094E-02    .31722E-03
   3  Normalizat    .97024        .18776        .21461E-03    .12669E-02
   4  Prefactor     .87889        .21102        .25667E-03    .68771E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6054.815     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      442 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6434        107.58        .56523E-03   -1.5192    
   2  Index         3.1441        6.5480        .43161E-02   -.38028    
   3  Normalizat    .97024        .18776        .21588E-03   -.94034    
   4  Prefactor     .87889        .21102        .23640E-03   -.96883    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6054.815     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      469 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6525        58.490        .62296E-05    .59310E-03
   2  Index         3.1430        3.8493        .25637E-03    .86063E-04
   3  Normalizat    .97024        .18602        .42921E-04    .69784E-03
   4  Prefactor     .87889        .20907        .51333E-04    .37269E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.65248
  Index      = 3.14297
  Normalizat = 0.970241
  Prefactor  = 0.878885
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.815     FROM HESSE     STATUS=OK            23 CALLS      492 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6525        57.183        .12459E-05   -1.5192    
   2  Index         3.1430        3.8243        .51275E-04   -.38052    
   3  Normalizat    .97024        .18603        .85842E-05   -.94034    
   4  Prefactor     .87889        .20908        .10267E-04   -.96883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19313e-09
Minuit parameter uncertainties:
  1  39.058
  2  4.4941
  3  0.186157
  4  0.20927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248858': 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) = 6054.81509522
delta logL = 0.0124821753006

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  6.652e+00  3.906e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.143e+00  4.494e+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.789e-01  2.093e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.702e-01  1.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/248858/cmap_HighResolution_512006401_512265601_4FGL_J2359.2-3134_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2021-09-30 12:28:55.848499', job_id='248858', GAL2='0.88', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1633030135.85', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.25e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1052' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:28:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 248858: <4FGL_J2359.2-3134_daily_bin1052> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1052> 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) <bullet0273>, 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:28:56 2021
Results reported at Thu Sep 30 12:28:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1052 359.817 -31.5832 512006401 512265601 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 :                                   659.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

