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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin349
RA = 150.294, Dec = 29.188
tmin = 329788801, tmax = 330048001
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='656106', job_status='RUN', time_executed='2021-09-01 09:51:28.435173', time_epoch_executed='1630515088.44' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656106/ft1_4FGL_J1001.1+2911_daily_bin349.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656106/ft2_4FGL_J1001.1+2911_daily_bin349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656106/ft1_4FGL_J1001.1+2911_daily_bin349.fits outfile=/scratch/kocevski/656106/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin349.fits ra=150.294 dec=29.188 rad=12.0 tmin=329788801.0 tmax=330048001.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.49
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656106/ft1_filtered_4FGL_J1001.1+2911_daily_bin349.fits" evtable="EVENTS" scfile=/scratch/kocevski/656106/ft2_4FGL_J1001.1+2911_daily_bin349.fits sctable="SC_DATA" outfile=/scratch/kocevski/656106/ltcube_329788801_330048001_4FGL_J1001.1+2911_daily_bin349.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/656106/ft2_4FGL_J1001.1+2911_daily_bin349.fits
.....................!
real 11.91
user 11.55
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656106/ft1_filtered_4FGL_J1001.1+2911_daily_bin349.fits evtable="EVENTS" scfile=/scratch/kocevski/656106/ft2_4FGL_J1001.1+2911_daily_bin349.fits sctable="SC_DATA" expcube=/scratch/kocevski/656106/ltcube_329788801_330048001_4FGL_J1001.1+2911_daily_bin349.fits outfile=/scratch/kocevski/656106/expmap_329788801_330048001_4FGL_J1001.1+2911_daily_bin349.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/656106/ltcube_329788801_330048001_4FGL_J1001.1+2911_daily_bin349.fits
.....................!
real 189.90
user 185.22
sys 4.13

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/656106/ft1_filtered_4FGL_J1001.1+2911_daily_bin349.fits scfile=/scratch/kocevski/656106/ft2_4FGL_J1001.1+2911_daily_bin349.fits outfile=/scratch/kocevski/656106/cmap_329788801_330048001_4FGL_J1001.1+2911_daily_bin349.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.61
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656106/ft1_filtered_4FGL_J1001.1+2911_daily_bin349.fits scfile=/scratch/kocevski/656106/ft2_4FGL_J1001.1+2911_daily_bin349.fits outfile=/scratch/kocevski/656106/cmap_HighResolution_329788801_330048001_4FGL_J1001.1+2911_daily_bin349.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    60.867       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8296       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.376       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.934       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8944       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33341       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .96210       1.0000         .10000E-03   10000.    
    14 'Prefactor '    75.166       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    117.01       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.449       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11249E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90831       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98620       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=   5366.737     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2757 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1949        .86154E-08** at limit **
   2  norm          .10000E-03    .51543       -.62107E-08** at limit **
   3  Prefactor     60.860        62.044        .25380E-06   -.38211E-04
   4  Prefactor     5.8294        4.5893        .46154E-07   -.10025E-03
   5  Prefactor     11.372        24.465        .60025E-07   -.31685E-04
   6  Prefactor     .10000E-03    54.358       -.36087E-06** at limit **
   7  Prefactor     .10000E-03    18.702        .21652E-06** at limit **
   8  Prefactor     18.928        47.490        .29337E-06   -.24238E-04
   9  Prefactor     6.8940        6.0917       -.10817E-07   -.93102E-05
  10  Prefactor     .10000E-03    6.6962        .31147E-07** at limit **
  11  Prefactor     .34393        2.3407        .12370E-06   -.43612E-04
  12  norm          4.1686        6.1328        .87609E-06    .39688E-03
  13  Prefactor     .96196        2.9266        .11648E-06    .15135E-03
  14  Prefactor     75.172        46.888       -.14467E-06    .55708E-04
  15  Prefactor     .10000E-03    1.1887        .22164E-07** at limit **
  16  norm          8.1028        10.127        .30824E-07    .17007E-03
  17  Prefactor     117.01        71.104        .15258E-06   -.16208E-05
  18  Prefactor     27.394        22.650        .13414E-05    .25262E-03
  19  Prefactor     .10000E-03    5.0830       -.33249E-05** at limit **
  20  Prefactor     .10000E-03    4.3005       -.23159E-06** at limit **
  21  Prefactor     .10000E-03    1.4950        .13064E-06** at limit **
  22  Prefactor     .10000E-03    15.132       -.16564E-06** at limit **
  23  Normalizat    .90857        .17971        .10838E-06    .16034E-03
  24  Prefactor     .98588        .19006       -.40418E-06    .12546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 60.8603
  Prefactor  = 5.82945
  Prefactor  = 11.3722
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.9278
  Prefactor  = 6.89401
  Prefactor  = 0.0001
  Prefactor  = 0.343933
  norm       = 4.16856
  Prefactor  = 0.961961
  Prefactor  = 75.172
  Prefactor  = 0.0001
  norm       = 8.10283
  Prefactor  = 117.008
  Prefactor  = 27.3938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.908575
  Prefactor  = 0.985876
 **********
 **   18 **HESSE 
 **********

 FCN=   5366.737     FROM HESSE     STATUS=OK           401 CALLS     3158 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2292        .10597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .51848        .51350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     60.860        62.139        .51429E-04   -1.4146    
   4  Prefactor     5.8294        4.5832        .13064E-03   -1.5225    
   5  Prefactor     11.372        24.425        .11878E-03   -1.5033    
   6  Prefactor     .10000E-03    54.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.928        47.533        .92046E-04   -1.4838    
   9  Prefactor     6.8940        6.0791        .15280E-03   -1.5183    
  10  Prefactor     .10000E-03    6.7653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .34393        4.7501        .20496E-02   -1.5591    
  12  norm          4.1686        6.6429        .98710E-03   -1.5300    
  13  Prefactor     .96196        2.9059        .20733E-03   -1.5512    
  14  Prefactor     75.172        46.885        .46312E-04   -1.3972    
  15  Prefactor     .10000E-03    1.1904        .77894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1028        10.125        .14083E-03   -1.5139    
  17  Prefactor     117.01        71.138        .37197E-04   -1.3540    
  18  Prefactor     27.394        24.040        .38233E-03   -1.4661    
  19  Prefactor     .10000E-03    5.5953        .23388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.9133        .29273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8704        .17256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90857        .20850        .23707E-03   -.96159    
  24  Prefactor     .98588        .22234        .25041E-03   -.93202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75297e-08
Minuit parameter uncertainties:
  1  1.23133e-06
  2  9.08485e-08
  3  62.2056
  4  4.58352
  5  24.4469
  6  0.000394639
  7  0.000131263
  8  47.6278
  9  6.07963
  10  1.083e-05
  11  2.5562
  12  6.64411
  13  2.90631
  14  46.9082
  15  9.71617e-07
  16  10.1268
  17  71.1899
  18  24.0489
  19  9.88074e-05
  20  1.30836e-06
  21  1.79074e-06
  22  0.00010844
  23  0.208688
  24  0.222548
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.439e-01  2.556e+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:  9.859e-01  2.225e-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.086e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/656106/likelihoodResults_329788801_330048001_4FGL_J1001.1+2911_daily_bin349.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) = 5366.69163443
delta logL = 0.0458438813803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5366.68633454
delta logL = 0.0511437754885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51316       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7319       1.0000          .0000       10.000    
     3 'Normalizat'    .90021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98824       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=   5366.686     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      206 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51532        44.886        .11324E-01    .12311E-02
   2  Index         2.7320        6.3654        .22797        .32137E-04
   3  Normalizat    .90030        .29755E-01    .44904E-01   -.38695E-04
   4  Prefactor     .98836        .33082E-01    .46120E-01    .17573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.515324
  Index      = 2.73204
  Normalizat = 0.900297
  Prefactor  = 0.988357
 **********
 **   18 **HESSE 
 **********

 FCN=   5366.686     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51532        1.9748        .14449E-03   -1.5564    
   2  Index         2.7320        1.4613        .12094E-01   -.47079    
   3  Normalizat    .90030        .20115        .23804E-03   -.96450    
   4  Prefactor     .98836        .21886        .25011E-03   -.93119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52656e-11
Minuit parameter uncertainties:
  1  1.97504
  2  1.48884
  3  0.201317
  4  0.219055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656106': 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) = 5366.6863305
delta logL = 0.0511478099907

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  5.153e-01  1.975e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.732e+00  1.489e+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:  9.884e-01  2.191e-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.003e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/656106/cmap_HighResolution_329788801_330048001_4FGL_J1001.1+2911_daily_bin349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.61e-08', time_completed='2021-09-01 10:01:46.744559', job_id='656106', GAL2='0.99', fit_tolerance='1e-08', EG2='0.90', EG='0.91', time_epoch_completed='1630515706.74', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.11e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='349' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 656106: <4FGL_J1001.1+2911_daily_bin349> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin349> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:50:44 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:50:46 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:46 2021
Terminated at Wed Sep  1 10:01:47 2021
Results reported at Wed Sep  1 10:01:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin349 150.294 29.188 329788801 330048001 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 :                                   611.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            663 sec.

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

