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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin243
RA = 150.294, Dec = 29.188
tmin = 302313601, tmax = 302572801
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='654808', job_status='RUN', time_executed='2021-09-01 09:48:53.535354', time_epoch_executed='1630514933.54' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654808

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654808/ft1_4FGL_J1001.1+2911_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654808/ft2_4FGL_J1001.1+2911_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654808/ft1_4FGL_J1001.1+2911_daily_bin243.fits outfile=/scratch/kocevski/654808/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin243.fits ra=150.294 dec=29.188 rad=12.0 tmin=302313601.0 tmax=302572801.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 3.53
user 3.29
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654808/ft1_filtered_4FGL_J1001.1+2911_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/654808/ft2_4FGL_J1001.1+2911_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/654808/ltcube_302313601_302572801_4FGL_J1001.1+2911_daily_bin243.fits outfile=/scratch/kocevski/654808/expmap_302313601_302572801_4FGL_J1001.1+2911_daily_bin243.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/654808/ltcube_302313601_302572801_4FGL_J1001.1+2911_daily_bin243.fits
.....................!
real 191.00
user 185.43
sys 5.07

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/654808/ft1_filtered_4FGL_J1001.1+2911_daily_bin243.fits scfile=/scratch/kocevski/654808/ft2_4FGL_J1001.1+2911_daily_bin243.fits outfile=/scratch/kocevski/654808/cmap_302313601_302572801_4FGL_J1001.1+2911_daily_bin243.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.59
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654808/ft1_filtered_4FGL_J1001.1+2911_daily_bin243.fits scfile=/scratch/kocevski/654808/ft2_4FGL_J1001.1+2911_daily_bin243.fits outfile=/scratch/kocevski/654808/cmap_HighResolution_302313601_302572801_4FGL_J1001.1+2911_daily_bin243.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.05
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80159E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4252       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13547E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    75.137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2198       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39909E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3960       1.0000         .10000E-03   10000.    
    12 'norm      '    47.408       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .95360       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.981       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.603       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0215       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95991       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2968       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=   6379.767     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2475 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6177        .13420E-06** at limit **
   2  norm          2.4264        2.1877        .68261E-07   -.13083E-03
   3  Prefactor     .10000E-03    263.60        .15135E-05** at limit **
   4  Prefactor     .10000E-03    2.8849        .21666E-06** at limit **
   5  Prefactor     75.125        42.393       -.65760E-06   -.52707E-04
   6  Prefactor     .10000E-03    42.218       -.86668E-07** at limit **
   7  Prefactor     16.722        32.951        .19171E-06    .22943E-05
   8  Prefactor     .10000E-03    26.409        .53610E-07** at limit **
   9  Prefactor     1.2173        12.541        .37351E-05   -.90463E-04
  10  Prefactor     .10008E-03    7.3461       -.11805E-05** at limit **
  11  Prefactor     2.3948        2.9568       -.35477E-07   -.72781E-04
  12  norm          47.407        13.023       -.18619E-06   -.83618E-04
  13  Prefactor     4.3918        5.1549       -.10009E-05   -.42070E-03
  14  Prefactor     20.123        30.690        .24469E-06    .24251E-05
  15  Prefactor     .95228        7.8464        .42842E-05    .29407E-04
  16  norm          .10000E-03    18.141        .11191E-05** at limit **
  17  Prefactor     .10000E-03    26.685        .18275E-07** at limit **
  18  Prefactor     16.118        86.631        .32121E-05    .16996E-04
  19  Prefactor     14.579        13.885       -.91142E-06   -.20034E-03
  20  Prefactor     2.0201        6.6062        .12485E-05   -.57435E-04
  21  Prefactor     .10000E-03    1.6657        .14720E-06** at limit **
  22  Prefactor     .10000E-03    10.302       -.18637E-07** at limit **
  23  Normalizat    .96030        .20034       -.27171E-06   -.20171E-03
  24  Prefactor     1.2965        .20730       -.13508E-05   -.77657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 2.42636
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 75.1253
  Prefactor  = 0.0001
  Prefactor  = 16.722
  Prefactor  = 0.0001
  Prefactor  = 1.21731
  Prefactor  = 0.000100085
  Prefactor  = 2.39485
  norm       = 47.407
  Prefactor  = 4.39184
  Prefactor  = 20.1231
  Prefactor  = 0.95228
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1176
  Prefactor  = 14.5787
  Prefactor  = 2.02014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.960296
  Prefactor  = 1.2965
 **********
 **   18 **HESSE 
 **********

 FCN=   6379.767     FROM HESSE     STATUS=OK           413 CALLS     2888 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6045        .47224E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4264        2.1367        .10578E-03   -1.5396    
   3  Prefactor     .10000E-03    267.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.963        .24861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     75.125        42.029        .46321E-04   -1.3972    
   6  Prefactor     .10000E-03    42.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.722        32.972        .97918E-04   -1.4890    
   8  Prefactor     .10000E-03    26.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2173        12.319        .40849E-03   -1.5487    
  10  Prefactor     .10008E-03    29.007        .40573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3948        2.9291        .14245E-03   -1.5398    
  12  norm          47.407        12.974        .58236E-04   -1.4330    
  13  Prefactor     4.3918        5.0013        .16177E-03   -1.5289    
  14  Prefactor     20.123        30.686        .89254E-04   -1.4810    
  15  Prefactor     .95228        7.7504        .36684E-03   -1.5513    
  16  norm          .10000E-03    18.586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.118        87.149        .10019E-03   -1.4905    
  19  Prefactor     14.579        13.964        .10481E-03   -1.4944    
  20  Prefactor     2.0201        6.5307        .29106E-03   -1.5424    
  21  Prefactor     .10000E-03    3.6792        .19808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96030        .23538        .27826E-03   -.94373    
  24  Prefactor     1.2965        .24427        .26664E-03   -.83411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3231e-09
Minuit parameter uncertainties:
  1  0.000191093
  2  2.13681
  3  0.000936904
  4  0.00030582
  5  42.0452
  6  9.02574e-06
  7  33.0075
  8  4.86154e-06
  9  7.74676
  10  0.00313462
  11  2.92928
  12  12.9748
  13  5.00176
  14  30.7102
  15  5.43411
  16  6.95123e-05
  17  2.38278e-05
  18  75.1271
  19  13.9668
  20  6.53295
  21  2.43347e-05
  22  4.67104e-06
  23  0.235629
  24  0.244481
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.395e+00  2.929e+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.297e+00  2.445e-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.603e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654808/likelihoodResults_302313601_302572801_4FGL_J1001.1+2911_daily_bin243.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) = 6378.82596888
delta logL = 0.941446938971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6378.82096751
delta logL = 0.94644830337

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2289       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3940       1.0000          .0000       10.000    
     3 'Normalizat'    .86721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3582       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=   6378.821     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2289        10.483        .10147E-01    .17663E-02
   2  Index         3.3944        2.4893        .13225        .22529E-03
   3  Normalizat    .86705        .49640E-01    .65810E-01    .19937E-04
   4  Prefactor     1.3583        .53609E-01    .59073E-01    .12045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22891
  Index      = 3.39438
  Normalizat = 0.867049
  Prefactor  = 1.35827
 **********
 **   18 **HESSE 
 **********

 FCN=   6378.821     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2289        2.6959        .54525E-04   -1.5486    
   2  Index         3.3944        1.2615        .46565E-02   -.32692    
   3  Normalizat    .86705        .23573        .29112E-03   -.97628    
   4  Prefactor     1.3583        .24997        .26122E-03   -.81590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03844e-10
Minuit parameter uncertainties:
  1  2.69612
  2  1.27687
  3  0.236011
  4  0.250189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654808': 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) = 6378.8209668
delta logL = 0.946449014503

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.229e+00  2.696e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.394e+00  1.277e+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.358e+00  2.502e-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.670e-01  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 150.294 29.188
Photon Index (Free Index): 3.39 +/- 1.28
Photon Flux (Free Index): 1.11e-07 +/- 7.97e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.29e-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/654808/cmap_HighResolution_302313601_302572801_4FGL_J1001.1+2911_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', comment='SUCCESS', energy_flux2='1.90e-05', dlogl='9.46e-01', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-01 10:00:05.925019', photon_index_error2='1.28', photon_index2='3.39', ts='1.00', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.29e-05', EG='0.96', time_epoch_completed='1630515605.93', return_code='0', job_id='654808', GAL2='1.36', EG2='0.87', return_code2='0', photon_flux_error2='7.97e-08', ts2='3.08', photon_index='2.27' WHERE bin_id='243' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:00:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 654808: <4FGL_J1001.1+2911_daily_bin243> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin243> 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) <bullet0272>, 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:00:06 2021
Results reported at Wed Sep  1 10:00:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin243 150.294 29.188 302313601 302572801 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 :                                   659.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

