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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin890
RA = 162.913, Dec = 21.1651
tmin = 470016001, tmax = 470275201
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='256314', job_status='RUN', time_executed='2021-09-02 18:43:52.191985', time_epoch_executed='1630633432.19' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256314

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256314/ft1_4FGL_J1051.6+2109_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256314/ft1_4FGL_J1051.6+2109_daily_bin890.fits outfile=/scratch/kocevski/256314/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin890.fits ra=162.913 dec=21.1651 rad=12.0 tmin=470016001.0 tmax=470275201.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.52
user 3.27
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.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/256314/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin890.fits evtable="EVENTS" outfile="/scratch/kocevski/256314/ft1_filtered_4FGL_J1051.6+2109_daily_bin890.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.60
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256314/ft1_filtered_4FGL_J1051.6+2109_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/256314/ltcube_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.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/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits
.....................!
real 14.94
user 14.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256314/ft1_filtered_4FGL_J1051.6+2109_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/256314/ltcube_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.fits outfile=/scratch/kocevski/256314/expmap_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.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/256314/ltcube_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.fits
.....................!
real 193.37
user 187.57
sys 5.39

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1051.6+2109 @ 162.913 21.1651

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/256314/ft1_filtered_4FGL_J1051.6+2109_daily_bin890.fits scfile=/scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits outfile=/scratch/kocevski/256314/cmap_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.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=162.913 yref=21.1651 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256314/ft1_filtered_4FGL_J1051.6+2109_daily_bin890.fits scfile=/scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits outfile=/scratch/kocevski/256314/cmap_HighResolution_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.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=162.913 yref=21.1651 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256314/ft1_filtered_4FGL_J1051.6+2109_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256314/Model_4FGL_J1051.6+2109_daily_bin890.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/256314/ft1_filtered_4FGL_J1051.6+2109_daily_bin890.fits.....................!
real 51.86
user 50.58
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/256314/ft1_filtered_4FGL_J1051.6+2109_daily_bin890.fits', '/scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits', expMap='/scratch/kocevski/256314/expmap_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.fits', expCube='/scratch/kocevski/256314/ltcube_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/256314/Model_4FGL_J1051.6+2109_daily_bin890.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.6+2109'

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.594e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/256314/ft1_filtered_4FGL_J1051.6+2109_daily_bin890.fits
Spacecraft file(s): /scratch/kocevski/256314/ft2_4FGL_J1051.6+2109_daily_bin890.fits
Exposure map: /scratch/kocevski/256314/expmap_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.fits
Exposure cube: /scratch/kocevski/256314/ltcube_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/256314/Model_4FGL_J1051.6+2109_daily_bin890.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) = 5392.03594961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.704       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1887       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4589       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1549       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .73714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5391.233     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1712 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.173        11.061        .71959E-07   -.98422E-04
   2  Prefactor     .10000E-03    10.372       -.10092E-05** at limit **
   3  Prefactor     .10000E-03    26.474       -.75053E-05** at limit **
   4  Prefactor     .10000E-03    2.6231        .10317E-06** at limit **
   5  Prefactor     .10000E-03    .88437        .10951E-06** at limit **
   6  Prefactor     9.1707        6.7472        .37443E-06   -.10594E-02
   7  Prefactor     .10000E-03    5.3149        .72501E-08** at limit **
   8  Prefactor     .10000E-03    7.7435        .15787E-05** at limit **
   9  Prefactor     17.707        10.305       -.12483E-06   -.10187E-03
  10  Prefactor     .10000E-03    3.3467       -.95927E-06** at limit **
  11  Prefactor     .10000E-03    10.849        .19873E-05** at limit **
  12  norm          1.1887        1.1158        .93940E-07    .44260E-04
  13  Prefactor     2.4590        1.9409        .76806E-06   -.36830E-02
  14  Prefactor     .10000E-03    3.0038        .19630E-05** at limit **
  15  norm          .10000E-03    2.9064       -.89808E-06** at limit **
  16  norm          .10000E-03    8.5795       -.25942E-05** at limit **
  17  Prefactor     .10000E-03    2.9142       -.73028E-06** at limit **
  18  Prefactor     .10000E-03    24.911        .68699E-05** at limit **
  19  Normalizat    1.1548        .16753        .41934E-06   -.76969E-04
  20  Prefactor     .73726        .17538       -.12253E-05   -.23467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.1734
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.17074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18872
  Prefactor  = 2.45895
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.1548
  Prefactor  = 0.737262
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.233     FROM HESSE     STATUS=OK           285 CALLS     1997 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.173        11.091        .37089E-03   -1.4627    
   2  Prefactor     .10000E-03    10.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6423        .11609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4321        .13387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1707        7.0572        .66173E-03   -1.5102    
   7  Prefactor     .10000E-03    5.3566        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.707        10.299        .95187E-04   -1.4866    
  10  Prefactor     .10000E-03    3.3613        .13135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1887        1.1030        .72149E-04   -1.5490    
  13  Prefactor     2.4590        2.7813        .62017E-03   -1.5394    
  14  Prefactor     .10000E-03    3.0551        .12483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9172        .12241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.7233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9234        .12252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1548        .19550        .20967E-03   -.88011    
  20  Prefactor     .73726        .20203        .27193E-03   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46926e-09
Minuit parameter uncertainties:
  1  11.0915
  2  5.64014e-05
  3  0.000679367
  4  1.58821e-06
  5  5.90337e-06
  6  7.05782
  7  7.86696e-07
  8  7.68016e-05
  9  10.3
  10  3.06413e-05
  11  0.000107005
  12  1.10306
  13  2.78143
  14  5.68014e-05
  15  2.7018e-05
  16  0.0001283
  17  2.24123e-05
  18  0.000596767
  19  0.195625
  20  0.202232
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  7.867e-07  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.373e-01  2.022e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.155e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 7.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256314/likelihoodResults_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.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) = 5391.23418512
delta logL = -0.000889614252628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5391.2332961
delta logL = -5.92359356233e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7631       1.0000          .0000       10.000    
     3 'Normalizat'    1.1547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73742       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   5391.233     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    240.36        .16545E-02** at limit **
   2  Index         2.6751        5.8746        .50000        .10095E-04
   3  Normalizat    1.1548        .28962E-01    .20967E-03    .14369E-04
   4  Prefactor     .73726        .30808E-01    .27194E-03    .10201E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5391.233     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      383 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    240.36        .33749E-03** at limit **
   2  Index         2.6751        5.8746        .64414E-04    .10095E-04
   3  Normalizat    1.1548        .28962E-01    .81667E-06    .14369E-04
   4  Prefactor     .73726        .30808E-01    .86439E-06    .10201E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5391.233     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      423 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1242.6        .33091E-03** at limit **
   2  Index         2.4309        8.5714        .50000        .54160E-07
   3  Normalizat    1.1548        .12430        .83866E-05   -.65881E-04
   4  Prefactor     .73726        .13217        .10877E-04   -.44942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43091
  Normalizat = 1.15481
  Prefactor  = 0.737262
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.233     FROM HESSE     STATUS=OK            29 CALLS      452 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0366        .66182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4309        8.7141        .50000       -.53963    
   3  Normalizat    1.1548        .18970        .16773E-05   -.88011    
   4  Prefactor     .73726        .20175        .21755E-05   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89414e-11
Minuit parameter uncertainties:
  1  9.46088e-05
  2  153.678
  3  0.189814
  4  0.201951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256314': 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) = 5391.23329497
delta logL = 5.39432221558e-07

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  9.461e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.431e+00  1.537e+02  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.373e-01  2.020e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.155e+00  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.913 21.165

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/256314/cmap_HighResolution_470016001_470275201_4FGL_J1051.6+2109_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='7.87e-08', time_completed='2021-09-02 18:53:30.342256', job_id='256314', GAL2='0.74', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630634010.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='5.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='890' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:53:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 256314: <4FGL_J1051.6+2109_daily_bin890> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin890> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:25 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:41:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:41:53 2021
Terminated at Thu Sep  2 18:53:31 2021
Results reported at Thu Sep  2 18:53:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin890 162.913 21.1651 470016001 470275201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   574.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            726 sec.

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

