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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin275
RA = 150.294, Dec = 29.188
tmin = 310608001, tmax = 310867201
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='655989', job_status='RUN', time_executed='2021-09-01 09:53:17.759825', time_epoch_executed='1630515197.76' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655989/ft1_4FGL_J1001.1+2911_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655989/ft2_4FGL_J1001.1+2911_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655989/ft1_4FGL_J1001.1+2911_daily_bin275.fits outfile=/scratch/kocevski/655989/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin275.fits ra=150.294 dec=29.188 rad=12.0 tmin=310608001.0 tmax=310867201.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.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/655989/ft1_filtered_4FGL_J1001.1+2911_daily_bin275.fits" evtable="EVENTS" scfile=/scratch/kocevski/655989/ft2_4FGL_J1001.1+2911_daily_bin275.fits sctable="SC_DATA" outfile=/scratch/kocevski/655989/ltcube_310608001_310867201_4FGL_J1001.1+2911_daily_bin275.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/655989/ft2_4FGL_J1001.1+2911_daily_bin275.fits
.....................!
real 13.19
user 11.80
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655989/ft1_filtered_4FGL_J1001.1+2911_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/655989/ft2_4FGL_J1001.1+2911_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/655989/ltcube_310608001_310867201_4FGL_J1001.1+2911_daily_bin275.fits outfile=/scratch/kocevski/655989/expmap_310608001_310867201_4FGL_J1001.1+2911_daily_bin275.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/655989/ltcube_310608001_310867201_4FGL_J1001.1+2911_daily_bin275.fits
.....................!
real 192.70
user 184.83
sys 5.62

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/655989/ft1_filtered_4FGL_J1001.1+2911_daily_bin275.fits scfile=/scratch/kocevski/655989/ft2_4FGL_J1001.1+2911_daily_bin275.fits outfile=/scratch/kocevski/655989/cmap_310608001_310867201_4FGL_J1001.1+2911_daily_bin275.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.62
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/655989/ft1_filtered_4FGL_J1001.1+2911_daily_bin275.fits scfile=/scratch/kocevski/655989/ft2_4FGL_J1001.1+2911_daily_bin275.fits outfile=/scratch/kocevski/655989/cmap_HighResolution_310608001_310867201_4FGL_J1001.1+2911_daily_bin275.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.61
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7499       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44187       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8628       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10762E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.899       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    24.187       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2762       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11061E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4489       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.995       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71454       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1431       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=   5543.917     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2785 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7484        4.4736        .31507E-06   -.38457E-03
   2  norm          1.5470        1.3435        .23598E-07   -.38802E-04
   3  Prefactor     .10000E-03    21.375        .35653E-06** at limit **
   4  Prefactor     .44034        2.2503       -.14064E-05   -.13356E-02
   5  Prefactor     2.8581        34.889       -.13707E-04    .99910E-04
   6  Prefactor     .10000E-03    20.694       -.39415E-06** at limit **
   7  Prefactor     .10000E-03    95.038        .43271E-06** at limit **
   8  Prefactor     48.896        40.052        .17556E-05   -.76504E-04
   9  Prefactor     14.180        8.4922        .56819E-06   -.35290E-04
  10  Prefactor     .10000E-03    4.4883       -.18944E-06** at limit **
  11  Prefactor     .10000E-03    1.8789        .20416E-07** at limit **
  12  norm          24.185        10.571       -.61812E-06    .17348E-03
  13  Prefactor     9.2760        4.2114       -.26012E-07   -.15542E-03
  14  Prefactor     .10041E-03    46.531       -.14618E-05** at limit **
  15  Prefactor     .10000E-03    2.6245        .52065E-07** at limit **
  16  norm          .10000E-03    2.8030       -.14910E-06** at limit **
  17  Prefactor     32.446        41.196        .21460E-05   -.66016E-04
  18  Prefactor     .10000E-03    8.8423        .11761E-06** at limit **
  19  Prefactor     .10000E-03    1.3907       -.18290E-07** at limit **
  20  Prefactor     6.4476        6.2411       -.26020E-06   -.87830E-04
  21  Prefactor     .10000E-03    1.1055       -.12643E-07** at limit **
  22  Prefactor     26.990        21.694        .46733E-06   -.48465E-04
  23  Normalizat    .71476        .16173        .48360E-06    .12126E-03
  24  Prefactor     1.1431        .18012        .55925E-06    .10946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.74838
  norm       = 1.54696
  Prefactor  = 0.0001
  Prefactor  = 0.44034
  Prefactor  = 2.85812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.8958
  Prefactor  = 14.1802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.1852
  Prefactor  = 9.27598
  Prefactor  = 0.000100412
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.4463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.4476
  Prefactor  = 0.0001
  Prefactor  = 26.99
  Normalizat = 0.714758
  Prefactor  = 1.14311
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.917     FROM HESSE     STATUS=OK           403 CALLS     3188 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7484        4.4519        .14661E-03   -1.5272    
   2  norm          1.5470        1.3279        .77943E-04   -1.5459    
   3  Prefactor     .10000E-03    21.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44034        3.0018        .24182E-03   -1.5575    
   5  Prefactor     2.8581        32.030        .24026E-03   -1.5370    
   6  Prefactor     .10000E-03    20.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    96.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.896        39.821        .57345E-04   -1.4308    
   9  Prefactor     14.180        8.4531        .10637E-03   -1.4955    
  10  Prefactor     .10000E-03    4.5039        .15401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9535        .19883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          24.185        10.558        .81449E-04   -1.4724    
  13  Prefactor     9.2760        4.2167        .96212E-04   -1.5099    
  14  Prefactor     .10041E-03    44.600        .13946       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6959        .23445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8075        .12174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.446        40.954        .70341E-04   -1.4568    
  18  Prefactor     .10000E-03    8.8479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3971        .85741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4476        6.2368        .15804E-03   -1.5200    
  21  Prefactor     .10000E-03    3.9895        .15206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.990        21.670        .77105E-04   -1.4668    
  23  Normalizat    .71476        .18792        .24979E-03   -1.0331    
  24  Prefactor     1.1431        .21008        .23332E-03   -.88100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58501e-09
Minuit parameter uncertainties:
  1  4.45217
  2  1.32796
  3  2.51865e-05
  4  2.29931
  5  19.1486
  6  2.11409e-05
  7  0.000205627
  8  39.8423
  9  8.45385
  10  2.2776e-06
  11  5.16552e-07
  12  10.5592
  13  4.21688
  14  0.00858223
  15  7.18316e-06
  16  2.27284e-06
  17  40.9896
  18  8.20132e-06
  19  1.23955e-06
  20  6.2374
  21  1.40845e-05
  22  21.6764
  23  0.188093
  24  0.210235
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.166e-07  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.143e+00  2.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  7.148e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/655989/likelihoodResults_310608001_310867201_4FGL_J1001.1+2911_daily_bin275.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) = 5543.91967752
delta logL = -0.00244105028196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5543.91723508
delta logL = 1.39246640174e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3093       1.0000          .0000       10.000    
     3 'Normalizat'    .71472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1432       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=   5543.230     FROM MIGRAD    STATUS=CONVERGED    262 CALLS      424 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .34984E-02    .35028E-03** at limit **
   2  Index         7.5767        2.7645        .17216        .11769E-03
   3  Normalizat    .65687        .35203E-01    .42487E-01    .33575E-04
   4  Prefactor     1.1869        .40537E-01    .51915E-01   -.38738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.57674
  Normalizat = 0.656868
  Prefactor  = 1.18693
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.230     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      465 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .27189E-01    .17510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5767        8.2356        .62366E-02    .54141    
   3  Normalizat    .65687        .85651E-01    .25944E-03   -1.0562    
   4  Prefactor     1.1869        .99023E-01    .22951E-03   -.86735    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82896e-09
Minuit parameter uncertainties:
  1  5.51616e-08
  2  6.14589
  3  0.0856685
  4  0.0990383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655989': 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) = 5543.22989506
delta logL = 0.687341418026

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.516e-08  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  7.577e+00  6.146e+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.187e+00  9.904e-02  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:  6.569e-01  8.567e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 150.294 29.188
Photon Index (Free Index): 7.58 +/- 6.15
Photon Flux (Free Index): 4.29e-08 +/- 5.46e-07
Energy Flux (Free Index): 5.03e-06 +/- 6.36e-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/655989/cmap_HighResolution_310608001_310867201_4FGL_J1001.1+2911_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', comment='SUCCESS', energy_flux2='5.03e-06', dlogl='6.87e-01', photon_flux2='4.29e-08', job_status='DONE', time_completed='2021-09-01 10:04:11.385885', photon_index_error2='6.15', photon_index2='7.58', ts='-0.00', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='6.83e-08', energy_flux_error2='6.36e-05', EG='0.71', time_epoch_completed='1630515851.39', return_code='0', job_id='655989', GAL2='1.19', EG2='0.66', return_code2='102', photon_flux_error2='5.46e-07', ts2='1.46', photon_index='2.27' WHERE bin_id='275' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:04:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 655989: <4FGL_J1001.1+2911_daily_bin275> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin275 150.294 29.188 310608001 310867201 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

