/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 176 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin26
RA = 150.294, Dec = 29.188
tmin = 246067201, tmax = 246326401
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='654484', job_status='RUN', time_executed='2021-09-01 09:48:43.749879', time_epoch_executed='1630514923.75' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654484/ft1_4FGL_J1001.1+2911_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654484/ft2_4FGL_J1001.1+2911_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654484/ft1_4FGL_J1001.1+2911_daily_bin26.fits outfile=/scratch/kocevski/654484/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin26.fits ra=150.294 dec=29.188 rad=12.0 tmin=246067201.0 tmax=246326401.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 1.53
user 1.34
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654484/ft1_filtered_4FGL_J1001.1+2911_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/654484/ft2_4FGL_J1001.1+2911_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/654484/ltcube_246067201_246326401_4FGL_J1001.1+2911_daily_bin26.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/654484/ft2_4FGL_J1001.1+2911_daily_bin26.fits
.....................!
real 13.41
user 13.05
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654484/ft1_filtered_4FGL_J1001.1+2911_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/654484/ft2_4FGL_J1001.1+2911_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/654484/ltcube_246067201_246326401_4FGL_J1001.1+2911_daily_bin26.fits outfile=/scratch/kocevski/654484/expmap_246067201_246326401_4FGL_J1001.1+2911_daily_bin26.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/654484/ltcube_246067201_246326401_4FGL_J1001.1+2911_daily_bin26.fits
.....................!
real 195.43
user 187.86
sys 5.17

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1001.1+2911 @ 150.294 29.188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/654484/ft1_filtered_4FGL_J1001.1+2911_daily_bin26.fits scfile=/scratch/kocevski/654484/ft2_4FGL_J1001.1+2911_daily_bin26.fits outfile=/scratch/kocevski/654484/cmap_246067201_246326401_4FGL_J1001.1+2911_daily_bin26.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.65
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654484/ft1_filtered_4FGL_J1001.1+2911_daily_bin26.fits scfile=/scratch/kocevski/654484/ft2_4FGL_J1001.1+2911_daily_bin26.fits outfile=/scratch/kocevski/654484/cmap_HighResolution_246067201_246326401_4FGL_J1001.1+2911_daily_bin26.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.60
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .78226E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.962       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .94877       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0550       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8257       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .68920       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9319       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97236       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0782       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=   5825.519     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2366 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6251        .42537E-07** at limit **
   2  norm          .10000E-03    .62617        .37862E-07** at limit **
   3  Prefactor     .10000E-03    20.406        .15005E-07** at limit **
   4  Prefactor     .10000E-03    .99715        .40640E-07** at limit **
   5  Prefactor     .10000E-03    11.512       -.17794E-07** at limit **
   6  Prefactor     .10001E-03    379.55       -.77560E-05** at limit **
   7  Prefactor     62.960        43.365        .38119E-06   -.14614E-04
   8  Prefactor     .10000E-03    49.373        .41053E-07** at limit **
   9  Prefactor     .94957        4.4996       -.33890E-06    .86826E-04
  10  Prefactor     .10000E-03    9.7055        .47976E-06** at limit **
  11  Prefactor     1.0553        2.6027        .98792E-06    .70874E-04
  12  norm          6.7898        7.0953        .15317E-05    .11229E-04
  13  Prefactor     .10000E-03    1.9071        .20140E-06** at limit **
  14  Prefactor     .10000E-03    21.098        .15893E-06** at limit **
  15  Prefactor     .10000E-03    1.2788        .11342E-07** at limit **
  16  norm          .10000E-03    2.6963        .10822E-07** at limit **
  17  Prefactor     5.8184        77.013        .10484E-05   -.11314E-04
  18  Prefactor     .10000E-03    11.528       -.16314E-06** at limit **
  19  Prefactor     .68884        2.1775        .78141E-06    .74521E-04
  20  Prefactor     .10000E-03    2.5430        .44705E-07** at limit **
  21  Prefactor     1.9319        1.5516        .54483E-07   -.77373E-05
  22  Prefactor     .10000E-03    8.6665       -.36184E-07** at limit **
  23  Normalizat    .97229        .16816       -.12446E-05   -.74502E-04
  24  Prefactor     1.0784        .17992       -.47042E-06   -.92363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 62.9602
  Prefactor  = 0.0001
  Prefactor  = 0.949566
  Prefactor  = 0.0001
  Prefactor  = 1.05533
  norm       = 6.78977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.81843
  Prefactor  = 0.0001
  Prefactor  = 0.68884
  Prefactor  = 0.0001
  Prefactor  = 1.93186
  Prefactor  = 0.0001
  Normalizat = 0.972295
  Prefactor  = 1.07837
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.519     FROM HESSE     STATUS=OK           393 CALLS     2759 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6566        .95033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .63913        .58991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0037        .74440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    386.41        .20915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.960        43.449        .50572E-04   -1.4119    
   8  Prefactor     .10000E-03    49.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .94957        14.476        .28392E-02   -1.5513    
  10  Prefactor     .10000E-03    9.8805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0553        2.5817        .17594E-03   -1.5503    
  12  norm          6.7898        7.0340        .76992E-03   -1.5187    
  13  Prefactor     .10000E-03    4.0437        .20335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2906        .84224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6992        .12240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8184        77.032        .16639E-03   -1.5225    
  18  Prefactor     .10000E-03    11.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .68884        2.1436        .19575E-03   -1.5542    
  20  Prefactor     .10000E-03    2.5573        .11886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9319        1.5474        .82766E-04   -1.5430    
  22  Prefactor     .10000E-03    8.6759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97229        .19584        .22390E-03   -.93964    
  24  Prefactor     1.0784        .21217        .24126E-03   -.90161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91148e-10
Minuit parameter uncertainties:
  1  2.25476e-06
  2  1.24503e-06
  3  3.09647e-07
  4  2.03984e-06
  5  5.42677e-06
  6  0.00335545
  7  43.4706
  8  8.28586e-05
  9  7.41675
  10  5.37762e-05
  11  2.582
  12  7.03485
  13  1.48362e-06
  14  3.96406e-05
  15  7.34721e-07
  16  8.02272e-07
  17  42.4084
  18  3.3883e-05
  19  2.14387
  20  3.09523e-06
  21  1.54747
  22  1.02302e-05
  23  0.195986
  24  0.21234
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.055e+00  2.582e+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.078e+00  2.123e-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.723e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/654484/likelihoodResults_246067201_246326401_4FGL_J1001.1+2911_daily_bin26.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) = 5822.67061212
delta logL = 2.8484703113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5822.58189416
delta logL = 2.93718826961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12387       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6082       1.0000          .0000       10.000    
     3 'Normalizat'    .83269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1783       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=   5822.582     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12277        .82841        .27462E-02    .17888E-02
   2  Index         4.6127        2.2941        .78285E-01    .17977E-03
   3  Normalizat    .83253        .53451E-01    .44035E-01   -.69387E-05
   4  Prefactor     1.1784        .60180E-01    .52464E-01   -.40955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.122766
  Index      = 4.61267
  Normalizat = 0.832528
  Prefactor  = 1.17841
 **********
 **   18 **HESSE 
 **********

 FCN=   5822.582     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12277        1.3762        .12291E-04   -1.5638    
   2  Index         4.6127        3.1074        .32268E-02   -.77545E-01
   3  Normalizat    .83253        .18024        .23921E-03   -.98873    
   4  Prefactor     1.1784        .20102        .23196E-03   -.86998    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.76832e-10
Minuit parameter uncertainties:
  1  0.821753
  2  3.35504
  3  0.18037
  4  0.201151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654484': 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) = 5822.581887
delta logL = 2.93719543841

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.228e-01  8.218e-01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.613e+00  3.355e+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.178e+00  2.012e-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.325e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 150.294 29.188
Photon Index (Free Index): 4.61 +/- 3.36
Photon Flux (Free Index): 1.16e-07 +/- 5.59e-08
Energy Flux (Free Index): 1.60e-05 +/- 9.74e-06

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/654484/cmap_HighResolution_246067201_246326401_4FGL_J1001.1+2911_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='2.94e+00', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-01 09:59:25.254634', photon_index_error2='3.36', photon_index2='4.61', ts='0.19', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='8.89e-08', energy_flux_error2='9.74e-06', EG='0.97', time_epoch_completed='1630515565.25', return_code='0', job_id='654484', GAL2='1.18', EG2='0.83', return_code2='102', photon_flux_error2='5.59e-08', ts2='6.59', photon_index='2.27' WHERE bin_id='26' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:59:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 654484: <4FGL_J1001.1+2911_daily_bin26> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin26 150.294 29.188 246067201 246326401 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

