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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin903
RA = 150.294, Dec = 29.188
tmin = 473385601, tmax = 473644801
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='659516', job_status='RUN', time_executed='2021-09-01 10:04:50.688074', time_epoch_executed='1630515890.69' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659516

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659516/ft1_4FGL_J1001.1+2911_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659516/ft2_4FGL_J1001.1+2911_daily_bin903.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659516/ft1_4FGL_J1001.1+2911_daily_bin903.fits outfile=/scratch/kocevski/659516/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin903.fits ra=150.294 dec=29.188 rad=12.0 tmin=473385601.0 tmax=473644801.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.58
user 3.37
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659516/ft1_filtered_4FGL_J1001.1+2911_daily_bin903.fits" evtable="EVENTS" scfile=/scratch/kocevski/659516/ft2_4FGL_J1001.1+2911_daily_bin903.fits sctable="SC_DATA" outfile=/scratch/kocevski/659516/ltcube_473385601_473644801_4FGL_J1001.1+2911_daily_bin903.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/659516/ft2_4FGL_J1001.1+2911_daily_bin903.fits
.....................!
real 12.49
user 12.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659516/ft1_filtered_4FGL_J1001.1+2911_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/659516/ft2_4FGL_J1001.1+2911_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/659516/ltcube_473385601_473644801_4FGL_J1001.1+2911_daily_bin903.fits outfile=/scratch/kocevski/659516/expmap_473385601_473644801_4FGL_J1001.1+2911_daily_bin903.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/659516/ltcube_473385601_473644801_4FGL_J1001.1+2911_daily_bin903.fits
.....................!
real 189.87
user 185.19
sys 4.17

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/659516/ft1_filtered_4FGL_J1001.1+2911_daily_bin903.fits scfile=/scratch/kocevski/659516/ft2_4FGL_J1001.1+2911_daily_bin903.fits outfile=/scratch/kocevski/659516/cmap_473385601_473644801_4FGL_J1001.1+2911_daily_bin903.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.78
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659516/ft1_filtered_4FGL_J1001.1+2911_daily_bin903.fits scfile=/scratch/kocevski/659516/ft2_4FGL_J1001.1+2911_daily_bin903.fits outfile=/scratch/kocevski/659516/cmap_HighResolution_473385601_473644801_4FGL_J1001.1+2911_daily_bin903.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.71
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0326       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    84.422       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12989E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8981       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7914       1.0000         .10000E-03   10000.    
    12 'norm      '    40.743       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    86.600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.239       1.0000         .10000E-03   10000.    
    16 'norm      '    14.037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   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 '    8.3823       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9392       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1225       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88436       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=   6481.829     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2747 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0325        2.4426        .11273E-05    .59856E-03
   2  norm          .10000E-03    .77916        .11572E-07** at limit **
   3  Prefactor     .10000E-03    15.911       -.35514E-07** at limit **
   4  Prefactor     8.8038        4.9844        .90533E-06   -.20395E-03
   5  Prefactor     11.832        25.811        .13928E-07   -.24674E-04
   6  Prefactor     84.323        90.673        .68964E-06   -.80794E-04
   7  Prefactor     .10000E-03    48.631        .36570E-06** at limit **
   8  Prefactor     .10000E-03    104.03       -.16398E-05** at limit **
   9  Prefactor     .10040E-03    3.9335        .30560E-06** at limit **
  10  Prefactor     3.8996        8.6340        .29844E-06   -.16336E-04
  11  Prefactor     3.7912        2.5524        .12349E-06   -.12295E-03
  12  norm          40.740        12.705        .25239E-06   -.86508E-04
  13  Prefactor     .10000E-03    1.3577        .51945E-07** at limit **
  14  Prefactor     86.602        47.055        .95651E-08    .10739E-05
  15  Prefactor     15.242        6.0279       -.26861E-07   -.32928E-04
  16  norm          14.039        9.4913       -.24316E-07   -.44709E-05
  17  Prefactor     .10000E-03    26.180        .19568E-06** at limit **
  18  Prefactor     .10000E-03    13.548        .89181E-07** at limit **
  19  Prefactor     .10000E-03    3.1586        .17269E-06** at limit **
  20  Prefactor     8.3835        6.8592        .43481E-07    .42174E-05
  21  Prefactor     3.9396        2.4096        .18377E-08   -.13064E-04
  22  Prefactor     .10000E-03    11.694        .12506E-06** at limit **
  23  Normalizat    1.1224        .18106       -.10646E-06   -.74679E-04
  24  Prefactor     .88438        .18337        .20469E-06   -.66391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03252
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.80379
  Prefactor  = 11.8315
  Prefactor  = 84.3225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100397
  Prefactor  = 3.8996
  Prefactor  = 3.79124
  norm       = 40.7396
  Prefactor  = 0.0001
  Prefactor  = 86.6019
  Prefactor  = 15.2422
  norm       = 14.0389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3835
  Prefactor  = 3.93958
  Prefactor  = 0.0001
  Normalizat = 1.12236
  Prefactor  = 0.88438
 **********
 **   18 **HESSE 
 **********

 FCN=   6481.829     FROM HESSE     STATUS=OK           405 CALLS     3152 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0325        2.2653        .20920E-02   -1.5505    
   2  norm          .10000E-03    .80215        .13872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8038        4.8074        .61408E-03   -1.5114    
   5  Prefactor     11.832        25.772        .11645E-03   -1.5020    
   6  Prefactor     84.323        90.173        .21860E-03   -1.3869    
   7  Prefactor     .10000E-03    48.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    105.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10040E-03    76.861        .29798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8996        8.6206        .20436E-03   -1.5313    
  11  Prefactor     3.7912        2.5460        .10051E-03   -1.5319    
  12  norm          40.740        12.650        .62799E-04   -1.4431    
  13  Prefactor     .10000E-03    1.3620        .91506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     86.602        47.063        .43171E-04   -1.3844    
  15  Prefactor     15.242        6.0622        .10260E-03   -1.4927    
  16  norm          14.039        9.4929        .10691E-03   -1.4958    
  17  Prefactor     .10000E-03    26.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2075        .13962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.3835        6.8566        .13846E-03   -1.5129    
  21  Prefactor     3.9396        2.4081        .93561E-04   -1.5311    
  22  Prefactor     .10000E-03    11.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1224        .21551        .24705E-03   -.89037    
  24  Prefactor     .88438        .21658        .29100E-03   -.96689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13624e-09
Minuit parameter uncertainties:
  1  2.26551
  2  4.04611e-06
  3  6.61483e-06
  4  4.8076
  5  25.7964
  6  90.3196
  7  4.04794e-05
  8  3.38811e-05
  9  0.0110681
  10  8.62337
  11  2.54602
  12  12.6505
  13  8.64146e-07
  14  47.0829
  15  6.06248
  16  9.49388
  17  3.03199e-06
  18  1.19272e-06
  19  1.39765e-06
  20  6.85727
  21  2.40818
  22  1.38021e-06
  23  0.215675
  24  0.216788
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.791e+00  2.546e+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:  8.844e-01  2.168e-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.122e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.64
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.06e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.35e-05

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) = 6481.52170618
delta logL = 0.30692099461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6481.51554016
delta logL = 0.313087014045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6755       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7898       1.0000          .0000       10.000    
     3 'Normalizat'    1.0839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90999       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=   6481.516     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6757        28.601        .62284E-02    .30127E-03
   2  Index         2.7898        3.4984        .12333        .13173E-03
   3  Normalizat    1.0839        .82374E-01    .56698E-01    .93155E-05
   4  Prefactor     .90999        .69180E-01    .64945E-01    .14333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67566
  Index      = 2.78979
  Normalizat = 1.08388
  Prefactor  = 0.909989
 **********
 **   18 **HESSE 
 **********

 FCN=   6481.516     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6757        2.7426        .72694E-04   -1.5381    
   2  Index         2.7898        .75660        .60432E-02   -.45787    
   3  Normalizat    1.0839        .21153        .25072E-03   -.90271    
   4  Prefactor     .90999        .21854        .28725E-03   -.95793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36159e-11
Minuit parameter uncertainties:
  1  2.74269
  2  0.760237
  3  0.211696
  4  0.218751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659516': 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) = 6481.51554013
delta logL = 0.313087043849

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.676e+00  2.743e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.790e+00  7.602e-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:  9.100e-01  2.188e-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.084e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.29
Ra Dec: 150.294 29.188
Photon Index (Free Index): 2.79 +/- 0.76
Photon Flux (Free Index): 8.23e-08 +/- 6.08e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.09e-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/659516/cmap_HighResolution_473385601_473644801_4FGL_J1001.1+2911_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.06e-08', energy_flux2='1.86e-05', photon_flux_error='3.40e-08', dlogl='3.13e-01', energy_flux='2.01e-05', photon_flux2='8.23e-08', job_status='DONE', time_completed='2021-09-01 10:15:13.243765', photon_index_error2='0.76', photon_index2='2.79', ts='4.64', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='1.12', time_epoch_completed='1630516513.24', return_code='0', job_id='659516', GAL2='0.91', EG2='1.08', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='6.08e-08', ts2='5.29', photon_index='2.27' WHERE bin_id='903' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 659516: <4FGL_J1001.1+2911_daily_bin903> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin903> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:41 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:43 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:43 2021
Terminated at Wed Sep  1 10:15:13 2021
Results reported at Wed Sep  1 10:15:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin903 150.294 29.188 473385601 473644801 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 :                                   617.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

