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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin485
RA = 150.294, Dec = 29.188
tmin = 365040001, tmax = 365299201
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='656310', job_status='RUN', time_executed='2021-09-01 09:51:46.008122', time_epoch_executed='1630515106.01' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656310

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656310/ft1_4FGL_J1001.1+2911_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656310/ft2_4FGL_J1001.1+2911_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656310/ft1_4FGL_J1001.1+2911_daily_bin485.fits outfile=/scratch/kocevski/656310/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin485.fits ra=150.294 dec=29.188 rad=12.0 tmin=365040001.0 tmax=365299201.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.92
user 3.46
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656310/ft1_filtered_4FGL_J1001.1+2911_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/656310/ft2_4FGL_J1001.1+2911_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/656310/ltcube_365040001_365299201_4FGL_J1001.1+2911_daily_bin485.fits outfile=/scratch/kocevski/656310/expmap_365040001_365299201_4FGL_J1001.1+2911_daily_bin485.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/656310/ltcube_365040001_365299201_4FGL_J1001.1+2911_daily_bin485.fits
.....................!
real 190.21
user 185.76
sys 3.93

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/656310/ft1_filtered_4FGL_J1001.1+2911_daily_bin485.fits scfile=/scratch/kocevski/656310/ft2_4FGL_J1001.1+2911_daily_bin485.fits outfile=/scratch/kocevski/656310/cmap_365040001_365299201_4FGL_J1001.1+2911_daily_bin485.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=150.294 yref=29.188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.65
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88063       1.0000         .10000E-03   10000.    
     2 'norm      '    .47014       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.353       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13888E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82397       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3332       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1581       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3754       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68090       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3735       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=   5156.749     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2438 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87974        2.6605        .48166E-06    .19048E-03
   2  norm          .46917        1.2428        .23013E-06    .27463E-03
   3  Prefactor     13.037        41.315       -.62212E-06   -.31500E-05
   4  Prefactor     .10000E-03    1.0682        .94733E-07** at limit **
   5  Prefactor     11.352        19.241        .27512E-06   -.13757E-04
   6  Prefactor     .10000E-03    49.370        .30728E-05** at limit **
   7  Prefactor     5.7461        65.123        .14252E-05   -.24062E-05
   8  Prefactor     .10000E-03    26.788       -.44816E-06** at limit **
   9  Prefactor     8.4377        6.5722        .29040E-06   -.63821E-04
  10  Prefactor     .10002E-03    16.339       -.11462E-04** at limit **
  11  Prefactor     .10000E-03    1.1559        .12145E-06** at limit **
  12  norm          .10000E-03    4.8190        .25647E-06** at limit **
  13  Prefactor     3.7319        4.5125       -.64265E-06   -.29386E-03
  14  Prefactor     .10000E-03    57.645       -.24346E-05** at limit **
  15  Prefactor     .82184        5.5703        .66119E-06    .75445E-04
  16  norm          2.3324        7.3124        .76853E-05    .27852E-03
  17  Prefactor     8.1204        82.501        .11863E-04   -.61673E-05
  18  Prefactor     .10000E-03    11.601        .43536E-07** at limit **
  19  Prefactor     .10000E-03    3.4227        .89577E-07** at limit **
  20  Prefactor     4.3755        4.6214        .16953E-06   -.10684E-05
  21  Prefactor     .10000E-03    1.1131        .59478E-07** at limit **
  22  Prefactor     .10000E-03    16.620       -.18319E-06** at limit **
  23  Normalizat    .68100        .17424       -.60698E-06   -.78276E-04
  24  Prefactor     1.3735        .19480       -.13956E-05   -.24681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.879743
  norm       = 0.469172
  Prefactor  = 13.0373
  Prefactor  = 0.0001
  Prefactor  = 11.3518
  Prefactor  = 0.0001
  Prefactor  = 5.74606
  Prefactor  = 0.0001
  Prefactor  = 8.43767
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.73193
  Prefactor  = 0.0001
  Prefactor  = 0.821844
  norm       = 2.33237
  Prefactor  = 8.12037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.37546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.680997
  Prefactor  = 1.37355
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.749     FROM HESSE     STATUS=OK           413 CALLS     2851 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87974        2.5976        .19786E-03   -1.5520    
   2  norm          .46917        1.0774        .12654E-02   -1.5571    
   3  Prefactor     13.037        41.312        .11101E-03   -1.4986    
   4  Prefactor     .10000E-03    1.0781        .72466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.352        19.235        .11890E-03   -1.5034    
   6  Prefactor     .10000E-03    49.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7461        65.607        .16747E-03   -1.5229    
   8  Prefactor     .10000E-03    26.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4377        6.5633        .13801E-03   -1.5127    
  10  Prefactor     .10002E-03    28.078        .37350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0924        .14947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.0326        .50678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7319        4.2773        .13853E-03   -1.5322    
  14  Prefactor     .10000E-03    57.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .82184        5.0941        .28078E-03   -1.5527    
  16  norm          2.3324        8.4276        .13423E-02   -1.5403    
  17  Prefactor     8.1204        82.595        .14037E-03   -1.5138    
  18  Prefactor     .10000E-03    11.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4673        .12966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3755        4.6144        .15378E-03   -1.5290    
  21  Prefactor     .10000E-03    1.1664        .14787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .68100        .20191        .25641E-03   -1.0465    
  24  Prefactor     1.3735        .22964        .22176E-03   -.81146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36875e-09
Minuit parameter uncertainties:
  1  2.5979
  2  1.07742
  3  41.4026
  4  6.99921e-06
  5  19.245
  6  8.95801e-05
  7  38.8856
  8  6.32556e-05
  9  6.56386
  10  0.00150235
  11  2.79394e-05
  12  8.46326e-06
  13  4.27762
  14  0.000311961
  15  4.09247
  16  8.43189
  17  51.8884
  18  9.21834e-06
  19  1.15084e-05
  20  4.61478
  21  5.23386e-06
  22  4.98734e-06
  23  0.202133
  24  0.229811
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.794e-05  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.374e+00  2.298e-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.810e-01  2.021e-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: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656310/likelihoodResults_365040001_365299201_4FGL_J1001.1+2911_daily_bin485.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) = 5156.75078632
delta logL = -0.00228033794156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5156.74850803
delta logL = -2.0461375243e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2430       1.0000          .0000       10.000    
     3 'Normalizat'    .68108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3735       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=   5156.749     FROM MIGRAD    STATUS=FAILED        94 CALLS      259 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10483E-03    65.546        .15233E-02** at limit **
   2  Index         2.0744        7.2393        .50000        .60894E-04
   3  Normalizat    .68099        .21481E-01    .25640E-03   -.25796E-03
   4  Prefactor     1.3736        .25583E-01    .22176E-03   -.72798E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5156.749     FROM SIMPLEX   STATUS=PROGRESS     123 CALLS      382 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10343E-03    65.546        .19711E-03** at limit **
   2  Index         2.0676        7.2393        .23244E-02    .60894E-04
   3  Normalizat    .68095        .21481E-01    .22040E-04   -.25796E-03
   4  Prefactor     1.3735        .25583E-01    .16659E-04   -.72798E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5156.749     FROM MIGRAD    STATUS=FAILED        87 CALLS      469 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    256.71        .60932E-03** at limit **
   2  Index         1.8800        5.4449        .50000       -.88342E-05
   3  Normalizat    .68099        .45256E-01    .20512E-05   -.27490E-03
   4  Prefactor     1.3736        .53891E-01    .88703E-05   -.11253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88002
  Normalizat = 0.680993
  Prefactor  = 1.37355
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.749     FROM HESSE     STATUS=OK            27 CALLS      496 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3753        .12186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8800        8.5122        .50000       -.67384    
   3  Normalizat    .68099        .18516        .41025E-06   -1.0465    
   4  Prefactor     1.3736        .22156        .17741E-05   -.81146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21243e-08
Minuit parameter uncertainties:
  1  3.04882e-05
  2  116.612
  3  0.185329
  4  0.221708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656310': 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): 1
logL (Free Index) = 5156.74850055
delta logL = 5.43092028238e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.049e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.880e+00  1.166e+02  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.374e+00  2.217e-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.810e-01  1.853e-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/656310/cmap_HighResolution_365040001_365299201_4FGL_J1001.1+2911_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-01 10:02:05.102666', job_id='656310', GAL2='1.37', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630515725.1', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='5.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='485' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:02:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 656310: <4FGL_J1001.1+2911_daily_bin485> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin485> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:51:02 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:51:03 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:51:03 2021
Terminated at Wed Sep  1 10:02:06 2021
Results reported at Wed Sep  1 10:02:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin485 150.294 29.188 365040001 365299201 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 :                                   610.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            664 sec.

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

