/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 233 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin542
RA = 150.294, Dec = 29.188
tmin = 379814401, tmax = 380073601
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='656408', job_status='RUN', time_executed='2021-09-01 09:55:19.184266', time_epoch_executed='1630515319.18' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656408/ft1_4FGL_J1001.1+2911_daily_bin542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656408/ft2_4FGL_J1001.1+2911_daily_bin542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656408/ft1_4FGL_J1001.1+2911_daily_bin542.fits outfile=/scratch/kocevski/656408/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin542.fits ra=150.294 dec=29.188 rad=12.0 tmin=379814401.0 tmax=380073601.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.64
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656408/ft1_filtered_4FGL_J1001.1+2911_daily_bin542.fits" evtable="EVENTS" scfile=/scratch/kocevski/656408/ft2_4FGL_J1001.1+2911_daily_bin542.fits sctable="SC_DATA" outfile=/scratch/kocevski/656408/ltcube_379814401_380073601_4FGL_J1001.1+2911_daily_bin542.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/656408/ft2_4FGL_J1001.1+2911_daily_bin542.fits
.....................!
real 12.18
user 11.61
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656408/ft1_filtered_4FGL_J1001.1+2911_daily_bin542.fits evtable="EVENTS" scfile=/scratch/kocevski/656408/ft2_4FGL_J1001.1+2911_daily_bin542.fits sctable="SC_DATA" expcube=/scratch/kocevski/656408/ltcube_379814401_380073601_4FGL_J1001.1+2911_daily_bin542.fits outfile=/scratch/kocevski/656408/expmap_379814401_380073601_4FGL_J1001.1+2911_daily_bin542.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/656408/ltcube_379814401_380073601_4FGL_J1001.1+2911_daily_bin542.fits
.....................!
real 191.50
user 186.18
sys 4.20

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/656408/ft1_filtered_4FGL_J1001.1+2911_daily_bin542.fits scfile=/scratch/kocevski/656408/ft2_4FGL_J1001.1+2911_daily_bin542.fits outfile=/scratch/kocevski/656408/cmap_379814401_380073601_4FGL_J1001.1+2911_daily_bin542.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656408/ft1_filtered_4FGL_J1001.1+2911_daily_bin542.fits scfile=/scratch/kocevski/656408/ft2_4FGL_J1001.1+2911_daily_bin542.fits outfile=/scratch/kocevski/656408/cmap_HighResolution_379814401_380073601_4FGL_J1001.1+2911_daily_bin542.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7814       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6440       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.383       1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.402       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83279       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2338       1.0000         .10000E-03   10000.    
    12 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2428       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.453       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.528       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91078       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1028       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=   5513.766     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2397 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7816        4.4918       -.54606E-06    .64219E-05
   2  norm          2.6434        1.6194        .35740E-07    .75839E-04
   3  Prefactor     .10000E-03    21.284       -.17469E-06** at limit **
   4  Prefactor     .10000E-03    2.8113        .62087E-07** at limit **
   5  Prefactor     11.378        30.441       -.58939E-05   -.12959E-04
   6  Prefactor     56.446        50.885        .97499E-05    .19959E-05
   7  Prefactor     .52298        43.650       -.69379E-05    .32165E-03
   8  Prefactor     .81412        35.453        .29950E-06   -.22850E-03
   9  Prefactor     3.6060        4.1389        .32911E-06   -.99293E-04
  10  Prefactor     .10000E-03    4.5730        .34625E-07** at limit **
  11  Prefactor     2.2342        1.9701        .37293E-07   -.19988E-03
  12  norm          .10000E-03    3.1953       -.11130E-06** at limit **
  13  Prefactor     2.2431        2.5189        .18475E-07   -.23425E-03
  14  Prefactor     19.439        27.984        .27293E-04   -.29971E-05
  15  Prefactor     .10000E-03    1.2064        .16941E-07** at limit **
  16  norm          .10000E-03    14.929        .24764E-06** at limit **
  17  Prefactor     12.535        42.844       -.10909E-04   -.32420E-05
  18  Prefactor     .10000E-03    9.7821       -.16446E-06** at limit **
  19  Prefactor     .10000E-03    2.1927        .20461E-07** at limit **
  20  Prefactor     .10000E-03    1.9830       -.33276E-07** at limit **
  21  Prefactor     .10000E-03    .89828       -.44069E-08** at limit **
  22  Prefactor     .10000E-03    8.4625        .17080E-06** at limit **
  23  Normalizat    .91067        .16773        .91626E-06    .23434E-03
  24  Prefactor     1.1028        .18509       -.13977E-05    .27503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.78161
  norm       = 2.64345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3783
  Prefactor  = 56.4456
  Prefactor  = 0.522983
  Prefactor  = 0.814116
  Prefactor  = 3.60598
  Prefactor  = 0.0001
  Prefactor  = 2.23425
  norm       = 0.0001
  Prefactor  = 2.24309
  Prefactor  = 19.4389
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.910672
  Prefactor  = 1.10279
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.766     FROM HESSE     STATUS=OK           409 CALLS     2806 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7816        4.4946        .11606E-03   -1.5150    
   2  norm          2.6434        1.6218        .71958E-04   -1.5383    
   3  Prefactor     .10000E-03    21.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9336        .24278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.378        30.478        .11874E-03   -1.5033    
   6  Prefactor     56.446        50.930        .26707E-03   -1.4204    
   7  Prefactor     .52298        51.338        .13251       -1.5563    
   8  Prefactor     .81412        438.42        .85208E-02   -1.5528    
   9  Prefactor     3.6060        4.1297        .15609E-03   -1.5328    
  10  Prefactor     .10000E-03    4.5937        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2342        1.9607        .94189E-04   -1.5409    
  12  norm          .10000E-03    6.6602        .25818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2431        2.5047        .12033E-03   -1.5408    
  14  Prefactor     19.439        27.955        .90810E-04   -1.4826    
  15  Prefactor     .10000E-03    1.2141        .79576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.535        42.905        .11317E-03   -1.5000    
  18  Prefactor     .10000E-03    9.7870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2162        .10735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9902        .10211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .91185        .68698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91067        .20056        .23183E-03   -.96086    
  24  Prefactor     1.1028        .22167        .24234E-03   -.89378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15936e-08
Minuit parameter uncertainties:
  1  4.49484
  2  1.62182
  3  3.95494e-06
  4  8.8248e-06
  5  30.5196
  6  50.969
  7  10.3713
  8  38.0656
  9  4.13006
  10  5.77551e-06
  11  1.96075
  12  2.40574e-05
  13  2.50486
  14  27.974
  15  1.96689e-06
  16  2.07649e-05
  17  43.0105
  18  2.06614e-06
  19  1.83949e-06
  20  4.53808e-06
  21  2.56434e-07
  22  2.88965e-06
  23  0.200727
  24  0.221858
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.234e+00  1.961e+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.103e+00  2.219e-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.107e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.28
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.98e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/656408/likelihoodResults_379814401_380073601_4FGL_J1001.1+2911_daily_bin542.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) = 5513.71884675
delta logL = 0.0472821421699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.71624926
delta logL = 0.0498796386028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5595       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0577       1.0000          .0000       10.000    
     3 'Normalizat'    .91785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0968       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5513.716     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      268 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5580        2.3614        .10066E-03    .62804E-03
   2  Index         2.0569        .64538        .92025E-02    .69229E-04
   3  Normalizat    .91757        .19260        .23104E-03    .28047E-04
   4  Prefactor     1.0972        .21948        .24286E-03    .21534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.55801
  Index      = 2.0569
  Normalizat = 0.917569
  Prefactor  = 1.09719
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.716     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5580        2.3307        .40266E-05   -1.5388    
   2  Index         2.0569        .63693        .36810E-03   -.62935    
   3  Normalizat    .91757        .19271        .92417E-05   -.95845    
   4  Prefactor     1.0972        .21963        .48571E-04   -.89556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22869e-10
Minuit parameter uncertainties:
  1  2.33076
  2  0.639595
  3  0.192852
  4  0.21981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656408': 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) = 5513.71624629
delta logL = 0.0498826009798

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.558e+00  2.331e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.057e+00  6.396e-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:  1.097e+00  2.198e-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.176e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 150.294 29.188
Photon Index (Free Index): 2.06 +/- 0.64
Photon Flux (Free Index): 2.54e-08 +/- 2.66e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.90e-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/656408/cmap_HighResolution_379814401_380073601_4FGL_J1001.1+2911_daily_bin542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', comment='SUCCESS', photon_flux='2.98e-08', energy_flux2='1.53e-05', photon_flux_error='2.62e-08', dlogl='4.99e-02', energy_flux='1.19e-05', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-09-01 10:05:30.693747', photon_index_error2='0.64', photon_index2='2.06', ts='2.28', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='9.24e-08', energy_flux_error2='1.90e-05', EG='0.91', time_epoch_completed='1630515930.69', return_code='0', job_id='656408', GAL2='1.10', EG2='0.92', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.66e-08', ts2='2.38', photon_index='2.27' WHERE bin_id='542' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:05:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 656408: <4FGL_J1001.1+2911_daily_bin542> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin542> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:51:10 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:51:12 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:51:12 2021
Terminated at Wed Sep  1 10:05:31 2021
Results reported at Wed Sep  1 10:05:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin542 150.294 29.188 379814401 380073601 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 :                                   609.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

