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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin260
RA = 150.294, Dec = 29.188
tmin = 306720001, tmax = 306979201
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='654874', job_status='RUN', time_executed='2021-09-01 09:48:38.384478', time_epoch_executed='1630514918.38' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654874/ft1_4FGL_J1001.1+2911_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654874/ft2_4FGL_J1001.1+2911_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654874/ft1_4FGL_J1001.1+2911_daily_bin260.fits outfile=/scratch/kocevski/654874/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin260.fits ra=150.294 dec=29.188 rad=12.0 tmin=306720001.0 tmax=306979201.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.18
user 4.72
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654874/ft2_4FGL_J1001.1+2911_daily_bin260.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/654874/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin260.fits evtable="EVENTS" outfile="/scratch/kocevski/654874/ft1_filtered_4FGL_J1001.1+2911_daily_bin260.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/654874/ft1_filtered_4FGL_J1001.1+2911_daily_bin260.fits" evtable="EVENTS" scfile=/scratch/kocevski/654874/ft2_4FGL_J1001.1+2911_daily_bin260.fits sctable="SC_DATA" outfile=/scratch/kocevski/654874/ltcube_306720001_306979201_4FGL_J1001.1+2911_daily_bin260.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/654874/ft2_4FGL_J1001.1+2911_daily_bin260.fits
.....................!
real 11.57
user 11.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654874/ft1_filtered_4FGL_J1001.1+2911_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/654874/ft2_4FGL_J1001.1+2911_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/654874/ltcube_306720001_306979201_4FGL_J1001.1+2911_daily_bin260.fits outfile=/scratch/kocevski/654874/expmap_306720001_306979201_4FGL_J1001.1+2911_daily_bin260.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/654874/ltcube_306720001_306979201_4FGL_J1001.1+2911_daily_bin260.fits
.....................!
real 193.78
user 188.34
sys 4.95

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/654874/ft1_filtered_4FGL_J1001.1+2911_daily_bin260.fits scfile=/scratch/kocevski/654874/ft2_4FGL_J1001.1+2911_daily_bin260.fits outfile=/scratch/kocevski/654874/cmap_306720001_306979201_4FGL_J1001.1+2911_daily_bin260.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.65
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654874/ft1_filtered_4FGL_J1001.1+2911_daily_bin260.fits scfile=/scratch/kocevski/654874/ft2_4FGL_J1001.1+2911_daily_bin260.fits outfile=/scratch/kocevski/654874/cmap_HighResolution_306720001_306979201_4FGL_J1001.1+2911_daily_bin260.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.94
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2086       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5656       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.449       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6761       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12824E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.772       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2049       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4739       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0843       1.0000         .10000E-03   10000.    
    12 'norm      '    13.677       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12385E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8498       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2436       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8271       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0607       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.770       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78294       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=   5563.636     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2733 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2072        4.2569        .20156E-06   -.78858E-05
   2  norm          1.5656        1.3518        .25397E-08   -.45234E-04
   3  Prefactor     11.478        44.942        .12143E-05   -.56700E-05
   4  Prefactor     4.6779        4.2503        .26640E-06   -.98383E-04
   5  Prefactor     .10000E-03    41.211        .50411E-05** at limit **
   6  Prefactor     .10000E-03    18.385        .29096E-06** at limit **
   7  Prefactor     .10000E-03    34.129       -.22719E-05** at limit **
   8  Prefactor     14.613        47.761        .45774E-05   -.25845E-05
   9  Prefactor     5.2044        5.5432       -.97904E-08   -.77331E-04
  10  Prefactor     2.4812        7.2274        .46977E-05   -.10460E-04
  11  Prefactor     2.0877        2.8510        .12264E-06   -.57743E-04
  12  norm          13.679        8.9112        .23635E-06   -.22205E-04
  13  Prefactor     .10000E-03    4.0200        .67479E-07** at limit **
  14  Prefactor     .10000E-03    46.888        .47617E-06** at limit **
  15  Prefactor     1.8468        4.0974        .24922E-06   -.15430E-04
  16  norm          4.2507        9.5821        .21480E-05   -.49546E-05
  17  Prefactor     .10000E-03    49.310       -.36803E-05** at limit **
  18  Prefactor     .10000E-03    16.514       -.15518E-06** at limit **
  19  Prefactor     1.8269        3.3430        .67972E-07   -.91539E-05
  20  Prefactor     .10000E-03    2.6953        .12630E-07** at limit **
  21  Prefactor     4.0607        2.6961        .78190E-07   -.12543E-04
  22  Prefactor     26.788        24.023        .26265E-05    .10594E-04
  23  Normalizat    1.2195        .18266       -.74254E-06   -.53383E-04
  24  Prefactor     .78335        .18593       -.10003E-05   -.97436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.20725
  norm       = 1.5656
  Prefactor  = 11.4783
  Prefactor  = 4.67786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6134
  Prefactor  = 5.20438
  Prefactor  = 2.48115
  Prefactor  = 2.08774
  norm       = 13.6788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.84679
  norm       = 4.25065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.8269
  Prefactor  = 0.0001
  Prefactor  = 4.06067
  Prefactor  = 26.788
  Normalizat = 1.21951
  Prefactor  = 0.783345
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.636     FROM HESSE     STATUS=OK           405 CALLS     3138 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2072        4.2576        .10782E-03   -1.5135    
   2  norm          1.5656        1.3623        .78036E-04   -1.5458    
   3  Prefactor     11.478        44.954        .11840E-03   -1.5030    
   4  Prefactor     4.6779        4.2499        .13791E-03   -1.5275    
   5  Prefactor     .10000E-03    41.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.613        47.833        .10421E-03   -1.4943    
   9  Prefactor     5.2044        5.5427        .17364E-03   -1.5252    
  10  Prefactor     2.4812        7.2317        .12998E-02   -1.5393    
  11  Prefactor     2.0877        2.8333        .13828E-03   -1.5419    
  12  norm          13.679        8.9123        .54154E-03   -1.4968    
  13  Prefactor     .10000E-03    4.1479        .28973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8468        4.0553        .21144E-03   -1.5436    
  16  norm          4.2507        9.5803        .97800E-03   -1.5296    
  17  Prefactor     .10000E-03    49.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8269        3.3080        .17853E-03   -1.5438    
  20  Prefactor     .10000E-03    2.7010        .11958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.0607        2.6964        .96325E-04   -1.5305    
  22  Prefactor     26.788        24.051        .77428E-04   -1.4672    
  23  Normalizat    1.2195        .21846        .22289E-03   -.86002    
  24  Prefactor     .78335        .22108        .28753E-03   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97554e-10
Minuit parameter uncertainties:
  1  4.25779
  2  1.36235
  3  45.0867
  4  4.2502
  5  6.32728e-05
  6  1.92575e-06
  7  2.51224e-05
  8  47.9585
  9  5.54329
  10  7.23422
  11  2.83344
  12  8.9132
  13  7.81131e-06
  14  3.09268e-05
  15  4.05586
  16  9.58378
  17  1.0517e-06
  18  1.10004e-06
  19  3.30836
  20  1.65175e-06
  21  2.69647
  22  24.06
  23  0.21862
  24  0.221332
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.088e+00  2.833e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  7.833e-01  2.213e-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.220e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654874/likelihoodResults_306720001_306979201_4FGL_J1001.1+2911_daily_bin260.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) = 5563.1295848
delta logL = 0.506347943926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5563.1266228
delta logL = 0.509309937865

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91763E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.6634       1.0000          .0000       10.000    
     3 'Normalizat'    1.1203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86533       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=   5563.127     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      309 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91421E-01    .94606        .37816E-02    .92909E-03
   2  Index         4.6657        2.3905        .12509        .75899E-04
   3  Normalizat    1.1206        .40536E-01    .37229E-01   -.22071E-04
   4  Prefactor     .86519        .43170E-01    .44562E-01    .18263E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0914212
  Index      = 4.6657
  Normalizat = 1.12059
  Prefactor  = 0.865189
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.127     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      342 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91421E-01    2.6335        .17025E-04   -1.5648    
   2  Index         4.6657        7.1139        .43733E-02   -.66911E-01
   3  Normalizat    1.1206        .18587        .23097E-03   -.89094    
   4  Prefactor     .86519        .19351        .27490E-03   -.97368    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.48919e-10
Minuit parameter uncertainties:
  1  0.980852
  2  5.39901
  3  0.185977
  4  0.193662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654874': 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) = 5563.12661903
delta logL = 0.509313713351

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  9.142e-02  9.809e-01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.666e+00  5.399e+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:  8.652e-01  1.937e-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.121e+00  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 150.294 29.188
Photon Index (Free Index): 4.67 +/- 5.40
Photon Flux (Free Index): 9.60e-08 +/- 7.55e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/654874/cmap_HighResolution_306720001_306979201_4FGL_J1001.1+2911_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='5.09e-01', photon_flux2='9.60e-08', job_status='DONE', time_completed='2021-09-01 09:59:38.947681', photon_index_error2='5.40', photon_index2='4.67', ts='0.75', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.24e-05', EG='1.22', time_epoch_completed='1630515578.95', return_code='0', job_id='654874', GAL2='0.87', EG2='1.12', return_code2='102', photon_flux_error2='7.55e-08', ts2='1.96', photon_index='2.27' WHERE bin_id='260' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:59:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 654874: <4FGL_J1001.1+2911_daily_bin260> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin260> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:46:15 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:46:17 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:46:17 2021
Terminated at Wed Sep  1 09:59:39 2021
Results reported at Wed Sep  1 09:59:39 2021

Your job looked like:

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

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

