/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 35 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 = 7440
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin34
RA = 150.294, Dec = 29.188
tmin = 248140801, tmax = 248400001
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='654496', job_status='RUN', time_executed='2021-09-01 09:46:21.499912', time_epoch_executed='1630514781.5' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654496/ft1_4FGL_J1001.1+2911_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654496/ft2_4FGL_J1001.1+2911_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654496/ft1_4FGL_J1001.1+2911_daily_bin34.fits outfile=/scratch/kocevski/654496/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin34.fits ra=150.294 dec=29.188 rad=12.0 tmin=248140801.0 tmax=248400001.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 1.63
user 1.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654496/ft1_filtered_4FGL_J1001.1+2911_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/654496/ft2_4FGL_J1001.1+2911_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/654496/ltcube_248140801_248400001_4FGL_J1001.1+2911_daily_bin34.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/654496/ft2_4FGL_J1001.1+2911_daily_bin34.fits
.....................!
real 12.97
user 12.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654496/ft1_filtered_4FGL_J1001.1+2911_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/654496/ft2_4FGL_J1001.1+2911_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/654496/ltcube_248140801_248400001_4FGL_J1001.1+2911_daily_bin34.fits outfile=/scratch/kocevski/654496/expmap_248140801_248400001_4FGL_J1001.1+2911_daily_bin34.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/654496/ltcube_248140801_248400001_4FGL_J1001.1+2911_daily_bin34.fits
.....................!
real 190.23
user 185.11
sys 4.43

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/654496/ft1_filtered_4FGL_J1001.1+2911_daily_bin34.fits scfile=/scratch/kocevski/654496/ft2_4FGL_J1001.1+2911_daily_bin34.fits outfile=/scratch/kocevski/654496/cmap_248140801_248400001_4FGL_J1001.1+2911_daily_bin34.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654496/ft1_filtered_4FGL_J1001.1+2911_daily_bin34.fits scfile=/scratch/kocevski/654496/ft2_4FGL_J1001.1+2911_daily_bin34.fits outfile=/scratch/kocevski/654496/cmap_HighResolution_248140801_248400001_4FGL_J1001.1+2911_daily_bin34.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4540       1.0000         .10000E-03   10000.    
     2 'norm      '    .24559       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0007       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3857       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9044       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1750       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7715       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .88601       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13925E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91156       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1411       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=   7513.212     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2778 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4539        2.0497        .52585E-07   -.66037E-04
   2  norm          .24553        .77136        .19753E-06   -.57896E-03
   3  Prefactor     .10000E-03    52.550        .17346E-05** at limit **
   4  Prefactor     5.0008        3.5226       -.14214E-07   -.16372E-03
   5  Prefactor     9.5444        17.350        .11030E-05   -.13213E-03
   6  Prefactor     .10000E-03    16.176        .34287E-05** at limit **
   7  Prefactor     17.361        34.178       -.23767E-05   -.13021E-03
   8  Prefactor     16.624        33.607       -.54868E-06   -.44737E-04
   9  Prefactor     .10000E-03    5.5849        .53089E-07** at limit **
  10  Prefactor     .10000E-03    1.8016        .41183E-08** at limit **
  11  Prefactor     1.3856        2.0071        .15186E-06   -.24990E-03
  12  norm          6.9039        6.0666        .92690E-06    .53087E-03
  13  Prefactor     .10000E-03    1.3364        .12915E-07** at limit **
  14  Prefactor     .10000E-03    11.661       -.14686E-07** at limit **
  15  Prefactor     .10000E-03    1.7487       -.10331E-07** at limit **
  16  norm          4.1745        5.9123        .24298E-05   -.85753E-03
  17  Prefactor     .10000E-03    17.760       -.30328E-05** at limit **
  18  Prefactor     .10000E-03    13.994       -.62629E-06** at limit **
  19  Prefactor     .10000E-03    1.3142       -.19061E-07** at limit **
  20  Prefactor     4.7729        6.5653       -.81036E-06   -.50203E-03
  21  Prefactor     .88476        1.6652        .19580E-06    .15351E-03
  22  Prefactor     .10000E-03    86.232       -.20112E-05** at limit **
  23  Normalizat    .91149        .15015        .18845E-06   -.92854E-04
  24  Prefactor     1.1412        .16137       -.62114E-06    .11984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45389
  norm       = 0.245527
  Prefactor  = 0.000100001
  Prefactor  = 5.00076
  Prefactor  = 9.54437
  Prefactor  = 0.000100004
  Prefactor  = 17.3609
  Prefactor  = 16.624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3856
  norm       = 6.90391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.17447
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.77292
  Prefactor  = 0.884764
  Prefactor  = 0.000100001
  Normalizat = 0.91149
  Prefactor  = 1.14124
 **********
 **   18 **HESSE 
 **********

 FCN=   7513.212     FROM HESSE     STATUS=OK           405 CALLS     3183 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4539        2.0249        .14353E-03   -1.5467    
   2  norm          .24553        .89676        .12930E-02   -1.5609    
   3  Prefactor     .10000E-03    52.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0008        3.4924        .12753E-03   -1.5261    
   5  Prefactor     9.5444        17.452        .64857E-03   -1.5090    
   6  Prefactor     .10000E-03    16.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.361        34.626        .96097E-04   -1.4874    
   8  Prefactor     16.624        33.677        .98223E-04   -1.4892    
   9  Prefactor     .10000E-03    5.7170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8033        .11362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3856        1.9892        .13950E-03   -1.5473    
  12  norm          6.9039        6.1380        .15269E-03   -1.5182    
  13  Prefactor     .10000E-03    2.3978        .19336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7879        .22333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1745        6.3833        .98623E-03   -1.5299    
  17  Prefactor     .10000E-03    18.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3196        .97030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7729        6.6231        .18419E-03   -1.5271    
  21  Prefactor     .88476        1.4212        .14377E-02   -1.5520    
  22  Prefactor     .10000E-03    89.914        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91149        .17872        .23696E-03   -.96058    
  24  Prefactor     1.1412        .19324        .24090E-03   -.88159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82553e-09
Minuit parameter uncertainties:
  1  2.02504
  2  0.89681
  3  0.000445168
  4  3.4925
  5  17.4613
  6  0.000509297
  7  34.6663
  8  33.7156
  9  1.37519e-05
  10  1.75947e-07
  11  1.98932
  12  6.13855
  13  4.72263e-06
  14  5.99885e-07
  15  1.54722e-06
  16  6.38431
  17  0.000473189
  18  8.60574e-05
  19  1.1877e-06
  20  6.62407
  21  1.42123
  22  0.0005477
  23  0.17884
  24  0.193358
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.386e+00  1.989e+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.141e+00  1.934e-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.115e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/654496/likelihoodResults_248140801_248400001_4FGL_J1001.1+2911_daily_bin34.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7512.49454886
delta logL = 0.717231503686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7512.46488532
delta logL = 0.74689503446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34674       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7400       1.0000          .0000       10.000    
     3 'Normalizat'    .85245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1846       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=   7512.465     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      231 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34482        3.6642        .81731E-02    .17649E-02
   2  Index         3.7430        2.6591        .11254        .18154E-03
   3  Normalizat    .85245        .34610E-01    .44291E-01   -.61106E-04
   4  Prefactor     1.1847        .39000E-01    .53605E-01   -.73420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.344819
  Index      = 3.74301
  Normalizat = 0.852446
  Prefactor  = 1.18467
 **********
 **   18 **HESSE 
 **********

 FCN=   7512.465     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      266 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34482        9.1186        .37165E-03   -1.5591    
   2  Index         3.7430        6.8309        .56459E-02   -.25412    
   3  Normalizat    .85245        .14091        .24411E-03   -.98152    
   4  Prefactor     1.1847        .15859        .23701E-03   -.86804    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61313e-07
Minuit parameter uncertainties:
  1  3.54649
  2  5.49824
  3  0.14097
  4  0.158652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654496': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7512.46488267
delta logL = 0.746897684576

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.448e-01  3.546e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.743e+00  5.498e+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.185e+00  1.587e-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.524e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 150.294 29.188
Photon Index (Free Index): 3.74 +/- 5.50
Photon Flux (Free Index): 5.99e-08 +/- 4.49e-08
Energy Flux (Free Index): 9.41e-06 +/- 1.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/654496/cmap_HighResolution_248140801_248400001_4FGL_J1001.1+2911_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', comment='SUCCESS', energy_flux2='9.41e-06', dlogl='7.47e-01', photon_flux2='5.99e-08', job_status='DONE', time_completed='2021-09-01 09:58:35.634638', photon_index_error2='5.50', photon_index2='3.74', ts='0.63', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='7.84e-08', energy_flux_error2='1.15e-05', EG='0.91', time_epoch_completed='1630515515.63', return_code='0', job_id='654496', GAL2='1.18', EG2='0.85', return_code2='102', photon_flux_error2='4.49e-08', ts2='2.26', photon_index='2.27' WHERE bin_id='34' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:58:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 654496: <4FGL_J1001.1+2911_daily_bin34> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin34> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:45:35 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:45:37 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:45:37 2021
Terminated at Wed Sep  1 09:58:36 2021
Results reported at Wed Sep  1 09:58:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin34 150.294 29.188 248140801 248400001 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 :                                   729.00 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             347.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

