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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin822
RA = 150.294, Dec = 29.188
tmin = 452390401, tmax = 452649601
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='659381', job_status='RUN', time_executed='2021-09-01 10:04:43.521958', time_epoch_executed='1630515883.52' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='822'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659381/ft1_4FGL_J1001.1+2911_daily_bin822.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659381/ft2_4FGL_J1001.1+2911_daily_bin822.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659381/ft1_4FGL_J1001.1+2911_daily_bin822.fits outfile=/scratch/kocevski/659381/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin822.fits ra=150.294 dec=29.188 rad=12.0 tmin=452390401.0 tmax=452649601.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.37
user 3.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659381/ft2_4FGL_J1001.1+2911_daily_bin822.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/659381/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin822.fits evtable="EVENTS" outfile="/scratch/kocevski/659381/ft1_filtered_4FGL_J1001.1+2911_daily_bin822.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/659381/ft1_filtered_4FGL_J1001.1+2911_daily_bin822.fits" evtable="EVENTS" scfile=/scratch/kocevski/659381/ft2_4FGL_J1001.1+2911_daily_bin822.fits sctable="SC_DATA" outfile=/scratch/kocevski/659381/ltcube_452390401_452649601_4FGL_J1001.1+2911_daily_bin822.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/659381/ft2_4FGL_J1001.1+2911_daily_bin822.fits
.....................!
real 11.70
user 11.37
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659381/ft1_filtered_4FGL_J1001.1+2911_daily_bin822.fits evtable="EVENTS" scfile=/scratch/kocevski/659381/ft2_4FGL_J1001.1+2911_daily_bin822.fits sctable="SC_DATA" expcube=/scratch/kocevski/659381/ltcube_452390401_452649601_4FGL_J1001.1+2911_daily_bin822.fits outfile=/scratch/kocevski/659381/expmap_452390401_452649601_4FGL_J1001.1+2911_daily_bin822.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/659381/ltcube_452390401_452649601_4FGL_J1001.1+2911_daily_bin822.fits
.....................!
real 190.60
user 185.88
sys 4.02

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/659381/ft1_filtered_4FGL_J1001.1+2911_daily_bin822.fits scfile=/scratch/kocevski/659381/ft2_4FGL_J1001.1+2911_daily_bin822.fits outfile=/scratch/kocevski/659381/cmap_452390401_452649601_4FGL_J1001.1+2911_daily_bin822.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.77
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659381/ft1_filtered_4FGL_J1001.1+2911_daily_bin822.fits scfile=/scratch/kocevski/659381/ft2_4FGL_J1001.1+2911_daily_bin822.fits outfile=/scratch/kocevski/659381/cmap_HighResolution_452390401_452649601_4FGL_J1001.1+2911_daily_bin822.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.74
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1846       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6060       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    94.513       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.512       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8093       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    36.567       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14620E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6967       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2204       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0360       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6186       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90037       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0431       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=   5553.430     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2712 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9505        .20815E-06** at limit **
   2  norm          2.1845        1.6071       -.74056E-08   -.69642E-05
   3  Prefactor     .10000E-03    10.476        .53598E-06** at limit **
   4  Prefactor     1.6062        3.4136       -.33676E-07   -.83884E-04
   5  Prefactor     .10000E-03    6.3812        .60813E-07** at limit **
   6  Prefactor     .10000E-03    21.749        .28537E-05** at limit **
   7  Prefactor     94.520        49.395        .48098E-05    .41025E-04
   8  Prefactor     23.505        45.512       -.11694E-04   -.15588E-04
   9  Prefactor     7.5332        6.5434       -.19072E-06   -.42324E-05
  10  Prefactor     2.8094        3.6459       -.10407E-05    .17217E-04
  11  Prefactor     .10000E-03    .76564        .54481E-07** at limit **
  12  norm          36.567        11.766       -.13662E-06    .16436E-04
  13  Prefactor     .10010E-03    1.6575       -.10627E-05** at limit **
  14  Prefactor     41.293        42.720       -.14493E-05   -.23277E-05
  15  Prefactor     .10000E-03    4.3188       -.12428E-06** at limit **
  16  norm          5.6967        11.180       -.17498E-06    .21624E-04
  17  Prefactor     .10000E-03    22.992       -.52983E-05** at limit **
  18  Prefactor     .10000E-03    14.784        .85123E-06** at limit **
  19  Prefactor     6.2207        4.6284        .16569E-05    .18885E-03
  20  Prefactor     2.0359        1.7964        .29016E-06   -.16926E-02
  21  Prefactor     2.6188        2.6815       -.53073E-07   -.37029E-04
  22  Prefactor     .10000E-03    15.727        .51993E-05** at limit **
  23  Normalizat    .90020        .17669       -.34889E-06    .25214E-03
  24  Prefactor     1.0433        .19116        .73436E-06    .14363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 2.18448
  Prefactor  = 0.0001
  Prefactor  = 1.60616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.5195
  Prefactor  = 23.5052
  Prefactor  = 7.53316
  Prefactor  = 2.80944
  Prefactor  = 0.0001
  norm       = 36.5674
  Prefactor  = 0.000100096
  Prefactor  = 41.2928
  Prefactor  = 0.0001
  norm       = 5.69672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.2207
  Prefactor  = 2.03591
  Prefactor  = 2.61876
  Prefactor  = 0.0001
  Normalizat = 0.900204
  Prefactor  = 1.04332
 **********
 **   18 **HESSE 
 **********

 FCN=   5553.430     FROM HESSE     STATUS=OK           403 CALLS     3115 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.321        .20226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1845        1.6044        .78104E-04   -1.5412    
   3  Prefactor     .10000E-03    10.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6062        3.3906        .18807E-03   -1.5454    
   5  Prefactor     .10000E-03    6.3845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     94.520        49.486        .41341E-04   -1.3760    
   8  Prefactor     23.505        45.667        .82608E-04   -1.4738    
   9  Prefactor     7.5332        6.5433        .14612E-03   -1.5159    
  10  Prefactor     2.8094        3.6395        .15806E-03   -1.5373    
  11  Prefactor     .10000E-03    .77541        .63644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          36.567        11.764        .66275E-04   -1.4498    
  13  Prefactor     .10010E-03    12.284        .17916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.293        42.714        .62381E-04   -1.4422    
  15  Prefactor     .10000E-03    4.4603        .30065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6967        11.180        .16829E-03   -1.5231    
  17  Prefactor     .10000E-03    23.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.2207        4.6271        .13294E-03   -1.5209    
  20  Prefactor     2.0359        5.6968        .14030E-02   -1.5423    
  21  Prefactor     2.6188        2.7167        .11650E-03   -1.5384    
  22  Prefactor     .10000E-03    15.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90020        .20433        .23545E-03   -.96453    
  24  Prefactor     1.0433        .22158        .25098E-03   -.91299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25821e-08
Minuit parameter uncertainties:
  1  0.000352773
  2  1.60442
  3  2.52688e-06
  4  3.39102
  5  8.70461e-07
  6  3.70538e-05
  7  49.5072
  8  45.7352
  9  6.54393
  10  3.63983
  11  4.90091e-07
  12  11.7643
  13  0.00217
  14  42.7461
  15  7.40381e-06
  16  11.184
  17  2.67475e-05
  18  5.77613e-05
  19  4.62735
  20  5.69835
  21  2.71681
  22  1.26016e-05
  23  0.20451
  24  0.221775
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.901e-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.043e+00  2.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  9.002e-01  2.045e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659381/likelihoodResults_452390401_452649601_4FGL_J1001.1+2911_daily_bin822.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) = 5553.43565747
delta logL = -0.00604915018903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5553.4296091
delta logL = -7.85332304076e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2523       1.0000          .0000       10.000    
     3 'Normalizat'    .90022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0434       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=   5553.430     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      206 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0760        .90712E-02** at limit **
   2  Index         1.8917        8.2257        .50000        .13318E-05
   3  Normalizat    .90020        .76929E-02    .44904E-01    .35057E-04
   4  Prefactor     1.0433        .88076E-02    .40314E-01    .18137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89169
  Normalizat = 0.900203
  Prefactor  = 1.04332
 **********
 **   18 **HESSE 
 **********

 FCN=   5553.430     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.577        .68514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8917        8.8314        .50000       -.67086    
   3  Normalizat    .90020        .36452E-01    .23545E-03   -.96453    
   4  Prefactor     1.0433        .41742E-01    .25098E-03   -.91299    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3886e-08
Minuit parameter uncertainties:
  1  3.73046e-05
  2  407.885
  3  0.0364527
  4  0.0417437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659381': 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) = 5553.42959984
delta logL = 8.4757912191e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.730e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.892e+00  4.079e+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.043e+00  4.174e-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:  9.002e-01  3.645e-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/659381/cmap_HighResolution_452390401_452649601_4FGL_J1001.1+2911_daily_bin822.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.75e-08', time_completed='2021-09-01 10:15:17.900053', job_id='659381', GAL2='1.04', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630516517.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='8.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='822' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 659381: <4FGL_J1001.1+2911_daily_bin822> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin822 150.294 29.188 452390401 452649601 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

