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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin424
RA = 162.913, Dec = 21.1651
tmin = 349228801, tmax = 349488001
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='251941', job_status='RUN', time_executed='2021-09-02 18:29:16.483509', time_epoch_executed='1630632556.48' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251941/ft1_4FGL_J1051.6+2109_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251941/ft2_4FGL_J1051.6+2109_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251941/ft1_4FGL_J1051.6+2109_daily_bin424.fits outfile=/scratch/kocevski/251941/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin424.fits ra=162.913 dec=21.1651 rad=12.0 tmin=349228801.0 tmax=349488001.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.49
user 3.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251941/ft2_4FGL_J1051.6+2109_daily_bin424.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/251941/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/251941/ft1_filtered_4FGL_J1051.6+2109_daily_bin424.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251941/ft1_filtered_4FGL_J1051.6+2109_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/251941/ft2_4FGL_J1051.6+2109_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/251941/ltcube_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.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/251941/ft2_4FGL_J1051.6+2109_daily_bin424.fits
.....................!
real 13.86
user 13.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251941/ft1_filtered_4FGL_J1051.6+2109_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/251941/ft2_4FGL_J1051.6+2109_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/251941/ltcube_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.fits outfile=/scratch/kocevski/251941/expmap_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.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/251941/ltcube_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.fits
.....................!
real 193.42
user 186.16
sys 4.81

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/251941/ft1_filtered_4FGL_J1051.6+2109_daily_bin424.fits scfile=/scratch/kocevski/251941/ft2_4FGL_J1051.6+2109_daily_bin424.fits outfile=/scratch/kocevski/251941/cmap_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251941/ft1_filtered_4FGL_J1051.6+2109_daily_bin424.fits scfile=/scratch/kocevski/251941/ft2_4FGL_J1051.6+2109_daily_bin424.fits outfile=/scratch/kocevski/251941/cmap_HighResolution_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.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.57
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251941/ft1_filtered_4FGL_J1051.6+2109_daily_bin424.fits', '/scratch/kocevski/251941/ft2_4FGL_J1051.6+2109_daily_bin424.fits', expMap='/scratch/kocevski/251941/expmap_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.fits', expCube='/scratch/kocevski/251941/ltcube_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251941/Model_4FGL_J1051.6+2109_daily_bin424.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/251941/ft1_filtered_4FGL_J1051.6+2109_daily_bin424.fits
Spacecraft file(s): /scratch/kocevski/251941/ft2_4FGL_J1051.6+2109_daily_bin424.fits
Exposure map: /scratch/kocevski/251941/expmap_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.fits
Exposure cube: /scratch/kocevski/251941/ltcube_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251941/Model_4FGL_J1051.6+2109_daily_bin424.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) = 5798.94781226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2882       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8008       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.004       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44256E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .91867       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9451       1.0000         .10000E-03   10000.    
    15 'norm      '    12.296       1.0000         .10000E-03   10000.    
    16 'norm      '    14.489       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.204       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87623       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83950       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=   5798.891     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2063 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2864        8.3240        .10463E-05   -.88110E-04
   2  Prefactor     21.603        33.230       -.91371E-05   -.10803E-04
   3  Prefactor     13.504        44.237       -.14215E-04   -.56739E-05
   4  Prefactor     4.3906        8.7197        .22678E-05   -.24111E-03
   5  Prefactor     2.8009        2.3964       -.82018E-07   -.30482E-03
   6  Prefactor     13.001        7.1308        .41425E-06   -.77537E-04
   7  Prefactor     .10000E-03    4.7292       -.31498E-07** at limit **
   8  Prefactor     .10000E-03    10.644       -.19688E-05** at limit **
   9  Prefactor     .10000E-03    3.7919        .11698E-06** at limit **
  10  Prefactor     .10000E-03    11.348       -.32507E-06** at limit **
  11  Prefactor     .10000E-03    6.9497       -.85505E-07** at limit **
  12  norm          .91842        .96240       -.15710E-07   -.59491E-03
  13  Prefactor     18.547        4.7899        .23300E-06    .12107E-03
  14  Prefactor     4.9443        5.1159       -.23485E-06    .42880E-03
  15  norm          12.293        10.145        .23004E-05   -.63198E-04
  16  norm          14.484        12.923        .71018E-05   -.45956E-04
  17  Prefactor     13.200        12.622        .44439E-05   -.51306E-04
  18  Prefactor     .10000E-03    9.9597        .22505E-05** at limit **
  19  Normalizat    .87632        .17795       -.31260E-05    .65999E-04
  20  Prefactor     .83957        .17084        .51962E-06   -.11649E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.28637
  Prefactor  = 21.6034
  Prefactor  = 13.5041
  Prefactor  = 4.39061
  Prefactor  = 2.8009
  Prefactor  = 13.0014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.918417
  Prefactor  = 18.5473
  Prefactor  = 4.94429
  norm       = 12.2934
  norm       = 14.4842
  Prefactor  = 13.2001
  Prefactor  = 0.0001
  Normalizat = 0.876319
  Prefactor  = 0.839569
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.891     FROM HESSE     STATUS=OK           305 CALLS     2368 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2864        8.3151        .13150E-03   -1.5098    
   2  Prefactor     21.603        33.283        .86159E-04   -1.4778    
   3  Prefactor     13.504        44.376        .10897E-03   -1.4973    
   4  Prefactor     4.3906        8.6293        .19210E-03   -1.5289    
   5  Prefactor     2.8009        2.3772        .99599E-04   -1.5373    
   6  Prefactor     13.001        7.1385        .11108E-03   -1.4987    
   7  Prefactor     .10000E-03    4.7600        .16160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7995        .14480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    131.02        .45915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .91842        .92293        .73359E-03   -1.5516    
  13  Prefactor     18.547        4.4932        .75240E-04   -1.4846    
  14  Prefactor     4.9443        5.1094        .83981E-03   -1.5263    
  15  norm          12.293        10.125        .11424E-03   -1.5007    
  16  norm          14.484        12.884        .10522E-03   -1.4947    
  17  Prefactor     13.200        12.575        .11023E-03   -1.4981    
  18  Prefactor     .10000E-03    9.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87632        .20433        .24450E-03   -.97297    
  20  Prefactor     .83957        .19612        .25576E-03   -.98286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65532e-10
Minuit parameter uncertainties:
  1  8.31618
  2  33.3121
  3  44.4849
  4  8.63171
  5  2.3773
  6  7.13893
  7  2.40503e-06
  8  9.53508e-06
  9  4.73135e-08
  10  0.00147192
  11  2.70254e-07
  12  0.922946
  13  4.49328
  14  5.10982
  15  10.1265
  16  12.8863
  17  12.5775
  18  7.75311e-06
  19  0.204512
  20  0.196288
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  2.405e-06  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:  8.396e-01  1.963e-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:  8.763e-01  2.045e-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: 8.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251941/likelihoodResults_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.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) = 5798.89204732
delta logL = -0.00100156073222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5798.89104635
delta logL = -5.95321580477e-07

Fit tolerance = 1e-08

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

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

 FCN=   5798.891     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      235 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7077        .16248E-02** at limit **
   2  Index         2.7948        6.3684        .50000       -.23066E-04
   3  Normalizat    .87632        .18788        .24450E-03    .30363E-04
   4  Prefactor     .83957        .19385        .25576E-03    .19514E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.79482
  Normalizat = 0.876317
  Prefactor  = 0.839572
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.891     FROM HESSE     STATUS=OK            29 CALLS      264 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8829        .32495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7948        6.3833        .50000       -.45675    
   3  Normalizat    .87632        .18806        .97799E-05   -.97297    
   4  Prefactor     .83957        .19404        .10230E-04   -.98286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52455e-10
Minuit parameter uncertainties:
  1  0.000225255
  2  4.52291
  3  0.188198
  4  0.194194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251941': 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) = 5798.89104563
delta logL = 1.19684045785e-07

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  2.253e-04  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.795e+00  4.523e+00  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:  8.396e-01  1.942e-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:  8.763e-01  1.882e-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/251941/cmap_HighResolution_349228801_349488001_4FGL_J1051.6+2109_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.15e-08', time_completed='2021-09-02 18:39:53.739479', job_id='251941', GAL2='0.84', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630633193.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='424' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:39:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 251941: <4FGL_J1051.6+2109_daily_bin424> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin424> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:42 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:28:22 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:28:22 2021
Terminated at Thu Sep  2 18:39:54 2021
Results reported at Thu Sep  2 18:39:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin424 162.913 21.1651 349228801 349488001 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 :                                   594.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            792 sec.

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

