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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin277
RA = 150.294, Dec = 29.188
tmin = 311126401, tmax = 311385601
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='655993', job_status='RUN', time_executed='2021-09-01 09:53:42.726048', time_epoch_executed='1630515222.73' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655993/ft1_4FGL_J1001.1+2911_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655993/ft2_4FGL_J1001.1+2911_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655993/ft1_4FGL_J1001.1+2911_daily_bin277.fits outfile=/scratch/kocevski/655993/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin277.fits ra=150.294 dec=29.188 rad=12.0 tmin=311126401.0 tmax=311385601.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.78
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/655993/ft1_filtered_4FGL_J1001.1+2911_daily_bin277.fits" evtable="EVENTS" scfile=/scratch/kocevski/655993/ft2_4FGL_J1001.1+2911_daily_bin277.fits sctable="SC_DATA" outfile=/scratch/kocevski/655993/ltcube_311126401_311385601_4FGL_J1001.1+2911_daily_bin277.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/655993/ft2_4FGL_J1001.1+2911_daily_bin277.fits
.....................!
real 13.58
user 11.79
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655993/ft1_filtered_4FGL_J1001.1+2911_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/655993/ft2_4FGL_J1001.1+2911_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/655993/ltcube_311126401_311385601_4FGL_J1001.1+2911_daily_bin277.fits outfile=/scratch/kocevski/655993/expmap_311126401_311385601_4FGL_J1001.1+2911_daily_bin277.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/655993/ltcube_311126401_311385601_4FGL_J1001.1+2911_daily_bin277.fits
.....................!
real 197.54
user 185.78
sys 6.45

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/655993/ft1_filtered_4FGL_J1001.1+2911_daily_bin277.fits scfile=/scratch/kocevski/655993/ft2_4FGL_J1001.1+2911_daily_bin277.fits outfile=/scratch/kocevski/655993/cmap_311126401_311385601_4FGL_J1001.1+2911_daily_bin277.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.69
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96457       1.0000         .10000E-03   10000.    
     2 'norm      '    .78418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.055       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.144       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.658       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8321       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17676E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    41.326       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0185       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.430       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.605       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93082       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5407.944     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2283 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96521        1.9987       -.22419E-06   -.85213E-04
   2  norm          .78393        1.1272       -.24301E-07    .19422E-04
   3  Prefactor     19.041        4.2835        .20531E-07    .60200E-03
   4  Prefactor     .10000E-03    1.1694        .42167E-07** at limit **
   5  Prefactor     67.223        23.689       -.89432E-07    .63746E-02
   6  Prefactor     24.706        18.050       -.13300E-07   -.90616E-02
   7  Prefactor     7.8055        9.5149        .64549E-07    .40661E-03
   8  Prefactor     .12985E-03    88.108        .23406E-05** at limit **
   9  Prefactor     .59537E-01    231.17        .38432E-05    .83951E-03
  10  Prefactor     .10000E-03    3.0071        .39739E-08** at limit **
  11  Prefactor     .10000E-03    .78525        .33844E-07** at limit **
  12  norm          41.355        12.416       -.97177E-07    .19841E-02
  13  Prefactor     5.0178        4.0374       -.30556E-06   -.80170E-04
  14  Prefactor     .10000E-03    11.816       -.68989E-06** at limit **
  15  Prefactor     .10000E-03    3.9081        .50008E-06** at limit **
  16  norm          .10000E-03    4.7124        .53804E-06** at limit **
  17  Prefactor     29.393        11.701        .25304E-07    .53494E-02
  18  Prefactor     .10011E-03    40.195       -.41599E-06** at limit **
  19  Prefactor     10.603        6.0196        .20063E-07    .79355E-03
  20  Prefactor     .10000E-03    4.5891       -.12648E-05** at limit **
  21  Prefactor     3.3641        2.5491       -.18830E-06   -.73076E-04
  22  Prefactor     .10000E-03    8.6314       -.18855E-06** at limit **
  23  Normalizat    .93117        .20029        .23268E-05    .33157E-03
  24  Prefactor     .98514        .20951       -.51502E-06    .24902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.965212
  norm       = 0.783929
  Prefactor  = 19.041
  Prefactor  = 0.0001
  Prefactor  = 67.2228
  Prefactor  = 24.7062
  Prefactor  = 7.80551
  Prefactor  = 0.000129846
  Prefactor  = 0.0595371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 41.3546
  Prefactor  = 5.01778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.3926
  Prefactor  = 0.000100106
  Prefactor  = 10.603
  Prefactor  = 0.0001
  Prefactor  = 3.36405
  Prefactor  = 0.0001
  Normalizat = 0.931165
  Prefactor  = 0.985144
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.944     FROM HESSE     STATUS=OK           455 CALLS     2738 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96521        2.4846        .34732E-01   -1.5511    
   2  norm          .78393        1.3263        .21724E-01   -1.5531    
   3  Prefactor     19.041        42.556        .22938E-02   -1.4835    
   4  Prefactor     .10000E-03    1.1587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.223        34.786        .12245E-02   -1.4066    
   6  Prefactor     24.706        85.478        .20167E-02   -1.4713    
   7  Prefactor     7.8055        60.461        .35820E-02   -1.5149    
   8  Prefactor     .12985E-03    159.42        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .59537E-01    5.0437        .89104E-01   -1.5659    
  10  Prefactor     .10000E-03    3.0047        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .78135        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          41.355        12.447        .15589E-02   -1.4421    
  13  Prefactor     5.0178        4.0370        .44876E-02   -1.5260    
  14  Prefactor     .10000E-03    11.850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.7075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.393        68.244        .18463E-02   -1.4623    
  18  Prefactor     .10011E-03    40.405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.603        6.0252        .30759E-02   -1.5057    
  20  Prefactor     .10000E-03    4.5416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3641        2.5592        .55154E-02   -1.5341    
  22  Prefactor     .10000E-03    8.6635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93117        .18016        .45294E-01   -.95374    
  24  Prefactor     .98514        .18367        .46081E-01   -.93226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04493e-06
Minuit parameter uncertainties:
  1  2.48486
  2  1.32632
  3  42.6235
  4  1.03638e-06
  5  34.7962
  6  85.906
  7  43.5085
  8  0.138325
  9  1.09514
  10  4.03776e-07
  11  6.4936e-07
  12  12.4476
  13  4.03717
  14  0.00011611
  15  1.84702e-05
  16  3.01756e-05
  17  68.4264
  18  0.0041487
  19  6.02558
  20  5.75504e-05
  21  2.55928
  22  1.29334e-05
  23  0.18028
  24  0.183784
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.494e-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:  9.851e-01  1.838e-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.312e-01  1.803e-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: 5.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/655993/likelihoodResults_311126401_311385601_4FGL_J1001.1+2911_daily_bin277.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) = 5407.95001105
delta logL = -0.00594234134314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5407.94406883
delta logL = -1.24401594803e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2670       1.0000          .0000       10.000    
     3 'Normalizat'    .93119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98517       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=   5407.944     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      221 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .87931        .63454E-03** at limit **
   2  Index         2.1581        7.2068        .97799E-01    .12136E-06
   3  Normalizat    .93116        .19031        .24074E-03    .60259E-04
   4  Prefactor     .98514        .20796        .25514E-03    .66704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15808
  Normalizat = 0.931164
  Prefactor  = 0.985145
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.944     FROM HESSE     STATUS=OK            23 CALLS      244 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .79003        .12691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1581        8.7996        .39120E-02   -.60454    
   3  Normalizat    .93116        .19049        .96295E-05   -.95374    
   4  Prefactor     .98514        .20816        .10206E-04   -.93226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20385e-11
Minuit parameter uncertainties:
  1  3.37819e-06
  2  144.851
  3  0.190629
  4  0.208327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655993': 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) = 5407.94406843
delta logL = 2.7578062145e-07

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.378e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.158e+00  1.449e+02  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.851e-01  2.083e-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.312e-01  1.906e-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/655993/cmap_HighResolution_311126401_311385601_4FGL_J1001.1+2911_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-01 10:03:55.806107', job_id='655993', GAL2='0.99', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630515835.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='277' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 655993: <4FGL_J1001.1+2911_daily_bin277> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin277> 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) <bullet0260>, 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:03:56 2021
Results reported at Wed Sep  1 10:03:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin277 150.294 29.188 311126401 311385601 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            802 sec.

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

