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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1532
RA = 149.471, Dec = 34.3975
tmin = 636422401, tmax = 636681601
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='613334', job_status='RUN', time_executed='2021-09-01 07:37:46.389853', time_epoch_executed='1630507066.39' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613334/ft1_4FGL_J0957.8+3423_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613334/ft2_4FGL_J0957.8+3423_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613334/ft1_4FGL_J0957.8+3423_daily_bin1532.fits outfile=/scratch/kocevski/613334/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1532.fits ra=149.471 dec=34.3975 rad=12.0 tmin=636422401.0 tmax=636681601.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.03
user 3.39
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613334/ft1_filtered_4FGL_J0957.8+3423_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/613334/ft2_4FGL_J0957.8+3423_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/613334/ltcube_636422401_636681601_4FGL_J0957.8+3423_daily_bin1532.fits outfile=/scratch/kocevski/613334/expmap_636422401_636681601_4FGL_J0957.8+3423_daily_bin1532.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/613334/ltcube_636422401_636681601_4FGL_J0957.8+3423_daily_bin1532.fits
.....................!
real 194.50
user 187.43
sys 5.16

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/613334/ft1_filtered_4FGL_J0957.8+3423_daily_bin1532.fits scfile=/scratch/kocevski/613334/ft2_4FGL_J0957.8+3423_daily_bin1532.fits outfile=/scratch/kocevski/613334/cmap_636422401_636681601_4FGL_J0957.8+3423_daily_bin1532.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613334/ft1_filtered_4FGL_J0957.8+3423_daily_bin1532.fits scfile=/scratch/kocevski/613334/ft2_4FGL_J0957.8+3423_daily_bin1532.fits outfile=/scratch/kocevski/613334/cmap_HighResolution_636422401_636681601_4FGL_J0957.8+3423_daily_bin1532.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=149.471 yref=34.3975 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0885       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .48427E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.041       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.687       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.888       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .95569       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7125       1.0000         .10000E-03   10000.    
    16 'norm      '    10.188       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.719       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.7916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.594       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.059       1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.544       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .92063       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90530       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=   5124.253     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3498 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0775        .13337E-07** at limit **
   2  Prefactor     15.017        15.785        .10257E-06    .35422E-04
   3  Prefactor     .10000E-03    .69360       -.10752E-08** at limit **
   4  norm          .10000E-03    .60523        .24632E-07** at limit **
   5  Prefactor     .10001E-03    6.0031       -.52416E-06** at limit **
   6  norm          4.0898        5.6682        .25821E-06   -.18693E-04
   7  Prefactor     .10000E-03    .54685       -.14205E-08** at limit **
   8  Prefactor     .10000E-03    2.3282        .24576E-06** at limit **
   9  norm          .10000E-03    20.185        .17260E-05** at limit **
  10  Prefactor     23.062        30.247        .33308E-05    .31367E-03
  11  Prefactor     20.693        29.782        .16035E-05   -.15610E-04
  12  Prefactor     33.873        50.687       -.22600E-05   -.16063E-03
  13  Prefactor     .95479        6.2093        .31915E-06   -.20500E-03
  14  Prefactor     .10000E-03    5.1031       -.40698E-07** at limit **
  15  Prefactor     2.7139        2.2102       -.58609E-07   -.63737E-04
  16  norm          10.187        9.6523        .11351E-05   -.24150E-03
  17  Prefactor     .10000E-03    1.3538       -.13077E-07** at limit **
  18  Prefactor     26.710        39.947       -.41563E-05   -.15224E-03
  19  Prefactor     .10000E-03    2.3797       -.24499E-07** at limit **
  20  norm          5.7942        10.986        .49086E-05   -.33583E-03
  21  Prefactor     .10000E-03    34.126        .65030E-06** at limit **
  22  Prefactor     29.602        26.963        .61979E-06    .13832E-03
  23  Prefactor     .10000E-03    2.4390       -.16537E-06** at limit **
  24  Prefactor     .10000E-03    4.8335        .32928E-06** at limit **
  25  Prefactor     21.064        35.861        .32291E-06    .52041E-04
  26  Prefactor     31.546        29.801        .50235E-06    .34458E-04
  27  Normalizat    .91998        .17144       -.46945E-06   -.33561E-04
  28  Prefactor     .90606        .19095       -.10684E-05   -.11745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.0169
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 4.08977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.0624
  Prefactor  = 20.6926
  Prefactor  = 33.8732
  Prefactor  = 0.954792
  Prefactor  = 0.0001
  Prefactor  = 2.71386
  norm       = 10.1873
  Prefactor  = 0.0001
  Prefactor  = 26.7101
  Prefactor  = 0.0001
  norm       = 5.7942
  Prefactor  = 0.0001
  Prefactor  = 29.602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.064
  Prefactor  = 31.5462
  Normalizat = 0.919981
  Prefactor  = 0.906057
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.253     FROM HESSE     STATUS=OK           519 CALLS     4017 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0804        .72558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.017        15.760        .10336E-03   -1.4933    
   3  Prefactor     .10000E-03    .69626        .58217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .60891        .54375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    23.671        .33456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0898        5.5822        .19041E-03   -1.5303    
   7  Prefactor     .10000E-03    .55093        .51675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3674        .10658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.532        .42346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.062        31.527        .83447E-04   -1.4747    
  11  Prefactor     20.693        29.531        .88062E-04   -1.4798    
  12  Prefactor     33.873        51.510        .68837E-04   -1.4543    
  13  Prefactor     .95479        11.834        .32570E-02   -1.5513    
  14  Prefactor     .10000E-03    5.1448        .15789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7139        2.2031        .91518E-04   -1.5378    
  16  norm          10.187        9.6663        .62768E-03   -1.5070    
  17  Prefactor     .10000E-03    1.3680        .81294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.710        40.158        .77501E-04   -1.4674    
  19  Prefactor     .10000E-03    2.4294        .10775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.7942        11.267        .83445E-03   -1.5226    
  21  Prefactor     .10000E-03    34.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.602        27.066        .73648E-04   -1.4619    
  23  Prefactor     .10000E-03    2.4909        .10911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.9743        .30618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.064        35.920        .87281E-04   -1.4790    
  26  Prefactor     31.546        29.808        .71342E-04   -1.4584    
  27  Normalizat    .91998        .20091        .22038E-03   -.95762    
  28  Prefactor     .90606        .22235        .26084E-03   -.95930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44727e-09
Minuit parameter uncertainties:
  1  1.21222e-06
  2  15.764
  3  5.69765e-07
  4  5.22993e-07
  5  0.000952046
  6  5.58289
  7  7.03365e-07
  8  5.45665e-06
  9  0.00014255
  10  31.5501
  11  29.5515
  12  51.5782
  13  6.72415
  14  4.39939e-06
  15  2.20316
  16  9.66775
  17  1.05946e-06
  18  40.1983
  19  2.1696e-08
  20  11.2714
  21  0.000147994
  22  27.0775
  23  1.10506e-05
  24  2.62958e-05
  25  35.957
  26  29.822
  27  0.201071
  28  0.222576
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.399e-06  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:  9.061e-01  2.226e-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.200e-01  2.011e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/613334/likelihoodResults_636422401_636681601_4FGL_J0957.8+3423_daily_bin1532.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) = 5124.25432408
delta logL = -0.000925906884731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5124.25339824
delta logL = -6.22976585873e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1759       1.0000          .0000       10.000    
     3 'Normalizat'    .91995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90611       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=   5124.253     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    188.63        .90712E-02** at limit **
   2  Index         2.1876        5.4570        .50000       -.19593E-04
   3  Normalizat    .91998        .25619E-01    .45156E-01    .29712E-04
   4  Prefactor     .90606        .30263E-01    .45083E-01    .22957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18762
  Normalizat = 0.919981
  Prefactor  = 0.906057
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.253     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1235.7        .15871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1876        7.9243        .50000       -.59738    
   3  Normalizat    .91998        .17357        .22038E-03   -.95762    
   4  Prefactor     .90606        .20475        .26084E-03   -.95930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.03454e-08
Minuit parameter uncertainties:
  1  8.69297e-05
  2  65.1659
  3  0.173675
  4  0.204919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613334': 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) = 5124.25339807
delta logL = 1.08241692942e-07

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  8.693e-05  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.188e+00  6.517e+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:  9.061e-01  2.049e-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.200e-01  1.737e-01  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/613334/cmap_HighResolution_636422401_636681601_4FGL_J0957.8+3423_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-01 07:51:55.201186', job_id='613334', GAL2='0.91', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630507915.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1532' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 613334: <4FGL_J0957.8+3423_daily_bin1532> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1532> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep  1 07:36:17 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:36:19 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:36:19 2021
Terminated at Wed Sep  1 07:51:56 2021
Results reported at Wed Sep  1 07:51:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1532 149.471 34.3975 636422401 636681601 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 :                                   711.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            939 sec.

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

