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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1229
RA = 149.471, Dec = 34.3975
tmin = 557884801, tmax = 558144001
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='611646', job_status='RUN', time_executed='2021-09-01 07:34:05.688454', time_epoch_executed='1630506845.69' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611646/ft1_4FGL_J0957.8+3423_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611646/ft2_4FGL_J0957.8+3423_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611646/ft1_4FGL_J0957.8+3423_daily_bin1229.fits outfile=/scratch/kocevski/611646/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1229.fits ra=149.471 dec=34.3975 rad=12.0 tmin=557884801.0 tmax=558144001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.10
user 3.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611646/ft2_4FGL_J0957.8+3423_daily_bin1229.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/611646/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/611646/ft1_filtered_4FGL_J0957.8+3423_daily_bin1229.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.83
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611646/ft1_filtered_4FGL_J0957.8+3423_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/611646/ft2_4FGL_J0957.8+3423_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/611646/ltcube_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.fits outfile=/scratch/kocevski/611646/expmap_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.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/611646/ltcube_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.fits
.....................!
real 193.28
user 185.39
sys 4.93

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/611646/ft1_filtered_4FGL_J0957.8+3423_daily_bin1229.fits scfile=/scratch/kocevski/611646/ft2_4FGL_J0957.8+3423_daily_bin1229.fits outfile=/scratch/kocevski/611646/cmap_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.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.59
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611646/ft1_filtered_4FGL_J0957.8+3423_daily_bin1229.fits scfile=/scratch/kocevski/611646/ft2_4FGL_J0957.8+3423_daily_bin1229.fits outfile=/scratch/kocevski/611646/cmap_HighResolution_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.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 0.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/611646/ft1_filtered_4FGL_J0957.8+3423_daily_bin1229.fits', '/scratch/kocevski/611646/ft2_4FGL_J0957.8+3423_daily_bin1229.fits', expMap='/scratch/kocevski/611646/expmap_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.fits', expCube='/scratch/kocevski/611646/ltcube_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/611646/Model_4FGL_J0957.8+3423_daily_bin1229.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/611646/ft1_filtered_4FGL_J0957.8+3423_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/611646/ft2_4FGL_J0957.8+3423_daily_bin1229.fits
Exposure map: /scratch/kocevski/611646/expmap_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.fits
Exposure cube: /scratch/kocevski/611646/ltcube_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/611646/Model_4FGL_J0957.8+3423_daily_bin1229.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) = 35.2400092033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11191E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51195E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18486E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .20331E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22233E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    816.27       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12268E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .16135E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20740E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .93477       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9999.8       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7877       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9999.8       1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '    9999.8       1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.040       1.0000         .10000E-03   10000.    
    22 'Prefactor '    152.65       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9999.5       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9995.9       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.6869       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7406       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .35002       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .51093E-03   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30.82457     FROM MIGRAD    STATUS=CONVERGED     61 CALLS     2897 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23977E-03    162.33       -.20825E-03** at limit **
   2  Prefactor     .51034E-03    60.719       -.24026E-03** at limit **
   3  Prefactor     .10596E-03    112.12        .12987E-03** at limit **
   4  norm          .11714E-03    65.147       -.20356E-03** at limit **
   5  Prefactor     .61188E-03    127.36       -.34101E-03** at limit **
   6  norm          816.26        2.8044       -.16785E-05    .56745E-02
   7  Prefactor     .10018E-03    97.749       -.15673E-03** at limit **
   8  Prefactor     .14919E-03    207.61        .44303E-03** at limit **
   9  norm          .10991E-01    15.764       -.13595E-03    .68078E-03
  10  Prefactor     .13688E-03    30.784       -.15830E-03** at limit **
  11  Prefactor     .83346        95.259       -.34043E-03    .90035E-03
  12  Prefactor     9999.8        1.5955        .40631E-04   -.18290E-03
  13  Prefactor     .29970E-03    156.01       -.14578E-03** at limit **
  14  Prefactor     9.7688        3.5817       -.19310E-04    .85447E-03
  15  Prefactor     .29579E-03    156.51       -.15096E-03** at limit **
  16  norm          .17141E-02    85.168       -.29627E-03** at limit **
  17  Prefactor    10000.0        9.2977        .10221E-03** at limit **
  18  Prefactor     9999.8        3.2659        .60837E-04   -.27719E-03
  19  Prefactor    10000.0        6.5617        .87189E-04   -.44749E-03
  20  norm          9999.8        6.4776        .87305E-04   -.38929E-03
  21  Prefactor     58.048        1.7551        .33299E-05   -.87274E-03
  22  Prefactor     152.65        1.9117        .23307E-05   -.15913E-02
  23  Prefactor     9999.5        32.387        .19797E-03   -.68534E-03
  24  Prefactor     9996.0        11.772        .10279E-03   -.18641E-02
  25  Prefactor     9.6918        1.3467        .50747E-05   -.22250E-03
  26  Prefactor     2.7433        1.1289        .51636E-05   -.62060E-04
  27  Normalizat    .36198        8.0112       -.41493E-03   -.70751E-05
  28  Prefactor     .13250E-09    9.3300        .87696E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000239773
  Prefactor  = 0.000510335
  Prefactor  = 0.000105956
  norm       = 0.000117136
  Prefactor  = 0.000611878
  norm       = 816.257
  Prefactor  = 0.000100183
  Prefactor  = 0.000149188
  norm       = 0.0109913
  Prefactor  = 0.000136883
  Prefactor  = 0.833465
  Prefactor  = 9999.8
  Prefactor  = 0.000299705
  Prefactor  = 9.76883
  Prefactor  = 0.000295792
  norm       = 0.00171414
  Prefactor  = 10000
  Prefactor  = 9999.82
  Prefactor  = 9999.99
  norm       = 9999.8
  Prefactor  = 58.0477
  Prefactor  = 152.654
  Prefactor  = 9999.53
  Prefactor  = 9995.99
  Prefactor  = 9.69178
  Prefactor  = 2.74332
  Normalizat = 0.361978
  Prefactor  = 1.32498e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   30.82457     FROM HESSE     STATUS=OK           551 CALLS     3448 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23977E-03    483.68        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .51034E-03    962.04        .95848E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10596E-03    116.05        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .11714E-03    125.69        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61188E-03    843.75        .90712E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          816.26        882.85        .36524E-03   -.99132    
   7  Prefactor     .10018E-03    142.74        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14919E-03    209.29        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10991E-01    1761.8        .91035E-02   -1.5687    
  10  Prefactor     .13688E-03    860.39        .10098E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83346        2186.8        .12933E-01   -1.5525    
  12  Prefactor     9999.8        2243.7        .10013E-01    1.5618    
  13  Prefactor     .29970E-03    445.23        .90712E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.7688        2251.7        .32022E-02   -1.5083    
  15  Prefactor     .29579E-03    448.09        .90712E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .17141E-02    1046.7        .90712E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        1583.9        .98028E-02    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9999.8        2219.6        .99341E-02    1.5623    
  19  Prefactor    10000.0        1837.0        .90712E-02    1.5691    
  20  norm          9999.8        2197.6        .10023E-01    1.5619    
  21  Prefactor     58.048        2270.5        .13165E-02   -1.4183    
  22  Prefactor     152.65        2228.3        .81564E-03   -1.3231    
  23  Prefactor     9999.5        2185.9        .11338E-01    1.5570    
  24  Prefactor     9996.0        2190.7        .49954E-02    1.5308    
  25  Prefactor     9.6918        2288.3        .32189E-02   -1.5085    
  26  Prefactor     2.7433        2288.0        .61483E-02   -1.5377    
  27  Normalizat    .36198        1.8494        .27615       -1.1931    
  28  Prefactor     .13250E-09    1.9431        .29577       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49072e-05
Minuit parameter uncertainties:
  1  0.524304
  2  1.27767
  3  0.0526845
  4  0.0930133
  5  1.3336
  6  898.914
  7  0.0102359
  8  0.20364
  9  9.04093
  10  0.361597
  11  88.8483
  12  44.3551
  13  0.600887
  14  309.236
  15  0.59691
  16  2.64732
  17  3.45452
  18  41.8733
  19  7.39768
  20  43.3587
  21  759.442
  22  1226.07
  23  66.8872
  24  195.042
  25  310.741
  26  165.239
  27  1.70404
  28  3.3233e-05
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  9.769e+00  3.092e+02  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.325e-10  3.323e-05  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:  3.620e-01  1.704e+00  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.350604834604

TS (Fixed Index): -0.00
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.60e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611646/likelihoodResults_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.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) = 30.823380091
delta logL = 0.00119364108581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29.9386911282
delta logL = 0.885882603895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    5.6684       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.

 FCN=   29.93869     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       81 TOTAL
                     EDM=   .26E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       5.6674        .41771        .10257E-01    .60872E-06
                               ERR DEF=  .500    
Final values: 
  Index      = 5.6674
 **********
 **   18 **HESSE 
 **********

 FCN=   29.93869     FROM HESSE     STATUS=OK             7 CALLS       88 TOTAL
                     EDM=   .99E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       5.6674        .41815        .45471E-04    .13388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88313e-16
Minuit parameter uncertainties:
  1  0.418652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611646': 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) = 29.9386880978
delta logL = 0.885885634307

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  9.767e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
287        Index:  5.667e+00  4.187e-01  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:  6.070e-04  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  3.556e-01  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 1.77
Ra Dec: 149.471 34.398
Photon Index (Free Index): 5.67 +/- 0.42
Photon Flux (Free Index): 8.59e-05 +/- 8.81e-05
Energy Flux (Free Index): 1.09e-02 +/- 1.09e-02

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/611646/cmap_HighResolution_557884801_558144001_4FGL_J0957.8+3423_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.60e+04', comment='SUCCESS', energy_flux2='1.09e-02', dlogl='8.86e-01', photon_flux2='8.59e-05', job_status='DONE', time_completed='2021-09-01 07:39:53.662979', photon_index_error2='0.42', photon_index2='5.67', ts='-0.00', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.09e-02', EG='0.36', time_epoch_completed='1630507193.66', return_code='0', job_id='611646', GAL2='0.00', EG2='0.36', return_code2='0', photon_flux_error2='8.81e-05', ts2='1.77', photon_index='2.16' WHERE bin_id='1229' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:39:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 611646: <4FGL_J0957.8+3423_daily_bin1229> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1229> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:30:49 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:30:51 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:51 2021
Terminated at Wed Sep  1 07:39:54 2021
Results reported at Wed Sep  1 07:39:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1229 149.471 34.3975 557884801 558144001 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 :                                   333.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            545 sec.

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

