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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin576
RA = 150.294, Dec = 29.188
tmin = 388627201, tmax = 388886401
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='657583', job_status='RUN', time_executed='2021-09-01 09:57:31.145751', time_epoch_executed='1630515451.15' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657583/ft1_4FGL_J1001.1+2911_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657583/ft2_4FGL_J1001.1+2911_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657583/ft1_4FGL_J1001.1+2911_daily_bin576.fits outfile=/scratch/kocevski/657583/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin576.fits ra=150.294 dec=29.188 rad=12.0 tmin=388627201.0 tmax=388886401.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 4.07
user 3.84
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657583/ft2_4FGL_J1001.1+2911_daily_bin576.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/657583/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin576.fits evtable="EVENTS" outfile="/scratch/kocevski/657583/ft1_filtered_4FGL_J1001.1+2911_daily_bin576.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.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657583/ft1_filtered_4FGL_J1001.1+2911_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/657583/ft2_4FGL_J1001.1+2911_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/657583/ltcube_388627201_388886401_4FGL_J1001.1+2911_daily_bin576.fits outfile=/scratch/kocevski/657583/expmap_388627201_388886401_4FGL_J1001.1+2911_daily_bin576.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/657583/ltcube_388627201_388886401_4FGL_J1001.1+2911_daily_bin576.fits
.....................!
real 192.34
user 184.32
sys 4.80

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/657583/ft1_filtered_4FGL_J1001.1+2911_daily_bin576.fits scfile=/scratch/kocevski/657583/ft2_4FGL_J1001.1+2911_daily_bin576.fits outfile=/scratch/kocevski/657583/cmap_388627201_388886401_4FGL_J1001.1+2911_daily_bin576.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657583/ft1_filtered_4FGL_J1001.1+2911_daily_bin576.fits scfile=/scratch/kocevski/657583/ft2_4FGL_J1001.1+2911_daily_bin576.fits outfile=/scratch/kocevski/657583/cmap_HighResolution_388627201_388886401_4FGL_J1001.1+2911_daily_bin576.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=150.294 yref=29.188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5213       1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.431       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.593       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8095       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2245       1.0000         .10000E-03   10000.    
    12 'norm      '    13.180       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16470E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0601       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13164E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .94390       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0720       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92210       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=   4763.458     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2813 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5214        3.0346        .16990E-07   -.13690E-04
   2  norm          .10000E-03    1.1144        .22573E-06** at limit **
   3  Prefactor     23.139        36.573       -.58917E-07   -.75547E-06
   4  Prefactor     .10000E-03    2.5086        .88631E-07** at limit **
   5  Prefactor     14.791        26.235        .15091E-06   -.34944E-05
   6  Prefactor     67.423        87.974        .12028E-05   -.10322E-05
   7  Prefactor     .10000E-03    119.54        .70838E-05** at limit **
   8  Prefactor     .10000E-03    14.311        .45312E-06** at limit **
   9  Prefactor     12.593        8.2132        .29734E-06    .63876E-04
  10  Prefactor     3.8110        9.1054        .34681E-05    .22482E-03
  11  Prefactor     2.2244        2.5351        .53874E-07    .12825E-04
  12  norm          13.179        9.6894        .55945E-07   -.29229E-04
  13  Prefactor     .10000E-03    2.1616        .77351E-08** at limit **
  14  Prefactor     .10000E-03    14.765       -.33421E-06** at limit **
  15  Prefactor     .10000E-03    2.4555       -.14865E-07** at limit **
  16  norm          .10000E-03    6.8185       -.32933E-07** at limit **
  17  Prefactor     .10000E-03    93.766       -.62495E-05** at limit **
  18  Prefactor     .10000E-03    32.639        .14269E-05** at limit **
  19  Prefactor     8.0583        5.6739        .85774E-07   -.96720E-04
  20  Prefactor     .10003E-03    9.3631        .23580E-05** at limit **
  21  Prefactor     .94303        2.4954        .42364E-06   -.17066E-03
  22  Prefactor     .10000E-03    8.5302        .13089E-06** at limit **
  23  Normalizat    1.0720        .18556       -.11365E-05   -.16522E-03
  24  Prefactor     .92205        .20007        .41514E-06   -.13778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52135
  norm       = 0.000100002
  Prefactor  = 23.1386
  Prefactor  = 0.0001
  Prefactor  = 14.7907
  Prefactor  = 67.4234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5931
  Prefactor  = 3.81102
  Prefactor  = 2.2244
  norm       = 13.1793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.05828
  Prefactor  = 0.00010003
  Prefactor  = 0.943027
  Prefactor  = 0.0001
  Normalizat = 1.07204
  Prefactor  = 0.922048
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.458     FROM HESSE     STATUS=OK           401 CALLS     3214 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5214        3.0359        .10876E-03   -1.5333    
   2  norm          .10000E-03    10.382        .13911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.139        36.577        .83275E-04   -1.4746    
   4  Prefactor     .10000E-03    5.0776        .21005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.791        26.202        .10415E-03   -1.4939    
   6  Prefactor     67.423        88.006        .48878E-04   -1.4064    
   7  Prefactor     .10000E-03    120.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.593        8.2092        .56440E-03   -1.4998    
  10  Prefactor     3.8110        9.3528        .10340E-02   -1.5318    
  11  Prefactor     2.2244        2.5192        .11146E-03   -1.5410    
  12  norm          13.179        9.6787        .11033E-03   -1.4982    
  13  Prefactor     .10000E-03    7.8351        .19224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4973        .10542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.8450        .17599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    94.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0583        5.6681        .13237E-03   -1.5140    
  20  Prefactor     .10003E-03    27.337        .34246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .94303        2.3455        .16169E-03   -1.5514    
  22  Prefactor     .10000E-03    8.5336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0720        .20690        .21896E-03   -.90655    
  24  Prefactor     .92205        .22647        .26349E-03   -.95375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46004e-09
Minuit parameter uncertainties:
  1  3.03608
  2  0.000277346
  3  36.6121
  4  6.6074e-06
  5  26.2219
  6  88.176
  7  0.000209967
  8  9.88872e-07
  9  8.20989
  10  9.35635
  11  2.51933
  12  9.67984
  13  7.76761e-05
  14  1.7146e-06
  15  1.22024e-06
  16  2.25894e-06
  17  0.000134737
  18  3.38396e-05
  19  5.66843
  20  0.00181916
  21  2.34575
  22  4.60262e-07
  23  0.207054
  24  0.226705
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.224e+00  2.519e+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:  9.220e-01  2.267e-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.072e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.97e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/657583/likelihoodResults_388627201_388886401_4FGL_J1001.1+2911_daily_bin576.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) = 4763.29324518
delta logL = 0.164466730029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4763.28912255
delta logL = 0.168589365088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1587       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9276       1.0000          .0000       10.000    
     3 'Normalizat'    1.0484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94121       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=   4763.289     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1582        24.764        .10710E-01    .62857E-03
   2  Index         2.9280        3.8082        .12933        .10290E-03
   3  Normalizat    1.0483        .49644E-01    .40667E-01    .28452E-05
   4  Prefactor     .94118        .54693E-01    .45528E-01    .81950E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.15816
  Index      = 2.92798
  Normalizat = 1.04835
  Prefactor  = 0.941178
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.289     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1582        12.919        .70456E-04   -1.5493    
   2  Index         2.9280        3.5682        .70112E-02   -.42729    
   3  Normalizat    1.0483        .22454        .22105E-03   -.91428    
   4  Prefactor     .94118        .25146        .26114E-03   -.94717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4817e-10
Minuit parameter uncertainties:
  1  7.73789
  2  4.10141
  3  0.224745
  4  0.251768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657583': 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) = 4763.28912246
delta logL = 0.168589456584

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.158e+00  7.738e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.928e+00  4.101e+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:  9.412e-01  2.518e-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.048e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 150.294 29.188
Photon Index (Free Index): 2.93 +/- 4.10
Photon Flux (Free Index): 4.52e-08 +/- 5.08e-08
Energy Flux (Free Index): 9.37e-06 +/- 1.84e-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/657583/cmap_HighResolution_388627201_388886401_4FGL_J1001.1+2911_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', comment='SUCCESS', photon_flux='2.97e-08', energy_flux2='9.37e-06', photon_flux_error='3.36e-08', dlogl='1.69e-01', energy_flux='1.18e-05', photon_flux2='4.52e-08', job_status='DONE', time_completed='2021-09-01 10:07:34.792450', photon_index_error2='4.10', photon_index2='2.93', ts='1.01', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.84e-05', EG='1.07', time_epoch_completed='1630516054.79', return_code='0', job_id='657583', GAL2='0.94', EG2='1.05', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.08e-08', ts2='1.36', photon_index='2.27' WHERE bin_id='576' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:07:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 657583: <4FGL_J1001.1+2911_daily_bin576> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin576> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 09:55:19 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:55:21 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:55:21 2021
Terminated at Wed Sep  1 10:07:35 2021
Results reported at Wed Sep  1 10:07:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin576 150.294 29.188 388627201 388886401 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

