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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1028
RA = 149.471, Dec = 34.3975
tmin = 505785601, tmax = 506044801
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='611286', job_status='RUN', time_executed='2021-09-01 07:33:09.875127', time_epoch_executed='1630506789.88' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611286

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611286/ft1_4FGL_J0957.8+3423_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611286/ft2_4FGL_J0957.8+3423_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611286/ft1_4FGL_J0957.8+3423_daily_bin1028.fits outfile=/scratch/kocevski/611286/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1028.fits ra=149.471 dec=34.3975 rad=12.0 tmin=505785601.0 tmax=506044801.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 5.53
user 3.35
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611286/ft1_filtered_4FGL_J0957.8+3423_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/611286/ft2_4FGL_J0957.8+3423_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/611286/ltcube_505785601_506044801_4FGL_J0957.8+3423_daily_bin1028.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/611286/ft2_4FGL_J0957.8+3423_daily_bin1028.fits
.....................!
real 13.04
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611286/ft1_filtered_4FGL_J0957.8+3423_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/611286/ft2_4FGL_J0957.8+3423_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/611286/ltcube_505785601_506044801_4FGL_J0957.8+3423_daily_bin1028.fits outfile=/scratch/kocevski/611286/expmap_505785601_506044801_4FGL_J0957.8+3423_daily_bin1028.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/611286/ltcube_505785601_506044801_4FGL_J0957.8+3423_daily_bin1028.fits
.....................!
real 198.18
user 185.48
sys 4.60

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/611286/ft1_filtered_4FGL_J0957.8+3423_daily_bin1028.fits scfile=/scratch/kocevski/611286/ft2_4FGL_J0957.8+3423_daily_bin1028.fits outfile=/scratch/kocevski/611286/cmap_505785601_506044801_4FGL_J0957.8+3423_daily_bin1028.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 1.30
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611286/ft1_filtered_4FGL_J0957.8+3423_daily_bin1028.fits scfile=/scratch/kocevski/611286/ft2_4FGL_J0957.8+3423_daily_bin1028.fits outfile=/scratch/kocevski/611286/cmap_HighResolution_505785601_506044801_4FGL_J0957.8+3423_daily_bin1028.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.77
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3985       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2060       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.350       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11643E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.229       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.177       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .69732E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.030       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4048       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3019       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.4952       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.344       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .93376       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80097       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=   5450.287     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3505 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8459        2.6667       -.47363E-07    .42029E-04
   2  Prefactor     .10000E-03    19.223       -.73026E-05** at limit **
   3  Prefactor     .10000E-03    1.8869        .11724E-07** at limit **
   4  norm          2.3985        1.6837       -.27682E-07    .99211E-04
   5  Prefactor     .10000E-03    11.767       -.43255E-05** at limit **
   6  norm          .10000E-03    5.4431       -.71983E-06** at limit **
   7  Prefactor     .10000E-03    1.4481       -.69214E-07** at limit **
   8  Prefactor     9.2062        4.9565        .28953E-06    .28192E-04
   9  norm          .10000E-03    4.7923        .32415E-06** at limit **
  10  Prefactor     53.336        35.613       -.10304E-04   -.44526E-04
  11  Prefactor     .10000E-03    6.6711        .14271E-05** at limit **
  12  Prefactor     .10000E-03    49.458       -.12172E-04** at limit **
  13  Prefactor     16.228        9.7780        .79771E-06   -.67795E-06
  14  Prefactor     .10000E-03    13.842        .69878E-05** at limit **
  15  Prefactor     .10000E-03    1.2113        .14003E-06** at limit **
  16  norm          18.178        12.006       -.38137E-06    .16752E-06
  17  Prefactor     .10002E-03    2.3855       -.11195E-05** at limit **
  18  Prefactor     16.028        24.714       -.26312E-05    .24823E-04
  19  Prefactor     7.4008        5.7052        .22876E-06    .41025E-03
  20  norm          1.2978        3.1872        .82162E-06   -.12190E-02
  21  Prefactor     .10000E-03    15.361        .56579E-05** at limit **
  22  Prefactor     .10000E-03    34.337        .16627E-04** at limit **
  23  Prefactor     .10000E-03    1.3366       -.77899E-07** at limit **
  24  Prefactor     6.4970        5.0976       -.98629E-07   -.58914E-03
  25  Prefactor     16.341        31.053       -.34923E-05   -.25095E-04
  26  Prefactor     .10000E-03    19.314       -.77188E-05** at limit **
  27  Normalizat    .93372        .16598        .12675E-05    .22420E-03
  28  Prefactor     .80093        .18677        .40247E-06    .16136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.84593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.39853
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20617
  norm       = 0.0001
  Prefactor  = 53.336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1779
  Prefactor  = 0.000100021
  Prefactor  = 16.0277
  Prefactor  = 7.40082
  norm       = 1.29782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.49699
  Prefactor  = 16.3414
  Prefactor  = 0.0001
  Normalizat = 0.933717
  Prefactor  = 0.800931
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.287     FROM HESSE     STATUS=OK           521 CALLS     4026 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8459        2.6747        .11321E-03   -1.5371    
   2  Prefactor     .10000E-03    19.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9240        .98834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3985        1.6855        .38757E-03   -1.5398    
   5  Prefactor     .10000E-03    11.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.5267        .16804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9634        .17075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2062        4.9542        .11343E-03   -1.5101    
   9  norm          .10000E-03    4.7967        .15784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.336        35.701        .54913E-04   -1.4246    
  11  Prefactor     .10000E-03    6.6778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.228        9.7356        .99420E-04   -1.4902    
  14  Prefactor     .10000E-03    14.268        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1331        .15551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.178        12.003        .93941E-04   -1.4855    
  17  Prefactor     .10002E-03    9.7855        .19241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.028        25.347        .10004E-03   -1.4907    
  19  Prefactor     7.4008        5.1106        .63530E-03   -1.5164    
  20  norm          1.2978        17.663        .19357E-02   -1.5480    
  21  Prefactor     .10000E-03    15.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3482        .83300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.4970        5.0852        .68672E-03   -1.5198    
  25  Prefactor     16.341        31.151        .99070E-04   -1.4899    
  26  Prefactor     .10000E-03    19.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .93372        .19266        .21965E-03   -.95285    
  28  Prefactor     .80093        .21563        .27588E-03   -.99694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28177e-08
Minuit parameter uncertainties:
  1  2.67477
  2  3.77815e-05
  3  3.08085e-06
  4  1.68549
  5  2.15699e-05
  6  7.6643e-06
  7  2.56476e-05
  8  4.95442
  9  6.89852e-07
  10  35.7151
  11  2.43278e-06
  12  4.55954e-05
  13  9.73651
  14  0.000123604
  15  2.36087e-05
  16  12.0047
  17  0.000913897
  18  25.3636
  19  5.11089
  20  9.57874
  21  1.745e-05
  22  0.000110871
  23  2.56622e-06
  24  5.08556
  25  31.1818
  26  3.51236e-05
  27  0.192799
  28  0.21586
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.236e-04  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:  8.009e-01  2.159e-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:  9.337e-01  1.928e-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: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611286/likelihoodResults_505785601_506044801_4FGL_J0957.8+3423_daily_bin1028.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) = 5450.28699165
delta logL = -0.000332138321937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5450.28666271
delta logL = -3.19400533044e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22289E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0652       1.0000          .0000       10.000    
     3 'Normalizat'    .93339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80134       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=   5450.287     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      227 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    .31955        .90712E-01** at limit **
   2  Index         1.9360        9.0286        .50000        .24795E-04
   3  Normalizat    .93372        .93196E-03    .45327E-01   -.58570E-05
   4  Prefactor     .80093        .10979E-02    .43735E-01    .15854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100163
  Index      = 1.93602
  Normalizat = 0.933716
  Prefactor  = 0.800931
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.287     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      262 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    73.901        .34461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9360        5.4592        .50000       -.65959    
   3  Normalizat    .93372        .48689E-02    .21965E-03   -.95285    
   4  Prefactor     .80093        .57359E-02    .27588E-03   -.99694    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.45739e-07
Minuit parameter uncertainties:
  1  0.00694193
  2  82.5329
  3  0.00486888
  4  0.00573593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611286': 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) = 5450.28665705
delta logL = 2.46469880949e-06

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.002e-04  6.942e-03  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.936e+00  8.253e+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:  8.009e-01  5.736e-03  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:  9.337e-01  4.869e-03  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/611286/cmap_HighResolution_505785601_506044801_4FGL_J0957.8+3423_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-09-01 07:45:50.119894', job_id='611286', GAL2='0.80', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630507550.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1028' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:45:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 611286: <4FGL_J0957.8+3423_daily_bin1028> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1028> 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) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:30:32 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:32 2021
Terminated at Wed Sep  1 07:45:50 2021
Results reported at Wed Sep  1 07:45:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1028 149.471 34.3975 505785601 506044801 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 :                                   740.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

