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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin384
RA = 150.294, Dec = 29.188
tmin = 338860801, tmax = 339120001
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='656163', job_status='RUN', time_executed='2021-09-01 09:54:54.241476', time_epoch_executed='1630515294.24' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656163

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656163/ft1_4FGL_J1001.1+2911_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656163/ft2_4FGL_J1001.1+2911_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656163/ft1_4FGL_J1001.1+2911_daily_bin384.fits outfile=/scratch/kocevski/656163/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin384.fits ra=150.294 dec=29.188 rad=12.0 tmin=338860801.0 tmax=339120001.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.79
user 4.48
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656163/ft1_filtered_4FGL_J1001.1+2911_daily_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/656163/ft2_4FGL_J1001.1+2911_daily_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/656163/ltcube_338860801_339120001_4FGL_J1001.1+2911_daily_bin384.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/656163/ft2_4FGL_J1001.1+2911_daily_bin384.fits
.....................!
real 11.65
user 11.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656163/ft1_filtered_4FGL_J1001.1+2911_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/656163/ft2_4FGL_J1001.1+2911_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/656163/ltcube_338860801_339120001_4FGL_J1001.1+2911_daily_bin384.fits outfile=/scratch/kocevski/656163/expmap_338860801_339120001_4FGL_J1001.1+2911_daily_bin384.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/656163/ltcube_338860801_339120001_4FGL_J1001.1+2911_daily_bin384.fits
.....................!
real 191.54
user 184.82
sys 5.29

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/656163/ft1_filtered_4FGL_J1001.1+2911_daily_bin384.fits scfile=/scratch/kocevski/656163/ft2_4FGL_J1001.1+2911_daily_bin384.fits outfile=/scratch/kocevski/656163/cmap_338860801_339120001_4FGL_J1001.1+2911_daily_bin384.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656163/ft1_filtered_4FGL_J1001.1+2911_daily_bin384.fits scfile=/scratch/kocevski/656163/ft2_4FGL_J1001.1+2911_daily_bin384.fits outfile=/scratch/kocevski/656163/cmap_HighResolution_338860801_339120001_4FGL_J1001.1+2911_daily_bin384.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.59
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5289       1.0000         .10000E-03   10000.    
     2 'norm      '    .86760E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25002E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.014       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.518       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.720       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.404       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.790       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9274       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5266       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81575       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .82648E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0642       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98878       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94272       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5316.291     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     2388 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5287        4.5016        .32627E-06    .82319E-05
   2  norm          .10000E-03    16.538       -.12248E-05** at limit **
   3  Prefactor     .10000E-03    39.040       -.15868E-05** at limit **
   4  Prefactor     .10002E-03    270.09        .99124E-05** at limit **
   5  Prefactor     24.018        1.8998       -.79152E-07    .17938E-02
   6  Prefactor     14.507        4.1705       -.73460E-07    .96840E-03
   7  Prefactor     30.720        2.6783       -.64925E-07    .83243E-03
   8  Prefactor     .10000E-03    74.395        .33426E-05** at limit **
   9  Prefactor     .10000E-03    3.4231       -.18105E-06** at limit **
  10  Prefactor     .10000E-03    3.8405       -.17478E-06** at limit **
  11  Prefactor     .10000E-03    .96404        .25286E-06** at limit **
  12  norm          .10000E-03    5.4829        .18597E-06** at limit **
  13  Prefactor     .10000E-03    1.4223       -.17531E-06** at limit **
  14  Prefactor     41.391        3.7142       -.13017E-07   -.39619E-03
  15  Prefactor     10.789        4.8744       -.84662E-08    .86751E-05
  16  norm          3.3470        7.3663        .90454E-06    .19771E-04
  17  Prefactor     4.6735        169.43       -.55553E-07   -.47725E-04
  18  Prefactor     6.5244        1.2638        .75309E-08   -.84280E-04
  19  Prefactor     .81690        5.2226        .24920E-07    .24546E-05
  20  Prefactor     .10000E-03    21.019        .14450E-06** at limit **
  21  Prefactor     5.0618        2.7733        .77837E-07    .45126E-05
  22  Prefactor     .10000E-03    7.3459       -.84958E-06** at limit **
  23  Normalizat    .98889        .19898       -.17767E-05    .22917E-04
  24  Prefactor     .94258        .21272        .81225E-06    .17609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.52871
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 24.0181
  Prefactor  = 14.5072
  Prefactor  = 30.72
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.3914
  Prefactor  = 10.7895
  norm       = 3.34699
  Prefactor  = 4.67351
  Prefactor  = 6.52435
  Prefactor  = 0.816901
  Prefactor  = 0.0001
  Prefactor  = 5.06185
  Prefactor  = 0.0001
  Normalizat = 0.988886
  Prefactor  = 0.942576
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.291     FROM HESSE     STATUS=OK           465 CALLS     2853 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5287        4.5108        .39265E-02   -1.5197    
   2  norm          .10000E-03    1.0237        .50569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    2.2797        .69842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.018        32.952        .20435E-02   -1.4727    
   6  Prefactor     14.507        82.532        .26280E-02   -1.4946    
   7  Prefactor     30.720        44.923        .18072E-02   -1.4599    
   8  Prefactor     .10000E-03    73.732        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4036        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .95335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.3363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.391        41.268        .15574E-02   -1.4420    
  15  Prefactor     10.789        4.8854        .30493E-02   -1.5051    
  16  norm          3.3470        7.4265        .55309E-02   -1.5342    
  17  Prefactor     4.6735        173.30        .45297E-02   -1.5276    
  18  Prefactor     6.5244        51.184        .39272E-02   -1.5197    
  19  Prefactor     .81690        10.407        .12498E-01   -1.5527    
  20  Prefactor     .10000E-03    6.4723        .58348E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.0618        2.8265        .44669E-02   -1.5258    
  22  Prefactor     .10000E-03    7.3500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98889        .17576        .46026E-01   -.93404    
  24  Prefactor     .94258        .18368        .45547E-01   -.94669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94529e-08
Minuit parameter uncertainties:
  1  4.51106
  2  5.35476e-07
  3  1.85963e-05
  4  0.000381446
  5  32.9774
  6  69.3501
  7  44.9722
  8  0.000379749
  9  7.71256e-07
  10  7.92018e-07
  11  6.61495e-08
  12  1.85004e-08
  13  2.34903e-07
  14  41.2964
  15  4.8856
  16  7.42849
  17  57.0962
  18  36.5911
  19  5.83246
  20  2.00274e-06
  21  2.82656
  22  4.14584e-07
  23  0.175866
  24  0.1838
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.615e-08  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.426e-01  1.838e-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.889e-01  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/656163/likelihoodResults_338860801_339120001_4FGL_J1001.1+2911_daily_bin384.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): 102
logL (Free Index) = 5316.29609008
delta logL = -0.00490564497341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5316.29118431
delta logL = 1.23470272229e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2611       1.0000          .0000       10.000    
     3 'Normalizat'    .98889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94258       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5316.291     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.034        .69651E-02** at limit **
   2  Index         1.9800        5.8316        .50000       -.33770E-06
   3  Normalizat    .98889        .13452E-01    .22662E-03    .58293E-04
   4  Prefactor     .94258        .14696E-01    .25164E-03    .73233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98003
  Normalizat = 0.988886
  Prefactor  = 0.942576
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.291     FROM HESSE     STATUS=OK            29 CALLS      282 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0216        .71509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9800        5.5043        .50000       -.64850    
   3  Normalizat    .98889        .19370        .90648E-05   -.93404    
   4  Prefactor     .94258        .21156        .10066E-04   -.94669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46125e-11
Minuit parameter uncertainties:
  1  1.77747e-06
  2  81.3158
  3  0.193833
  4  0.211743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656163': 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) = 5316.29118198
delta logL = 2.4523897082e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.777e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.980e+00  8.132e+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.426e-01  2.117e-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.889e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 150.294 29.188

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/656163/cmap_HighResolution_338860801_339120001_4FGL_J1001.1+2911_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.66e-08', time_completed='2021-09-01 10:05:09.073570', job_id='656163', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630515909.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='384' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:05:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 656163: <4FGL_J1001.1+2911_daily_bin384> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin384> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:50:49 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:50:50 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:50:50 2021
Terminated at Wed Sep  1 10:05:09 2021
Results reported at Wed Sep  1 10:05:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin384 150.294 29.188 338860801 339120001 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            860 sec.

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

