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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1380
RA = 149.471, Dec = 34.3975
tmin = 597024001, tmax = 597283201
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='611845', job_status='RUN', time_executed='2021-09-01 07:33:26.818527', time_epoch_executed='1630506806.82' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611845/ft1_4FGL_J0957.8+3423_daily_bin1380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611845/ft2_4FGL_J0957.8+3423_daily_bin1380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611845/ft1_4FGL_J0957.8+3423_daily_bin1380.fits outfile=/scratch/kocevski/611845/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1380.fits ra=149.471 dec=34.3975 rad=12.0 tmin=597024001.0 tmax=597283201.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.55
user 3.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611845/ft1_filtered_4FGL_J0957.8+3423_daily_bin1380.fits" evtable="EVENTS" scfile=/scratch/kocevski/611845/ft2_4FGL_J0957.8+3423_daily_bin1380.fits sctable="SC_DATA" outfile=/scratch/kocevski/611845/ltcube_597024001_597283201_4FGL_J0957.8+3423_daily_bin1380.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/611845/ft2_4FGL_J0957.8+3423_daily_bin1380.fits
.....................!
real 13.18
user 11.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611845/ft1_filtered_4FGL_J0957.8+3423_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/611845/ft2_4FGL_J0957.8+3423_daily_bin1380.fits sctable="SC_DATA" expcube=/scratch/kocevski/611845/ltcube_597024001_597283201_4FGL_J0957.8+3423_daily_bin1380.fits outfile=/scratch/kocevski/611845/expmap_597024001_597283201_4FGL_J0957.8+3423_daily_bin1380.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/611845/ltcube_597024001_597283201_4FGL_J0957.8+3423_daily_bin1380.fits
.....................!
real 197.90
user 185.31
sys 4.68

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/611845/ft1_filtered_4FGL_J0957.8+3423_daily_bin1380.fits scfile=/scratch/kocevski/611845/ft2_4FGL_J0957.8+3423_daily_bin1380.fits outfile=/scratch/kocevski/611845/cmap_597024001_597283201_4FGL_J0957.8+3423_daily_bin1380.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1099       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0340       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.118       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10825E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99932E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6776       1.0000         .10000E-03   10000.    
    16 'norm      '    36.072       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7086       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9119       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .86675       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1558       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=   6409.909     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3494 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7563        .48006E-07** at limit **
   2  Prefactor     .10000E-03    8.3653        .37779E-05** at limit **
   3  Prefactor     .10000E-03    1.6519        .96717E-07** at limit **
   4  norm          3.2060        1.8013        .13893E-06    .76424E-04
   5  Prefactor     .10000E-03    4.8126       -.10188E-06** at limit **
   6  norm          .10000E-03    4.3596        .29888E-06** at limit **
   7  Prefactor     5.1119        2.5254        .22758E-06   -.25870E-03
   8  Prefactor     5.0378        4.6628       -.52937E-06   -.55359E-03
   9  norm          .10000E-03    8.8645       -.29221E-05** at limit **
  10  Prefactor     24.129        30.190        .24086E-04   -.75072E-04
  11  Prefactor     .10000E-03    10.634        .52202E-07** at limit **
  12  Prefactor     .10000E-03    21.918       -.23243E-05** at limit **
  13  Prefactor     .10000E-03    13.978        .53877E-05** at limit **
  14  Prefactor     .28818        4.8838        .58624E-06   -.15100E-03
  15  Prefactor     2.6770        2.8007       -.85915E-06   -.99405E-03
  16  norm          36.077        12.674        .25581E-05   -.19572E-03
  17  Prefactor     .10000E-03    1.2875        .48202E-07** at limit **
  18  Prefactor     5.7203        24.415        .37482E-04   -.26160E-04
  19  Prefactor     .10000E-03    1.5853        .67858E-07** at limit **
  20  norm          .10000E-03    2.8351       -.21353E-06** at limit **
  21  Prefactor     .10000E-03    18.605       -.78927E-05** at limit **
  22  Prefactor     .10000E-03    23.101        .42177E-05** at limit **
  23  Prefactor     7.9156        4.1976       -.55780E-06   -.37336E-03
  24  Prefactor     .10000E-03    2.0912        .14279E-06** at limit **
  25  Prefactor     .10000E-03    10.988        .21708E-05** at limit **
  26  Prefactor     .10000E-03    9.9285       -.38308E-05** at limit **
  27  Normalizat    .86608        .16455       -.55948E-05   -.15852E-03
  28  Prefactor     1.1561        .18726       -.52653E-06   -.36773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.206
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.11187
  Prefactor  = 5.03783
  norm       = 0.0001
  Prefactor  = 24.1293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.288183
  Prefactor  = 2.67704
  norm       = 36.0772
  Prefactor  = 0.0001
  Prefactor  = 5.72031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.91561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.866085
  Prefactor  = 1.15612
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.909     FROM HESSE     STATUS=OK           515 CALLS     4009 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7730        .10358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6751        .10032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2060        1.8026        .77322E-04   -1.5350    
   5  Prefactor     .10000E-03    4.8160        .17152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4251        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1119        2.5222        .85559E-04   -1.5256    
   8  Prefactor     5.0378        4.6563        .15432E-03   -1.5259    
   9  norm          .10000E-03    8.8978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.129        30.172        .81565E-04   -1.4725    
  11  Prefactor     .10000E-03    10.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.400        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .28818        52.924        .33519E-02   -1.5601    
  15  Prefactor     2.6770        2.7917        .12827E-03   -1.5381    
  16  norm          36.077        12.663        .66727E-04   -1.4506    
  17  Prefactor     .10000E-03    1.3026        .88643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7203        24.298        .16812E-03   -1.5230    
  19  Prefactor     .10000E-03    1.6034        .98378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8396        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.9156        4.2047        .11425E-03   -1.5145    
  24  Prefactor     .10000E-03    2.1189        .11302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.9704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .86608        .19412        .24460E-03   -.97662    
  28  Prefactor     1.1561        .22188        .25783E-03   -.87693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29754e-09
Minuit parameter uncertainties:
  1  1.37467e-05
  2  5.93506e-06
  3  8.93696e-06
  4  1.80264
  5  9.62439e-06
  6  2.55652e-05
  7  2.52229
  8  4.65667
  9  2.45326e-05
  10  30.1909
  11  2.52001e-05
  12  4.52627e-05
  13  0.000435734
  14  7.81635
  15  2.79185
  16  12.6644
  17  7.87455e-06
  18  23.5951
  19  7.23059e-06
  20  3.49934e-05
  21  3.88646e-05
  22  5.58795e-05
  23  4.20491
  24  1.03199e-05
  25  1.34822e-05
  26  2.54108e-05
  27  0.194276
  28  0.222055
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  2.882e-01  7.816e+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.156e+00  2.221e-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:  8.661e-01  1.943e-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: 6.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611845/likelihoodResults_597024001_597283201_4FGL_J0957.8+3423_daily_bin1380.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) = 6409.05053226
delta logL = 0.85828868144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6408.9732562
delta logL = 0.935564737587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15881E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.3012       1.0000          .0000       10.000    
     3 'Normalizat'    .77977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2247       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=   6408.973     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      263 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15825E-01    .18299        .17913E-02    .31343E-02
   2  Index         5.3027        2.0191        .11333        .11737E-03
   3  Normalizat    .77987        .34933E-01    .43346E-01   -.96509E-05
   4  Prefactor     1.2246        .42072E-01    .56901E-01   -.90422E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0158252
  Index      = 5.30272
  Normalizat = 0.779872
  Prefactor  = 1.22456
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.973     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      298 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15825E-01    .51754        .81519E-04   -1.5683    
   2  Index         5.3027        3.9945        .39681E-02    .60581E-01
   3  Normalizat    .77987        .14034        .25666E-03   -1.0082    
   4  Prefactor     1.2246        .16582        .25161E-03   -.85579    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14209e-10
Minuit parameter uncertainties:
  1  0.180428
  2  4.63107
  3  0.140401
  4  0.165886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611845': 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) = 6408.97325584
delta logL = 0.935565096246

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.583e-02  1.804e-01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  5.303e+00  4.631e+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.225e+00  1.659e-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.799e-01  1.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 149.471 34.398
Photon Index (Free Index): 5.30 +/- 4.63
Photon Flux (Free Index): 5.66e-08 +/- 4.39e-08
Energy Flux (Free Index): 7.36e-06 +/- 6.24e-06

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/611845/cmap_HighResolution_597024001_597283201_4FGL_J0957.8+3423_daily_bin1380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', comment='SUCCESS', energy_flux2='7.36e-06', dlogl='9.36e-01', photon_flux2='5.66e-08', job_status='DONE', time_completed='2021-09-01 07:47:34.468970', photon_index_error2='4.63', photon_index2='5.30', ts='0.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='6.19e-08', energy_flux_error2='6.24e-06', EG='0.87', time_epoch_completed='1630507654.47', return_code='0', job_id='611845', GAL2='1.22', EG2='0.78', return_code2='102', photon_flux_error2='4.39e-08', ts2='2.05', photon_index='2.16' WHERE bin_id='1380' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:47:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 611845: <4FGL_J0957.8+3423_daily_bin1380> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1380> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:31:04 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:31:06 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:31:06 2021
Terminated at Wed Sep  1 07:47:35 2021
Results reported at Wed Sep  1 07:47:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1380 149.471 34.3975 597024001 597283201 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 :                                   819.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

