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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin898
RA = 150.294, Dec = 29.188
tmin = 472089601, tmax = 472348801
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='659509', job_status='RUN', time_executed='2021-09-01 10:04:49.974727', time_epoch_executed='1630515889.97' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659509

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659509/ft1_4FGL_J1001.1+2911_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659509/ft2_4FGL_J1001.1+2911_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659509/ft1_4FGL_J1001.1+2911_daily_bin898.fits outfile=/scratch/kocevski/659509/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin898.fits ra=150.294 dec=29.188 rad=12.0 tmin=472089601.0 tmax=472348801.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.48
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659509/ft2_4FGL_J1001.1+2911_daily_bin898.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/659509/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin898.fits evtable="EVENTS" outfile="/scratch/kocevski/659509/ft1_filtered_4FGL_J1001.1+2911_daily_bin898.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.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659509/ft1_filtered_4FGL_J1001.1+2911_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/659509/ft2_4FGL_J1001.1+2911_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/659509/ltcube_472089601_472348801_4FGL_J1001.1+2911_daily_bin898.fits outfile=/scratch/kocevski/659509/expmap_472089601_472348801_4FGL_J1001.1+2911_daily_bin898.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/659509/ltcube_472089601_472348801_4FGL_J1001.1+2911_daily_bin898.fits
.....................!
real 198.98
user 192.88
sys 5.75

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/659509/ft1_filtered_4FGL_J1001.1+2911_daily_bin898.fits scfile=/scratch/kocevski/659509/ft2_4FGL_J1001.1+2911_daily_bin898.fits outfile=/scratch/kocevski/659509/cmap_472089601_472348801_4FGL_J1001.1+2911_daily_bin898.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.74
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.6255       1.0000         .10000E-03   10000.    
     3 'Prefactor '    110.03       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2341       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23882E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.322       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32393E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0100       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6198       1.0000         .10000E-03   10000.    
    16 'norm      '    14.556       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9888       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.627       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.989       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .61139       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2770       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=   6395.167     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2751 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3409       -.13420E-06** at limit **
   2  norm          1.6257        1.5441        .91073E-08   -.99424E-04
   3  Prefactor     110.03        56.555       -.35607E-06    .19144E-04
   4  Prefactor     1.2349        2.9593       -.11803E-05   -.94694E-03
   5  Prefactor     .10000E-03    19.663       -.15462E-05** at limit **
   6  Prefactor     .10000E-03    236.37       -.69895E-05** at limit **
   7  Prefactor     35.322        42.926       -.33147E-06    .29573E-05
   8  Prefactor     .10000E-03    46.635        .72932E-05** at limit **
   9  Prefactor     .13914E-03    2.9193       -.61473E-06** at limit **
  10  Prefactor     10.511        9.6632        .18795E-06   -.16893E-04
  11  Prefactor     .10000E-03    .86650        .40572E-07** at limit **
  12  norm          22.799        9.5515       -.59109E-08    .86904E-04
  13  Prefactor     6.0109        4.7585       -.31237E-08   -.15989E-03
  14  Prefactor     .10000E-03    25.275        .19123E-04** at limit **
  15  Prefactor     6.6204        5.0891       -.39197E-06   -.63138E-04
  16  norm          14.558        10.613       -.12978E-06    .47427E-04
  17  Prefactor     39.947        42.176        .32864E-05    .87367E-05
  18  Prefactor     .10000E-03    27.402       -.19967E-04** at limit **
  19  Prefactor     9.9912        5.5071       -.13050E-06    .45143E-03
  20  Prefactor     11.628        7.3826       -.15918E-05   -.66491E-04
  21  Prefactor     .10000E-03    .72593       -.11115E-06** at limit **
  22  Prefactor     21.992        25.488       -.12535E-05    .17484E-05
  23  Normalizat    .61123        .16161        .21398E-06    .15370E-03
  24  Prefactor     1.2771        .17218        .55266E-06    .12707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.62566
  Prefactor  = 110.027
  Prefactor  = 1.23485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.3218
  Prefactor  = 0.0001
  Prefactor  = 0.000139144
  Prefactor  = 10.5109
  Prefactor  = 0.0001
  norm       = 22.7988
  Prefactor  = 6.01085
  Prefactor  = 0.0001
  Prefactor  = 6.62036
  norm       = 14.5578
  Prefactor  = 39.9472
  Prefactor  = 0.0001
  Prefactor  = 9.99122
  Prefactor  = 11.6282
  Prefactor  = 0.0001
  Prefactor  = 21.9923
  Normalizat = 0.611229
  Prefactor  = 1.27706
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.167     FROM HESSE     STATUS=OK           407 CALLS     3158 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3519        .90426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6257        1.5280        .92993E-04   -1.5453    
   3  Prefactor     110.03        56.555        .38346E-04   -1.3606    
   4  Prefactor     1.2349        2.9538        .20302E-03   -1.5486    
   5  Prefactor     .10000E-03    19.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    241.79        .20063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.322        43.035        .67429E-04   -1.4519    
   8  Prefactor     .10000E-03    46.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13914E-03    7.4288        .43312E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.511        9.6773        .12360E-03   -1.5059    
  11  Prefactor     .10000E-03    .88986        .14527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.799        9.5556        .83892E-04   -1.4753    
  13  Prefactor     6.0109        4.7483        .13040E-03   -1.5218    
  14  Prefactor     .10000E-03    25.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6204        5.0776        .13460E-03   -1.5193    
  16  norm          14.558        10.611        .10498E-03   -1.4945    
  17  Prefactor     39.947        42.160        .63424E-04   -1.4443    
  18  Prefactor     .10000E-03    27.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9912        5.4979        .12679E-03   -1.5076    
  20  Prefactor     11.628        7.3954        .11749E-03   -1.5026    
  21  Prefactor     .10000E-03    .73304        .66490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.992        25.497        .85417E-04   -1.4770    
  23  Normalizat    .61123        .18673        .28507E-03   -1.0751    
  24  Prefactor     1.2771        .20023        .23130E-03   -.83992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45504e-09
Minuit parameter uncertainties:
  1  9.23632e-08
  2  1.52808
  3  56.5832
  4  2.95414
  5  1.86874e-05
  6  0.000171107
  7  43.0727
  8  3.64775e-05
  9  0.0341096
  10  9.67869
  11  6.47084e-07
  12  9.55621
  13  4.74856
  14  1.9551e-05
  15  5.07792
  16  10.6127
  17  42.1919
  18  5.31233e-05
  19  5.49823
  20  7.396
  21  2.46187e-06
  22  25.51
  23  0.186923
  24  0.200352
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.471e-07  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.277e+00  2.004e-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:  6.112e-01  1.869e-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: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659509/likelihoodResults_472089601_472348801_4FGL_J1001.1+2911_daily_bin898.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) = 6395.17208961
delta logL = -0.00528313846371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6395.16680688
delta logL = -4.13091584051e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2602       1.0000          .0000       10.000    
     3 'Normalizat'    .61125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2771       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6395.167     FROM MIGRAD    STATUS=FAILED        88 CALLS      246 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10061E-03    150.65        .14575E-03** at limit **
   2  Index         2.2062        7.5009        .50000        .60918E-04
   3  Normalizat    .61123        .68218E-01    .28507E-03    .15382E-03
   4  Prefactor     1.2771        .77460E-01    .23130E-03    .19539E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6395.167     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      392 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10061E-03    150.65        .16351E-03** at limit **
   2  Index         2.2062        7.5009        .97178E-04    .60918E-04
   3  Normalizat    .61123        .68218E-01    .30588E-05    .15382E-03
   4  Prefactor     1.2771        .77460E-01    .21869E-05    .19539E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6395.167     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      431 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .98505        .29150E-04** at limit **
   2  Index         2.0468        5.3577        .50000       -.61186E-07
   3  Normalizat    .61123        .17321        .11403E-04   -.53041E-04
   4  Prefactor     1.2771        .19777        .46259E-04   -.11275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04678
  Normalizat = 0.611229
  Prefactor  = 1.27706
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.167     FROM HESSE     STATUS=OK            29 CALLS      460 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .92932        .58300E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0468        5.8820        .50000       -.63186    
   3  Normalizat    .61123        .17324        .22805E-05   -1.0751    
   4  Prefactor     1.2771        .19781        .92519E-05   -.83992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53678e-11
Minuit parameter uncertainties:
  1  1.72781e-07
  2  55.8531
  3  0.173395
  4  0.197926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659509': 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) = 6395.16680421
delta logL = 2.25811618293e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.728e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.047e+00  5.585e+01  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.277e+00  1.979e-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:  6.112e-01  1.734e-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/659509/cmap_HighResolution_472089601_472348801_4FGL_J1001.1+2911_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-01 10:16:20.395313', job_id='659509', GAL2='1.28', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630516580.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='2.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='898' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:16:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 659509: <4FGL_J1001.1+2911_daily_bin898> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin898> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:41 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:00:42 2021
Terminated at Wed Sep  1 10:16:21 2021
Results reported at Wed Sep  1 10:16:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin898 150.294 29.188 472089601 472348801 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 :                                   687.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            940 sec.

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

