/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 14 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 = 7502
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin732
RA = 150.294, Dec = 29.188
tmin = 429062401, tmax = 429321601
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='659228', job_status='RUN', time_executed='2021-09-01 10:01:27.708096', time_epoch_executed='1630515687.71' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659228/ft1_4FGL_J1001.1+2911_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659228/ft2_4FGL_J1001.1+2911_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659228/ft1_4FGL_J1001.1+2911_daily_bin732.fits outfile=/scratch/kocevski/659228/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin732.fits ra=150.294 dec=29.188 rad=12.0 tmin=429062401.0 tmax=429321601.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 6.38
user 6.11
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659228/ft1_filtered_4FGL_J1001.1+2911_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/659228/ft2_4FGL_J1001.1+2911_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/659228/ltcube_429062401_429321601_4FGL_J1001.1+2911_daily_bin732.fits outfile=/scratch/kocevski/659228/expmap_429062401_429321601_4FGL_J1001.1+2911_daily_bin732.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/659228/ltcube_429062401_429321601_4FGL_J1001.1+2911_daily_bin732.fits
.....................!
real 190.24
user 185.23
sys 4.48

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/659228/ft1_filtered_4FGL_J1001.1+2911_daily_bin732.fits scfile=/scratch/kocevski/659228/ft2_4FGL_J1001.1+2911_daily_bin732.fits outfile=/scratch/kocevski/659228/cmap_429062401_429321601_4FGL_J1001.1+2911_daily_bin732.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659228/ft1_filtered_4FGL_J1001.1+2911_daily_bin732.fits scfile=/scratch/kocevski/659228/ft2_4FGL_J1001.1+2911_daily_bin732.fits outfile=/scratch/kocevski/659228/cmap_HighResolution_429062401_429321601_4FGL_J1001.1+2911_daily_bin732.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.57
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8941       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5065       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9778       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.331       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4558       1.0000         .10000E-03   10000.    
    16 'norm      '    20.458       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4862       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .72100       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3917       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=   4031.329     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     3090 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8941        2.9197        .43506E-07   -.86240E-04
   2  norm          1.5064        1.7793        .71668E-06   -.16655E-02
   3  Prefactor     .10001E-03    35.848       -.46969E-05** at limit **
   4  Prefactor     3.9778        4.5148        .26702E-07   -.37738E-04
   5  Prefactor     .10001E-03    28.392        .51682E-05** at limit **
   6  Prefactor     15.345        254.99        .12714E-04    .30590E-04
   7  Prefactor     .10000E-03    15.974        .10757E-05** at limit **
   8  Prefactor     3.7013        370.87       -.24486E-04   -.48870E-04
   9  Prefactor     14.915        9.6760        .40349E-08    .18980E-04
  10  Prefactor     .10000E-03    5.3880       -.14838E-06** at limit **
  11  Prefactor     .10000E-03    1.0875        .23347E-07** at limit **
  12  norm          .10000E-03    2.8835       -.44671E-07** at limit **
  13  Prefactor     .10000E-03    5.0296        .19050E-07** at limit **
  14  Prefactor     .10000E-03    34.390       -.44909E-06** at limit **
  15  Prefactor     5.4561        5.9586       -.86115E-06   -.54677E-03
  16  norm          20.458        16.339       -.10761E-07   -.30486E-04
  17  Prefactor     45.117        58.734        .26291E-05    .97204E-04
  18  Prefactor     .10000E-03    19.506       -.42444E-05** at limit **
  19  Prefactor     .10000E-03    2.6844       -.25683E-07** at limit **
  20  Prefactor     4.4857        6.0518        .23530E-05   -.12787E-02
  21  Prefactor     .10000E-03    2.2318       -.53880E-07** at limit **
  22  Prefactor     .10000E-03    24.532        .24221E-05** at limit **
  23  Normalizat    .72097        .20987        .53916E-06   -.14207E-04
  24  Prefactor     1.3918        .23242       -.76377E-06    .54041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89408
  norm       = 1.50644
  Prefactor  = 0.000100005
  Prefactor  = 3.97777
  Prefactor  = 0.000100005
  Prefactor  = 15.3454
  Prefactor  = 0.0001
  Prefactor  = 3.70128
  Prefactor  = 14.9149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.4561
  norm       = 20.4581
  Prefactor  = 45.1167
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 4.48567
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.720971
  Prefactor  = 1.39177
 **********
 **   18 **HESSE 
 **********

 FCN=   4031.329     FROM HESSE     STATUS=OK           391 CALLS     3481 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8941        2.8949        .13114E-03   -1.5433    
   2  norm          1.5064        1.8373        .46030E-03   -1.5462    
   3  Prefactor     .10001E-03    36.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9778        4.4989        .13338E-03   -1.5309    
   5  Prefactor     .10001E-03    29.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.345        256.53        .10229E-03   -1.4924    
   7  Prefactor     .10000E-03    16.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7013        392.52        .20944E-03   -1.5323    
   9  Prefactor     14.915        9.6806        .10371E-03   -1.4935    
  10  Prefactor     .10000E-03    5.4038        .14391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1080        .64614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8867        .10529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1328        .27593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4561        6.0189        .15082E-03   -1.5241    
  16  norm          20.458        16.347        .88553E-04   -1.4803    
  17  Prefactor     45.117        58.926        .59693E-04   -1.4364    
  18  Prefactor     .10000E-03    19.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6970        .10156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4857        6.7560        .95047E-03   -1.5284    
  21  Prefactor     .10000E-03    2.3233        .18513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .72097        .24382        .26548E-03   -1.0307    
  24  Prefactor     1.3918        .27184        .23283E-03   -.80618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85792e-09
Minuit parameter uncertainties:
  1  2.89514
  2  1.83741
  3  0.00086842
  4  4.49933
  5  0.000791909
  6  126.124
  7  0.000129715
  8  76.7528
  9  9.68166
  10  8.27983e-06
  11  5.71575e-07
  12  3.21748e-06
  13  7.55425e-05
  14  7.77696e-05
  15  6.01961
  16  16.3505
  17  59.0023
  18  0.000560355
  19  3.95882e-06
  20  6.75716
  21  5.9087e-06
  22  0.000354185
  23  0.244191
  24  0.272116
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.716e-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.392e+00  2.721e-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:  7.210e-01  2.442e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659228/likelihoodResults_429062401_429321601_4FGL_J1001.1+2911_daily_bin732.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) = 4031.33287773
delta logL = -0.00417648533721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4031.32870186
delta logL = -6.24236236035e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2889       1.0000          .0000       10.000    
     3 'Normalizat'    .72088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3920       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=   4031.329     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      232 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.685        .90712E-02** at limit **
   2  Index         2.2908        8.0596        .50000       -.15375E-04
   3  Normalizat    .72097        .25012E-01    .42569E-01    .47552E-04
   4  Prefactor     1.3918        .29557E-01    .52664E-01    .28684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29075
  Normalizat = 0.720972
  Prefactor  = 1.39177
 **********
 **   18 **HESSE 
 **********

 FCN=   4031.329     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8361        .64622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2908        6.0422        .50000       -.57264    
   3  Normalizat    .72097        .22559        .26548E-03   -1.0307    
   4  Prefactor     1.3918        .26683        .23283E-03   -.80618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86784e-10
Minuit parameter uncertainties:
  1  1.22177e-05
  2  5.40615
  3  0.225882
  4  0.267094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659228': 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) = 4031.32870116
delta logL = 8.00937414169e-08

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.222e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.291e+00  5.406e+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.392e+00  2.671e-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:  7.210e-01  2.259e-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/659228/cmap_HighResolution_429062401_429321601_4FGL_J1001.1+2911_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2021-09-01 10:11:04.395082', job_id='659228', GAL2='1.39', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630516264.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='8.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='732' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 659228: <4FGL_J1001.1+2911_daily_bin732> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin732> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:25 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:27 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:27 2021
Terminated at Wed Sep  1 10:11:05 2021
Results reported at Wed Sep  1 10:11:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin732 150.294 29.188 429062401 429321601 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 :                                   574.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            640 sec.

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

