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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin762
RA = 150.294, Dec = 29.188
tmin = 436838401, tmax = 437097601
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='659277', job_status='RUN', time_executed='2021-09-01 10:04:48.095401', time_epoch_executed='1630515888.1' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659277/ft1_4FGL_J1001.1+2911_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659277/ft2_4FGL_J1001.1+2911_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659277/ft1_4FGL_J1001.1+2911_daily_bin762.fits outfile=/scratch/kocevski/659277/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin762.fits ra=150.294 dec=29.188 rad=12.0 tmin=436838401.0 tmax=437097601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.04
user 4.78
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659277/ft1_filtered_4FGL_J1001.1+2911_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/659277/ft2_4FGL_J1001.1+2911_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/659277/ltcube_436838401_437097601_4FGL_J1001.1+2911_daily_bin762.fits outfile=/scratch/kocevski/659277/expmap_436838401_437097601_4FGL_J1001.1+2911_daily_bin762.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/659277/ltcube_436838401_437097601_4FGL_J1001.1+2911_daily_bin762.fits
.....................!
real 191.66
user 186.16
sys 4.49

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/659277/ft1_filtered_4FGL_J1001.1+2911_daily_bin762.fits scfile=/scratch/kocevski/659277/ft2_4FGL_J1001.1+2911_daily_bin762.fits outfile=/scratch/kocevski/659277/cmap_436838401_437097601_4FGL_J1001.1+2911_daily_bin762.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 1.26
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659277/ft1_filtered_4FGL_J1001.1+2911_daily_bin762.fits scfile=/scratch/kocevski/659277/ft2_4FGL_J1001.1+2911_daily_bin762.fits outfile=/scratch/kocevski/659277/cmap_HighResolution_436838401_437097601_4FGL_J1001.1+2911_daily_bin762.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 1.01
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9330       1.0000         .10000E-03   10000.    
     2 'norm      '    .90108       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14372E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2757       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8818       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9699       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7769       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.650       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.992       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5292       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82678       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1966       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=   5001.241     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2693 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9332        2.8931       -.24936E-06    .15304E-03
   2  norm          .90127        .96415       -.10107E-06    .39038E-03
   3  Prefactor     .10000E-03    66.883        .31652E-05** at limit **
   4  Prefactor     .10000E-03    3.3305       -.13159E-05** at limit **
   5  Prefactor     .10000E-03    10.975       -.15046E-05** at limit **
   6  Prefactor     3.2033        323.27       -.33828E-03    .47991E-04
   7  Prefactor     .10000E-03    15.060       -.86761E-06** at limit **
   8  Prefactor     24.604        53.609       -.19716E-04    .94763E-04
   9  Prefactor     .10001E-03    16.991       -.28738E-05** at limit **
  10  Prefactor     .10000E-03    2.9318        .18933E-08** at limit **
  11  Prefactor     2.8807        2.9682       -.86415E-06   -.10142E-03
  12  norm          .10000E-03    3.9970       -.30844E-06** at limit **
  13  Prefactor     5.9698        5.1053       -.94645E-06   -.11321E-03
  14  Prefactor     .10000E-03    19.785        .21129E-05** at limit **
  15  Prefactor     3.7768        4.6643       -.63880E-06   -.21582E-03
  16  norm          .10000E-03    3.7348        .21277E-06** at limit **
  17  Prefactor     33.650        34.419       -.52377E-06    .19415E-04
  18  Prefactor     12.987        18.595       -.97542E-06    .91162E-05
  19  Prefactor     .10000E-03    2.7437       -.12001E-06** at limit **
  20  Prefactor     .10000E-03    3.2434       -.18060E-06** at limit **
  21  Prefactor     1.5296        2.4567       -.11328E-05   -.67405E-03
  22  Prefactor     .10000E-03    13.536        .42894E-05** at limit **
  23  Normalizat    .82675        .18406        .48455E-05    .81646E-03
  24  Prefactor     1.1966        .19671        .62602E-05    .58226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93319
  norm       = 0.901269
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 3.20335
  Prefactor  = 0.0001
  Prefactor  = 24.6041
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 2.88066
  norm       = 0.0001
  Prefactor  = 5.96984
  Prefactor  = 0.0001
  Prefactor  = 3.77685
  norm       = 0.0001
  Prefactor  = 33.6503
  Prefactor  = 12.9873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52961
  Prefactor  = 0.0001
  Normalizat = 0.82675
  Prefactor  = 1.1966
 **********
 **   18 **HESSE 
 **********

 FCN=   5001.241     FROM HESSE     STATUS=OK           391 CALLS     3084 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9332        2.8976        .11636E-03   -1.5365    
   2  norm          .90127        .97379        .69852E-04   -1.5518    
   3  Prefactor     .10000E-03    67.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3179        .24558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2033        328.23        .22373E-03   -1.5350    
   7  Prefactor     .10000E-03    15.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.604        53.582        .80736E-04   -1.4716    
   9  Prefactor     .10001E-03    17.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9368        .11825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8807        2.9581        .11648E-03   -1.5369    
  12  norm          .10000E-03    4.0244        .13806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9698        5.0822        .12962E-03   -1.5219    
  14  Prefactor     .10000E-03    19.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7768        4.6336        .15084E-03   -1.5319    
  16  norm          .10000E-03    3.7407        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.650        34.427        .69079E-04   -1.4547    
  18  Prefactor     12.987        18.564        .11113E-03   -1.4987    
  19  Prefactor     .10000E-03    2.7764        .11421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2560        .12435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5296        2.4312        .13470E-03   -1.5461    
  22  Prefactor     .10000E-03    13.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82675        .21783        .24833E-03   -.99084    
  24  Prefactor     1.1966        .23507        .23319E-03   -.86436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22516e-09
Minuit parameter uncertainties:
  1  2.89775
  2  0.973807
  3  0.0001485
  4  0.000354836
  5  9.55966e-06
  6  65.2215
  7  3.64994e-05
  8  53.6872
  9  0.000818663
  10  1.05641e-05
  11  2.95821
  12  1.65309e-05
  13  5.08255
  14  4.25371e-05
  15  4.63404
  16  1.10862e-05
  17  34.4475
  18  18.5725
  19  1.64544e-05
  20  1.60283e-05
  21  2.43135
  22  4.79499e-05
  23  0.218063
  24  0.235279
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.881e+00  2.958e+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.197e+00  2.353e-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.268e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.57e-05

TS (Fixed Index): 1.23
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659277/likelihoodResults_436838401_437097601_4FGL_J1001.1+2911_daily_bin762.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) = 5000.99968733
delta logL = 0.240967592493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5000.99165778
delta logL = 0.248997142345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8172       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8307       1.0000          .0000       10.000    
     3 'Normalizat'    .79754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2182       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=   5000.992     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      234 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8173        35.384        .77454E-02    .95115E-03
   2  Index         2.8309        3.6908        .12589        .10172E-03
   3  Normalizat    .79754        .57410E-01    .43578E-01    .15559E-04
   4  Prefactor     1.2182        .62806E-01    .52332E-01    .26848E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81729
  Index      = 2.83088
  Normalizat = 0.797538
  Prefactor  = 1.21824
 **********
 **   18 **HESSE 
 **********

 FCN=   5000.992     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8173        3.3008        .77268E-04   -1.5438    
   2  Index         2.8309        1.0568        .62270E-02   -.44873    
   3  Normalizat    .79754        .21520        .25232E-03   -1.0016    
   4  Prefactor     1.2182        .23557        .23137E-03   -.85772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20818e-09
Minuit parameter uncertainties:
  1  3.30112
  2  1.06677
  3  0.21543
  4  0.235778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659277': 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) = 5000.99165757
delta logL = 0.248997349257

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.817e+00  3.301e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.831e+00  1.067e+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.218e+00  2.358e-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.975e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 150.294 29.188
Photon Index (Free Index): 2.83 +/- 1.07
Photon Flux (Free Index): 6.00e-08 +/- 5.35e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.28e-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/659277/cmap_HighResolution_436838401_437097601_4FGL_J1001.1+2911_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='1.32e-05', photon_flux_error='3.95e-08', dlogl='2.49e-01', energy_flux='1.53e-05', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-01 10:14:54.172860', photon_index_error2='1.07', photon_index2='2.83', ts='1.23', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.28e-05', EG='0.83', time_epoch_completed='1630516494.17', return_code='0', job_id='659277', GAL2='1.22', EG2='0.80', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='5.35e-08', ts2='1.76', photon_index='2.27' WHERE bin_id='762' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:14:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 659277: <4FGL_J1001.1+2911_daily_bin762> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin762> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:28 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:29 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:29 2021
Terminated at Wed Sep  1 10:14:54 2021
Results reported at Wed Sep  1 10:14:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin762 150.294 29.188 436838401 437097601 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 :                                   596.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            866 sec.

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

