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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin778
RA = 150.294, Dec = 29.188
tmin = 440985601, tmax = 441244801
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='659305', job_status='RUN', time_executed='2021-09-01 10:03:45.240803', time_epoch_executed='1630515825.24' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659305

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659305/ft1_4FGL_J1001.1+2911_daily_bin778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659305/ft2_4FGL_J1001.1+2911_daily_bin778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659305/ft1_4FGL_J1001.1+2911_daily_bin778.fits outfile=/scratch/kocevski/659305/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin778.fits ra=150.294 dec=29.188 rad=12.0 tmin=440985601.0 tmax=441244801.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.46
user 3.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659305/ft2_4FGL_J1001.1+2911_daily_bin778.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/659305/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin778.fits evtable="EVENTS" outfile="/scratch/kocevski/659305/ft1_filtered_4FGL_J1001.1+2911_daily_bin778.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659305/ft1_filtered_4FGL_J1001.1+2911_daily_bin778.fits" evtable="EVENTS" scfile=/scratch/kocevski/659305/ft2_4FGL_J1001.1+2911_daily_bin778.fits sctable="SC_DATA" outfile=/scratch/kocevski/659305/ltcube_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.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/659305/ft2_4FGL_J1001.1+2911_daily_bin778.fits
.....................!
real 12.02
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659305/ft1_filtered_4FGL_J1001.1+2911_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/659305/ft2_4FGL_J1001.1+2911_daily_bin778.fits sctable="SC_DATA" expcube=/scratch/kocevski/659305/ltcube_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.fits outfile=/scratch/kocevski/659305/expmap_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.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/659305/ltcube_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.fits
.....................!
real 190.14
user 184.92
sys 4.81

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/659305/ft1_filtered_4FGL_J1001.1+2911_daily_bin778.fits scfile=/scratch/kocevski/659305/ft2_4FGL_J1001.1+2911_daily_bin778.fits outfile=/scratch/kocevski/659305/cmap_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659305/ft1_filtered_4FGL_J1001.1+2911_daily_bin778.fits scfile=/scratch/kocevski/659305/ft2_4FGL_J1001.1+2911_daily_bin778.fits outfile=/scratch/kocevski/659305/cmap_HighResolution_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659305/ft1_filtered_4FGL_J1001.1+2911_daily_bin778.fits', '/scratch/kocevski/659305/ft2_4FGL_J1001.1+2911_daily_bin778.fits', expMap='/scratch/kocevski/659305/expmap_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.fits', expCube='/scratch/kocevski/659305/ltcube_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659305/Model_4FGL_J1001.1+2911_daily_bin778.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/659305/ft1_filtered_4FGL_J1001.1+2911_daily_bin778.fits
Spacecraft file(s): /scratch/kocevski/659305/ft2_4FGL_J1001.1+2911_daily_bin778.fits
Exposure map: /scratch/kocevski/659305/expmap_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.fits
Exposure cube: /scratch/kocevski/659305/ltcube_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659305/Model_4FGL_J1001.1+2911_daily_bin778.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) = 6511.0346402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0312       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5461       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16572E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.964       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.824       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9022       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29167E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2928       1.0000         .10000E-03   10000.    
    16 'norm      '    9.3800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2274       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.449       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76121       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3471       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=   6511.030     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3186 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0315        4.2272        .91702E-07   -.23243E-03
   2  norm          .10000E-03    .47436        .21532E-08** at limit **
   3  Prefactor     .10000E-03    19.703       -.31305E-07** at limit **
   4  Prefactor     6.5465        4.0247       -.26068E-07   -.48730E-04
   5  Prefactor     .10000E-03    10.265       -.45920E-07** at limit **
   6  Prefactor     .10000E-03    13.138        .47821E-07** at limit **
   7  Prefactor     .10000E-03    23.783        .31780E-06** at limit **
   8  Prefactor     31.962        40.396        .13317E-05    .38898E-04
   9  Prefactor     1.1856        3.7973        .16705E-06   -.30227E-03
  10  Prefactor     12.826        11.470       -.23243E-05   -.31165E-03
  11  Prefactor     1.9015        2.8600        .10906E-06   -.21897E-03
  12  norm          .10000E-03    8.8775        .75492E-07** at limit **
  13  Prefactor     .10000E-03    1.7940       -.10137E-07** at limit **
  14  Prefactor     .10004E-03    37.458        .31610E-07** at limit **
  15  Prefactor     1.2934        3.8679        .16533E-06   -.28820E-03
  16  norm          9.3801        8.2279       -.23146E-06   -.39625E-04
  17  Prefactor     6.1296        65.794       -.73700E-06   -.61269E-05
  18  Prefactor     .10000E-03    33.883       -.47130E-06** at limit **
  19  Prefactor     6.2273        4.1903        .59313E-06   -.18436E-02
  20  Prefactor     24.447        9.3595       -.68037E-06   -.28125E-03
  21  Prefactor     .10000E-03    1.1691        .81200E-07** at limit **
  22  Prefactor     .10000E-03    8.5106       -.20584E-07** at limit **
  23  Normalizat    .76114        .17474        .74805E-06   -.89655E-04
  24  Prefactor     1.3471        .18417       -.45085E-06   -.55420E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03148
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.54651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 31.9625
  Prefactor  = 1.1856
  Prefactor  = 12.8259
  Prefactor  = 1.90148
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 1.29345
  norm       = 9.38013
  Prefactor  = 6.12965
  Prefactor  = 0.0001
  Prefactor  = 6.22729
  Prefactor  = 24.447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.761138
  Prefactor  = 1.34713
 **********
 **   18 **HESSE 
 **********

 FCN=   6511.030     FROM HESSE     STATUS=OK           415 CALLS     3601 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0315        4.2564        .23307E-03   -1.5423    
   2  norm          .10000E-03    .47599        .54259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5465        4.0310        .12103E-03   -1.5196    
   5  Prefactor     .10000E-03    10.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    235.96        .76221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.962        40.465        .70872E-04   -1.4577    
   9  Prefactor     1.1856        3.8015        .27493E-03   -1.5490    
  10  Prefactor     12.826        11.773        .11185E-03   -1.4992    
  11  Prefactor     1.9015        2.8476        .15592E-03   -1.5432    
  12  norm          .10000E-03    9.0670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8090        .10523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    36.790        .13800       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2934        3.8219        .25424E-03   -1.5481    
  16  norm          9.3801        8.2256        .13085E-03   -1.5095    
  17  Prefactor     6.1296        65.789        .16215E-03   -1.5213    
  18  Prefactor     .10000E-03    34.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.2273        6.0336        .80432E-03   -1.5209    
  20  Prefactor     24.447        9.4169        .81013E-04   -1.4719    
  21  Prefactor     .10000E-03    1.9762        .16824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .76114        .20723        .27619E-03   -1.0153    
  24  Prefactor     1.3471        .22013        .23859E-03   -.81916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34044e-09
Minuit parameter uncertainties:
  1  4.25707
  2  7.92951e-08
  3  5.1028e-06
  4  4.03112
  5  3.64027e-06
  6  2.65549e-07
  7  0.00160392
  8  40.5
  9  3.80232
  10  11.7755
  11  2.84783
  12  9.50367e-07
  13  5.99927e-06
  14  0.00252068
  15  3.82263
  16  8.22655
  17  40.2192
  18  3.83789e-05
  19  6.03417
  20  9.41747
  21  1.59285e-05
  22  1.89146e-06
  23  0.207449
  24  0.22028
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.901e+00  2.848e+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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.347e+00  2.203e-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:  7.611e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659305/likelihoodResults_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.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) = 6510.92649498
delta logL = 0.103119319153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.90225022
delta logL = 0.127364078171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3160       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8216       1.0000          .0000       10.000    
     3 'Normalizat'    .73620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3653       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.

 FCN=   6510.902     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      224 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3119        33.525        .95982E-02    .10071E-02
   2  Index         2.8225        6.3955        .15542        .10621E-03
   3  Normalizat    .73629        .41528E-01    .63406E-01   -.16207E-04
   4  Prefactor     1.3652        .45361E-01    .53663E-01   -.97887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31187
  Index      = 2.82255
  Normalizat = 0.736294
  Prefactor  = 1.36523
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.902     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3119        4.1048        .10391E-03   -1.5479    
   2  Index         2.8225        1.9115        .90318E-02   -.45058    
   3  Normalizat    .73629        .21009        .28050E-03   -1.0248    
   4  Prefactor     1.3652        .22932        .23726E-03   -.81388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70326e-11
Minuit parameter uncertainties:
  1  4.10565
  2  1.97417
  3  0.210317
  4  0.22949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659305': 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) = 6510.90224864
delta logL = 0.127365656034

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.312e+00  4.106e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.823e+00  1.974e+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.365e+00  2.295e-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:  7.363e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/659305/cmap_HighResolution_440985601_441244801_4FGL_J1001.1+2911_daily_bin778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-01 10:15:36.898727', job_id='659305', GAL2='1.37', fit_tolerance='1e-08', EG2='0.74', EG='0.76', time_epoch_completed='1630516536.9', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='1.27e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='778' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 659305: <4FGL_J1001.1+2911_daily_bin778> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin778> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:30 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:00:31 2021
Terminated at Wed Sep  1 10:15:37 2021
Results reported at Wed Sep  1 10:15:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin778 150.294 29.188 440985601 441244801 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 :                                   710.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

