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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1024
RA = 149.471, Dec = 34.3975
tmin = 504748801, tmax = 505008001
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='611281', job_status='RUN', time_executed='2021-09-01 07:33:22.353344', time_epoch_executed='1630506802.35' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611281/ft1_4FGL_J0957.8+3423_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611281/ft1_4FGL_J0957.8+3423_daily_bin1024.fits outfile=/scratch/kocevski/611281/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1024.fits ra=149.471 dec=34.3975 rad=12.0 tmin=504748801.0 tmax=505008001.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 9.70
user 7.91
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.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/611281/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1024.fits evtable="EVENTS" outfile="/scratch/kocevski/611281/ft1_filtered_4FGL_J0957.8+3423_daily_bin1024.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 7.79
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611281/ft1_filtered_4FGL_J0957.8+3423_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/611281/ltcube_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.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/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits
.....................!
real 16.62
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611281/ft1_filtered_4FGL_J0957.8+3423_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/611281/ltcube_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.fits outfile=/scratch/kocevski/611281/expmap_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.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/611281/ltcube_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.fits
.....................!
real 200.23
user 188.62
sys 4.43

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J0957.8+3423 @ 149.471 34.3975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/611281/ft1_filtered_4FGL_J0957.8+3423_daily_bin1024.fits scfile=/scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits outfile=/scratch/kocevski/611281/cmap_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.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=149.471 yref=34.3975 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.87
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611281/ft1_filtered_4FGL_J0957.8+3423_daily_bin1024.fits scfile=/scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits outfile=/scratch/kocevski/611281/cmap_HighResolution_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.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=149.471 yref=34.3975 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.05
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/611281/ft1_filtered_4FGL_J0957.8+3423_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/611281/Model_4FGL_J0957.8+3423_daily_bin1024.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/611281/ft1_filtered_4FGL_J0957.8+3423_daily_bin1024.fits.....................!
real 47.18
user 45.23
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/611281/ft1_filtered_4FGL_J0957.8+3423_daily_bin1024.fits', '/scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits', expMap='/scratch/kocevski/611281/expmap_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.fits', expCube='/scratch/kocevski/611281/ltcube_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/611281/Model_4FGL_J0957.8+3423_daily_bin1024.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.8+3423'

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/611281/ft1_filtered_4FGL_J0957.8+3423_daily_bin1024.fits
Spacecraft file(s): /scratch/kocevski/611281/ft2_4FGL_J0957.8+3423_daily_bin1024.fits
Exposure map: /scratch/kocevski/611281/expmap_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.fits
Exposure cube: /scratch/kocevski/611281/ltcube_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/611281/Model_4FGL_J0957.8+3423_daily_bin1024.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) = 5073.65130375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1952       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1390       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2118       1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9124       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8562       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80255E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.856       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .49792       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1852       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5073.588     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3058 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1954        5.1108        .27504E-06    .22370E-03
   2  Prefactor     .10000E-03    13.945       -.30730E-06** at limit **
   3  Prefactor     7.1393        4.8379        .17438E-06    .49232E-04
   4  norm          .10000E-03    1.3064       -.30921E-07** at limit **
   5  Prefactor     .10000E-03    5.7001        .75870E-08** at limit **
   6  norm          5.1594        5.8174       -.74741E-06   -.42637E-03
   7  Prefactor     .10000E-03    .89611        .44322E-09** at limit **
   8  Prefactor     3.2114        5.3060        .25825E-06   -.12948E-03
   9  norm          .10000E-03    5.0860       -.13549E-07** at limit **
  10  Prefactor     .10000E-03    14.037        .28268E-06** at limit **
  11  Prefactor     .10000E-03    14.605       -.67716E-06** at limit **
  12  Prefactor     .10000E-03    28.518       -.10564E-06** at limit **
  13  Prefactor     18.842        11.891        .85296E-06    .38719E-03
  14  Prefactor     .10000E-03    9.1804        .46825E-07** at limit **
  15  Prefactor     1.9130        2.6551        .68170E-07   -.96707E-04
  16  norm          8.8549        13.696       -.17324E-06   -.38590E-04
  17  Prefactor     .10000E-03    1.4819       -.92304E-08** at limit **
  18  Prefactor     .10490E-03    21.369        .24628E-06** at limit **
  19  Prefactor     .10000E-03    3.2657       -.57230E-07** at limit **
  20  norm          15.858        11.579       -.73974E-06   -.35181E-03
  21  Prefactor     .10000E-03    316.54       -.29885E-06** at limit **
  22  Prefactor     .10000E-03    14.252        .49711E-06** at limit **
  23  Prefactor     .10000E-03    6.0708       -.99882E-07** at limit **
  24  Prefactor     .50071        7.9342        .31854E-05   -.32763E-03
  25  Prefactor     .10000E-03    16.357        .12148E-06** at limit **
  26  Prefactor     .10000E-03    20.824        .30188E-07** at limit **
  27  Normalizat    1.1851        .20578       -.18576E-06   -.62119E-04
  28  Prefactor     1.2313        .23750       -.55221E-06   -.37206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.19535
  Prefactor  = 0.0001
  Prefactor  = 7.13928
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.15938
  Prefactor  = 0.0001
  Prefactor  = 3.21136
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.842
  Prefactor  = 0.0001
  Prefactor  = 1.91305
  norm       = 8.85494
  Prefactor  = 0.0001
  Prefactor  = 0.000104897
  Prefactor  = 0.0001
  norm       = 15.8575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.500708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18506
  Prefactor  = 1.23133
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.588     FROM HESSE     STATUS=OK           531 CALLS     3589 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1954        5.1320        .13134E-03   -1.5171    
   2  Prefactor     .10000E-03    13.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1393        4.8389        .12400E-03   -1.5174    
   4  norm          .10000E-03    2.2387        .29641E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7013        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1594        5.9860        .17698E-03   -1.5254    
   7  Prefactor     .10000E-03    .90085        .65799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2114        5.3218        .19887E-03   -1.5350    
   9  norm          .10000E-03    5.0867        .15689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.842        12.210        .92268E-04   -1.4840    
  14  Prefactor     .10000E-03    9.2726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9130        2.6403        .13129E-03   -1.5431    
  16  norm          8.8549        13.741        .13469E-03   -1.5113    
  17  Prefactor     .10000E-03    1.4866        .84662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10490E-03    24.419        .10969       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3136        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.858        11.804        .10058E-03   -1.4911    
  21  Prefactor     .10000E-03    319.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.2663        .34216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .50071        9.4630        .41087E-02   -1.5566    
  25  Prefactor     .10000E-03    16.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1851        .24507        .25614E-03   -.87066    
  28  Prefactor     1.2313        .28254        .29172E-03   -.85372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08788e-07
Minuit parameter uncertainties:
  1  5.13232
  2  4.3525e-05
  3  4.83915
  4  6.82861e-05
  5  2.59723e-06
  6  5.98669
  7  7.03093e-07
  8  5.32256
  9  4.71631e-07
  10  3.13939e-05
  11  9.40605e-05
  12  7.80374e-06
  13  12.2117
  14  6.58869e-06
  15  2.64044
  16  13.7463
  17  1.33284e-07
  18  0.0218785
  19  6.17915e-07
  20  11.8055
  21  0.000179833
  22  7.86161e-05
  23  1.8666e-05
  24  4.35385
  25  2.81056e-05
  26  6.02285e-06
  27  0.245311
  28  0.282893
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  6.589e-06  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.231e+00  2.829e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.185e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611281/likelihoodResults_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.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) = 5073.58841723
delta logL = -0.000513469098223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5073.58790377
delta logL = -6.18456397206e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1810       1.0000          .0000       10.000    
     3 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   5073.588     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10114E-03    79.957        .18142E-02** at limit **
   2  Index         2.2318        5.2599        .50000       -.14813E-04
   3  Normalizat    1.1851        .15326E-01    .25614E-03    .40834E-04
   4  Prefactor     1.2313        .17817E-01    .29172E-03    .24864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101141
  Index      = 2.23179
  Normalizat = 1.18506
  Prefactor  = 1.23133
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.588     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10114E-03    422.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2318        5.7383        .50000       -.58673    
   3  Normalizat    1.1851        .36917E-01    .10246E-04   -.87066    
   4  Prefactor     1.2313        .42911E-01    .11669E-04   -.85372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70385e-08
Minuit parameter uncertainties:
  1  0.0442232
  2  603.5
  3  0.0369174
  4  0.0429119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611281': 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) = 5073.58790358
delta logL = 1.85676071851e-07

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.011e-04  4.422e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.232e+00  6.035e+02  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.231e+00  4.291e-02  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.185e+00  3.692e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.471 34.398

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/611281/cmap_HighResolution_504748801_505008001_4FGL_J0957.8+3423_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2021-09-01 07:45:40.336607', job_id='611281', GAL2='1.23', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630507540.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1024' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:45:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 611281: <4FGL_J0957.8+3423_daily_bin1024> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1024> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:30:31 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:30:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 07:30:31 2021
Terminated at Wed Sep  1 07:45:41 2021
Results reported at Wed Sep  1 07:45:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1024 149.471 34.3975 504748801 505008001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.8+3423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

