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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1243
RA = 359.755, Dec = 39.3669
tmin = 561513601, tmax = 561772801
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='240350', job_status='RUN', time_executed='2021-09-30 11:58:05.128551', time_epoch_executed='1633028285.13' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240350/ft1_4FGL_J2359.0+3922_daily_bin1243.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240350/ft1_4FGL_J2359.0+3922_daily_bin1243.fits outfile=/scratch/kocevski/240350/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1243.fits ra=359.755 dec=39.3669 rad=12.0 tmin=561513601.0 tmax=561772801.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.78
user 3.55
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.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/240350/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1243.fits evtable="EVENTS" outfile="/scratch/kocevski/240350/ft1_filtered_4FGL_J2359.0+3922_daily_bin1243.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240350/ft1_filtered_4FGL_J2359.0+3922_daily_bin1243.fits" evtable="EVENTS" scfile=/scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits sctable="SC_DATA" outfile=/scratch/kocevski/240350/ltcube_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.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/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits
.....................!
real 11.64
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240350/ft1_filtered_4FGL_J2359.0+3922_daily_bin1243.fits evtable="EVENTS" scfile=/scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits sctable="SC_DATA" expcube=/scratch/kocevski/240350/ltcube_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.fits outfile=/scratch/kocevski/240350/expmap_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.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/240350/ltcube_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.fits
.....................!
real 190.56
user 185.50
sys 4.71

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 160 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2359.0+3922 @ 359.755 39.3669

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/240350/ft1_filtered_4FGL_J2359.0+3922_daily_bin1243.fits scfile=/scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits outfile=/scratch/kocevski/240350/cmap_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.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.755 yref=39.3669 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240350/ft1_filtered_4FGL_J2359.0+3922_daily_bin1243.fits scfile=/scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits outfile=/scratch/kocevski/240350/cmap_HighResolution_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.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.755 yref=39.3669 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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/240350/ft1_filtered_4FGL_J2359.0+3922_daily_bin1243.fits evtable="EVENTS" scfile=/scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/240350/Model_4FGL_J2359.0+3922_daily_bin1243.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/240350/ft1_filtered_4FGL_J2359.0+3922_daily_bin1243.fits.....................!
real 41.01
user 39.73
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/240350/ft1_filtered_4FGL_J2359.0+3922_daily_bin1243.fits', '/scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits', expMap='/scratch/kocevski/240350/expmap_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.fits', expCube='/scratch/kocevski/240350/ltcube_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/240350/Model_4FGL_J2359.0+3922_daily_bin1243.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.0+3922'

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/240350/ft1_filtered_4FGL_J2359.0+3922_daily_bin1243.fits
Spacecraft file(s): /scratch/kocevski/240350/ft2_4FGL_J2359.0+3922_daily_bin1243.fits
Exposure map: /scratch/kocevski/240350/expmap_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.fits
Exposure cube: /scratch/kocevski/240350/ltcube_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/240350/Model_4FGL_J2359.0+3922_daily_bin1243.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) = 3006.58437009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .27852E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.614       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3854       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4841       1.0000         .10000E-03   10000.    
    14 'norm      '    4.8084       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .70374E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.809       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1482       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81261       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3006.527     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3084 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    116.40       -.45292E-05** at limit **
   2  Prefactor     .10000E-03    235.24       -.10163E-05** at limit **
   3  norm          .10000E-03    10.717        .13501E-06** at limit **
   4  Prefactor     10.613        15.829        .51278E-06   -.23800E-04
   5  norm          .10000E-03    9.4049       -.35158E-06** at limit **
   6  Prefactor     .10000E-03    10.884       -.17639E-05** at limit **
   7  Prefactor     .10000E-03    7.1064       -.12061E-06** at limit **
   8  Prefactor     .10000E-03    41.538       -.37794E-05** at limit **
   9  Prefactor     .10000E-03    88.338       -.27243E-05** at limit **
  10  Prefactor     .10000E-03    185.44        .11750E-04** at limit **
  11  norm          3.3852        3.2849        .55404E-10   -.72113E-04
  12  Prefactor     .10001E-03    51.704        .64107E-05** at limit **
  13  Prefactor     3.4919        158.97       -.73129E-05    .37783E-05
  14  norm          4.8084        2.9125       -.21834E-06    .17198E-03
  15  Prefactor     .10000E-03    8.6184       -.93771E-07** at limit **
  16  norm          .10000E-03    2.7328        .11943E-07** at limit **
  17  norm          .10000E-03    418.30       -.50315E-04** at limit **
  18  Prefactor     43.805        29.208       -.86688E-06    .38520E-04
  19  norm          .10000E-03    2.6348       -.25374E-06** at limit **
  20  Prefactor     .10000E-03    10.648        .25476E-06** at limit **
  21  Prefactor     .10000E-03    97.166       -.39494E-05** at limit **
  22  Prefactor     .10000E-03    12.932       -.10128E-05** at limit **
  23  Prefactor     .10000E-03    48.590        .26018E-05** at limit **
  24  Prefactor     .10000E-03    14.140        .59023E-06** at limit **
  25  Normalizat    1.1485        .31701        .39392E-05    .58032E-04
  26  Prefactor     .81254        .15439        .15056E-05    .20608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 10.6134
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 3.38522
  Prefactor  = 0.000100006
  Prefactor  = 3.49192
  norm       = 4.80837
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 43.8054
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14849
  Prefactor  = 0.812542
 **********
 **   18 **HESSE 
 **********

 FCN=   3006.527     FROM HESSE     STATUS=OK           446 CALLS     3530 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    116.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    236.27        .21421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.721        .17531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.613        15.839        .12298E-03   -1.5056    
   5  norm          .10000E-03    9.4061        .16426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.143        .17749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1270        .14278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    88.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    185.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3852        3.2878        .94510E-04   -1.5340    
  12  Prefactor     .10001E-03    51.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4919        159.52        .21663E-03   -1.5334    
  14  norm          4.8084        2.9063        .68466E-04   -1.5269    
  15  Prefactor     .10000E-03    8.6223        .15723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7338        .88455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    403.50        .64104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.805        29.229        .60570E-04   -1.4383    
  19  norm          .10000E-03    2.6512        .86919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.651        .17476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    97.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1485        .36501        .32754E-03   -.88210    
  26  Prefactor     .81254        .17772        .18290E-03   -.99268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18931e-10
Minuit parameter uncertainties:
  1  6.49847e-05
  2  0.000755484
  3  3.5601e-05
  4  15.8451
  5  2.21973e-06
  6  0.00015858
  7  3.50091e-05
  8  2.4893e-05
  9  0.000633459
  10  0.000766928
  11  3.28802
  12  0.00115013
  13  47.3375
  14  2.90637
  15  1.01705e-05
  16  2.22688e-06
  17  0.000437669
  18  29.2385
  19  9.08332e-06
  20  2.05917e-05
  21  5.24566e-05
  22  2.72239e-05
  23  0.000119768
  24  0.000141487
  25  0.36582
  26  0.177847
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  1.415e-04  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.125e-01  1.778e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.148e+00  3.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240350/likelihoodResults_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.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) = 3006.52745587
delta logL = -0.000333409027462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3006.52712216
delta logL = 3.00605279335e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10916E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2790       1.0000          .0000       10.000    
     3 'Normalizat'    1.1486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+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=   3006.527     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      260 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10311E-03    .94823        .74480E-01** at limit **
   2  Index         2.1883        8.7077        .50000        .23686E-04
   3  Normalizat    1.1485        .24355E-02    .32754E-03    .98228E-05
   4  Prefactor     .81254        .11719E-02    .18290E-03    .12680E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010311
  Index      = 2.18833
  Normalizat = 1.14849
  Prefactor  = 0.812541
 **********
 **   18 **HESSE 
 **********

 FCN=   3006.527     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10311E-03    40.995        .37093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1883        8.1811        .50000       -.59720    
   3  Normalizat    1.1485        .11986E-01    .13101E-04   -.88210    
   4  Prefactor     .81254        .57671E-02    .73160E-05   -.99268    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54911e-10
Minuit parameter uncertainties:
  1  0.0225998
  2  91.7192
  3  0.0119857
  4  0.00576709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240350': 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) = 3006.52712135
delta logL = 1.10621658678e-06

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.031e-04  2.260e-02  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.188e+00  9.172e+01  0.000e+00  1.000e+01 (-1.000e+00)
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.125e-01  5.767e-03  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.148e+00  1.199e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.755 39.367

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/240350/cmap_HighResolution_561513601_561772801_4FGL_J2359.0+3922_daily_bin1243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-09-30 12:06:15.546863', job_id='240350', GAL2='0.81', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1633028775.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1243' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:06:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 240350: <4FGL_J2359.0+3922_daily_bin1243> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1243> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 11:55:14 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:55:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:55:15 2021
Terminated at Thu Sep 30 12:06:16 2021
Results reported at Thu Sep 30 12:06:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1243 359.755 39.3669 561513601 561772801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.0+3922 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   488.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            662 sec.

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

