/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 27 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 = 7211
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2359.2-3134_daily_bin881
RA = 359.817, Dec = -31.5832
tmin = 467683201, tmax = 467942401
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='248596', job_status='RUN', time_executed='2021-09-30 12:16:25.793960', time_epoch_executed='1633029385.79' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='881'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248596/ft1_4FGL_J2359.2-3134_daily_bin881.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248596/ft2_4FGL_J2359.2-3134_daily_bin881.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248596/ft1_4FGL_J2359.2-3134_daily_bin881.fits outfile=/scratch/kocevski/248596/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin881.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=467683201.0 tmax=467942401.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.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248596/ft1_filtered_4FGL_J2359.2-3134_daily_bin881.fits" evtable="EVENTS" scfile=/scratch/kocevski/248596/ft2_4FGL_J2359.2-3134_daily_bin881.fits sctable="SC_DATA" outfile=/scratch/kocevski/248596/ltcube_467683201_467942401_4FGL_J2359.2-3134_daily_bin881.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/248596/ft2_4FGL_J2359.2-3134_daily_bin881.fits
.....................!
real 12.72
user 12.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248596/ft1_filtered_4FGL_J2359.2-3134_daily_bin881.fits evtable="EVENTS" scfile=/scratch/kocevski/248596/ft2_4FGL_J2359.2-3134_daily_bin881.fits sctable="SC_DATA" expcube=/scratch/kocevski/248596/ltcube_467683201_467942401_4FGL_J2359.2-3134_daily_bin881.fits outfile=/scratch/kocevski/248596/expmap_467683201_467942401_4FGL_J2359.2-3134_daily_bin881.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/248596/ltcube_467683201_467942401_4FGL_J2359.2-3134_daily_bin881.fits
.....................!
real 192.36
user 185.41
sys 5.70

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/248596/ft1_filtered_4FGL_J2359.2-3134_daily_bin881.fits scfile=/scratch/kocevski/248596/ft2_4FGL_J2359.2-3134_daily_bin881.fits outfile=/scratch/kocevski/248596/cmap_467683201_467942401_4FGL_J2359.2-3134_daily_bin881.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.36
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248596/ft1_filtered_4FGL_J2359.2-3134_daily_bin881.fits evtable="EVENTS" scfile=/scratch/kocevski/248596/ft2_4FGL_J2359.2-3134_daily_bin881.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248596/Model_4FGL_J2359.2-3134_daily_bin881.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/248596/ft1_filtered_4FGL_J2359.2-3134_daily_bin881.fits.....................!
real 33.34
user 31.81
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.6821       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .83513       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2010       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10497E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.671       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12152E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .55231E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .63795E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4247       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73113       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=   3506.754     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2716 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.742        .20252E-05** at limit **
   2  Prefactor     2.6817        4.7256        .68504E-06   -.18289E-03
   3  Prefactor     .10000E-03    9.0298        .44660E-08** at limit **
   4  Prefactor     .10000E-03    27.012       -.25787E-07** at limit **
   5  Prefactor     .10000E-03    24.358       -.23154E-06** at limit **
   6  Prefactor     .10000E-03    19.691       -.16480E-05** at limit **
   7  norm          .83847        8.3544        .18405E-05   -.11685E-03
   8  Prefactor     5.2145        15.024       -.23179E-05   -.57614E-04
   9  norm          .10000E-03    3.0736        .12955E-06** at limit **
  10  norm          .10000E-03    6.9884        .16354E-06** at limit **
  11  Prefactor     62.880        79.043       -.12818E-04   -.97662E-04
  12  Prefactor     .10000E-03    24.371       -.18210E-06** at limit **
  13  norm          .10113E-03    6.5862        .50959E-05** at limit **
  14  norm          .10000E-03    1.5233       -.29724E-07** at limit **
  15  Prefactor     .10000E-03    20.135       -.98468E-06** at limit **
  16  norm          .10051E-03    5.3735        .10792E-05** at limit **
  17  Prefactor     .10000E-03    97.155       -.18350E-07** at limit **
  18  Prefactor     .10000E-03    416.23        .10036E-03** at limit **
  19  Prefactor     .10000E-03    2.0852        .31065E-08** at limit **
  20  Prefactor     .10000E-03    19.271        .13076E-05** at limit **
  21  Normalizat    1.4244        .24070       -.39261E-05   -.38020E-03
  22  Prefactor     .73134        .25219        .42183E-06   -.42007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.68169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.838473
  Prefactor  = 5.21452
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 62.88
  Prefactor  = 0.0001
  norm       = 0.000101132
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010051
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42439
  Prefactor  = 0.731338
 **********
 **   18 **HESSE 
 **********

 FCN=   3506.754     FROM HESSE     STATUS=OK           334 CALLS     3050 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6817        4.7124        .16306E-03   -1.5380    
   3  Prefactor     .10000E-03    9.0307        .17381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .83847        8.3794        .33089E-03   -1.5525    
   8  Prefactor     5.2145        15.044        .17627E-03   -1.5251    
   9  norm          .10000E-03    3.0762        .10138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.0306        .15289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     62.880        80.382        .25344E-03   -1.4120    
  12  Prefactor     .10000E-03    24.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10113E-03    80.786        .24899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5266        .71377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10051E-03    100.34        .24199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    97.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    418.80        .42062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0869        .83511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4244        .29644        .21066E-03   -.79926    
  22  Prefactor     .73134        .30942        .30240E-03   -1.0231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93441e-08
Minuit parameter uncertainties:
  1  4.65904e-05
  2  4.71306
  3  3.61072e-06
  4  0.000124693
  5  2.96993e-05
  6  9.22747e-06
  7  5.30192
  8  15.055
  9  2.69294e-06
  10  1.77095e-05
  11  80.5208
  12  2.26105e-05
  13  0.0191475
  14  3.08198e-06
  15  1.98016e-05
  16  0.0143318
  17  8.39018e-05
  18  0.00191564
  19  3.56398e-06
  20  2.69856e-05
  21  0.2968
  22  0.310157
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  2.699e-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:  7.313e-01  3.102e-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.424e+00  2.968e-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: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248596/likelihoodResults_467683201_467942401_4FGL_J2359.2-3134_daily_bin881.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) = 3506.75387327
delta logL = -0.000235090446495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3506.75364134
delta logL = -3.16442265103e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5347       1.0000          .0000       10.000    
     3 'Normalizat'    1.4246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73114       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=   3506.754     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      299 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    157.37        .17540E-01** at limit **
   2  Index         2.0611        8.8542        .50000       -.67871E-08
   3  Normalizat    1.4244        .14922E-01    .21066E-03   -.20925E-03
   4  Prefactor     .73134        .15987E-01    .30240E-03   -.15168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06107
  Normalizat = 1.42439
  Prefactor  = 0.731344
 **********
 **   18 **HESSE 
 **********

 FCN=   3506.754     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      328 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    975.99        .27817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0611        5.4679        .50000       -.62832    
   3  Normalizat    1.4244        .39304E-01    .42133E-04   -.79926    
   4  Prefactor     .73134        .42110E-01    .12096E-04   -1.0231    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.06133e-10
Minuit parameter uncertainties:
  1  0.000637871
  2  2034.33
  3  0.0393046
  4  0.0421115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248596': 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) = 3506.75363774
delta logL = 4.32389242633e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  6.379e-04  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.061e+00  2.034e+03  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:  7.313e-01  4.211e-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.424e+00  3.930e-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/248596/cmap_HighResolution_467683201_467942401_4FGL_J2359.2-3134_daily_bin881.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2021-09-30 12:25:26.220149', job_id='248596', GAL2='0.73', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1633029926.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='881' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:25:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 248596: <4FGL_J2359.2-3134_daily_bin881> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin881 359.817 -31.5832 467683201 467942401 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 :                                   515.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            599 sec.

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

