/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 45 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 = 7376
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin417
RA = 150.294, Dec = 29.188
tmin = 347414401, tmax = 347673601
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='656215', job_status='RUN', time_executed='2021-09-01 09:53:17.589828', time_epoch_executed='1630515197.59' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656215/ft1_4FGL_J1001.1+2911_daily_bin417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656215/ft1_4FGL_J1001.1+2911_daily_bin417.fits outfile=/scratch/kocevski/656215/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin417.fits ra=150.294 dec=29.188 rad=12.0 tmin=347414401.0 tmax=347673601.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 3.54
user 3.25
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.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/656215/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin417.fits evtable="EVENTS" outfile="/scratch/kocevski/656215/ft1_filtered_4FGL_J1001.1+2911_daily_bin417.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.66
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656215/ft1_filtered_4FGL_J1001.1+2911_daily_bin417.fits" evtable="EVENTS" scfile=/scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits sctable="SC_DATA" outfile=/scratch/kocevski/656215/ltcube_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.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/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits
.....................!
real 13.59
user 12.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656215/ft1_filtered_4FGL_J1001.1+2911_daily_bin417.fits evtable="EVENTS" scfile=/scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits sctable="SC_DATA" expcube=/scratch/kocevski/656215/ltcube_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.fits outfile=/scratch/kocevski/656215/expmap_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.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/656215/ltcube_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.fits
.....................!
real 199.40
user 186.34
sys 3.72

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

Setting source of interest to:
4FGL J1001.1+2911 @ 150.294 29.188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/656215/ft1_filtered_4FGL_J1001.1+2911_daily_bin417.fits scfile=/scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits outfile=/scratch/kocevski/656215/cmap_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.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=150.294 yref=29.188 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656215/ft1_filtered_4FGL_J1001.1+2911_daily_bin417.fits scfile=/scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits outfile=/scratch/kocevski/656215/cmap_HighResolution_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.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=150.294 yref=29.188 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/656215/ft1_filtered_4FGL_J1001.1+2911_daily_bin417.fits evtable="EVENTS" scfile=/scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/656215/Model_4FGL_J1001.1+2911_daily_bin417.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/656215/ft1_filtered_4FGL_J1001.1+2911_daily_bin417.fits.....................!
real 51.25
user 49.64
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/656215/ft1_filtered_4FGL_J1001.1+2911_daily_bin417.fits', '/scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits', expMap='/scratch/kocevski/656215/expmap_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.fits', expCube='/scratch/kocevski/656215/ltcube_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/656215/Model_4FGL_J1001.1+2911_daily_bin417.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1001.1+2911'

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.010e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/656215/ft1_filtered_4FGL_J1001.1+2911_daily_bin417.fits
Spacecraft file(s): /scratch/kocevski/656215/ft2_4FGL_J1001.1+2911_daily_bin417.fits
Exposure map: /scratch/kocevski/656215/expmap_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.fits
Exposure cube: /scratch/kocevski/656215/ltcube_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/656215/Model_4FGL_J1001.1+2911_daily_bin417.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) = 5785.27369296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .76828       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5054       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34889       1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.687       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0092       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21950E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4124       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92734       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5785.230     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2768 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0033       -.22821E-07** at limit **
   2  norm          .76799        1.2363       -.65888E-06   -.55521E-03
   3  Prefactor     .10000E-03    22.599       -.77706E-06** at limit **
   4  Prefactor     .10000E-03    1.3456        .32717E-07** at limit **
   5  Prefactor     .10000E-03    7.5330       -.19012E-08** at limit **
   6  Prefactor     .10000E-03    22.330        .13430E-06** at limit **
   7  Prefactor     .10000E-03    18.473        .18712E-05** at limit **
   8  Prefactor     12.150        56.717        .79726E-06   -.12781E-04
   9  Prefactor     2.5056        3.8351       -.18829E-06    .11833E-03
  10  Prefactor     15.289        11.680       -.22245E-06    .39601E-04
  11  Prefactor     .10000E-03    .81732       -.52716E-07** at limit **
  12  norm          .10000E-03    2.1546        .10084E-08** at limit **
  13  Prefactor     .34457        2.4358        .72489E-07    .90915E-04
  14  Prefactor     71.092        44.049       -.70258E-06    .66069E-04
  15  Prefactor     .10000E-03    1.1643        .17183E-07** at limit **
  16  norm          16.685        9.6683        .62023E-08   -.21463E-04
  17  Prefactor     6.9009        100.18        .24510E-05   -.20239E-04
  18  Prefactor     .10000E-03    10.536       -.25512E-06** at limit **
  19  Prefactor     .10000E-03    2.0936       -.26252E-08** at limit **
  20  Prefactor     .10000E-03    16.270        .32590E-05** at limit **
  21  Prefactor     5.4113        2.7911        .82111E-07    .44275E-04
  22  Prefactor     .10000E-03    11.635        .42417E-06** at limit **
  23  Normalizat    .92743        .16724        .57693E-06   -.63685E-04
  24  Prefactor     1.0515        .18167        .18944E-06   -.15781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.767994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.1498
  Prefactor  = 2.50564
  Prefactor  = 15.2888
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.344574
  Prefactor  = 71.0922
  Prefactor  = 0.0001
  norm       = 16.6852
  Prefactor  = 6.90086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.41134
  Prefactor  = 0.0001
  Normalizat = 0.927433
  Prefactor  = 1.05148
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.230     FROM HESSE     STATUS=OK           401 CALLS     3169 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0059        .74402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76799        1.2149        .11937E-02   -1.5533    
   3  Prefactor     .10000E-03    22.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3680        .86124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.150        56.980        .11487E-03   -1.5011    
   9  Prefactor     2.5056        3.8122        .17768E-03   -1.5391    
  10  Prefactor     15.289        11.674        .10240E-03   -1.4926    
  11  Prefactor     .10000E-03    1.3789        .13294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1598        .10903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .34457        4.7510        .21913E-02   -1.5591    
  14  Prefactor     71.092        43.889        .23800E-03   -1.4020    
  15  Prefactor     .10000E-03    1.1685        .80074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.685        9.6727        .98045E-04   -1.4891    
  17  Prefactor     6.9009        99.712        .15153E-03   -1.5183    
  18  Prefactor     .10000E-03    10.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.1076        .10744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.291        .33562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4113        2.7293        .85782E-04   -1.5243    
  22  Prefactor     .10000E-03    11.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92743        .19265        .22894E-03   -.95503    
  24  Prefactor     1.0515        .21130        .24567E-03   -.91033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60924e-10
Minuit parameter uncertainties:
  1  4.40416e-07
  2  1.21492
  3  8.67524e-05
  4  5.67416e-07
  5  2.7295e-06
  6  2.60427e-05
  7  0.000207904
  8  52.7052
  9  3.81256
  10  11.6761
  11  4.40336e-06
  12  1.31028e-06
  13  2.55883
  14  43.9086
  15  2.19629e-06
  16  9.67359
  17  52.5688
  18  1.4904e-05
  19  3.90619e-06
  20  3.63347e-05
  21  2.72935
  22  4.58102e-05
  23  0.192798
  24  0.21147
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.403e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.051e+00  2.115e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  9.274e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 5.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656215/likelihoodResults_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.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) = 5785.23340109
delta logL = -0.00346168540182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5785.22993932
delta logL = 8.39536369313e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2881       1.0000          .0000       10.000    
     3 'Normalizat'    .92751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5785.230     FROM MIGRAD    STATUS=FAILED        92 CALLS      251 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    227.75        .14189E-02** at limit **
   2  Index         2.3089        5.2578        .50000       -.12655E-03
   3  Normalizat    .92743        .67404E-01    .22894E-03   -.10895E-03
   4  Prefactor     1.0515        .76762E-01    .24567E-03    .96254E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5785.230     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      411 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    227.75        .18664E-03** at limit **
   2  Index         2.3089        5.2578        .17355E-04   -.12655E-03
   3  Normalizat    .92743        .67404E-01    .53997E-06   -.10895E-03
   4  Prefactor     1.0515        .76762E-01    .41163E-06    .96254E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5785.078     FROM MIGRAD    STATUS=CONVERGED    159 CALLS      570 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56062E-02    1.0130        .10185E-04   -.30360E-03
   2  Index         5.3277        6.6490        .74694E-02    .18974E-04
   3  Normalizat    .89631        .15521        .18315E-05    .10180E-03
   4  Prefactor     1.0736        .17361        .19654E-05    .10296E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00560623
  Index      = 5.32771
  Normalizat = 0.896309
  Prefactor  = 1.07356
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.078     FROM HESSE     STATUS=OK            25 CALLS      595 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56062E-02    .13984        .40741E-06   -1.5723    
   2  Index         5.3277        4.0693        .29878E-03    .65589E-01
   3  Normalizat    .89631        .20966        .36631E-06   -.96590    
   4  Prefactor     1.0736        .23444        .39307E-06   -.90316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90564e-11
Minuit parameter uncertainties:
  1  0.0554979
  2  4.75874
  3  0.209848
  4  0.234669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656215': 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) = 5785.07757682
delta logL = 0.152362584679

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  5.606e-03  5.550e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  5.328e+00  4.759e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.074e+00  2.347e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  8.963e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 150.294 29.188

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/656215/cmap_HighResolution_347414401_347673601_4FGL_J1001.1+2911_daily_bin417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.32e-08', time_completed='2021-09-01 10:04:41.899355', job_id='656215', GAL2='1.07', fit_tolerance='1e-08', EG2='0.90', EG='0.93', time_epoch_completed='1630515881.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.52e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='417' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:04:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 656215: <4FGL_J1001.1+2911_daily_bin417> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin417> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:50:52 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:50:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 09:50:54 2021
Terminated at Wed Sep  1 10:04:42 2021
Results reported at Wed Sep  1 10:04:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin417 150.294 29.188 347414401 347673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1001.1+2911 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   669.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

