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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1508
RA = 149.606, Dec = 50.7
tmin = 630201601, tmax = 630460801
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='636247', job_status='RUN', time_executed='2021-09-01 08:49:58.241691', time_epoch_executed='1630511398.24' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636247

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636247/ft1_4FGL_J0958.4+5042_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636247/ft1_4FGL_J0958.4+5042_daily_bin1508.fits outfile=/scratch/kocevski/636247/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1508.fits ra=149.606 dec=50.7 rad=12.0 tmin=630201601.0 tmax=630460801.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.21
user 3.53
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.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/636247/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1508.fits evtable="EVENTS" outfile="/scratch/kocevski/636247/ft1_filtered_4FGL_J0958.4+5042_daily_bin1508.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.43
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636247/ft1_filtered_4FGL_J0958.4+5042_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/636247/ltcube_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.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/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits
.....................!
real 15.10
user 14.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636247/ft1_filtered_4FGL_J0958.4+5042_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/636247/ltcube_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.fits outfile=/scratch/kocevski/636247/expmap_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.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/636247/ltcube_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.fits
.....................!
real 191.36
user 186.44
sys 4.21

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 231 point sources and 0 extended sources

Setting source of interest to:
4FGL J0958.4+5042 @ 149.606 50.7

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/636247/ft1_filtered_4FGL_J0958.4+5042_daily_bin1508.fits scfile=/scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits outfile=/scratch/kocevski/636247/cmap_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.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.606 yref=50.7 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636247/ft1_filtered_4FGL_J0958.4+5042_daily_bin1508.fits scfile=/scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits outfile=/scratch/kocevski/636247/cmap_HighResolution_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.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.606 yref=50.7 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.82
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636247/ft1_filtered_4FGL_J0958.4+5042_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636247/Model_4FGL_J0958.4+5042_daily_bin1508.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/636247/ft1_filtered_4FGL_J0958.4+5042_daily_bin1508.fits......................!
real 29.52
user 27.09
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636247/ft1_filtered_4FGL_J0958.4+5042_daily_bin1508.fits', '/scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits', expMap='/scratch/kocevski/636247/expmap_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.fits', expCube='/scratch/kocevski/636247/ltcube_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636247/Model_4FGL_J0958.4+5042_daily_bin1508.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0958.4+5042'

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.235e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/636247/ft1_filtered_4FGL_J0958.4+5042_daily_bin1508.fits
Spacecraft file(s): /scratch/kocevski/636247/ft2_4FGL_J0958.4+5042_daily_bin1508.fits
Exposure map: /scratch/kocevski/636247/expmap_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.fits
Exposure cube: /scratch/kocevski/636247/ltcube_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636247/Model_4FGL_J0958.4+5042_daily_bin1508.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) = 2376.58105659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.093       1.0000         .10000E-03   10000.    
     2 'norm      '    14.571       1.0000         .10000E-03   10000.    
     3 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8393       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5296       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6834       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2182       1.0000         .10000E-03   10000.    
    23 'norm      '    10.461       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2883       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.4781       1.0000         .10000E-03   10000.    
    27 'Prefactor '    58.593       1.0000         .10000E-03   10000.    
    28 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .18796E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    1.4471       1.0000         .10000E-03   10000.    
    36 'Prefactor '    15.647       1.0000         .10000E-03   10000.    
    37 'Prefactor '    30.209       1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    .69323       1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.1722       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2376.564     FROM MIGRAD    STATUS=CONVERGED   1195 CALLS     6339 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.097        17.355        .24495E-06   -.24334E-04
   2  norm          14.573        12.222        .13522E-06   -.26819E-04
   3  norm          .10000E-03    5.6872        .15372E-06** at limit **
   4  Prefactor     .10000E-03    8.9425       -.13434E-05** at limit **
   5  Prefactor     1.8390        4.1617        .30645E-06   -.73221E-05
   6  Prefactor     .10000E-03    30.230        .22804E-05** at limit **
   7  Prefactor     .10000E-03    48.953       -.37732E-05** at limit **
   8  norm          .10000E-03    .69533        .32091E-07** at limit **
   9  Prefactor     8.5304        5.3109        .39562E-06   -.12933E-03
  10  Prefactor     .10000E-03    2.3716       -.29463E-06** at limit **
  11  Prefactor     .10000E-03    23.931       -.26989E-05** at limit **
  12  Prefactor     .35492        6.2959        .25621E-05   -.84330E-03
  13  Prefactor     .10000E-03    26.030        .68874E-06** at limit **
  14  Prefactor     .10000E-03    9.0548       -.84141E-06** at limit **
  15  norm          17.643        31.008        .70256E-05    .36590E-04
  16  Prefactor     12.089        51.293       -.19870E-04   -.60404E-04
  17  Prefactor     .10000E-03    5.8884       -.17292E-06** at limit **
  18  Prefactor     3.6766        12.674        .12010E-05   -.23490E-03
  19  norm          .10000E-03    7.8624        .69138E-06** at limit **
  20  Prefactor     .10000E-03    29.034        .15032E-05** at limit **
  21  Prefactor     .10000E-03    35.522       -.88867E-07** at limit **
  22  norm          1.2181        .78827       -.39071E-08   -.32504E-03
  23  norm          10.461        19.229        .11687E-05   -.26804E-04
  24  Prefactor     3.2914        12.353        .15975E-05   -.11659E-03
  25  Prefactor     .10000E-03    56.540       -.23644E-05** at limit **
  26  norm          8.4774        5.6989        .32892E-07   -.60131E-04
  27  Prefactor     58.598        57.181        .13518E-05   -.37470E-04
  28  norm          .10000E-03    9.4996        .16821E-05** at limit **
  29  Prefactor     .10000E-03    43.187        .45877E-06** at limit **
  30  Prefactor     .10000E-03    2.6213       -.15058E-06** at limit **
  31  norm          .10000E-03    2.1861        .59586E-06** at limit **
  32  norm          .10000E-03    1.2725        .75815E-06** at limit **
  33  Prefactor     .10000E-03    105.65        .78970E-06** at limit **
  34  Prefactor     .10000E-03    88.541        .57646E-05** at limit **
  35  norm          1.4286        6.4871        .65626E-05    .15751E-04
  36  Prefactor     15.670        83.201        .87339E-05    .14665E-06
  37  Prefactor     30.447        99.575       -.65475E-05    .33233E-05
  38  Prefactor     .10000E-03    87.645        .59529E-05** at limit **
  39  Normalizat    .69265        .25903       -.96735E-05   -.14883E-03
  40  Prefactor     1.1729        .31226        .45810E-05   -.33571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0967
  norm       = 14.5733
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.83899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.53043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.354917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6434
  Prefactor  = 12.0886
  Prefactor  = 0.0001
  Prefactor  = 3.67661
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.21815
  norm       = 10.4607
  Prefactor  = 3.29144
  Prefactor  = 0.000100001
  norm       = 8.47738
  Prefactor  = 58.5977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.42858
  Prefactor  = 15.6697
  Prefactor  = 30.4465
  Prefactor  = 0.0001
  Normalizat = 0.69265
  Prefactor  = 1.17287
 **********
 **   18 **HESSE 
 **********

 FCN=   2376.564     FROM HESSE     STATUS=OK           977 CALLS     7316 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.097        17.355        .96875E-04   -1.4881    
   2  norm          14.573        12.211        .10493E-03   -1.4944    
   3  norm          .10000E-03    5.7023        .11353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9467        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8390        4.1359        .14254E-03   -1.5437    
   6  Prefactor     .10000E-03    30.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .94066        .69674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5304        4.6840        .74935E-04   -1.5124    
  10  Prefactor     .10000E-03    2.4367        .14653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .35492        28.437        .21562E-02   -1.5589    
  13  Prefactor     .10000E-03    26.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0556        .14329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.643        31.205        .95394E-04   -1.4868    
  16  Prefactor     12.089        53.122        .11488E-03   -1.5012    
  17  Prefactor     .10000E-03    5.8945        .11554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6766        12.302        .21044E-03   -1.5324    
  19  norm          .10000E-03    7.8661        .13353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2181        .79393        .33746E-04   -1.5487    
  23  norm          10.461        19.185        .12388E-03   -1.5061    
  24  Prefactor     3.2914        12.078        .22328E-03   -1.5345    
  25  Prefactor     .10000E-03    56.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.4774        5.6870        .89782E-04   -1.5126    
  27  Prefactor     58.598        57.168        .52412E-04   -1.4175    
  28  norm          .10000E-03    9.5539        .14689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    43.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.6293        .77059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.1973        .70403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    1.2775        .53649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    105.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    88.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          1.4286        6.5913        .13675E-03   -1.5469    
  36  Prefactor     15.670        83.097        .10125E-03   -1.4916    
  37  Prefactor     30.447        100.06        .72897E-04   -1.4604    
  38  Prefactor     .10000E-03    87.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    .69265        .29601        .25113E-03   -1.0418    
  40  Prefactor     1.1729        .36313        .25738E-03   -.87170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42515e-09
Minuit parameter uncertainties:
  1  17.3603
  2  12.2129
  3  6.9768e-06
  4  1.52149e-05
  5  4.13652
  6  9.06256e-05
  7  0.000104699
  8  8.7753e-07
  9  4.68425
  10  1.84761e-05
  11  5.58754e-05
  12  6.35604
  13  1.7374e-05
  14  8.26746e-06
  15  31.2343
  16  50.7576
  17  7.38657e-06
  18  12.3104
  19  1.05978e-05
  20  0.000276817
  21  3.57388e-05
  22  0.79394
  23  19.1964
  24  12.0869
  25  0.000393325
  26  5.68739
  27  57.2216
  28  6.46677e-05
  29  1.05573e-05
  30  1.3759e-05
  31  3.70055e-06
  32  4.48973e-06
  33  0.000136091
  34  4.4101e-05
  35  6.13807
  36  72.3265
  37  100.622
  38  0.000286323
  39  0.296692
  40  0.363902
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  3.291e+00  1.209e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.173e+00  3.639e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  6.926e-01  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 149.606 50.700
Photon Flux Upper Limit: 1.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636247/likelihoodResults_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2376.5376371
delta logL = 0.0261047411354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2376.53519357
delta logL = 0.0285482694312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7943       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0682       1.0000          .0000       10.000    
     3 'Normalizat'    .68560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+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=   2376.535     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7956        9.7805        .20187E-03   -.47686E-03
   2  Index         3.0689        1.8562        .11128E-01   -.75522E-04
   3  Normalizat    .68572        .27461        .25225E-03    .36845E-03
   4  Prefactor     1.1778        .35245        .25687E-03    .26180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.79559
  Index      = 3.06888
  Normalizat = 0.685715
  Prefactor  = 1.17775
 **********
 **   18 **HESSE 
 **********

 FCN=   2376.535     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7956        8.9693        .80748E-05   -1.5374    
   2  Index         3.0689        1.7097        .44511E-03   -.39654    
   3  Normalizat    .68572        .27492        .50449E-04   -1.0446    
   4  Prefactor     1.1778        .35277        .51375E-04   -.87019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41678e-09
Minuit parameter uncertainties:
  1  8.97363
  2  1.75145
  3  0.275478
  4  0.353477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636247': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2376.53519294
delta logL = 0.028548900556

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  2.796e+00  8.974e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.069e+00  1.751e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.178e+00  3.535e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  6.857e-01  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 149.606 50.700

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/636247/cmap_HighResolution_630201601_630460801_4FGL_J0958.4+5042_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', job_status='DONE', photon_flux_upper_limit='1.89e-07', time_completed='2021-09-01 09:02:58.217292', job_id='636247', GAL2='1.18', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630512178.22', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.85e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1508' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:02:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 636247: <4FGL_J0958.4+5042_daily_bin1508> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1508> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep  1 08:46:35 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08:46:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 08:46:58 2021
Terminated at Wed Sep  1 09:02:58 2021
Results reported at Wed Sep  1 09:02:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1508 149.606 50.7 630201601 630460801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.4+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            983 sec.

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

