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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin373
RA = 150.294, Dec = 29.188
tmin = 336009601, tmax = 336268801
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='656144', job_status='RUN', time_executed='2021-09-01 09:54:40.680304', time_epoch_executed='1630515280.68' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656144/ft1_4FGL_J1001.1+2911_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656144/ft2_4FGL_J1001.1+2911_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656144/ft1_4FGL_J1001.1+2911_daily_bin373.fits outfile=/scratch/kocevski/656144/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin373.fits ra=150.294 dec=29.188 rad=12.0 tmin=336009601.0 tmax=336268801.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.30
user 3.06
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656144/ft1_filtered_4FGL_J1001.1+2911_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/656144/ft2_4FGL_J1001.1+2911_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/656144/ltcube_336009601_336268801_4FGL_J1001.1+2911_daily_bin373.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/656144/ft2_4FGL_J1001.1+2911_daily_bin373.fits
.....................!
real 12.55
user 12.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656144/ft1_filtered_4FGL_J1001.1+2911_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/656144/ft2_4FGL_J1001.1+2911_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/656144/ltcube_336009601_336268801_4FGL_J1001.1+2911_daily_bin373.fits outfile=/scratch/kocevski/656144/expmap_336009601_336268801_4FGL_J1001.1+2911_daily_bin373.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/656144/ltcube_336009601_336268801_4FGL_J1001.1+2911_daily_bin373.fits
.....................!
real 190.92
user 185.77
sys 4.64

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/656144/ft1_filtered_4FGL_J1001.1+2911_daily_bin373.fits scfile=/scratch/kocevski/656144/ft2_4FGL_J1001.1+2911_daily_bin373.fits outfile=/scratch/kocevski/656144/cmap_336009601_336268801_4FGL_J1001.1+2911_daily_bin373.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656144/ft1_filtered_4FGL_J1001.1+2911_daily_bin373.fits scfile=/scratch/kocevski/656144/ft2_4FGL_J1001.1+2911_daily_bin373.fits outfile=/scratch/kocevski/656144/cmap_HighResolution_336009601_336268801_4FGL_J1001.1+2911_daily_bin373.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5345       1.0000         .10000E-03   10000.    
     2 'norm      '    .72515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10831E-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      '    3.2658       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .51453       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12258E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.071       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2135       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83014       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=   5301.562     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2779 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5343        3.6741        .15867E-06    .61602E-04
   2  norm          .72522        1.4125       -.13096E-06   -.65972E-03
   3  Prefactor     17.873        52.937        .73487E-05    .47948E-04
   4  Prefactor     .10000E-03    3.9903       -.18360E-06** at limit **
   5  Prefactor     .10000E-03    14.754        .50828E-06** at limit **
   6  Prefactor     .10000E-03    173.76        .71519E-05** at limit **
   7  Prefactor     .10000E-03    21.774       -.16147E-05** at limit **
   8  Prefactor     .10000E-03    29.404        .28917E-05** at limit **
   9  Prefactor     .10001E-03    7.5153        .25474E-05** at limit **
  10  Prefactor     .10000E-03    3.6606        .95166E-08** at limit **
  11  Prefactor     .10000E-03    1.0010        .57780E-07** at limit **
  12  norm          3.2670        6.8546        .42264E-05    .71005E-03
  13  Prefactor     .51300        3.8990        .11265E-05    .20550E-03
  14  Prefactor     .10000E-03    44.343       -.35797E-05** at limit **
  15  Prefactor     .10000E-03    2.2399        .54580E-07** at limit **
  16  norm          .10305E-03    13.155       -.52490E-05** at limit **
  17  Prefactor     .10000E-03    25.688        .17534E-05** at limit **
  18  Prefactor     .10000E-03    9.0273        .74179E-07** at limit **
  19  Prefactor     .10000E-03    1.5923        .39665E-07** at limit **
  20  Prefactor     11.070        7.2839        .74889E-07    .37071E-06
  21  Prefactor     .10000E-03    1.2477        .43860E-07** at limit **
  22  Prefactor     .10000E-03    10.101       -.10603E-06** at limit **
  23  Normalizat    1.2136        .18020       -.10358E-05   -.20922E-03
  24  Prefactor     .83005        .19559       -.17885E-06   -.64765E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.53426
  norm       = 0.725222
  Prefactor  = 17.8729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26703
  Prefactor  = 0.513001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21364
  Prefactor  = 0.830054
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.562     FROM HESSE     STATUS=OK           403 CALLS     3182 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5343        3.6774        .11072E-03   -1.5237    
   2  norm          .72522        1.1568        .11750E-02   -1.5538    
   3  Prefactor     17.873        53.162        .94672E-04   -1.4862    
   4  Prefactor     .10000E-03    4.1098        .28344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    174.99        .21403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    22.006        .34933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6783        .13604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0122        .71094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2670        7.0193        .11204E-02   -1.5346    
  13  Prefactor     .51300        4.0127        .27167E-02   -1.5565    
  14  Prefactor     .10000E-03    44.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2723        .10595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10305E-03    8.6104        .62426E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.0321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6036        .89722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.070        7.2850        .12041E-03   -1.5042    
  21  Prefactor     .10000E-03    1.2977        .15874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2136        .20741        .20940E-03   -.86182    
  24  Prefactor     .83005        .22726        .26993E-03   -.98630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61182e-09
Minuit parameter uncertainties:
  1  3.67758
  2  1.15684
  3  53.3029
  4  1.66489e-05
  5  1.63865e-05
  6  0.000896844
  7  8.30457e-05
  8  0.000194322
  9  0.000878363
  10  2.57576e-06
  11  1.38845e-06
  12  7.0211
  13  2.8695
  14  0.000242053
  15  3.93088e-06
  16  0.0102499
  17  0.000120186
  18  6.60555e-06
  19  2.55548e-06
  20  7.28561
  21  2.72915e-06
  22  8.74046e-07
  23  0.207546
  24  0.22752
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.388e-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:  8.301e-01  2.275e-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.214e+00  2.075e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656144/likelihoodResults_336009601_336268801_4FGL_J1001.1+2911_daily_bin373.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) = 5301.56651338
delta logL = -0.004655135338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5301.56185844
delta logL = -1.94465428649e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2605       1.0000          .0000       10.000    
     3 'Normalizat'    1.2137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83008       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=   5301.562     FROM MIGRAD    STATUS=FAILED        82 CALLS      226 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    29.612        .71299E-03** at limit **
   2  Index         2.2316        5.4529        .50000        .55683E-04
   3  Normalizat    1.2136        .23749E-01    .20940E-03    .10431E-03
   4  Prefactor     .83005        .25959E-01    .26993E-03    .89037E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5301.562     FROM SIMPLEX   STATUS=UNCHANGED    134 CALLS      360 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    29.612        .14174E-03** at limit **
   2  Index         2.2316        5.4529        .15197E-03    .55683E-04
   3  Normalizat    1.2136        .23749E-01    .38080E-05    .10431E-03
   4  Prefactor     .83005        .25959E-01    .45206E-05    .89037E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5301.562     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      402 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    149.22        .14260E-03** at limit **
   2  Index         2.0917        7.4042        .50000        .28865E-06
   3  Normalizat    1.2136        .65014E-01    .41880E-04   -.11804E-02
   4  Prefactor     .83005        .71017E-01    .10797E-04   -.90869E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09171
  Normalizat = 1.21364
  Prefactor  = 0.830051
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.562     FROM HESSE     STATUS=OK            29 CALLS      431 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3816        .28519E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0917        5.0036        .50000       -.62077    
   3  Normalizat    1.2136        .20368        .83759E-05   -.86182    
   4  Prefactor     .83005        .22253        .21594E-05   -.98630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30587e-09
Minuit parameter uncertainties:
  1  5.89141e-06
  2  51.1166
  3  0.203814
  4  0.222776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656144': 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) = 5301.56185677
delta logL = 1.46931597556e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  8.301e-01  2.228e-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.214e+00  2.038e-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/656144/cmap_HighResolution_336009601_336268801_4FGL_J1001.1+2911_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-09-01 10:05:11.973540', job_id='656144', GAL2='0.83', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630515911.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='373' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:05:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 656144: <4FGL_J1001.1+2911_daily_bin373> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin373> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:50:47 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:50:48 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:48 2021
Terminated at Wed Sep  1 10:05:12 2021
Results reported at Wed Sep  1 10:05:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin373 150.294 29.188 336009601 336268801 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 :                                   628.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

