/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 223 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 = 7392
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin570
RA = 150.294, Dec = 29.188
tmin = 387072001, tmax = 387331201
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='657573', job_status='RUN', time_executed='2021-09-01 09:59:14.645348', time_epoch_executed='1630515554.65' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657573

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657573/ft1_4FGL_J1001.1+2911_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657573/ft2_4FGL_J1001.1+2911_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657573/ft1_4FGL_J1001.1+2911_daily_bin570.fits outfile=/scratch/kocevski/657573/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin570.fits ra=150.294 dec=29.188 rad=12.0 tmin=387072001.0 tmax=387331201.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.43
user 3.19
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657573/ft1_filtered_4FGL_J1001.1+2911_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/657573/ft2_4FGL_J1001.1+2911_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/657573/ltcube_387072001_387331201_4FGL_J1001.1+2911_daily_bin570.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/657573/ft2_4FGL_J1001.1+2911_daily_bin570.fits
.....................!
real 13.09
user 12.49
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657573/ft1_filtered_4FGL_J1001.1+2911_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/657573/ft2_4FGL_J1001.1+2911_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/657573/ltcube_387072001_387331201_4FGL_J1001.1+2911_daily_bin570.fits outfile=/scratch/kocevski/657573/expmap_387072001_387331201_4FGL_J1001.1+2911_daily_bin570.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/657573/ltcube_387072001_387331201_4FGL_J1001.1+2911_daily_bin570.fits
.....................!
real 192.18
user 184.84
sys 5.78

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/657573/ft1_filtered_4FGL_J1001.1+2911_daily_bin570.fits scfile=/scratch/kocevski/657573/ft2_4FGL_J1001.1+2911_daily_bin570.fits outfile=/scratch/kocevski/657573/cmap_387072001_387331201_4FGL_J1001.1+2911_daily_bin570.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.78
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657573/ft1_filtered_4FGL_J1001.1+2911_daily_bin570.fits scfile=/scratch/kocevski/657573/ft2_4FGL_J1001.1+2911_daily_bin570.fits outfile=/scratch/kocevski/657573/cmap_HighResolution_387072001_387331201_4FGL_J1001.1+2911_daily_bin570.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5143       1.0000         .10000E-03   10000.    
     2 'norm      '    .71535       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12740E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7317       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9977       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.365       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.763       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4689       1.0000         .10000E-03   10000.    
    12 'norm      '    .29259E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .72575       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .69222E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11609E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68424       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4774       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0104       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97462       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=   5533.173     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3496 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5143        3.1439        .50196E-07    .14201E-03
   2  norm          .71577        1.2588        .57036E-06    .16260E-03
   3  Prefactor     .10000E-03    21.573        .11997E-05** at limit **
   4  Prefactor     .10000E-03    1.8946       -.98486E-06** at limit **
   5  Prefactor     9.7323        26.757        .21702E-06    .32944E-04
   6  Prefactor     3.9722        248.82        .10432E-04    .32961E-05
   7  Prefactor     29.363        32.498        .12597E-06    .66167E-05
   8  Prefactor     .10000E-03    14.670       -.20974E-05** at limit **
   9  Prefactor     7.8303        7.3402       -.32897E-07    .29333E-03
  10  Prefactor     13.762        10.102        .86311E-06    .40281E-03
  11  Prefactor     5.4686        2.5381       -.79504E-08    .26094E-03
  12  norm          .10002E-03    6.0108        .31602E-06** at limit **
  13  Prefactor     .10000E-03    1.6213        .54302E-07** at limit **
  14  Prefactor     .10000E-03    72.350       -.89785E-05** at limit **
  15  Prefactor     .10000E-03    2.7939       -.23486E-06** at limit **
  16  norm          .10000E-03    3.4051       -.12574E-06** at limit **
  17  Prefactor     .10000E-03    12.065        .10950E-05** at limit **
  18  Prefactor     .75343        148.05       -.13564E-04    .43266E-04
  19  Prefactor     .10001E-03    96.601       -.20406E-04** at limit **
  20  Prefactor     .10000E-03    7.9449        .13784E-05** at limit **
  21  Prefactor     .68472        2.2009        .69959E-06    .20422E-03
  22  Prefactor     7.4781        13.318       -.13518E-07    .19425E-04
  23  Normalizat    1.0105        .17069       -.52546E-06    .87451E-03
  24  Prefactor     .97456        .19000        .27968E-05    .40176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51427
  norm       = 0.715774
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.7323
  Prefactor  = 3.97223
  Prefactor  = 29.3632
  Prefactor  = 0.0001
  Prefactor  = 7.83026
  Prefactor  = 13.7619
  Prefactor  = 5.46859
  norm       = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.753432
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.684716
  Prefactor  = 7.47812
  Normalizat = 1.01048
  Prefactor  = 0.974558
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.173     FROM HESSE     STATUS=OK           415 CALLS     3911 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5143        3.1318        .14347E-03   -1.5391    
   2  norm          .71577        1.2646        .12337E-02   -1.5539    
   3  Prefactor     .10000E-03    21.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0080        .18767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.7323        26.682        .12846E-03   -1.5084    
   6  Prefactor     3.9722        249.05        .20171E-03   -1.5309    
   7  Prefactor     29.363        32.545        .73934E-04   -1.4624    
   8  Prefactor     .10000E-03    14.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8303        7.3021        .14327E-03   -1.5148    
  10  Prefactor     13.762        10.137        .53983E-03   -1.4966    
  11  Prefactor     5.4686        2.5373        .77067E-04   -1.5240    
  12  norm          .10002E-03    15.846        .33739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6397        .92367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8595        .12135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.4137        .13406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .75343        318.39        .65035E-02   -1.5534    
  19  Prefactor     .10001E-03    11.691        .39462E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1468        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .68472        2.2114        .18749E-03   -1.5542    
  22  Prefactor     7.4781        13.311        .14667E-03   -1.5161    
  23  Normalizat    1.0105        .19585        .22010E-03   -.92680    
  24  Prefactor     .97456        .21641        .25254E-03   -.93582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42664e-09
Minuit parameter uncertainties:
  1  3.132
  2  1.26464
  3  2.65965e-05
  4  0.000236125
  5  26.7148
  6  63.1823
  7  32.5642
  8  4.64618e-05
  9  7.30292
  10  10.1382
  11  2.53739
  12  0.00119992
  13  8.41588e-06
  14  0.000178874
  15  1.62696e-05
  16  3.93287e-06
  17  3.17675e-06
  18  31.1425
  19  0.000700477
  20  8.93676e-05
  21  2.21165
  22  13.3167
  23  0.195994
  24  0.216604
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  5.469e+00  2.537e+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.746e-01  2.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.010e+00  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.16
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 7.30e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 1.35e-05

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) = 5532.93980128
delta logL = 0.233271133145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5532.93947178
delta logL = 0.233600628271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4316       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9707       1.0000          .0000       10.000    
     3 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96029       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=   5532.939     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      259 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4255        70.745        .39565E-02    .65385E-04
   2  Index         1.9696        5.8859        .16298        .35040E-04
   3  Normalizat    1.0308        .17841        .42122E-01    .52734E-04
   4  Prefactor     .95991        .13233        .45769E-01    .35711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.42547
  Index      = 1.96957
  Normalizat = 1.03083
  Prefactor  = 0.959908
 **********
 **   18 **HESSE 
 **********

 FCN=   5532.939     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4255        3.1601        .86784E-04   -1.5201    
   2  Index         1.9696        .41632        .61106E-02   -.65113    
   3  Normalizat    1.0308        .18861        .21823E-03   -.92005    
   4  Prefactor     .95991        .21172        .25424E-03   -.94078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81871e-12
Minuit parameter uncertainties:
  1  3.16015
  2  0.417086
  3  0.188735
  4  0.211904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657573': 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) = 5532.93946319
delta logL = 0.233609220829

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  6.425e+00  3.160e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.970e+00  4.171e-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:  9.599e-01  2.119e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.031e+00  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.64
Ra Dec: 150.294 29.188
Photon Index (Free Index): 1.97 +/- 0.42
Photon Flux (Free Index): 5.70e-08 +/- 3.52e-08
Energy Flux (Free Index): 4.25e-05 +/- 3.49e-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/657573/cmap_HighResolution_387072001_387331201_4FGL_J1001.1+2911_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.30e-08', energy_flux2='4.25e-05', photon_flux_error='3.38e-08', dlogl='2.34e-01', energy_flux='2.91e-05', photon_flux2='5.70e-08', job_status='DONE', time_completed='2021-09-01 10:09:52.266319', photon_index_error2='0.42', photon_index2='1.97', ts='14.16', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.49e-05', EG='1.01', time_epoch_completed='1630516192.27', return_code='0', job_id='657573', GAL2='0.96', EG2='1.03', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.52e-08', ts2='14.64', photon_index='2.27' WHERE bin_id='570' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:09:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 657573: <4FGL_J1001.1+2911_daily_bin570> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin570> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 09:55:18 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:55:20 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:55:20 2021
Terminated at Wed Sep  1 10:09:53 2021
Results reported at Wed Sep  1 10:09:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin570 150.294 29.188 387072001 387331201 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 :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

