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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin184
RA = 150.294, Dec = 29.188
tmin = 287020801, tmax = 287280001
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='654739', job_status='RUN', time_executed='2021-09-01 09:48:11.662441', time_epoch_executed='1630514891.66' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654739/ft1_4FGL_J1001.1+2911_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654739/ft2_4FGL_J1001.1+2911_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654739/ft1_4FGL_J1001.1+2911_daily_bin184.fits outfile=/scratch/kocevski/654739/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin184.fits ra=150.294 dec=29.188 rad=12.0 tmin=287020801.0 tmax=287280001.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.72
user 4.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654739/ft2_4FGL_J1001.1+2911_daily_bin184.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/654739/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin184.fits evtable="EVENTS" outfile="/scratch/kocevski/654739/ft1_filtered_4FGL_J1001.1+2911_daily_bin184.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.72
user 0.38
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654739/ft1_filtered_4FGL_J1001.1+2911_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/654739/ft2_4FGL_J1001.1+2911_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/654739/ltcube_287020801_287280001_4FGL_J1001.1+2911_daily_bin184.fits outfile=/scratch/kocevski/654739/expmap_287020801_287280001_4FGL_J1001.1+2911_daily_bin184.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/654739/ltcube_287020801_287280001_4FGL_J1001.1+2911_daily_bin184.fits
.....................!
real 193.10
user 187.65
sys 3.91

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/654739/ft1_filtered_4FGL_J1001.1+2911_daily_bin184.fits scfile=/scratch/kocevski/654739/ft2_4FGL_J1001.1+2911_daily_bin184.fits outfile=/scratch/kocevski/654739/cmap_287020801_287280001_4FGL_J1001.1+2911_daily_bin184.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.47
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654739/ft1_filtered_4FGL_J1001.1+2911_daily_bin184.fits scfile=/scratch/kocevski/654739/ft2_4FGL_J1001.1+2911_daily_bin184.fits outfile=/scratch/kocevski/654739/cmap_HighResolution_287020801_287280001_4FGL_J1001.1+2911_daily_bin184.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6530       1.0000         .10000E-03   10000.    
     2 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.325       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.955       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8718       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.078       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.812       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1796       1.0000         .10000E-03   10000.    
    16 'norm      '    9.5512       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3735       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25194E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95893       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1026       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=   5513.780     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2752 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6530        3.9943       -.47982E-06   -.58443E-03
   2  norm          .10000E-03    1.0109        .33573E-07** at limit **
   3  Prefactor     .10000E-03    32.559       -.32863E-05** at limit **
   4  Prefactor     .10000E-03    1.2611        .51626E-08** at limit **
   5  Prefactor     18.323        36.804       -.17590E-05   -.41748E-04
   6  Prefactor     .10000E-03    16.529       -.21180E-05** at limit **
   7  Prefactor     26.953        37.782       -.58679E-06   -.40113E-04
   8  Prefactor     .10000E-03    24.621        .29525E-05** at limit **
   9  Prefactor     6.8725        5.9109        .14847E-05   -.10691E-02
  10  Prefactor     10.440        9.1270        .42484E-07   -.46229E-05
  11  Prefactor     .10000E-03    1.5026       -.18357E-06** at limit **
  12  norm          17.078        8.3114       -.73868E-07    .15873E-04
  13  Prefactor     .10000E-03    1.4340       -.67695E-08** at limit **
  14  Prefactor     30.812        28.623       -.73614E-07   -.84320E-05
  15  Prefactor     5.1799        4.4755       -.14747E-06   -.17950E-03
  16  norm          9.5516        9.9407        .67329E-06   -.30968E-03
  17  Prefactor     .10000E-03    13.938        .17111E-05** at limit **
  18  Prefactor     .10000E-03    17.938       -.21164E-05** at limit **
  19  Prefactor     5.3740        5.3225        .16764E-06    .72832E-04
  20  Prefactor     .10000E-03    8.4217       -.30083E-07** at limit **
  21  Prefactor     .10000E-03    1.0766        .33141E-07** at limit **
  22  Prefactor     .10000E-03    23.805        .25659E-05** at limit **
  23  Normalizat    .95882        .17532        .15138E-07    .77836E-05
  24  Prefactor     1.1027        .18785       -.14577E-06    .16145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.653
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 18.3233
  Prefactor  = 0.000100001
  Prefactor  = 26.9532
  Prefactor  = 0.000100003
  Prefactor  = 6.87252
  Prefactor  = 10.4404
  Prefactor  = 0.0001
  norm       = 17.0777
  Prefactor  = 0.0001
  Prefactor  = 30.8119
  Prefactor  = 5.1799
  norm       = 9.55155
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 5.374
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Normalizat = 0.958815
  Prefactor  = 1.10269
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.780     FROM HESSE     STATUS=OK           401 CALLS     3153 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6530        4.0604        .13584E-03   -1.5277    
   2  norm          .10000E-03    1.9450        .14514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2724        .81395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.323        36.808        .93561E-04   -1.4852    
   6  Prefactor     .10000E-03    16.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.953        37.902        .77162E-04   -1.4669    
   8  Prefactor     .10000E-03    25.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8725        6.6229        .76525E-03   -1.5184    
  10  Prefactor     10.440        9.1393        .12401E-03   -1.5062    
  11  Prefactor     .10000E-03    2.4322        .17425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.078        8.3125        .96918E-04   -1.4881    
  13  Prefactor     .10000E-03    1.4414        .86662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.812        28.626        .72182E-04   -1.4597    
  15  Prefactor     5.1799        4.4909        .13699E-03   -1.5253    
  16  norm          9.5516        10.082        .64835E-03   -1.5090    
  17  Prefactor     .10000E-03    14.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3740        5.3156        .16232E-03   -1.5244    
  20  Prefactor     .10000E-03    8.6753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.665        .14801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .95882        .20648        .23516E-03   -.94423    
  24  Prefactor     1.1027        .22125        .25175E-03   -.89381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55003e-09
Minuit parameter uncertainties:
  1  4.06069
  2  1.04794e-06
  3  0.000673768
  4  9.02286e-07
  5  36.8536
  6  0.000309692
  7  37.9358
  8  0.000519192
  9  6.62361
  10  9.14057
  11  4.0867e-06
  12  8.31305
  13  1.34915e-06
  14  28.6392
  15  4.49116
  16  10.0842
  17  0.000227149
  18  0.000330791
  19  5.31602
  20  1.16137e-05
  21  0.000243838
  22  0.000432424
  23  0.206651
  24  0.221434
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.087e-06  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.103e+00  2.214e-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.588e-01  2.067e-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: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654739/likelihoodResults_287020801_287280001_4FGL_J1001.1+2911_daily_bin184.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) = 5513.78221436
delta logL = -0.00195933799478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5513.78025329
delta logL = 1.72685577127e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3405       1.0000          .0000       10.000    
     3 'Normalizat'    .95844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1032       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=   5511.844     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      304 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47537E-02    .80698E-01    .66605E-03   -.28255E-01
   2  Index         6.1417        3.2151        .89638E-01    .30388E-03
   3  Normalizat    .82360        .15170        .45644E-01    .14952E-03
   4  Prefactor     1.1996        .15148        .54870E-01    .15978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00475373
  Index      = 6.14168
  Normalizat = 0.823598
  Prefactor  = 1.19959
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.844     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      335 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47537E-02    .79869E-01    .28905E-05   -1.5722    
   2  Index         6.1417        3.4810        .36302E-02    .23037    
   3  Normalizat    .82360        .18105        .25108E-03   -.99199    
   4  Prefactor     1.1996        .20269        .24259E-03   -.86344    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11921e-09
Minuit parameter uncertainties:
  1  0.0385586
  2  3.87857
  3  0.181185
  4  0.202821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654739': 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): 102
logL (Free Index) = 5511.84440301
delta logL = 1.93585200466

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  4.754e-03  3.856e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  6.142e+00  3.879e+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.200e+00  2.028e-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.236e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 150.294 29.188
Photon Index (Free Index): 6.14 +/- 3.88
Photon Flux (Free Index): 1.01e-07 +/- 1.61e-06
Energy Flux (Free Index): 1.25e-05 +/- 1.97e-04

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/654739/cmap_HighResolution_287020801_287280001_4FGL_J1001.1+2911_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='1.94e+00', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-01 09:59:22.971566', photon_index_error2='3.88', photon_index2='6.14', ts='-0.00', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='7.29e-08', energy_flux_error2='1.97e-04', EG='0.96', time_epoch_completed='1630515562.97', return_code='0', job_id='654739', GAL2='1.20', EG2='0.82', return_code2='102', photon_flux_error2='1.61e-06', ts2='4.24', photon_index='2.27' WHERE bin_id='184' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:59:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 654739: <4FGL_J1001.1+2911_daily_bin184> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin184> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:45:55 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:45:57 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:45:57 2021
Terminated at Wed Sep  1 09:59:23 2021
Results reported at Wed Sep  1 09:59:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin184 150.294 29.188 287020801 287280001 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

