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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin805
RA = 150.294, Dec = 29.188
tmin = 447984001, tmax = 448243201
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='659352', job_status='RUN', time_executed='2021-09-01 10:03:25.320302', time_epoch_executed='1630515805.32' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659352/ft1_4FGL_J1001.1+2911_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659352/ft2_4FGL_J1001.1+2911_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659352/ft1_4FGL_J1001.1+2911_daily_bin805.fits outfile=/scratch/kocevski/659352/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin805.fits ra=150.294 dec=29.188 rad=12.0 tmin=447984001.0 tmax=448243201.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.46
user 2.97
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659352/ft1_filtered_4FGL_J1001.1+2911_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/659352/ft2_4FGL_J1001.1+2911_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/659352/ltcube_447984001_448243201_4FGL_J1001.1+2911_daily_bin805.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/659352/ft2_4FGL_J1001.1+2911_daily_bin805.fits
.....................!
real 10.16
user 9.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659352/ft1_filtered_4FGL_J1001.1+2911_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/659352/ft2_4FGL_J1001.1+2911_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/659352/ltcube_447984001_448243201_4FGL_J1001.1+2911_daily_bin805.fits outfile=/scratch/kocevski/659352/expmap_447984001_448243201_4FGL_J1001.1+2911_daily_bin805.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/659352/ltcube_447984001_448243201_4FGL_J1001.1+2911_daily_bin805.fits
.....................!
real 154.59
user 145.45
sys 3.71

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/659352/ft1_filtered_4FGL_J1001.1+2911_daily_bin805.fits scfile=/scratch/kocevski/659352/ft2_4FGL_J1001.1+2911_daily_bin805.fits outfile=/scratch/kocevski/659352/cmap_447984001_448243201_4FGL_J1001.1+2911_daily_bin805.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.64
user 0.32
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2397       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3084       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92380E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0917       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2369       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.674       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.064       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6059       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3992       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9803       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7317       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69451       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1544       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=   5454.027     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2317 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2397        3.2266       -.26514E-07   -.74814E-04
   2  norm          1.3085        1.3822        .34663E-07    .43625E-04
   3  Prefactor     .10006E-03    17.798       -.48309E-06** at limit **
   4  Prefactor     5.0913        3.7693       -.37250E-06   -.46008E-03
   5  Prefactor     5.2359        20.693        .45251E-05   -.17556E-03
   6  Prefactor     19.673        28.623       -.88454E-07   -.56783E-05
   7  Prefactor     .10000E-03    16.492        .10984E-05** at limit **
   8  Prefactor     21.841        22.236       -.78829E-07   -.94291E-05
   9  Prefactor     .10000E-03    2.5062        .24576E-07** at limit **
  10  Prefactor     .10000E-03    2.1443       -.15813E-07** at limit **
  11  Prefactor     .10000E-03    .96160        .26038E-07** at limit **
  12  norm          21.065        9.7800        .62996E-07    .49030E-04
  13  Prefactor     2.6073        3.3574        .13005E-06   -.15912E-03
  14  Prefactor     .10000E-03    16.778       -.10584E-05** at limit **
  15  Prefactor     .10000E-03    4.2001        .39928E-07** at limit **
  16  norm          2.7589        9.6049        .32055E-06   -.77236E-04
  17  Prefactor     .10000E-03    16.815       -.98479E-07** at limit **
  18  Prefactor     .10000E-03    19.086        .28534E-06** at limit **
  19  Prefactor     5.3989        4.7633       -.73901E-06   -.63001E-03
  20  Prefactor     5.9799        6.4437        .52239E-06    .18006E-03
  21  Prefactor     1.7322        1.9923       -.64622E-07   -.26493E-03
  22  Prefactor     .10000E-03    6.5559       -.14478E-07** at limit **
  23  Normalizat    .69458        .15842        .34771E-06   -.21788E-04
  24  Prefactor     1.1543        .17728       -.50656E-06    .21932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23972
  norm       = 1.30849
  Prefactor  = 0.000100057
  Prefactor  = 5.09131
  Prefactor  = 5.23591
  Prefactor  = 19.6733
  Prefactor  = 0.0001
  Prefactor  = 21.8413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.0646
  Prefactor  = 2.60733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.7589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.39889
  Prefactor  = 5.97993
  Prefactor  = 1.7322
  Prefactor  = 0.0001
  Normalizat = 0.694578
  Prefactor  = 1.1543
 **********
 **   18 **HESSE 
 **********

 FCN=   5454.027     FROM HESSE     STATUS=OK           405 CALLS     2722 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2397        3.2258        .11275E-03   -1.5296    
   2  norm          1.3085        1.3808        .85856E-04   -1.5479    
   3  Prefactor     .10006E-03    168.14        .60392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0913        3.8105        .11705E-03   -1.5257    
   5  Prefactor     5.2359        25.254        .87825E-03   -1.5250    
   6  Prefactor     19.673        28.628        .90299E-04   -1.4821    
   7  Prefactor     .10000E-03    16.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.841        22.242        .85708E-04   -1.4773    
   9  Prefactor     .10000E-03    2.5325        .11412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1469        .10561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .98107        .70637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.065        9.7812        .87271E-04   -1.4790    
  13  Prefactor     2.6073        3.3347        .14318E-03   -1.5385    
  14  Prefactor     .10000E-03    16.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2584        .29254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7589        9.6183        .24490E-03   -1.5376    
  17  Prefactor     .10000E-03    16.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3989        5.0238        .15126E-03   -1.5243    
  20  Prefactor     5.9799        6.4566        .16420E-03   -1.5219    
  21  Prefactor     1.7322        1.9887        .10708E-03   -1.5445    
  22  Prefactor     .10000E-03    6.5578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .69458        .17986        .24281E-03   -1.0411    
  24  Prefactor     1.1543        .19949        .22506E-03   -.87750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85183e-10
Minuit parameter uncertainties:
  1  3.22589
  2  1.38079
  3  0.00621659
  4  3.81066
  5  23.0134
  6  28.6475
  7  0.000141202
  8  22.2506
  9  1.68309e-06
  10  1.26418e-06
  11  7.95834e-07
  12  9.78192
  13  3.33497
  14  0.000147357
  15  1.42493e-05
  16  9.62371
  17  1.40789e-05
  18  0.000126931
  19  5.02416
  20  6.45739
  21  1.98881
  22  7.38024e-07
  23  0.180013
  24  0.19962
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  7.958e-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.154e+00  1.996e-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:  6.946e-01  1.800e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659352/likelihoodResults_447984001_448243201_4FGL_J1001.1+2911_daily_bin805.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) = 5454.03186932
delta logL = -0.00482299554187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5454.02704672
delta logL = -3.95818460674e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2723       1.0000          .0000       10.000    
     3 'Normalizat'    .69462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1543       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5454.027     FROM MIGRAD    STATUS=FAILED        82 CALLS      228 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    213.67        .70656E-03** at limit **
   2  Index         2.2760        5.5613        .50000       -.32025E-04
   3  Normalizat    .69458        .10110        .24281E-03    .74023E-04
   4  Prefactor     1.1543        .11856        .22506E-03    .94665E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5454.027     FROM SIMPLEX   STATUS=UNCHANGED    175 CALLS      403 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    213.67        .14576E-03** at limit **
   2  Index         2.2760        5.5613        .10362E-05   -.32025E-04
   3  Normalizat    .69458        .10110        .78028E-07    .74023E-04
   4  Prefactor     1.1543        .11856        .39780E-07    .94665E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5454.027     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      437 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0581        .14131E-03** at limit **
   2  Index         2.2763        6.1358        .50000       -.32010E-04
   3  Normalizat    .69458        .16791        .97125E-05    .65315E-04
   4  Prefactor     1.1543        .19718        .45011E-04    .86279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.27631
  Normalizat = 0.694579
  Prefactor  = 1.1543
 **********
 **   18 **HESSE 
 **********

 FCN=   5454.027     FROM HESSE     STATUS=OK            29 CALLS      466 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .98494        .28263E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2763        6.1381        .50000       -.57608    
   3  Normalizat    .69458        .16786        .19425E-05   -1.0411    
   4  Prefactor     1.1543        .19715        .90022E-05   -.87750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90955e-09
Minuit parameter uncertainties:
  1  6.1702e-05
  2  4.19954
  3  0.167983
  4  0.197273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659352': 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) = 5454.02704626
delta logL = 5.62140485272e-08

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.170e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.276e+00  4.200e+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.154e+00  1.973e-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:  6.946e-01  1.680e-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/659352/cmap_HighResolution_447984001_448243201_4FGL_J1001.1+2911_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-01 10:11:52.129249', job_id='659352', GAL2='1.15', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630516312.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='5.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='805' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 659352: <4FGL_J1001.1+2911_daily_bin805> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin805> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:32 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:00:33 2021
Terminated at Wed Sep  1 10:11:52 2021
Results reported at Wed Sep  1 10:11:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin805 150.294 29.188 447984001 448243201 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 :                                   491.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             217.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

