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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1033
RA = 149.471, Dec = 34.3975
tmin = 507081601, tmax = 507340801
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='611294', job_status='RUN', time_executed='2021-09-01 07:31:35.788400', time_epoch_executed='1630506695.79' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611294/ft1_4FGL_J0957.8+3423_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611294/ft2_4FGL_J0957.8+3423_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611294/ft1_4FGL_J0957.8+3423_daily_bin1033.fits outfile=/scratch/kocevski/611294/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1033.fits ra=149.471 dec=34.3975 rad=12.0 tmin=507081601.0 tmax=507340801.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.86
user 4.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611294/ft1_filtered_4FGL_J0957.8+3423_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/611294/ft2_4FGL_J0957.8+3423_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/611294/ltcube_507081601_507340801_4FGL_J0957.8+3423_daily_bin1033.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/611294/ft2_4FGL_J0957.8+3423_daily_bin1033.fits
.....................!
real 12.60
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611294/ft1_filtered_4FGL_J0957.8+3423_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/611294/ft2_4FGL_J0957.8+3423_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/611294/ltcube_507081601_507340801_4FGL_J0957.8+3423_daily_bin1033.fits outfile=/scratch/kocevski/611294/expmap_507081601_507340801_4FGL_J0957.8+3423_daily_bin1033.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/611294/ltcube_507081601_507340801_4FGL_J0957.8+3423_daily_bin1033.fits
.....................!
real 190.76
user 185.24
sys 4.84

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/611294/ft1_filtered_4FGL_J0957.8+3423_daily_bin1033.fits scfile=/scratch/kocevski/611294/ft2_4FGL_J0957.8+3423_daily_bin1033.fits outfile=/scratch/kocevski/611294/cmap_507081601_507340801_4FGL_J0957.8+3423_daily_bin1033.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.74
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611294/ft1_filtered_4FGL_J0957.8+3423_daily_bin1033.fits scfile=/scratch/kocevski/611294/ft2_4FGL_J0957.8+3423_daily_bin1033.fits outfile=/scratch/kocevski/611294/cmap_HighResolution_507081601_507340801_4FGL_J0957.8+3423_daily_bin1033.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5291       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3531       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7289       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8947       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3950       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46214       1.0000         .10000E-03   10000.    
    16 'norm      '    29.424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.277       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.613       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3759       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5668       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .74446       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0091       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=   4449.374     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3504 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5290        2.4654        .44666E-07    .65464E-05
   2  Prefactor     8.3536        26.496        .76521E-07   -.28237E-06
   3  Prefactor     1.7290        4.0550        .21448E-06    .78197E-05
   4  norm          .10000E-03    .73014       -.53953E-07** at limit **
   5  Prefactor     .10000E-03    5.9217        .28925E-06** at limit **
   6  norm          .10000E-03    3.3325       -.78483E-07** at limit **
   7  Prefactor     3.5338        3.0589        .12148E-06    .42983E-04
   8  Prefactor     1.8954        3.8804        .34119E-06    .12839E-04
   9  norm          .10000E-03    6.0665        .24059E-06** at limit **
  10  Prefactor     .10000E-03    10.578        .67619E-06** at limit **
  11  Prefactor     .10000E-03    14.233       -.11858E-05** at limit **
  12  Prefactor     .10000E-03    50.946       -.89038E-07** at limit **
  13  Prefactor     6.2821        6.6614        .13059E-05    .17904E-03
  14  Prefactor     3.3955        9.4534        .43705E-05    .11996E-03
  15  Prefactor     .46220        2.1149        .30151E-06   -.28635E-04
  16  norm          29.426        11.371       -.32290E-07   -.16877E-04
  17  Prefactor     .10000E-03    2.7438        .19194E-06** at limit **
  18  Prefactor     41.288        38.593       -.10829E-05   -.40607E-04
  19  Prefactor     .10001E-03    3.5031        .25831E-05** at limit **
  20  norm          .10000E-03    4.7446       -.44442E-06** at limit **
  21  Prefactor     43.618        43.164       -.49168E-06   -.31629E-04
  22  Prefactor     9.3983        19.979       -.32392E-05   -.15668E-03
  23  Prefactor     .10000E-03    3.9689       -.25753E-06** at limit **
  24  Prefactor     .10000E-03    5.2833        .14407E-05** at limit **
  25  Prefactor     3.5498        85.400        .10853E-04   -.19669E-04
  26  Prefactor     .10000E-03    12.041        .10409E-05** at limit **
  27  Normalizat    .74419        .17929       -.13754E-05   -.29733E-03
  28  Prefactor     1.0094        .20186        .19374E-06   -.20557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52905
  Prefactor  = 8.35358
  Prefactor  = 1.72896
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.53377
  Prefactor  = 1.89543
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.2821
  Prefactor  = 3.39552
  Prefactor  = 0.462199
  norm       = 29.4256
  Prefactor  = 0.0001
  Prefactor  = 41.2884
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 43.6179
  Prefactor  = 9.3983
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.54976
  Prefactor  = 0.0001
  Normalizat = 0.744186
  Prefactor  = 1.00937
 **********
 **   18 **HESSE 
 **********

 FCN=   4449.374     FROM HESSE     STATUS=OK           519 CALLS     4023 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5290        2.4569        .10061E-03   -1.5390    
   2  Prefactor     8.3536        26.438        .13871E-03   -1.5130    
   3  Prefactor     1.7290        3.9772        .18230E-03   -1.5445    
   4  norm          .10000E-03    1.0401        .11045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9245        .15850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.3687        .11889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5338        3.0137        .96251E-04   -1.5332    
   8  Prefactor     1.8954        3.8455        .17454E-03   -1.5433    
   9  norm          .10000E-03    6.0693        .16046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2821        6.7267        .80089E-03   -1.5207    
  14  Prefactor     3.3955        9.6983        .10979E-02   -1.5339    
  15  Prefactor     .46220        2.1103        .18083E-03   -1.5572    
  16  norm          29.426        11.365        .73861E-04   -1.4623    
  17  Prefactor     .10000E-03    2.7999        .21455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     41.288        38.703        .62393E-04   -1.4422    
  19  Prefactor     .10001E-03    8.1693        .19627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.7392        .14159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.618        43.153        .60706E-04   -1.4386    
  22  Prefactor     9.3983        20.138        .13088E-03   -1.5095    
  23  Prefactor     .10000E-03    4.0689        .25857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5154        .29928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.5498        85.058        .21399E-03   -1.5331    
  26  Prefactor     .10000E-03    12.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .74419        .20687        .22577E-03   -1.0217    
  28  Prefactor     1.0094        .23604        .23979E-03   -.92418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16254e-09
Minuit parameter uncertainties:
  1  2.45696
  2  26.4755
  3  3.97782
  4  9.94903e-07
  5  3.6455e-06
  6  2.55815e-06
  7  3.01388
  8  3.84601
  9  1.56269e-06
  10  1.3056e-05
  11  1.52772e-05
  12  6.53325e-05
  13  6.72756
  14  9.70281
  15  1.97512
  16  11.3656
  17  1.68191e-05
  18  38.7261
  19  0.000661403
  20  1.76888e-05
  21  43.1834
  22  20.1528
  23  5.51972e-05
  24  0.000127808
  25  34.8078
  26  1.52646e-05
  27  0.207083
  28  0.236283
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  3.396e+00  9.703e+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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.009e+00  2.363e-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:  7.442e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/611294/likelihoodResults_507081601_507340801_4FGL_J0957.8+3423_daily_bin1033.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) = 4449.33046573
delta logL = 0.0438026960492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4449.32752989
delta logL = 0.0467385359607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8356       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4883       1.0000          .0000       10.000    
     3 'Normalizat'    .73840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0121       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=   4449.328     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      242 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8348        8.6398        .23485E-03    .28681E-03
   2  Index         2.4888        1.1755        .94908E-02    .99559E-04
   3  Normalizat    .73843        .19237        .22659E-03   -.42949E-03
   4  Prefactor     1.0121        .23361        .23949E-03   -.37775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83483
  Index      = 2.48884
  Normalizat = 0.738429
  Prefactor  = 1.01207
 **********
 **   18 **HESSE 
 **********

 FCN=   4449.328     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8348        7.7426        .93941E-05   -1.5371    
   2  Index         2.4888        1.0556        .37963E-03   -.52618    
   3  Normalizat    .73843        .19258        .45318E-04   -1.0239    
   4  Prefactor     1.0121        .23374        .47899E-04   -.92328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56194e-10
Minuit parameter uncertainties:
  1  7.74535
  2  1.06641
  3  0.192754
  4  0.233978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611294': 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) = 4449.32752971
delta logL = 0.046738709465

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  2.835e+00  7.745e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.489e+00  1.066e+00  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.012e+00  2.340e-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:  7.384e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/611294/cmap_HighResolution_507081601_507340801_4FGL_J0957.8+3423_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-01 07:43:02.162170', job_id='611294', GAL2='1.01', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630507382.16', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.67e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1033' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:43:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 611294: <4FGL_J0957.8+3423_daily_bin1033> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1033 149.471 34.3975 507081601 507340801 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 :                                   677.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            750 sec.

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

