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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin579
RA = 150.294, Dec = 29.188
tmin = 389404801, tmax = 389664001
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='657587', job_status='RUN', time_executed='2021-09-01 09:59:15.038878', time_epoch_executed='1630515555.04' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657587

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657587/ft1_4FGL_J1001.1+2911_daily_bin579.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657587/ft2_4FGL_J1001.1+2911_daily_bin579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657587/ft1_4FGL_J1001.1+2911_daily_bin579.fits outfile=/scratch/kocevski/657587/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin579.fits ra=150.294 dec=29.188 rad=12.0 tmin=389404801.0 tmax=389664001.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.19
user 3.81
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657587/ft2_4FGL_J1001.1+2911_daily_bin579.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/657587/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin579.fits evtable="EVENTS" outfile="/scratch/kocevski/657587/ft1_filtered_4FGL_J1001.1+2911_daily_bin579.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 1.49
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657587/ft1_filtered_4FGL_J1001.1+2911_daily_bin579.fits" evtable="EVENTS" scfile=/scratch/kocevski/657587/ft2_4FGL_J1001.1+2911_daily_bin579.fits sctable="SC_DATA" outfile=/scratch/kocevski/657587/ltcube_389404801_389664001_4FGL_J1001.1+2911_daily_bin579.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/657587/ft2_4FGL_J1001.1+2911_daily_bin579.fits
.....................!
real 13.39
user 12.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657587/ft1_filtered_4FGL_J1001.1+2911_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/657587/ft2_4FGL_J1001.1+2911_daily_bin579.fits sctable="SC_DATA" expcube=/scratch/kocevski/657587/ltcube_389404801_389664001_4FGL_J1001.1+2911_daily_bin579.fits outfile=/scratch/kocevski/657587/expmap_389404801_389664001_4FGL_J1001.1+2911_daily_bin579.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/657587/ltcube_389404801_389664001_4FGL_J1001.1+2911_daily_bin579.fits
.....................!
real 192.08
user 186.47
sys 5.12

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/657587/ft1_filtered_4FGL_J1001.1+2911_daily_bin579.fits scfile=/scratch/kocevski/657587/ft2_4FGL_J1001.1+2911_daily_bin579.fits outfile=/scratch/kocevski/657587/cmap_389404801_389664001_4FGL_J1001.1+2911_daily_bin579.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.75
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657587/ft1_filtered_4FGL_J1001.1+2911_daily_bin579.fits scfile=/scratch/kocevski/657587/ft2_4FGL_J1001.1+2911_daily_bin579.fits outfile=/scratch/kocevski/657587/cmap_HighResolution_389404801_389664001_4FGL_J1001.1+2911_daily_bin579.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.62
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7712       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32937E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3152       1.0000         .10000E-03   10000.    
    12 'norm      '    .10676E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .83123       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5555       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .67942       1.0000         .10000E-03   10000.    
    16 'norm      '    13.238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.271       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22698E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2131       1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.473       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99065       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2433       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=   6177.114     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2835 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7713        3.2893       -.45784E-07   -.14926E-04
   2  norm          2.2269        1.7796       -.41239E-07   -.14428E-04
   3  Prefactor     50.708        52.746        .10239E-04    .50635E-04
   4  Prefactor     .10000E-03    1.7847       -.19994E-06** at limit **
   5  Prefactor     .10000E-03    16.135        .46478E-06** at limit **
   6  Prefactor     .10000E-03    59.577       -.70883E-05** at limit **
   7  Prefactor     .10000E-03    19.887       -.40375E-05** at limit **
   8  Prefactor     45.408        57.419       -.96473E-05   -.30947E-04
   9  Prefactor     .10148E-03    5.7260        .93462E-06** at limit **
  10  Prefactor     .10000E-03    5.8411       -.88988E-07** at limit **
  11  Prefactor     4.3154        2.9250       -.20168E-06   -.16430E-03
  12  norm          .10000E-03    5.7164       -.52596E-06** at limit **
  13  Prefactor     .83084        7.1775        .29532E-06   -.61672E-03
  14  Prefactor     6.5573        87.732       -.54762E-06    .81542E-07
  15  Prefactor     .67908        6.4962       -.63411E-07   -.58813E-03
  16  norm          13.233        13.656        .20775E-05    .24883E-03
  17  Prefactor     19.313        46.557        .19830E-04    .62438E-04
  18  Prefactor     10.411        38.210        .11318E-04    .24039E-03
  19  Prefactor     .10012E-03    6.5196       -.61729E-05** at limit **
  20  Prefactor     .10000E-03    2.5128       -.20729E-07** at limit **
  21  Prefactor     2.2128        2.4863       -.62706E-07   -.10863E-03
  22  Prefactor     41.475        25.218       -.21462E-07    .24741E-04
  23  Normalizat    .99054        .18587        .27464E-05    .21103E-03
  24  Prefactor     1.2433        .19715       -.12509E-05    .38214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77131
  norm       = 2.22691
  Prefactor  = 50.7081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4082
  Prefactor  = 0.000101481
  Prefactor  = 0.0001
  Prefactor  = 4.31536
  norm       = 0.000100002
  Prefactor  = 0.830845
  Prefactor  = 6.55728
  Prefactor  = 0.679081
  norm       = 13.2334
  Prefactor  = 19.3128
  Prefactor  = 10.4109
  Prefactor  = 0.000100123
  Prefactor  = 0.0001
  Prefactor  = 2.21276
  Prefactor  = 41.4746
  Normalizat = 0.990538
  Prefactor  = 1.24333
 **********
 **   18 **HESSE 
 **********

 FCN=   6177.114     FROM HESSE     STATUS=OK           411 CALLS     3246 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7713        3.2855        .12953E-03   -1.5320    
   2  norm          2.2269        1.7686        .90524E-04   -1.5410    
   3  Prefactor     50.708        52.547        .56335E-04   -1.4283    
   4  Prefactor     .10000E-03    3.6745        .20276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    59.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.408        57.577        .59484E-04   -1.4359    
   9  Prefactor     .10148E-03    7.1096        .52875E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3154        2.9270        .10413E-03   -1.5292    
  12  norm          .10000E-03    28.763        .35516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83084        9.4781        .25271E-02   -1.5526    
  14  Prefactor     6.5573        87.742        .15674E-03   -1.5196    
  15  Prefactor     .67908        14.691        .24056E-02   -1.5543    
  16  norm          13.233        13.636        .11009E-03   -1.4980    
  17  Prefactor     19.313        46.516        .91237E-04   -1.4829    
  18  Prefactor     10.411        40.308        .12377E-03   -1.5063    
  19  Prefactor     .10012E-03    21.697        .33426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5217        .12165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2128        2.4743        .12611E-03   -1.5410    
  22  Prefactor     41.475        25.217        .62246E-04   -1.4419    
  23  Normalizat    .99054        .21641        .25413E-03   -.93348    
  24  Prefactor     1.2433        .23363        .25699E-03   -.85008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65366e-09
Minuit parameter uncertainties:
  1  3.28564
  2  1.76869
  3  52.5948
  4  7.42112e-05
  5  3.18587e-05
  6  0.00011513
  7  6.85049e-05
  8  57.6473
  9  0.006491
  10  1.98735e-05
  11  2.92708
  12  0.000453374
  13  5.61322
  14  48.0589
  15  6.31841
  16  13.6391
  17  46.6038
  18  40.4134
  19  0.00326364
  20  3.03522e-06
  21  2.47438
  22  25.2236
  23  0.216605
  24  0.233823
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  4.315e+00  2.927e+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.243e+00  2.338e-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.905e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.62
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.56e-05

TS (Fixed Index): 3.62
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657587/likelihoodResults_389404801_389664001_4FGL_J1001.1+2911_daily_bin579.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6174.98693756
delta logL = 2.12732216619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6174.9229177
delta logL = 2.19134203114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89306       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7109       1.0000          .0000       10.000    
     3 'Normalizat'    .86906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3358       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=   6174.923     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      252 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89306        5.1241        .68924E-02    .38645E-02
   2  Index         3.7109        2.2951        .81808E-01    .41707E-03
   3  Normalizat    .86907        .63080E-01    .44505E-01   -.16139E-03
   4  Prefactor     1.3358        .69115E-01    .56350E-01   -.45933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.893063
  Index      = 3.71089
  Normalizat = 0.869071
  Prefactor  = 1.33575
 **********
 **   18 **HESSE 
 **********

 FCN=   6174.923     FROM HESSE     STATUS=OK            31 CALLS      283 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89306        4.7829        .30795E-04   -1.5519    
   2  Index         3.7109        2.4235        .33629E-02   -.26077    
   3  Normalizat    .86907        .22465        .26887E-03   -.97556    
   4  Prefactor     1.3358        .24844        .24916E-03   -.82250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.329e-10
Minuit parameter uncertainties:
  1  4.13378
  2  2.53873
  3  0.224896
  4  0.248664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657587': 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) = 6174.9229177
delta logL = 2.19134203228

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  8.931e-01  4.134e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.711e+00  2.539e+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.336e+00  2.487e-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.691e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.47
Ra Dec: 150.294 29.188
Photon Index (Free Index): 3.71 +/- 2.54
Photon Flux (Free Index): 1.46e-07 +/- 7.09e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/657587/cmap_HighResolution_389404801_389664001_4FGL_J1001.1+2911_daily_bin579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='2.31e-05', photon_flux_error='3.90e-08', dlogl='2.19e+00', energy_flux='2.29e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-01 10:10:44.823913', photon_index_error2='2.54', photon_index2='3.71', ts='3.62', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.30e-05', EG='0.99', time_epoch_completed='1630516244.82', return_code='0', job_id='657587', GAL2='1.34', EG2='0.87', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='7.09e-08', ts2='8.47', photon_index='2.27' WHERE bin_id='579' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:10:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 657587: <4FGL_J1001.1+2911_daily_bin579> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin579> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 09:55:19 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:55:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 09:55:21 2021
Terminated at Wed Sep  1 10:10:45 2021
Results reported at Wed Sep  1 10:10:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin579 150.294 29.188 389404801 389664001 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 :                                   683.00 sec.
    Max Memory :                                 1047 MB
    Average Memory :                             231.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

