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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin659
RA = 150.294, Dec = 29.188
tmin = 410140801, tmax = 410400001
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='657707', job_status='RUN', time_executed='2021-09-01 09:58:28.530330', time_epoch_executed='1630515508.53' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='659'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657707/ft1_4FGL_J1001.1+2911_daily_bin659.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657707/ft2_4FGL_J1001.1+2911_daily_bin659.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657707/ft1_4FGL_J1001.1+2911_daily_bin659.fits outfile=/scratch/kocevski/657707/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin659.fits ra=150.294 dec=29.188 rad=12.0 tmin=410140801.0 tmax=410400001.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 6.97
user 6.67
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657707/ft1_filtered_4FGL_J1001.1+2911_daily_bin659.fits" evtable="EVENTS" scfile=/scratch/kocevski/657707/ft2_4FGL_J1001.1+2911_daily_bin659.fits sctable="SC_DATA" outfile=/scratch/kocevski/657707/ltcube_410140801_410400001_4FGL_J1001.1+2911_daily_bin659.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/657707/ft2_4FGL_J1001.1+2911_daily_bin659.fits
.....................!
real 12.31
user 11.86
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657707/ft1_filtered_4FGL_J1001.1+2911_daily_bin659.fits evtable="EVENTS" scfile=/scratch/kocevski/657707/ft2_4FGL_J1001.1+2911_daily_bin659.fits sctable="SC_DATA" expcube=/scratch/kocevski/657707/ltcube_410140801_410400001_4FGL_J1001.1+2911_daily_bin659.fits outfile=/scratch/kocevski/657707/expmap_410140801_410400001_4FGL_J1001.1+2911_daily_bin659.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/657707/ltcube_410140801_410400001_4FGL_J1001.1+2911_daily_bin659.fits
.....................!
real 190.44
user 184.84
sys 5.14

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/657707/ft1_filtered_4FGL_J1001.1+2911_daily_bin659.fits scfile=/scratch/kocevski/657707/ft2_4FGL_J1001.1+2911_daily_bin659.fits outfile=/scratch/kocevski/657707/cmap_410140801_410400001_4FGL_J1001.1+2911_daily_bin659.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=150.294 yref=29.188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0750       1.0000         .10000E-03   10000.    
     2 'norm      '    .67106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12106E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27595E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97750       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11682E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.476       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4885       1.0000         .10000E-03   10000.    
    16 'norm      '    6.4965       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0016       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3358       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .73406       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72094       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=   4890.399     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2726 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0754        3.5798        .30556E-07   -.82646E-05
   2  norm          .67110        .69869       -.25238E-07   -.35041E-04
   3  Prefactor     .10000E-03    50.726       -.38140E-06** at limit **
   4  Prefactor     .10001E-03    1.9164       -.54106E-06** at limit **
   5  Prefactor     .10000E-03    21.605       -.35247E-06** at limit **
   6  Prefactor     46.629        64.147       -.70965E-06   -.12273E-03
   7  Prefactor     .10000E-03    11.639        .64735E-07** at limit **
   8  Prefactor     .10001E-03    133.03       -.41167E-05** at limit **
   9  Prefactor     .97979        9.1886        .40508E-05   -.22277E-03
  10  Prefactor     .10000E-03    7.1107        .23624E-06** at limit **
  11  Prefactor     .10000E-03    1.2237       -.42487E-06** at limit **
  12  norm          .10000E-03    2.0132        .25151E-07** at limit **
  13  Prefactor     .10000E-03    .93325        .30727E-07** at limit **
  14  Prefactor     37.475        37.194        .10925E-06   -.19499E-04
  15  Prefactor     3.4890        2.9839        .79347E-07    .49399E-04
  16  norm          6.4985        11.242        .45382E-06    .52280E-04
  17  Prefactor     .10000E-03    44.820        .53745E-06** at limit **
  18  Prefactor     .10000E-03    26.279        .57628E-06** at limit **
  19  Prefactor     4.0019        5.0096        .64258E-06    .28894E-03
  20  Prefactor     7.3393        8.6514       -.21616E-06   -.91306E-04
  21  Prefactor     .73317        2.1735        .11240E-05    .54063E-03
  22  Prefactor     .10000E-03    9.5554        .76613E-07** at limit **
  23  Normalizat    1.1149        .17002       -.11475E-05   -.18037E-03
  24  Prefactor     .72092        .17916        .33355E-06   -.15412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.07542
  norm       = 0.671104
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 46.6292
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.979795
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4754
  Prefactor  = 3.48897
  norm       = 6.49855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.0019
  Prefactor  = 7.33932
  Prefactor  = 0.733169
  Prefactor  = 0.0001
  Normalizat = 1.11486
  Prefactor  = 0.720921
 **********
 **   18 **HESSE 
 **********

 FCN=   4890.399     FROM HESSE     STATUS=OK           399 CALLS     3125 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0754        3.5793        .10803E-03   -1.5257    
   2  norm          .67110        .71606        .58194E-03   -1.5544    
   3  Prefactor     .10000E-03    50.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    8.1355        .17642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.629        64.565        .58695E-04   -1.4341    
   7  Prefactor     .10000E-03    11.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    136.53        .21425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .97979        10.235        .30397E-02   -1.5510    
  10  Prefactor     .10000E-03    7.2343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9355        .14258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0170        .96893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .93723        .65944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.475        37.184        .65469E-04   -1.4483    
  15  Prefactor     3.4890        2.9799        .10732E-03   -1.5334    
  16  norm          6.4985        11.245        .15746E-03   -1.5198    
  17  Prefactor     .10000E-03    44.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0019        5.0345        .16788E-03   -1.5308    
  20  Prefactor     7.3393        8.4845        .14809E-03   -1.5166    
  21  Prefactor     .73317        2.2013        .16744E-03   -1.5537    
  22  Prefactor     .10000E-03    9.5618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1149        .19109        .19679E-03   -.89276    
  24  Prefactor     .72092        .20443        .26601E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57418e-09
Minuit parameter uncertainties:
  1  3.5794
  2  0.716065
  3  0.000239327
  4  0.000437864
  5  0.000144787
  6  64.6624
  7  1.5107e-05
  8  0.00217899
  9  6.33464
  10  3.12683e-05
  11  0.000263537
  12  1.90579e-06
  13  1.11664e-06
  14  37.2071
  15  2.97999
  16  11.2483
  17  0.000264813
  18  0.000154046
  19  5.03506
  20  8.48592
  21  2.20158
  22  1.6417e-05
  23  0.191212
  24  0.204644
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.635e-04  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:  7.209e-01  2.046e-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.115e+00  1.912e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657707/likelihoodResults_410140801_410400001_4FGL_J1001.1+2911_daily_bin659.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) = 4890.39989203
delta logL = -0.000606181690273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4890.3992822
delta logL = 3.65097093891e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63382E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3979       1.0000          .0000       10.000    
     3 'Normalizat'    1.1147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72108       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=   4890.357     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      281 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97541E-01    3.0204        .15650E-01   -.50414E-03
   2  Index         3.4729        3.0573        .23912       -.26954E-04
   3  Normalizat    1.1027        .15658E-01    .37431E-01   -.17382E-03
   4  Prefactor     .72739        .17476E-01    .42681E-01   -.34540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0975408
  Index      = 3.47292
  Normalizat = 1.10274
  Prefactor  = 0.72739
 **********
 **   18 **HESSE 
 **********

 FCN=   4890.357     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      312 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97541E-01    58.618        .62117E-03   -1.5646    
   2  Index         3.4729        7.3784        .12460E-01   -.31037    
   3  Normalizat    1.1027        .11431        .19776E-03   -.89664    
   4  Prefactor     .72739        .12970        .26494E-03   -1.0246    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02043e-09
Minuit parameter uncertainties:
  1  4.78457
  2  25.0935
  3  0.114337
  4  0.129757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657707': 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) = 4890.35686294
delta logL = 0.0424229167202

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  9.754e-02  4.785e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.473e+00  2.509e+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:  7.274e-01  1.298e-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.103e+00  1.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/657707/cmap_HighResolution_410140801_410400001_4FGL_J1001.1+2911_daily_bin659.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-01 10:08:58.853359', job_id='657707', GAL2='0.73', fit_tolerance='1e-08', EG2='1.10', EG='1.11', time_epoch_completed='1630516138.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='4.24e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='659' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:08:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 657707: <4FGL_J1001.1+2911_daily_bin659> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin659 150.294 29.188 410140801 410400001 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 :                                   627.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

