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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin1018
RA = 150.294, Dec = 29.188
tmin = 503193601, tmax = 503452801
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='660754', job_status='RUN', time_executed='2021-09-01 10:05:42.138098', time_epoch_executed='1630515942.14' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660754/ft1_4FGL_J1001.1+2911_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660754/ft2_4FGL_J1001.1+2911_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660754/ft1_4FGL_J1001.1+2911_daily_bin1018.fits outfile=/scratch/kocevski/660754/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin1018.fits ra=150.294 dec=29.188 rad=12.0 tmin=503193601.0 tmax=503452801.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 5.19
user 4.91
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660754/ft1_filtered_4FGL_J1001.1+2911_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/660754/ft2_4FGL_J1001.1+2911_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/660754/ltcube_503193601_503452801_4FGL_J1001.1+2911_daily_bin1018.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/660754/ft2_4FGL_J1001.1+2911_daily_bin1018.fits
.....................!
real 11.84
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660754/ft1_filtered_4FGL_J1001.1+2911_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/660754/ft2_4FGL_J1001.1+2911_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/660754/ltcube_503193601_503452801_4FGL_J1001.1+2911_daily_bin1018.fits outfile=/scratch/kocevski/660754/expmap_503193601_503452801_4FGL_J1001.1+2911_daily_bin1018.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/660754/ltcube_503193601_503452801_4FGL_J1001.1+2911_daily_bin1018.fits
.....................!
real 190.47
user 185.31
sys 4.38

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/660754/ft1_filtered_4FGL_J1001.1+2911_daily_bin1018.fits scfile=/scratch/kocevski/660754/ft2_4FGL_J1001.1+2911_daily_bin1018.fits outfile=/scratch/kocevski/660754/cmap_503193601_503452801_4FGL_J1001.1+2911_daily_bin1018.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.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3981       1.0000         .10000E-03   10000.    
     2 'norm      '    .59775       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6619       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5090       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4283       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.473       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.2591       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4651       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.5258       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .90931       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90872       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1566       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6228.141     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2334 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3982        3.0050         .0000        .10234E-02
   2  norm          .59740        1.3616         .0000        .10872E-02
   3  Prefactor     8.6615        63.933         .0000        .54367E-03
   4  Prefactor     1.5096        3.0233         .0000        .10906E-02
   5  Prefactor     .10001E-03    8.8149         .0000    ** at limit **
   6  Prefactor     5.4276        76.739         .0000        .69762E-03
   7  Prefactor     13.474        43.695         .0000       -.12236E-02
   8  Prefactor     .10001E-03    8.2531         .0000    ** at limit **
   9  Prefactor     24.094        8.4620         .0000        .14097E-03
  10  Prefactor     .10000E-03    2.0116         .0000    ** at limit **
  11  Prefactor     .10000E-03    1.4286         .0000    ** at limit **
  12  norm          7.2599        6.9428         .0000        .21631E-02
  13  Prefactor     1.4652        2.3359         .0000        .62725E-03
  14  Prefactor     .10001E-03    7.6686         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.1811         .0000    ** at limit **
  16  norm          9.5238        9.3941         .0000        .11654E-02
  17  Prefactor     .10000E-03    18.598         .0000    ** at limit **
  18  Prefactor     .10000E-03    18.510         .0000    ** at limit **
  19  Prefactor     .10000E-03    2.3367         .0000    ** at limit **
  20  Prefactor     .90968        6.1269         .0000        .31434E-01
  21  Prefactor     .10000E-03    .66461         .0000    ** at limit **
  22  Prefactor     .10001E-03    9.5600         .0000    ** at limit **
  23  Normalizat    .90856        .15993         .0000        .19316E-04
  24  Prefactor     1.1567        .17534         .0000       -.17794E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39821
  norm       = 0.597398
  Prefactor  = 8.66148
  Prefactor  = 1.50958
  Prefactor  = 0.000100008
  Prefactor  = 5.42764
  Prefactor  = 13.4738
  Prefactor  = 0.000100009
  Prefactor  = 24.0935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.25994
  Prefactor  = 1.46522
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 9.52378
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.909675
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Normalizat = 0.908562
  Prefactor  = 1.15671
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.141     FROM HESSE     STATUS=OK           397 CALLS     2731 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3982        2.9635        .19452E-03   -1.5471    
   2  norm          .59740        1.1769        .13276E-02   -1.5553    
   3  Prefactor     8.6615        63.988        .13620E-03   -1.5119    
   4  Prefactor     1.5096        2.9677        .18214E-03   -1.5462    
   5  Prefactor     .10001E-03    8.8247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4276        76.819        .17247E-03   -1.5242    
   7  Prefactor     13.474        44.000        .10913E-03   -1.4974    
   8  Prefactor     .10001E-03    8.2541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.094        8.4692        .81609E-04   -1.4726    
  10  Prefactor     .10000E-03    2.0130        .10931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.4817        .18390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2599        6.9376        .74437E-03   -1.5169    
  13  Prefactor     1.4652        2.3057        .14583E-03   -1.5466    
  14  Prefactor     .10001E-03    7.6695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1886        .83675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5238        9.3806        .64922E-03   -1.5091    
  17  Prefactor     .10000E-03    18.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5533        .23339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .90968        6.2107        .18732E-02   -1.5517    
  21  Prefactor     .10000E-03    .67079        .62801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    9.5746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90856        .18690        .23683E-03   -.96160    
  24  Prefactor     1.1567        .20647        .24354E-03   -.87674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34561e-08
Minuit parameter uncertainties:
  1  2.96381
  2  1.17699
  3  47.1548
  4  2.96799
  5  0.00052141
  6  40.9018
  7  44.1061
  8  0.000536639
  9  8.46965
  10  4.49899e-06
  11  3.33647e-06
  12  6.93837
  13  2.30579
  14  0.000401325
  15  4.82786e-06
  16  9.38207
  17  0.000273198
  18  7.42117e-05
  19  8.18163e-06
  20  4.75426
  21  4.02196e-06
  22  0.000636881
  23  0.187032
  24  0.206612
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.157e+00  2.066e-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.086e-01  1.870e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660754/likelihoodResults_503193601_503452801_4FGL_J1001.1+2911_daily_bin1018.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) = 6228.14417108
delta logL = -0.0032217521848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6228.14094867
delta logL = 6.57131749904e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3017       1.0000          .0000       10.000    
     3 'Normalizat'    .90867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1567       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=   6227.429     FROM MIGRAD    STATUS=CONVERGED    185 CALLS      340 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31304E-02    .84479E-02    .90712E-03   -.47457E-02
   2  Index         5.9824        1.0438        .11890        .90925E-04
   3  Normalizat    .84742        .16305        .45012E-01   -.23719E-03
   4  Prefactor     1.2001        .17716        .54208E-01   -.19152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00313043
  Index      = 5.98242
  Normalizat = 0.847416
  Prefactor  = 1.20012
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.429     FROM HESSE     STATUS=OK            33 CALLS      373 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31304E-02    .57953E-01    .43641E-04   -1.5719    
   2  Index         5.9824        3.5435        .58770E-02    .19777    
   3  Normalizat    .84742        .18296        .24413E-03   -.98333    
   4  Prefactor     1.2001        .20584        .23967E-03   -.86328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01725e-10
Minuit parameter uncertainties:
  1  0.0265045
  2  3.9604
  3  0.183096
  4  0.205977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660754': 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) = 6227.42947855
delta logL = 0.7114707791

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.130e-03  2.650e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  5.982e+00  3.960e+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:  1.200e+00  2.060e-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:  8.474e-01  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 150.294 29.188
Photon Index (Free Index): 5.98 +/- 3.96
Photon Flux (Free Index): 4.78e-08 +/- 7.85e-07
Energy Flux (Free Index): 5.95e-06 +/- 9.70e-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/660754/cmap_HighResolution_503193601_503452801_4FGL_J1001.1+2911_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', comment='SUCCESS', energy_flux2='5.95e-06', dlogl='7.11e-01', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-09-01 10:16:41.207915', photon_index_error2='3.96', photon_index2='5.98', ts='-0.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='6.05e-08', energy_flux_error2='9.70e-05', EG='0.91', time_epoch_completed='1630516601.21', return_code='0', job_id='660754', GAL2='1.20', EG2='0.85', return_code2='0', photon_flux_error2='7.85e-07', ts2='1.51', photon_index='2.27' WHERE bin_id='1018' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 660754: <4FGL_J1001.1+2911_daily_bin1018> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin1018> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 10:05:21 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:05:22 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:05:22 2021
Terminated at Wed Sep  1 10:16:41 2021
Results reported at Wed Sep  1 10:16:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin1018 150.294 29.188 503193601 503452801 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 :                                   656.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

