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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin461
RA = 150.294, Dec = 29.188
tmin = 358819201, tmax = 359078401
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='656282', job_status='RUN', time_executed='2021-09-01 09:54:23.764303', time_epoch_executed='1630515263.76' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656282

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656282/ft1_4FGL_J1001.1+2911_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656282/ft2_4FGL_J1001.1+2911_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656282/ft1_4FGL_J1001.1+2911_daily_bin461.fits outfile=/scratch/kocevski/656282/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin461.fits ra=150.294 dec=29.188 rad=12.0 tmin=358819201.0 tmax=359078401.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.36
user 5.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656282/ft1_filtered_4FGL_J1001.1+2911_daily_bin461.fits" evtable="EVENTS" scfile=/scratch/kocevski/656282/ft2_4FGL_J1001.1+2911_daily_bin461.fits sctable="SC_DATA" outfile=/scratch/kocevski/656282/ltcube_358819201_359078401_4FGL_J1001.1+2911_daily_bin461.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/656282/ft2_4FGL_J1001.1+2911_daily_bin461.fits
.....................!
real 11.34
user 10.90
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656282/ft1_filtered_4FGL_J1001.1+2911_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/656282/ft2_4FGL_J1001.1+2911_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/656282/ltcube_358819201_359078401_4FGL_J1001.1+2911_daily_bin461.fits outfile=/scratch/kocevski/656282/expmap_358819201_359078401_4FGL_J1001.1+2911_daily_bin461.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/656282/ltcube_358819201_359078401_4FGL_J1001.1+2911_daily_bin461.fits
.....................!
real 192.42
user 187.18
sys 4.70

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/656282/ft1_filtered_4FGL_J1001.1+2911_daily_bin461.fits scfile=/scratch/kocevski/656282/ft2_4FGL_J1001.1+2911_daily_bin461.fits outfile=/scratch/kocevski/656282/cmap_358819201_359078401_4FGL_J1001.1+2911_daily_bin461.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.72
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656282/ft1_filtered_4FGL_J1001.1+2911_daily_bin461.fits scfile=/scratch/kocevski/656282/ft2_4FGL_J1001.1+2911_daily_bin461.fits outfile=/scratch/kocevski/656282/cmap_HighResolution_358819201_359078401_4FGL_J1001.1+2911_daily_bin461.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .76729       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20184E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.909       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.576       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30257       1.0000         .10000E-03   10000.    
    12 'norm      '    .30319E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48858E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5792       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3031       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3330       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77417       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=   5112.692     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2764 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5451       -.32287E-07** at limit **
   2  norm          .76826        1.5575       -.48299E-06   -.14087E-02
   3  Prefactor     .10000E-03    47.218        .38280E-06** at limit **
   4  Prefactor     .10000E-03    1.6220       -.27547E-07** at limit **
   5  Prefactor     .10000E-03    117.98       -.40617E-07** at limit **
   6  Prefactor     55.878        72.931       -.27459E-04    .80970E-05
   7  Prefactor     .10000E-03    18.221        .50673E-06** at limit **
   8  Prefactor     12.557        57.225       -.28531E-04    .36860E-05
   9  Prefactor     9.4033        9.2271       -.35911E-05   -.16716E-03
  10  Prefactor     .10000E-03    3.7096       -.51696E-07** at limit **
  11  Prefactor     .30124        1.7337       -.65968E-06   -.46679E-03
  12  norm          .10471E-03    6.7491        .16127E-05** at limit **
  13  Prefactor     .10000E-03    1.8702       -.27664E-08** at limit **
  14  Prefactor     .10000E-03    18.275        .20745E-05** at limit **
  15  Prefactor     .11435E-01    2.8809       -.18303E-05    .68531E-03
  16  norm          3.5840        9.3929        .31216E-05   -.14753E-04
  17  Prefactor     .10000E-03    62.655        .13964E-07** at limit **
  18  Prefactor     .10000E-03    18.460       -.23225E-05** at limit **
  19  Prefactor     .10000E-03    3.3173       -.10738E-06** at limit **
  20  Prefactor     .10000E-03    5.3505       -.93773E-07** at limit **
  21  Prefactor     4.3022        2.8122       -.25898E-06   -.14533E-03
  22  Prefactor     .10000E-03    9.0556       -.10480E-06** at limit **
  23  Normalizat    1.3333        .18297        .20523E-05    .35166E-03
  24  Prefactor     .77397        .19060        .29791E-05    .17781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.768258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.8778
  Prefactor  = 0.0001
  Prefactor  = 12.5571
  Prefactor  = 9.40329
  Prefactor  = 0.0001
  Prefactor  = 0.301236
  norm       = 0.000104706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0114352
  norm       = 3.58398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.30222
  Prefactor  = 0.0001
  Normalizat = 1.33333
  Prefactor  = 0.773969
 **********
 **   18 **HESSE 
 **********

 FCN=   5112.692     FROM HESSE     STATUS=OK           411 CALLS     3175 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5486        .86795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76826        1.2930        .12359E-02   -1.5533    
   3  Prefactor     .10000E-03    47.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6428        .88888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    121.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     55.878        72.790        .53648E-04   -1.4212    
   7  Prefactor     .10000E-03    18.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.557        57.479        .11296E-03   -1.4999    
   9  Prefactor     9.4033        9.2206        .13065E-03   -1.5095    
  10  Prefactor     .10000E-03    3.7252        .13449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .30124        3.1085        .17789E-02   -1.5598    
  12  norm          .10471E-03    14.576        .54849E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8860        .95280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11435E-01    10.436        .35383E-01   -1.5687    
  16  norm          3.5840        9.3627        .21361E-03   -1.5329    
  17  Prefactor     .10000E-03    62.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3443        .12711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4102        .16147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3022        2.8140        .93487E-04   -1.5293    
  22  Prefactor     .10000E-03    9.0581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3333        .21915        .21140E-03   -.82577    
  24  Prefactor     .77397        .22451        .28681E-03   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17288e-09
Minuit parameter uncertainties:
  1  3.38352e-06
  2  1.29303
  3  3.93709e-05
  4  3.17191e-06
  5  0.000430932
  6  72.9067
  7  2.15094e-05
  8  53.8168
  9  9.22204
  10  7.62969e-06
  11  1.93515
  12  0.0165685
  13  6.91482e-07
  14  9.97801e-06
  15  0.687989
  16  9.36655
  17  0.000158864
  18  3.06988e-05
  19  1.43811e-05
  20  1.98726e-05
  21  2.81412
  22  7.81908e-06
  23  0.219308
  24  0.224774
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  7.740e-01  2.248e-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.333e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656282/likelihoodResults_358819201_359078401_4FGL_J1001.1+2911_daily_bin461.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) = 5112.66240473
delta logL = 0.0294951525375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5112.64245779
delta logL = 0.0494420924642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72254       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7894       1.0000          .0000       10.000    
     3 'Normalizat'    1.3370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76778       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5112.642     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      258 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72368        2.2311        .18419E-03   -.82710E-05
   2  Index         1.7887        1.1360        .16748E-01   -.87346E-04
   3  Normalizat    1.3373        .20613        .21112E-03    .87127E-05
   4  Prefactor     .76748        .22125        .28789E-03   -.14098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.723678
  Index      = 1.78866
  Normalizat = 1.33732
  Prefactor  = 0.767484
 **********
 **   18 **HESSE 
 **********

 FCN=   5112.642     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72368        2.2289        .73675E-05   -1.5538    
   2  Index         1.7887        1.1359        .33495E-02   -.69745    
   3  Normalizat    1.3373        .20625        .42225E-04   -.82459    
   4  Prefactor     .76748        .22136        .11516E-04   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6822e-12
Minuit parameter uncertainties:
  1  2.22919
  2  1.15318
  3  0.206377
  4  0.221618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656282': 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) = 5112.64245623
delta logL = 0.0494436474546

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  7.237e-01  2.229e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.789e+00  1.153e+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:  7.675e-01  2.216e-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.337e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/656282/cmap_HighResolution_358819201_359078401_4FGL_J1001.1+2911_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-01 10:04:44.536845', job_id='656282', GAL2='0.77', fit_tolerance='1e-08', EG2='1.34', EG='1.33', time_epoch_completed='1630515884.54', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.94e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='461' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:04:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 656282: <4FGL_J1001.1+2911_daily_bin461> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin461> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:50:59 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:51:00 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:51:00 2021
Terminated at Wed Sep  1 10:04:45 2021
Results reported at Wed Sep  1 10:04:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin461 150.294 29.188 358819201 359078401 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 :                                   618.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

