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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin818
RA = 150.294, Dec = 29.188
tmin = 451353601, tmax = 451612801
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='659374', job_status='RUN', time_executed='2021-09-01 10:04:10.392578', time_epoch_executed='1630515850.39' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='818'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659374/ft1_4FGL_J1001.1+2911_daily_bin818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659374/ft2_4FGL_J1001.1+2911_daily_bin818.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659374/ft1_4FGL_J1001.1+2911_daily_bin818.fits outfile=/scratch/kocevski/659374/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin818.fits ra=150.294 dec=29.188 rad=12.0 tmin=451353601.0 tmax=451612801.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.84
user 3.61
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659374/ft1_filtered_4FGL_J1001.1+2911_daily_bin818.fits" evtable="EVENTS" scfile=/scratch/kocevski/659374/ft2_4FGL_J1001.1+2911_daily_bin818.fits sctable="SC_DATA" outfile=/scratch/kocevski/659374/ltcube_451353601_451612801_4FGL_J1001.1+2911_daily_bin818.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/659374/ft2_4FGL_J1001.1+2911_daily_bin818.fits
.....................!
real 11.75
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659374/ft1_filtered_4FGL_J1001.1+2911_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/659374/ft2_4FGL_J1001.1+2911_daily_bin818.fits sctable="SC_DATA" expcube=/scratch/kocevski/659374/ltcube_451353601_451612801_4FGL_J1001.1+2911_daily_bin818.fits outfile=/scratch/kocevski/659374/expmap_451353601_451612801_4FGL_J1001.1+2911_daily_bin818.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/659374/ltcube_451353601_451612801_4FGL_J1001.1+2911_daily_bin818.fits
.....................!
real 189.64
user 185.07
sys 4.04

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/659374/ft1_filtered_4FGL_J1001.1+2911_daily_bin818.fits scfile=/scratch/kocevski/659374/ft2_4FGL_J1001.1+2911_daily_bin818.fits outfile=/scratch/kocevski/659374/cmap_451353601_451612801_4FGL_J1001.1+2911_daily_bin818.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.56
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67341       1.0000         .10000E-03   10000.    
     2 'norm      '    4.0813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .83572E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0688       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2103       1.0000         .10000E-03   10000.    
    12 'norm      '    34.359       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46140       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.829       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.189       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.077       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18319E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1572       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33920E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85789       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0772       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.

 FCN=   5350.238     FROM MIGRAD    STATUS=CONVERGED    980 CALLS     3205 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67384        2.0463        .18768E-02    .17170E-03
   2  norm          4.0821        1.8623        .65560E-04   -.32601E-04
   3  Prefactor     .10000E-03    18.929        .18142E-02** at limit **
   4  Prefactor     .10000E-03    27.641        .18625E-02** at limit **
   5  Prefactor     .10000E-03    5.5591        .16841E-02** at limit **
   6  Prefactor     1.0457        402.76        .93620E-02    .23037E-04
   7  Prefactor     .10000E-03    15.335        .18142E-02** at limit **
   8  Prefactor     .10000E-03    44.834        .18142E-02** at limit **
   9  Prefactor     .10000E-03    4.2148        .14502E-02** at limit **
  10  Prefactor     .10000E-03    5.0373        .15967E-02** at limit **
  11  Prefactor     1.2102        1.2954        .85148E-04    .12551E-04
  12  norm          34.357        11.701        .68364E-04    .10643E-04
  13  Prefactor     .45882        4.4678        .21474E-02    .30412E-03
  14  Prefactor     16.824        29.415        .97633E-04   -.28179E-04
  15  Prefactor     .10000E-03    2.4689        .11086E-02** at limit **
  16  norm          .10000E-03    8.1763        .18142E-02** at limit **
  17  Prefactor     13.183        30.741        .11030E-03   -.20409E-04
  18  Prefactor     31.056        33.069        .71874E-04    .65200E-04
  19  Prefactor     .10000E-03    5.4834        .32942E-03** at limit **
  20  Prefactor     5.1567        7.1835        .88513E-03    .57875E-04
  21  Prefactor     .10000E-03    8.3370        .15840E-02** at limit **
  22  Prefactor     .10000E-03    9.6974        .18142E-02** at limit **
  23  Normalizat    .85810        .18500        .23119E-03    .11148E-03
  24  Prefactor     1.0771        .21086        .24088E-03    .11435E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.673835
  norm       = 4.08213
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.04568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21022
  norm       = 34.3574
  Prefactor  = 0.458815
  Prefactor  = 16.8238
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1832
  Prefactor  = 31.0557
  Prefactor  = 0.0001
  Prefactor  = 5.15672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.858096
  Prefactor  = 1.07712
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.238     FROM HESSE     STATUS=OK           381 CALLS     3586 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67384        2.0438        .75073E-04   -1.5544    
   2  norm          4.0821        1.8620        .26224E-05   -1.5304    
   3  Prefactor     .10000E-03    18.929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.212        .37250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5591        .33682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0457        415.88        .37448E-03   -1.5503    
   7  Prefactor     .10000E-03    15.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2171        .29004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0385        .31934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2102        1.2954        .34059E-05   -1.5488    
  12  norm          34.357        11.699        .27346E-05   -1.4535    
  13  Prefactor     .45882        4.4404        .85895E-04   -1.5573    
  14  Prefactor     16.824        29.416        .39053E-05   -1.4887    
  15  Prefactor     .10000E-03    2.4694        .22172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.1790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.183        30.738        .44118E-05   -1.4982    
  18  Prefactor     31.056        33.064        .14375E-04   -1.4593    
  19  Prefactor     .10000E-03    5.4834        .65883E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1567        7.1790        .35405E-04   -1.5254    
  21  Prefactor     .10000E-03    8.4101        .31681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.6976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85810        .18477        .92474E-05   -.97949    
  24  Prefactor     1.0771        .21072        .48175E-04   -.90201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45203e-10
Minuit parameter uncertainties:
  1  2.04401
  2  1.86204
  3  0.00010018
  4  0.000590034
  5  3.36086e-06
  6  42.0022
  7  6.61387e-05
  8  4.11045e-05
  9  2.38144e-07
  10  2.6951e-06
  11  1.29542
  12  11.7
  13  2.85465
  14  29.4415
  15  5.3374e-06
  16  9.92736e-06
  17  30.7749
  18  33.0832
  19  1.05464e-05
  20  7.18024
  21  0.000116543
  22  1.60265e-05
  23  0.18491
  24  0.210878
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.210e+00  1.295e+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:  1.077e+00  2.109e-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.581e-01  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.62e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 6.43e-06 +/- 6.88e-06

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

Saving results to:
/scratch/kocevski/659374/likelihoodResults_451353601_451612801_4FGL_J1001.1+2911_daily_bin818.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) = 5349.86299932
delta logL = 0.374537995881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5349.81850736
delta logL = 0.419029954382

Fit tolerance = 1e-08

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

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

 FCN=   5349.819     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      263 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9492        1.8192        .92955E-04    .84891E-03
   2  Index         1.6980        .53176        .86800E-02    .10584E-03
   3  Normalizat    .86586        .17985        .23021E-03    .14860E-03
   4  Prefactor     1.0684        .20878        .24160E-03    .20658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94923
  Index      = 1.69799
  Normalizat = 0.865855
  Prefactor  = 1.0684
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.819     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9492        1.8162        .37182E-05   -1.5429    
   2  Index         1.6980        .53098        .34720E-03   -.72135    
   3  Normalizat    .86586        .18002        .92084E-05   -.97671    
   4  Prefactor     1.0684        .20897        .96640E-05   -.90483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02087e-10
Minuit parameter uncertainties:
  1  1.81624
  2  0.532764
  3  0.180146
  4  0.209134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659374': 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) = 5349.81850481
delta logL = 0.419032504202

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.949e+00  1.816e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.698e+00  5.328e-01  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.068e+00  2.091e-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.659e-01  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 150.294 29.188
Photon Index (Free Index): 1.70 +/- 0.53
Photon Flux (Free Index): 1.29e-08 +/- 1.32e-08
Energy Flux (Free Index): 2.12e-05 +/- 3.34e-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/659374/cmap_HighResolution_451353601_451612801_4FGL_J1001.1+2911_daily_bin818.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', comment='SUCCESS', photon_flux='1.62e-08', energy_flux2='2.12e-05', photon_flux_error='1.73e-08', dlogl='4.19e-01', energy_flux='6.43e-06', photon_flux2='1.29e-08', job_status='DONE', time_completed='2021-09-01 10:14:55.790004', photon_index_error2='0.53', photon_index2='1.70', ts='1.74', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='6.52e-08', energy_flux_error2='3.34e-05', EG='0.86', time_epoch_completed='1630516495.79', return_code='0', job_id='659374', GAL2='1.07', EG2='0.87', return_code2='0', energy_flux_error='6.88e-06', photon_flux_error2='1.32e-08', ts2='2.58', photon_index='2.27' WHERE bin_id='818' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:14:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 659374: <4FGL_J1001.1+2911_daily_bin818> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin818 150.294 29.188 451353601 451612801 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 :                                   642.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

