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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin673
RA = 150.294, Dec = 29.188
tmin = 413769601, tmax = 414028801
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='657728', job_status='RUN', time_executed='2021-09-01 09:59:01.840274', time_epoch_executed='1630515541.84' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657728

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657728/ft1_4FGL_J1001.1+2911_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657728/ft2_4FGL_J1001.1+2911_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657728/ft1_4FGL_J1001.1+2911_daily_bin673.fits outfile=/scratch/kocevski/657728/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin673.fits ra=150.294 dec=29.188 rad=12.0 tmin=413769601.0 tmax=414028801.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 7.20
user 6.08
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657728/ft1_filtered_4FGL_J1001.1+2911_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/657728/ft2_4FGL_J1001.1+2911_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/657728/ltcube_413769601_414028801_4FGL_J1001.1+2911_daily_bin673.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/657728/ft2_4FGL_J1001.1+2911_daily_bin673.fits
.....................!
real 13.28
user 12.25
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657728/ft1_filtered_4FGL_J1001.1+2911_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/657728/ft2_4FGL_J1001.1+2911_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/657728/ltcube_413769601_414028801_4FGL_J1001.1+2911_daily_bin673.fits outfile=/scratch/kocevski/657728/expmap_413769601_414028801_4FGL_J1001.1+2911_daily_bin673.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/657728/ltcube_413769601_414028801_4FGL_J1001.1+2911_daily_bin673.fits
.....................!
real 193.36
user 186.45
sys 5.70

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/657728/ft1_filtered_4FGL_J1001.1+2911_daily_bin673.fits scfile=/scratch/kocevski/657728/ft2_4FGL_J1001.1+2911_daily_bin673.fits outfile=/scratch/kocevski/657728/cmap_413769601_414028801_4FGL_J1001.1+2911_daily_bin673.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.66
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657728/ft1_filtered_4FGL_J1001.1+2911_daily_bin673.fits scfile=/scratch/kocevski/657728/ft2_4FGL_J1001.1+2911_daily_bin673.fits outfile=/scratch/kocevski/657728/cmap_HighResolution_413769601_414028801_4FGL_J1001.1+2911_daily_bin673.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.72
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.6130       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.781       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    102.78       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4280       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9026       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41395E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.8331       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.405       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7548       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66096       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1764       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=   4637.565     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2697 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2938        .59443E-07** at limit **
   2  norm          1.6132        1.5076        .78341E-07    .14121E-03
   3  Prefactor     5.4345        154.22        .24638E-04   -.49547E-04
   4  Prefactor     11.782        6.1923       -.28119E-06   -.11489E-03
   5  Prefactor     .10000E-03    24.825        .24513E-05** at limit **
   6  Prefactor     102.78        75.338        .13291E-05   -.29802E-04
   7  Prefactor     33.703        50.575        .11195E-04   -.17257E-03
   8  Prefactor     .10000E-03    36.268        .21944E-05** at limit **
   9  Prefactor     .10000E-03    3.1560        .92099E-07** at limit **
  10  Prefactor     1.4297        5.4368       -.21983E-05   -.55344E-03
  11  Prefactor     .10000E-03    .56719       -.56808E-07** at limit **
  12  norm          .10000E-03    4.0759        .11397E-06** at limit **
  13  Prefactor     6.9037        4.9159        .27785E-06   -.16590E-03
  14  Prefactor     .10000E-03    13.980        .24415E-06** at limit **
  15  Prefactor     .10000E-03    4.5456        .19569E-08** at limit **
  16  norm          8.8266        10.646        .11921E-06   -.33463E-04
  17  Prefactor     .10000E-03    18.063       -.41944E-06** at limit **
  18  Prefactor     .10000E-03    84.092       -.19741E-06** at limit **
  19  Prefactor     .10000E-03    6.0938       -.10932E-06** at limit **
  20  Prefactor     12.406        10.353       -.71853E-06   -.10293E-02
  21  Prefactor     4.7555        3.6094        .26738E-06   -.17040E-03
  22  Prefactor     .10000E-03    29.221       -.49235E-05** at limit **
  23  Normalizat    .66079        .19117       -.17909E-05    .34335E-05
  24  Prefactor     1.1764        .19861        .24817E-08   -.46735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.61318
  Prefactor  = 5.43454
  Prefactor  = 11.7823
  Prefactor  = 0.0001
  Prefactor  = 102.784
  Prefactor  = 33.7027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42969
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.90365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.82655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4065
  Prefactor  = 4.7555
  Prefactor  = 0.000100001
  Normalizat = 0.660785
  Prefactor  = 1.17643
 **********
 **   18 **HESSE 
 **********

 FCN=   4637.565     FROM HESSE     STATUS=OK           393 CALLS     3090 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2957        .75646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6132        1.5231        .77699E-04   -1.5454    
   3  Prefactor     5.4345        147.33        .17250E-03   -1.5242    
   4  Prefactor     11.782        6.2060        .11296E-03   -1.5021    
   5  Prefactor     .10000E-03    24.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     102.78        75.277        .39660E-04   -1.3677    
   7  Prefactor     33.703        49.110        .69036E-04   -1.4546    
   8  Prefactor     .10000E-03    36.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1787        .11811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4297        5.6587        .31415E-03   -1.5469    
  11  Prefactor     .10000E-03    .56818        .50074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.0957        .13426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9037        4.5869        .11114E-03   -1.5182    
  14  Prefactor     .10000E-03    13.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6401        .25837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.8266        10.635        .13486E-03   -1.5114    
  17  Prefactor     .10000E-03    18.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    84.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2177        .16391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.406        10.722        .56867E-03   -1.5003    
  21  Prefactor     4.7555        3.6129        .10338E-03   -1.5272    
  22  Prefactor     .10000E-03    29.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .66079        .22698        .26971E-03   -1.0546    
  24  Prefactor     1.1764        .23810        .22900E-03   -.87060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22566e-09
Minuit parameter uncertainties:
  1  2.33843e-07
  2  1.52311
  3  56.7479
  4  6.20629
  5  0.00011063
  6  75.3471
  7  49.1686
  8  0.000134813
  9  2.46451e-06
  10  5.66077
  11  1.42473e-06
  12  4.75847e-06
  13  4.58709
  14  3.87747e-06
  15  2.28049e-05
  16  10.637
  17  2.64843e-05
  18  0.000137111
  19  1.77985e-05
  20  10.7241
  21  3.61305
  22  0.000341381
  23  0.227301
  24  0.238321
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.425e-06  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.176e+00  2.383e-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.608e-01  2.273e-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: 4.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657728/likelihoodResults_413769601_414028801_4FGL_J1001.1+2911_daily_bin673.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) = 4637.56524801
delta logL = -5.24199658685e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4637.56519425
delta logL = 1.34171477839e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2340       1.0000          .0000       10.000    
     3 'Normalizat'    .66072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1765       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=   4637.565     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      223 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5443        .90712E-02** at limit **
   2  Index         1.7942        5.5816        .50000       -.26989E-05
   3  Normalizat    .66078        .10208E-01    .60968E-01   -.74304E-04
   4  Prefactor     1.1764        .11327E-01    .51798E-01   -.99557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79422
  Normalizat = 0.660785
  Prefactor  = 1.17643
 **********
 **   18 **HESSE 
 **********

 FCN=   4637.565     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      252 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.560        .55091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7942        6.9561        .50000       -.69600    
   3  Normalizat    .66078        .43487E-01    .26971E-03   -1.0546    
   4  Prefactor     1.1764        .48311E-01    .22900E-03   -.87060    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.66273e-08
Minuit parameter uncertainties:
  1  2.03072e-06
  2  395.671
  3  0.0434897
  4  0.0483126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657728': 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) = 4637.5651804
delta logL = 1.51895128511e-05

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.031e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.794e+00  3.957e+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:  1.176e+00  4.831e-02  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  6.608e-01  4.349e-02  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/657728/cmap_HighResolution_413769601_414028801_4FGL_J1001.1+2911_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-03', job_status='DONE', photon_flux_upper_limit='4.31e-08', time_completed='2021-09-01 10:09:01.264791', job_id='657728', GAL2='1.18', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630516141.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.52e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='673' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:09:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 657728: <4FGL_J1001.1+2911_daily_bin673> in cluster <slac> Done

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

Your job looked like:

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

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

