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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin248
RA = 150.294, Dec = 29.188
tmin = 303609601, tmax = 303868801
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='654855', job_status='RUN', time_executed='2021-09-01 09:48:35.316681', time_epoch_executed='1630514915.32' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654855

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654855/ft1_4FGL_J1001.1+2911_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654855/ft2_4FGL_J1001.1+2911_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654855/ft1_4FGL_J1001.1+2911_daily_bin248.fits outfile=/scratch/kocevski/654855/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin248.fits ra=150.294 dec=29.188 rad=12.0 tmin=303609601.0 tmax=303868801.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.40
user 3.20
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654855/ft1_filtered_4FGL_J1001.1+2911_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/654855/ft2_4FGL_J1001.1+2911_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/654855/ltcube_303609601_303868801_4FGL_J1001.1+2911_daily_bin248.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/654855/ft2_4FGL_J1001.1+2911_daily_bin248.fits
.....................!
real 11.94
user 11.53
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654855/ft1_filtered_4FGL_J1001.1+2911_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/654855/ft2_4FGL_J1001.1+2911_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/654855/ltcube_303609601_303868801_4FGL_J1001.1+2911_daily_bin248.fits outfile=/scratch/kocevski/654855/expmap_303609601_303868801_4FGL_J1001.1+2911_daily_bin248.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/654855/ltcube_303609601_303868801_4FGL_J1001.1+2911_daily_bin248.fits
.....................!
real 192.69
user 187.09
sys 3.98

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/654855/ft1_filtered_4FGL_J1001.1+2911_daily_bin248.fits scfile=/scratch/kocevski/654855/ft2_4FGL_J1001.1+2911_daily_bin248.fits outfile=/scratch/kocevski/654855/cmap_303609601_303868801_4FGL_J1001.1+2911_daily_bin248.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.91
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654855/ft1_filtered_4FGL_J1001.1+2911_daily_bin248.fits scfile=/scratch/kocevski/654855/ft2_4FGL_J1001.1+2911_daily_bin248.fits outfile=/scratch/kocevski/654855/cmap_HighResolution_303609601_303868801_4FGL_J1001.1+2911_daily_bin248.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 4.86
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.442       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.129       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1509       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.514       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5538       1.0000         .10000E-03   10000.    
    12 'norm      '    25.823       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6710       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32706E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6610       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3078       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3140       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83131       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=   5893.911     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2706 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.9327        .12634E-06** at limit **
   2  norm          .10000E-03    1.0246       -.13965E-06** at limit **
   3  Prefactor     42.490        65.037        .70565E-04    .18164E-04
   4  Prefactor     .10000E-03    3.1378       -.10525E-05** at limit **
   5  Prefactor     .10000E-03    7.8665        .14771E-05** at limit **
   6  Prefactor     52.118        66.403       -.14749E-04    .93716E-05
   7  Prefactor     5.1496        37.424       -.57755E-05   -.15887E-04
   8  Prefactor     54.495        60.274       -.25857E-04    .13309E-04
   9  Prefactor     11.688        8.5002       -.45438E-06    .21311E-04
  10  Prefactor     .10000E-03    3.4588        .48708E-07** at limit **
  11  Prefactor     1.5538        1.5642        .25358E-07    .34257E-03
  12  norm          25.823        11.440        .37779E-06    .12739E-03
  13  Prefactor     9.6712        5.5964        .15545E-06    .20804E-03
  14  Prefactor     23.318        36.498       -.26375E-04    .66156E-05
  15  Prefactor     .10000E-03    3.1177        .25088E-06** at limit **
  16  norm          2.6604        6.1856       -.69407E-06   -.32199E-03
  17  Prefactor     1.2833        708.52       -.20763E-03    .20028E-04
  18  Prefactor     .10000E-03    7.6382       -.10179E-05** at limit **
  19  Prefactor     .10000E-03    1.2797       -.17279E-08** at limit **
  20  Prefactor     .10000E-03    3.1984        .16789E-06** at limit **
  21  Prefactor     .10000E-03    1.6247        .68161E-07** at limit **
  22  Prefactor     .10000E-03    7.5703       -.18757E-05** at limit **
  23  Normalizat    1.3141        .18472        .35614E-05    .46319E-03
  24  Prefactor     .83138        .19267       -.25227E-06    .54036E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 42.4897
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 52.1182
  Prefactor  = 5.14959
  Prefactor  = 54.4946
  Prefactor  = 11.688
  Prefactor  = 0.0001
  Prefactor  = 1.55378
  norm       = 25.8235
  Prefactor  = 9.67118
  Prefactor  = 23.318
  Prefactor  = 0.000100001
  norm       = 2.66041
  Prefactor  = 1.2833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31406
  Prefactor  = 0.831379
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.911     FROM HESSE     STATUS=OK           399 CALLS     3105 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.8222        .25509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0686        .15168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.490        64.847        .61534E-04   -1.4403    
   4  Prefactor     .10000E-03    3.2003        .13275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.118        66.432        .55549E-04   -1.4263    
   7  Prefactor     5.1496        37.544        .17714E-03   -1.5254    
   8  Prefactor     54.495        60.349        .54326E-04   -1.4230    
   9  Prefactor     11.688        8.4964        .11717E-03   -1.5024    
  10  Prefactor     .10000E-03    3.4699        .13943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5538        1.5738        .93196E-04   -1.5459    
  12  norm          25.823        11.438        .78832E-04   -1.4691    
  13  Prefactor     9.6712        4.9790        .11507E-03   -1.5086    
  14  Prefactor     23.318        36.544        .82926E-04   -1.4742    
  15  Prefactor     .10000E-03    13.438        .22869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6604        6.1595        .24987E-03   -1.5382    
  17  Prefactor     1.2833        741.57        .38578E-02   -1.5481    
  18  Prefactor     .10000E-03    7.6395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2823        .84807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2159        .13406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2137        .18914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.5721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3141        .21798        .22616E-03   -.83148    
  24  Prefactor     .83138        .22640        .29803E-03   -.98582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94997e-09
Minuit parameter uncertainties:
  1  0.000402476
  2  1.34686e-05
  3  64.9551
  4  0.00010937
  5  2.36711e-05
  6  66.5269
  7  27.8336
  8  60.4166
  9  8.49732
  10  5.49448e-06
  11  1.57386
  12  11.4389
  13  4.97924
  14  36.5786
  15  0.000229417
  16  6.16096
  17  62.489
  18  1.47118e-08
  19  4.3142e-07
  20  2.67068e-06
  21  3.14987e-05
  22  6.47663e-06
  23  0.218134
  24  0.226657
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.554e+00  1.574e+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:  8.314e-01  2.267e-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:  1.314e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.73
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.07e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 8.26e-06 +/- 8.36e-06

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

Saving results to:
/scratch/kocevski/654855/likelihoodResults_303609601_303868801_4FGL_J1001.1+2911_daily_bin248.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) = 5893.21814707
delta logL = 0.692523990269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5893.13346974
delta logL = 0.777201323808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91756       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2617       1.0000          .0000       10.000    
     3 'Normalizat'    1.3306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82303       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=   5893.133     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91741        .92734        .12871E-01   -.38943E-03
   2  Index         1.2616        .45601        .25364       -.55798E-04
   3  Normalizat    1.3306        .17555        .50885E-01    .17748E-05
   4  Prefactor     .82303        .18964        .67669E-01    .18053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.917409
  Index      = 1.26155
  Normalizat = 1.33062
  Prefactor  = 0.82303
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.133     FROM HESSE     STATUS=OK            35 CALLS      253 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91741        1.2674        .70005E-03   -1.5516    
   2  Index         1.2616        .66531        .99600E-02   -.84458    
   3  Normalizat    1.3306        .20680        .22497E-03   -.82657    
   4  Prefactor     .82303        .22312        .29938E-03   -.98885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0797e-09
Minuit parameter uncertainties:
  1  1.26742
  2  0.669844
  3  0.20693
  4  0.223364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654855': 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) = 5893.13346973
delta logL = 0.777201335703

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  9.174e-01  1.267e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.262e+00  6.698e-01  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:  8.230e-01  2.234e-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:  1.331e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.28
Ra Dec: 150.294 29.188
Photon Index (Free Index): 1.26 +/- 0.67
Photon Flux (Free Index): 5.09e-09 +/- 6.58e-09
Energy Flux (Free Index): 3.52e-05 +/- 5.85e-05

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/654855/cmap_HighResolution_303609601_303868801_4FGL_J1001.1+2911_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', comment='SUCCESS', photon_flux='2.07e-08', energy_flux2='3.52e-05', photon_flux_error='2.10e-08', dlogl='7.77e-01', energy_flux='8.26e-06', photon_flux2='5.09e-09', job_status='DONE', time_completed='2021-09-01 09:59:39.665412', photon_index_error2='0.67', photon_index2='1.26', ts='3.73', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='8.46e-08', energy_flux_error2='5.85e-05', EG='1.31', time_epoch_completed='1630515579.67', return_code='0', job_id='654855', GAL2='0.82', EG2='1.33', return_code2='0', energy_flux_error='8.36e-06', photon_flux_error2='6.58e-09', ts2='5.28', photon_index='2.27' WHERE bin_id='248' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:59:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 654855: <4FGL_J1001.1+2911_daily_bin248> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin248> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:46:13 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:46:14 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:46:14 2021
Terminated at Wed Sep  1 09:59:40 2021
Results reported at Wed Sep  1 09:59:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin248 150.294 29.188 303609601 303868801 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 :                                   648.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

