/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 232 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin239
RA = 150.294, Dec = 29.188
tmin = 301276801, tmax = 301536001
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='654802', job_status='RUN', time_executed='2021-09-01 09:50:07.556921', time_epoch_executed='1630515007.56' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654802/ft1_4FGL_J1001.1+2911_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654802/ft2_4FGL_J1001.1+2911_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654802/ft1_4FGL_J1001.1+2911_daily_bin239.fits outfile=/scratch/kocevski/654802/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin239.fits ra=150.294 dec=29.188 rad=12.0 tmin=301276801.0 tmax=301536001.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.58
user 4.35
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654802/ft1_filtered_4FGL_J1001.1+2911_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/654802/ft2_4FGL_J1001.1+2911_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/654802/ltcube_301276801_301536001_4FGL_J1001.1+2911_daily_bin239.fits outfile=/scratch/kocevski/654802/expmap_301276801_301536001_4FGL_J1001.1+2911_daily_bin239.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/654802/ltcube_301276801_301536001_4FGL_J1001.1+2911_daily_bin239.fits
.....................!
real 190.85
user 185.62
sys 4.83

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/654802/ft1_filtered_4FGL_J1001.1+2911_daily_bin239.fits scfile=/scratch/kocevski/654802/ft2_4FGL_J1001.1+2911_daily_bin239.fits outfile=/scratch/kocevski/654802/cmap_301276801_301536001_4FGL_J1001.1+2911_daily_bin239.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654802/ft1_filtered_4FGL_J1001.1+2911_daily_bin239.fits scfile=/scratch/kocevski/654802/ft2_4FGL_J1001.1+2911_daily_bin239.fits outfile=/scratch/kocevski/654802/cmap_HighResolution_301276801_301536001_4FGL_J1001.1+2911_daily_bin239.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .68735E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11850E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2271       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7616       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.318       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21375E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    49.604       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2081       1.0000         .10000E-03   10000.    
    14 'Prefactor '    88.398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62871       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0806       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.353       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5159       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1262       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81731       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3211       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=   5745.448     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2797 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5992       -.67729E-07** at limit **
   2  norm          .10002E-03    1.0256       -.29362E-06** at limit **
   3  Prefactor     .10000E-03    109.86       -.19626E-04** at limit **
   4  Prefactor     6.2282        3.6107       -.77187E-08    .87821E-04
   5  Prefactor     7.7616        14.187       -.15358E-06   -.15225E-04
   6  Prefactor     .10000E-03    57.302        .24163E-04** at limit **
   7  Prefactor     15.320        29.736        .44814E-06    .12487E-04
   8  Prefactor     .10000E-03    11.289        .13745E-05** at limit **
   9  Prefactor     .10000E-03    2.2515       -.54422E-07** at limit **
  10  Prefactor     1.0148        1.2493        .14322E-06   -.70533E-03
  11  Prefactor     .10072E-03    1.0957        .61820E-06** at limit **
  12  norm          49.605        12.674       -.42001E-07   -.69502E-04
  13  Prefactor     2.2084        4.4610        .14247E-05    .75659E-03
  14  Prefactor     88.401        50.680        .13750E-05   -.18867E-05
  15  Prefactor     .62924        5.2498       -.21772E-05    .46731E-03
  16  norm          1.0804        6.5672        .82373E-08    .11289E-04
  17  Prefactor     27.342        49.309       -.12763E-04    .25194E-04
  18  Prefactor     .10000E-03    14.002       -.21031E-05** at limit **
  19  Prefactor     .10000E-03    2.2597        .43788E-07** at limit **
  20  Prefactor     8.5173        8.7761       -.33838E-08   -.81931E-04
  21  Prefactor     1.1265        2.6955        .49723E-08   -.16741E-04
  22  Prefactor     .10000E-03    34.233       -.26218E-04** at limit **
  23  Normalizat    .81726        .17868        .55039E-06    .19617E-03
  24  Prefactor     1.3211        .19841        .17966E-06    .17305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 6.22819
  Prefactor  = 7.76156
  Prefactor  = 0.0001
  Prefactor  = 15.3202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01483
  Prefactor  = 0.000100722
  norm       = 49.6048
  Prefactor  = 2.20843
  Prefactor  = 88.4011
  Prefactor  = 0.629242
  norm       = 1.0804
  Prefactor  = 27.3419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.51727
  Prefactor  = 1.12647
  Prefactor  = 0.0001
  Normalizat = 0.81726
  Prefactor  = 1.32105
 **********
 **   18 **HESSE 
 **********

 FCN=   5745.448     FROM HESSE     STATUS=OK           413 CALLS     3210 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5016        .23730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    12.877        .14736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    110.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2282        3.5907        .52331E-03   -1.5209    
   5  Prefactor     7.7616        14.180        .14393E-03   -1.5151    
   6  Prefactor     .10000E-03    57.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.320        29.774        .10234E-03   -1.4925    
   8  Prefactor     .10000E-03    11.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2617        .11105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0148        16.334        .25990E-02   -1.5506    
  11  Prefactor     .10072E-03    2.0229        .28530E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          49.605        12.674        .56938E-04   -1.4298    
  13  Prefactor     2.2084        4.1689        .16348E-03   -1.5411    
  14  Prefactor     88.401        50.681        .42734E-04   -1.3825    
  15  Prefactor     .62924        8.0368        .24445E-02   -1.5549    
  16  norm          1.0804        6.4489        .37758E-03   -1.5500    
  17  Prefactor     27.342        49.313        .76599E-04   -1.4662    
  18  Prefactor     .10000E-03    14.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2832        .11122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.5173        8.6930        .68684E-03   -1.5124    
  21  Prefactor     1.1265        2.6500        .17565E-03   -1.5496    
  22  Prefactor     .10000E-03    34.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81726        .20795        .26218E-03   -.99432    
  24  Prefactor     1.3211        .23199        .24671E-03   -.82683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35917e-09
Minuit parameter uncertainties:
  1  4.45614e-06
  2  0.00110375
  3  0.000104874
  4  3.59084
  5  14.1861
  6  6.30065e-05
  7  29.8032
  8  1.6835e-06
  9  2.60401e-06
  10  8.14492
  11  0.00241727
  12  12.6751
  13  4.16946
  14  50.7058
  15  4.49797
  16  5.27977
  17  49.3864
  18  1.02824e-05
  19  5.68532e-06
  20  8.69429
  21  2.65028
  22  9.43594e-05
  23  0.208153
  24  0.232167
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.007e-04  2.417e-03  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.321e+00  2.322e-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.173e-01  2.082e-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: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654802/likelihoodResults_301276801_301536001_4FGL_J1001.1+2911_daily_bin239.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) = 5745.44825657
delta logL = -0.000179347742232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5745.39497301
delta logL = 0.0531042051925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17246       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1726       1.0000          .0000       10.000    
     3 'Normalizat'    .80639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3258       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=   5745.395     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      267 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17218        7.3759        .98512E-02    .23453E-02
   2  Index         3.1726        2.1427        .33008        .17722E-04
   3  Normalizat    .80628        .18154E-01    .43694E-01    .41171E-03
   4  Prefactor     1.3260        .21255E-01    .55706E-01    .22930E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.172183
  Index      = 3.17262
  Normalizat = 0.806278
  Prefactor  = 1.32601
 **********
 **   18 **HESSE 
 **********

 FCN=   5745.395     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17218        1.7628        .97202E-04   -1.5625    
   2  Index         3.1726        2.8259        .85608E-02   -.37414    
   3  Normalizat    .80628        .19901        .13190E-02   -.99836    
   4  Prefactor     1.3260        .23017        .24631E-03   -.82537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73245e-09
Minuit parameter uncertainties:
  1  1.10159
  2  3.03685
  3  0.199186
  4  0.230344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654802': 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) = 5745.39497263
delta logL = 0.0531045851576

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.722e-01  1.102e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.173e+00  3.037e+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.326e+00  2.303e-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.063e-01  1.992e-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/654802/cmap_HighResolution_301276801_301536001_4FGL_J1001.1+2911_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-01 10:01:09.903316', job_id='654802', GAL2='1.33', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1630515669.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='5.31e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='239' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:01:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 654802: <4FGL_J1001.1+2911_daily_bin239> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin239> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:46:02 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:46:04 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:46:04 2021
Terminated at Wed Sep  1 10:01:10 2021
Results reported at Wed Sep  1 10:01:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin239 150.294 29.188 301276801 301536001 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

