/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 = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin228
RA = 150.294, Dec = 29.188
tmin = 298425601, tmax = 298684801
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='654787', job_status='RUN', time_executed='2021-09-01 09:46:20.602740', time_epoch_executed='1630514780.6' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654787

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654787/ft1_4FGL_J1001.1+2911_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654787/ft2_4FGL_J1001.1+2911_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654787/ft1_4FGL_J1001.1+2911_daily_bin228.fits outfile=/scratch/kocevski/654787/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin228.fits ra=150.294 dec=29.188 rad=12.0 tmin=298425601.0 tmax=298684801.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.31
user 3.10
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654787/ft2_4FGL_J1001.1+2911_daily_bin228.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/654787/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/654787/ft1_filtered_4FGL_J1001.1+2911_daily_bin228.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.51
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654787/ft1_filtered_4FGL_J1001.1+2911_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/654787/ft2_4FGL_J1001.1+2911_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/654787/ltcube_298425601_298684801_4FGL_J1001.1+2911_daily_bin228.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/654787/ft2_4FGL_J1001.1+2911_daily_bin228.fits
.....................!
real 11.78
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654787/ft1_filtered_4FGL_J1001.1+2911_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/654787/ft2_4FGL_J1001.1+2911_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/654787/ltcube_298425601_298684801_4FGL_J1001.1+2911_daily_bin228.fits outfile=/scratch/kocevski/654787/expmap_298425601_298684801_4FGL_J1001.1+2911_daily_bin228.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/654787/ltcube_298425601_298684801_4FGL_J1001.1+2911_daily_bin228.fits
.....................!
real 191.05
user 185.54
sys 4.23

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/654787/ft1_filtered_4FGL_J1001.1+2911_daily_bin228.fits scfile=/scratch/kocevski/654787/ft2_4FGL_J1001.1+2911_daily_bin228.fits outfile=/scratch/kocevski/654787/cmap_298425601_298684801_4FGL_J1001.1+2911_daily_bin228.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654787/ft1_filtered_4FGL_J1001.1+2911_daily_bin228.fits scfile=/scratch/kocevski/654787/ft2_4FGL_J1001.1+2911_daily_bin228.fits outfile=/scratch/kocevski/654787/cmap_HighResolution_298425601_298684801_4FGL_J1001.1+2911_daily_bin228.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12546E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3167       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.375       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.600       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4134       1.0000         .10000E-03   10000.    
    12 'norm      '    13.779       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.1195       1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.861       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .96955       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.783       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91456       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1117       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=   6090.284     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2710 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8725        .29053E-08** at limit **
   2  norm          .10000E-03    1.0035        .24005E-06** at limit **
   3  Prefactor     33.365        42.109        .19872E-05   -.10774E-04
   4  Prefactor     4.3177        4.5219        .21413E-06   -.10805E-03
   5  Prefactor     .10000E-03    14.223       -.11585E-05** at limit **
   6  Prefactor     47.354        71.540        .45254E-05   -.12531E-04
   7  Prefactor     56.599        46.175        .41632E-06   -.89649E-05
   8  Prefactor     .10000E-03    23.259        .10984E-05** at limit **
   9  Prefactor     .10000E-03    3.5872       -.43997E-07** at limit **
  10  Prefactor     .10000E-03    7.4208       -.51472E-06** at limit **
  11  Prefactor     2.4132        2.2290        .12583E-06    .38288E-04
  12  norm          13.778        8.3162        .14575E-06   -.19162E-04
  13  Prefactor     3.7033        3.8092        .15511E-05    .45075E-03
  14  Prefactor     .10000E-03    21.720       -.56662E-06** at limit **
  15  Prefactor     .10001E-03    3.7326       -.20967E-05** at limit **
  16  norm          7.1192        7.0202       -.35256E-06   -.60421E-04
  17  Prefactor     65.855        72.849        .20295E-06   -.19698E-04
  18  Prefactor     .10000E-03    11.865        .74234E-06** at limit **
  19  Prefactor     .10000E-03    3.1453        .88885E-07** at limit **
  20  Prefactor     .10000E-03    2.3600        .57693E-07** at limit **
  21  Prefactor     .96947        2.0536        .47792E-06    .16845E-03
  22  Prefactor     15.781        23.353        .51515E-06   -.88229E-05
  23  Normalizat    .91450        .18054       -.25002E-05   -.88504E-04
  24  Prefactor     1.1118        .18717        .28270E-06   -.17861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.3646
  Prefactor  = 4.31773
  Prefactor  = 0.0001
  Prefactor  = 47.3544
  Prefactor  = 56.5986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41324
  norm       = 13.7784
  Prefactor  = 3.70332
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 7.11918
  Prefactor  = 65.8549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.969467
  Prefactor  = 15.781
  Normalizat = 0.914503
  Prefactor  = 1.11177
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.284     FROM HESSE     STATUS=OK           397 CALLS     3107 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8839        .25615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6449        .15033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.365        42.132        .69364E-04   -1.4552    
   4  Prefactor     4.3177        4.4610        .15697E-03   -1.5292    
   5  Prefactor     .10000E-03    14.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.354        71.740        .58256E-04   -1.4331    
   7  Prefactor     56.599        46.234        .53322E-04   -1.4202    
   8  Prefactor     .10000E-03    23.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6448        .14426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4132        2.2190        .10709E-03   -1.5397    
  12  norm          13.778        8.3227        .10790E-03   -1.4965    
  13  Prefactor     3.7033        4.1248        .77918E-03   -1.5323    
  14  Prefactor     .10000E-03    21.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    9.0369        .23139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.1192        7.0088        .75170E-03   -1.5174    
  17  Prefactor     65.855        72.766        .49453E-04   -1.4083    
  18  Prefactor     .10000E-03    11.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.1961        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3724        .11706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .96947        2.0179        .15570E-03   -1.5511    
  22  Prefactor     15.781        23.353        .10082E-03   -1.4913    
  23  Normalizat    .91450        .20760        .24770E-03   -.95952    
  24  Prefactor     1.1118        .22187        .24991E-03   -.89091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88893e-10
Minuit parameter uncertainties:
  1  4.36277e-05
  2  7.59817e-06
  3  42.1694
  4  4.46138
  5  2.47301e-05
  6  71.8717
  7  46.2634
  8  1.6217e-05
  9  2.61286e-06
  10  4.66157e-05
  11  2.21912
  12  8.32336
  13  4.12508
  14  3.62417e-05
  15  0.000438968
  16  7.00964
  17  72.8644
  18  7.1972e-06
  19  1.31343e-05
  20  4.02102e-06
  21  2.01808
  22  23.3664
  23  0.207781
  24  0.222052
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.413e+00  2.219e+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.112e+00  2.221e-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.145e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 3.22e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/654787/likelihoodResults_298425601_298684801_4FGL_J1001.1+2911_daily_bin228.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) = 6090.24949661
delta logL = 0.034895675929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6090.24255093
delta logL = 0.0418413535317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1513       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4450       1.0000          .0000       10.000    
     3 'Normalizat'    .90929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1148       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=   6090.243     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1476        55.512        .70230E-02    .45501E-03
   2  Index         2.4453        6.1911        .15652        .78977E-04
   3  Normalizat    .90890        .64722E-01    .45020E-01    .45391E-04
   4  Prefactor     1.1153        .68419E-01    .56436E-01    .49138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.14757
  Index      = 2.44528
  Normalizat = 0.908896
  Prefactor  = 1.11526
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.243     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1476        2.3354        .97527E-04   -1.5415    
   2  Index         2.4453        .64562        .77931E-02   -.53628    
   3  Normalizat    .90890        .19821        .24838E-03   -.96148    
   4  Prefactor     1.1153        .21777        .24955E-03   -.88980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37671e-09
Minuit parameter uncertainties:
  1  2.33553
  2  0.648073
  3  0.198372
  4  0.217945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654787': 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) = 6090.24254697
delta logL = 0.0418453159564

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.148e+00  2.336e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.445e+00  6.481e-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.115e+00  2.179e-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.089e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 150.294 29.188
Photon Index (Free Index): 2.45 +/- 0.65
Photon Flux (Free Index): 3.75e-08 +/- 3.63e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.13e-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/654787/cmap_HighResolution_298425601_298684801_4FGL_J1001.1+2911_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', comment='SUCCESS', photon_flux='3.22e-08', energy_flux2='1.16e-05', photon_flux_error='2.96e-08', dlogl='4.18e-02', energy_flux='1.28e-05', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-01 09:57:16.704460', photon_index_error2='0.65', photon_index2='2.45', ts='1.82', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='9.92e-08', energy_flux_error2='1.13e-05', EG='0.91', time_epoch_completed='1630515436.7', return_code='0', job_id='654787', GAL2='1.12', EG2='0.91', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.63e-08', ts2='1.90', photon_index='2.27' WHERE bin_id='228' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:57:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 654787: <4FGL_J1001.1+2911_daily_bin228> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin228> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:46:01 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:46:03 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:46:03 2021
Terminated at Wed Sep  1 09:57:17 2021
Results reported at Wed Sep  1 09:57:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin228 150.294 29.188 298425601 298684801 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            676 sec.

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

