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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin798
RA = 150.294, Dec = 29.188
tmin = 446169601, tmax = 446428801
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='659340', job_status='RUN', time_executed='2021-09-01 10:03:19.048526', time_epoch_executed='1630515799.05' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='798'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659340/ft1_4FGL_J1001.1+2911_daily_bin798.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659340/ft2_4FGL_J1001.1+2911_daily_bin798.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659340/ft1_4FGL_J1001.1+2911_daily_bin798.fits outfile=/scratch/kocevski/659340/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin798.fits ra=150.294 dec=29.188 rad=12.0 tmin=446169601.0 tmax=446428801.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.60
user 3.24
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659340/ft1_filtered_4FGL_J1001.1+2911_daily_bin798.fits evtable="EVENTS" scfile=/scratch/kocevski/659340/ft2_4FGL_J1001.1+2911_daily_bin798.fits sctable="SC_DATA" expcube=/scratch/kocevski/659340/ltcube_446169601_446428801_4FGL_J1001.1+2911_daily_bin798.fits outfile=/scratch/kocevski/659340/expmap_446169601_446428801_4FGL_J1001.1+2911_daily_bin798.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/659340/ltcube_446169601_446428801_4FGL_J1001.1+2911_daily_bin798.fits
.....................!
real 193.79
user 185.40
sys 3.93

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/659340/ft1_filtered_4FGL_J1001.1+2911_daily_bin798.fits scfile=/scratch/kocevski/659340/ft2_4FGL_J1001.1+2911_daily_bin798.fits outfile=/scratch/kocevski/659340/cmap_446169601_446428801_4FGL_J1001.1+2911_daily_bin798.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659340/ft1_filtered_4FGL_J1001.1+2911_daily_bin798.fits scfile=/scratch/kocevski/659340/ft2_4FGL_J1001.1+2911_daily_bin798.fits outfile=/scratch/kocevski/659340/cmap_HighResolution_446169601_446428801_4FGL_J1001.1+2911_daily_bin798.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.64
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3275       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.360       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15754E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.844       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.756       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6095       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8027       1.0000         .10000E-03   10000.    
    16 'norm      '    5.2916       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54597       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9915       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31930       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0824       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71720       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=   5038.123     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2430 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3271        4.2852        .83840E-07   -.24540E-04
   2  norm          2.2181        1.9637        .65363E-07   -.10809E-04
   3  Prefactor     18.595        69.241       -.26635E-05   -.27760E-04
   4  Prefactor     .10000E-03    1.6644       -.11368E-07** at limit **
   5  Prefactor     13.358        23.611        .14589E-06   -.84047E-05
   6  Prefactor     .10000E-03    34.186       -.26424E-07** at limit **
   7  Prefactor     .10000E-03    45.652       -.26790E-05** at limit **
   8  Prefactor     .10000E-03    105.66       -.19733E-05** at limit **
   9  Prefactor     12.844        9.1670        .99390E-07   -.48813E-04
  10  Prefactor     .10000E-03    7.6496       -.61043E-06** at limit **
  11  Prefactor     .10000E-03    1.5222        .76030E-07** at limit **
  12  norm          15.755        9.1990        .29308E-07   -.30301E-04
  13  Prefactor     1.6067        4.6333        .84857E-06   -.93792E-04
  14  Prefactor     .10000E-03    55.937        .38308E-05** at limit **
  15  Prefactor     5.8045        5.0747       -.15947E-06   -.47979E-04
  16  norm          5.2903        9.8712        .22026E-06   -.20979E-04
  17  Prefactor     .10000E-03    16.589       -.27361E-07** at limit **
  18  Prefactor     .10000E-03    33.781        .44265E-06** at limit **
  19  Prefactor     .54482        3.1926        .51412E-06   -.31858E-03
  20  Prefactor     4.9912        4.6453        .40272E-07    .61742E-05
  21  Prefactor     .31933        1.8352        .11796E-05   -.11099E-03
  22  Prefactor     .10000E-03    7.6556        .51653E-06** at limit **
  23  Normalizat    1.0825        .17518       -.83977E-06   -.99765E-04
  24  Prefactor     .71717        .17891        .15964E-06   -.10958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32712
  norm       = 2.21807
  Prefactor  = 18.5952
  Prefactor  = 0.0001
  Prefactor  = 13.3579
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.8436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7553
  Prefactor  = 1.60666
  Prefactor  = 0.000100001
  Prefactor  = 5.80449
  norm       = 5.29032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.544817
  Prefactor  = 4.9912
  Prefactor  = 0.319333
  Prefactor  = 0.0001
  Normalizat = 1.08254
  Prefactor  = 0.717165
 **********
 **   18 **HESSE 
 **********

 FCN=   5038.123     FROM HESSE     STATUS=OK           403 CALLS     2833 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3271        4.2844        .14145E-03   -1.5292    
   2  norm          2.2181        1.9555        .90203E-04   -1.5410    
   3  Prefactor     18.595        70.250        .92842E-04   -1.4845    
   4  Prefactor     .10000E-03    1.6808        .89348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.358        23.602        .10958E-03   -1.4977    
   6  Prefactor     .10000E-03    34.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    108.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.844        9.1749        .11177E-03   -1.4991    
  10  Prefactor     .10000E-03    7.7245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5977        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.755        9.1988        .10090E-03   -1.4914    
  13  Prefactor     1.6067        4.6348        .22215E-03   -1.5454    
  14  Prefactor     .10000E-03    57.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8045        5.0228        .12817E-03   -1.5226    
  16  norm          5.2903        9.8458        .17472E-03   -1.5248    
  17  Prefactor     .10000E-03    16.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .54482        10.644        .23423E-02   -1.5560    
  20  Prefactor     4.9912        4.6452        .14285E-03   -1.5261    
  21  Prefactor     .31933        1.8941        .18781E-03   -1.5595    
  22  Prefactor     .10000E-03    7.6930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0825        .20251        .20984E-03   -.90315    
  24  Prefactor     .71717        .20740        .27031E-03   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41022e-10
Minuit parameter uncertainties:
  1  4.28469
  2  1.95555
  3  70.5649
  4  2.46275e-06
  5  23.6182
  6  5.8967e-06
  7  0.000347283
  8  0.000252979
  9  9.17588
  10  2.9433e-05
  11  3.13893e-06
  12  9.19964
  13  4.63579
  14  0.000541425
  15  5.02314
  16  9.84876
  17  2.79889e-06
  18  6.13955e-06
  19  4.81671
  20  4.64557
  21  1.55529
  22  2.82208e-05
  23  0.202653
  24  0.207623
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.139e-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:  7.172e-01  2.076e-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.083e+00  2.027e-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: 7.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659340/likelihoodResults_446169601_446428801_4FGL_J1001.1+2911_daily_bin798.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) = 5038.12495621
delta logL = -0.00183523255873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5038.12312146
delta logL = -4.81750248582e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2600       1.0000          .0000       10.000    
     3 'Normalizat'    1.0826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71718       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=   5038.123     FROM MIGRAD    STATUS=FAILED        89 CALLS      241 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10084E-03    494.13        .16888E-02** at limit **
   2  Index         2.1067        5.9026        .97922E-01    .79628E-05
   3  Normalizat    1.0825        .83769E-01    .20984E-03   -.23463E-03
   4  Prefactor     .71717        .90033E-01    .27031E-03   -.15166E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5038.123     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      383 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10084E-03    494.13        .32880E-03** at limit **
   2  Index         2.1067        5.9026        .58896E-04    .79628E-05
   3  Normalizat    1.0825        .83769E-01    .21986E-05   -.23463E-03
   4  Prefactor     .71717        .90033E-01    .29227E-05   -.15166E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5038.123     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      421 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7642        .33777E-03** at limit **
   2  Index         2.0603        5.8272        .39169E-01    .25832E-07
   3  Normalizat    1.0825        .18945        .41967E-04    .11399E-03
   4  Prefactor     .71717        .20328        .10812E-04    .10493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06032
  Normalizat = 1.08254
  Prefactor  = 0.717166
 **********
 **   18 **HESSE 
 **********

 FCN=   5038.123     FROM HESSE     STATUS=OK            23 CALLS      444 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7172        .67553E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0603        6.3752        .15668E-02   -.62850    
   3  Normalizat    1.0825        .18950        .83935E-05   -.90315    
   4  Prefactor     .71717        .20336        .21625E-05   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85457e-11
Minuit parameter uncertainties:
  1  4.54861e-06
  2  150.087
  3  0.189621
  4  0.203571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659340': 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) = 5038.12312017
delta logL = 8.010865713e-07

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.549e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.060e+00  1.501e+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:  7.172e-01  2.036e-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.083e+00  1.896e-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/659340/cmap_HighResolution_446169601_446428801_4FGL_J1001.1+2911_daily_bin798.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2021-09-01 10:13:23.107931', job_id='659340', GAL2='0.72', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630516403.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='8.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='798' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:13:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 659340: <4FGL_J1001.1+2911_daily_bin798> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin798 150.294 29.188 446169601 446428801 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 :                                   595.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

