/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 57 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 = 6613
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin92
RA = 149.471, Dec = 34.3975
tmin = 263174401, tmax = 263433601
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='604328', job_status='RUN', time_executed='2021-09-01 07:12:49.329612', time_epoch_executed='1630505569.33' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604328

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604328/ft1_4FGL_J0957.8+3423_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604328/ft2_4FGL_J0957.8+3423_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604328/ft1_4FGL_J0957.8+3423_daily_bin92.fits outfile=/scratch/kocevski/604328/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin92.fits ra=149.471 dec=34.3975 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.57
user 1.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604328/ft2_4FGL_J0957.8+3423_daily_bin92.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/604328/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/604328/ft1_filtered_4FGL_J0957.8+3423_daily_bin92.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.61
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604328/ft1_filtered_4FGL_J0957.8+3423_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/604328/ft2_4FGL_J0957.8+3423_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/604328/ltcube_263174401_263433601_4FGL_J0957.8+3423_daily_bin92.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/604328/ft2_4FGL_J0957.8+3423_daily_bin92.fits
.....................!
real 12.01
user 11.61
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604328/ft1_filtered_4FGL_J0957.8+3423_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/604328/ft2_4FGL_J0957.8+3423_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/604328/ltcube_263174401_263433601_4FGL_J0957.8+3423_daily_bin92.fits outfile=/scratch/kocevski/604328/expmap_263174401_263433601_4FGL_J0957.8+3423_daily_bin92.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/604328/ltcube_263174401_263433601_4FGL_J0957.8+3423_daily_bin92.fits
.....................!
real 193.07
user 185.49
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/604328/ft1_filtered_4FGL_J0957.8+3423_daily_bin92.fits scfile=/scratch/kocevski/604328/ft2_4FGL_J0957.8+3423_daily_bin92.fits outfile=/scratch/kocevski/604328/cmap_263174401_263433601_4FGL_J0957.8+3423_daily_bin92.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604328/ft1_filtered_4FGL_J0957.8+3423_daily_bin92.fits scfile=/scratch/kocevski/604328/ft2_4FGL_J0957.8+3423_daily_bin92.fits outfile=/scratch/kocevski/604328/cmap_HighResolution_263174401_263433601_4FGL_J0957.8+3423_daily_bin92.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.53
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .68430       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1368       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .31295E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10374E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.646       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.031       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.622       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .67279       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6330       1.0000         .10000E-03   10000.    
    16 'norm      '    17.525       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21844E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.750       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.298       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .34824       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.845       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2181       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77993       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=   4771.955     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3707 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1984       -.44868E-07** at limit **
   2  Prefactor     .10000E-03    32.621        .64609E-06** at limit **
   3  Prefactor     .68494        2.1160       -.15654E-05   -.35475E-04
   4  norm          3.1368        2.1394       -.57979E-07    .13416E-03
   5  Prefactor     .10012E-03    15.993       -.51786E-06** at limit **
   6  norm          .10000E-03    18.287       -.10356E-05** at limit **
   7  Prefactor     2.8215        2.9780        .23685E-06    .72805E-03
   8  Prefactor     .10000E-03    7.5841       -.35037E-05** at limit **
   9  norm          .10000E-03    12.571       -.20182E-05** at limit **
  10  Prefactor     37.635        38.344        .58482E-06   -.28680E-04
  11  Prefactor     16.035        33.320        .11986E-05    .11366E-03
  12  Prefactor     37.634        52.190       -.94860E-06    .73833E-04
  13  Prefactor     .67375        6.3155       -.20227E-06   -.17022E-03
  14  Prefactor     .10000E-03    2.6297       -.29496E-07** at limit **
  15  Prefactor     3.6335        2.7196        .64550E-07   -.48817E-04
  16  norm          17.524        9.4364        .99984E-07   -.55306E-04
  17  Prefactor     .10001E-03    2.6923       -.28900E-06** at limit **
  18  Prefactor     .10000E-03    12.215       -.18962E-05** at limit **
  19  Prefactor     .10000E-03    6.6611       -.27483E-05** at limit **
  20  norm          17.743        12.817       -.36641E-07    .13578E-03
  21  Prefactor     27.311        56.614       -.20165E-05    .18944E-04
  22  Prefactor     .10000E-03    10.250       -.20476E-05** at limit **
  23  Prefactor     .34794        3.9103        .36203E-06    .11138E-04
  24  Prefactor     .10000E-03    1.6758       -.10279E-07** at limit **
  25  Prefactor     38.831        49.477        .14057E-05    .45373E-04
  26  Prefactor     .10000E-03    87.154       -.19398E-05** at limit **
  27  Normalizat    1.2181        .20068        .49173E-06    .35818E-03
  28  Prefactor     .77983        .22165        .52050E-06    .16237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.684935
  norm       = 3.13678
  Prefactor  = 0.00010012
  norm       = 0.0001
  Prefactor  = 2.8215
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.635
  Prefactor  = 16.0346
  Prefactor  = 37.6342
  Prefactor  = 0.673755
  Prefactor  = 0.0001
  Prefactor  = 3.63347
  norm       = 17.5243
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 17.7426
  Prefactor  = 27.3106
  Prefactor  = 0.0001
  Prefactor  = 0.347945
  Prefactor  = 0.0001
  Prefactor  = 38.8312
  Prefactor  = 0.0001
  Normalizat = 1.21815
  Prefactor  = 0.779831
 **********
 **   18 **HESSE 
 **********

 FCN=   4771.955     FROM HESSE     STATUS=OK           537 CALLS     4244 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2026        .73851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .68494        2.0906        .17716E-02   -1.5542    
   4  norm          3.1368        2.1207        .79962E-04   -1.5354    
   5  Prefactor     .10012E-03    17.221        .84555E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    18.854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8215        2.9380        .11321E-03   -1.5372    
   8  Prefactor     .10000E-03    10.761        .19641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.635        37.926        .65322E-04   -1.4480    
  11  Prefactor     16.035        33.438        .10003E-03   -1.4907    
  12  Prefactor     37.634        52.210        .65343E-04   -1.4480    
  13  Prefactor     .67375        12.927        .31922E-02   -1.5544    
  14  Prefactor     .10000E-03    2.6315        .10940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6335        2.7094        .93457E-04   -1.5327    
  16  norm          17.524        9.4166        .95674E-04   -1.4870    
  17  Prefactor     .10001E-03    7.5012        .19975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.948        .21007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.743        12.794        .95064E-04   -1.4865    
  21  Prefactor     27.311        56.625        .76676E-04   -1.4662    
  22  Prefactor     .10000E-03    10.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .34794        18.697        .23599E-02   -1.5590    
  24  Prefactor     .10000E-03    1.6781        .87318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     38.831        49.764        .64309E-04   -1.4461    
  26  Prefactor     .10000E-03    88.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2181        .22852        .21648E-03   -.86044    
  28  Prefactor     .77983        .25400        .30709E-03   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49071e-08
Minuit parameter uncertainties:
  1  3.4321e-07
  2  2.55967e-05
  3  2.09084
  4  2.12078
  5  0.00288146
  6  4.47326e-05
  7  2.93816
  8  5.57922e-05
  9  6.31867e-05
  10  37.9505
  11  33.4767
  12  52.2731
  13  5.90338
  14  4.14497e-07
  15  2.70951
  16  9.41735
  17  0.00062051
  18  1.34716e-05
  19  0.000226692
  20  12.7959
  21  56.7369
  22  1.66008e-05
  23  5.10211
  24  1.99843e-06
  25  49.8176
  26  5.59952e-06
  27  0.228711
  28  0.254384
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.145e-07  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:  7.798e-01  2.544e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.218e+00  2.287e-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: 4.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604328/likelihoodResults_263174401_263433601_4FGL_J0957.8+3423_daily_bin92.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) = 4771.95654315
delta logL = -0.00173981190528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4771.95480305
delta logL = 2.92338881991e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1445       1.0000          .0000       10.000    
     3 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77980       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=   4771.955     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10291E-03    4.0177        .11122E-01** at limit **
   2  Index         2.0439        7.5964        .50000        .50943E-04
   3  Normalizat    1.2181        .55165E-02    .21648E-03    .10240E-04
   4  Prefactor     .77983        .64312E-02    .30709E-03    .63306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010291
  Index      = 2.04392
  Normalizat = 1.21814
  Prefactor  = 0.779834
 **********
 **   18 **HESSE 
 **********

 FCN=   4771.955     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10291E-03    60.741        .11463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0439        6.7330        .50000       -.63256    
   3  Normalizat    1.2181        .21913E-01    .86593E-05   -.86044    
   4  Prefactor     .77983        .25547E-01    .12283E-04   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.06161e-08
Minuit parameter uncertainties:
  1  0.0266154
  2  377.098
  3  0.0219136
  4  0.0255471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604328': 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) = 4771.95480215
delta logL = 1.18880780065e-06

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.218e+00  2.191e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/604328/cmap_HighResolution_263174401_263433601_4FGL_J0957.8+3423_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2021-09-01 07:24:43.779266', job_id='604328', GAL2='0.78', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630506283.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='92' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:24:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 604328: <4FGL_J0957.8+3423_daily_bin92> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin92> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:10:47 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:10:48 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:10:48 2021
Terminated at Wed Sep  1 07:24:44 2021
Results reported at Wed Sep  1 07:24:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin92 149.471 34.3975 263174401 263433601 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 :                                   707.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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

