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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1182
RA = 162.911, Dec = 32.8853
tmin = 545702401, tmax = 545961601
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='266176', job_status='RUN', time_executed='2021-09-02 19:13:15.114169', time_epoch_executed='1630635195.11' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266176/ft1_4FGL_J1051.6+3253_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266176/ft1_4FGL_J1051.6+3253_daily_bin1182.fits outfile=/scratch/kocevski/266176/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1182.fits ra=162.911 dec=32.8853 rad=12.0 tmin=545702401.0 tmax=545961601.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 4.04
user 3.78
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.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/266176/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1182.fits evtable="EVENTS" outfile="/scratch/kocevski/266176/ft1_filtered_4FGL_J1051.6+3253_daily_bin1182.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266176/ft1_filtered_4FGL_J1051.6+3253_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/266176/ltcube_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.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/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits
.....................!
real 14.78
user 14.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266176/ft1_filtered_4FGL_J1051.6+3253_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/266176/ltcube_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.fits outfile=/scratch/kocevski/266176/expmap_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.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/266176/ltcube_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.fits
.....................!
real 192.37
user 187.28
sys 4.40

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

Setting source of interest to:
4FGL J1051.6+3253 @ 162.911 32.8853

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/266176/ft1_filtered_4FGL_J1051.6+3253_daily_bin1182.fits scfile=/scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits outfile=/scratch/kocevski/266176/cmap_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.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.911 yref=32.8853 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266176/ft1_filtered_4FGL_J1051.6+3253_daily_bin1182.fits scfile=/scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits outfile=/scratch/kocevski/266176/cmap_HighResolution_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.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.911 yref=32.8853 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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266176/ft1_filtered_4FGL_J1051.6+3253_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266176/Model_4FGL_J1051.6+3253_daily_bin1182.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/266176/ft1_filtered_4FGL_J1051.6+3253_daily_bin1182.fits.....................!
real 42.44
user 40.98
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266176/ft1_filtered_4FGL_J1051.6+3253_daily_bin1182.fits', '/scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits', expMap='/scratch/kocevski/266176/expmap_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.fits', expCube='/scratch/kocevski/266176/ltcube_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266176/Model_4FGL_J1051.6+3253_daily_bin1182.xml', optimizer='MINUIT')

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

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/266176/ft1_filtered_4FGL_J1051.6+3253_daily_bin1182.fits
Spacecraft file(s): /scratch/kocevski/266176/ft2_4FGL_J1051.6+3253_daily_bin1182.fits
Exposure map: /scratch/kocevski/266176/expmap_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.fits
Exposure cube: /scratch/kocevski/266176/ltcube_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266176/Model_4FGL_J1051.6+3253_daily_bin1182.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) = 4085.5776493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9366       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12823E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    163.38       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.732       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23280E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4964       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.001       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7761       1.0000         .10000E-03   10000.    
    18 'Prefactor '    629.71       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.936       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0562       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7939       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.857       1.0000         .10000E-03   10000.    
    25 'norm      '    34.624       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3846       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.8875       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    15.116       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0292       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85103       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4085.567     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     5699 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.998        11.739        .55904E-07    .41465E-04
   2  Prefactor     .10000E-03    1.2269        .33265E-07** at limit **
   3  norm          9.9366        8.8351        .21385E-06    .14114E-04
   4  Prefactor     .10001E-03    6.4412       -.56867E-06** at limit **
   5  Prefactor     163.38        144.89       -.34107E-06    .19407E-04
   6  Prefactor     18.735        11.045       -.95279E-07    .29433E-03
   7  norm          .10000E-03    13.285        .54984E-07** at limit **
   8  Prefactor     .10001E-03    580.85       -.80539E-05** at limit **
   9  Prefactor     .10000E-03    74.136        .15030E-05** at limit **
  10  Prefactor     .10000E-03    26.779       -.35457E-05** at limit **
  11  Prefactor     .10000E-03    16.291       -.13447E-07** at limit **
  12  Prefactor     .10000E-03    3.1648       -.16636E-08** at limit **
  13  Prefactor     .10001E-03    38.156       -.44831E-05** at limit **
  14  Prefactor     1.4962        2.5686        .48502E-06    .19535E-05
  15  Prefactor     .10000E-03    6.7543        .38997E-07** at limit **
  16  Prefactor     9.9885        39.354        .31529E-05    .48512E-04
  17  Prefactor     4.7767        6.5536        .26404E-06    .35949E-04
  18  Prefactor     629.67        436.83       -.19294E-05   -.22696E-04
  19  Prefactor     19.936        16.512       -.11804E-07   -.38486E-04
  20  norm          2.0561        .65251        .30014E-07   -.29519E-03
  21  Prefactor     2.7940        4.5844        .31045E-06   -.70722E-04
  22  Prefactor     .10000E-03    31.457        .35050E-05** at limit **
  23  Prefactor     .10000E-03    29.082       -.78350E-07** at limit **
  24  norm          16.856        22.731        .19183E-06   -.34945E-04
  25  norm          34.623        18.401        .11499E-06   -.32929E-04
  26  Prefactor     1.3847        4.1691        .86583E-06   -.60735E-04
  27  Prefactor     .10000E-03    31.605        .33827E-05** at limit **
  28  Prefactor     3.8857        29.985        .11888E-04   -.74941E-04
  29  norm          .10000E-03    1.6697       -.59824E-08** at limit **
  30  Prefactor     .10000E-03    17.493        .21467E-06** at limit **
  31  Prefactor     15.115        11.260       -.34785E-06   -.11021E-03
  32  Normalizat    1.0292        .25557       -.16711E-05    .28178E-05
  33  Prefactor     .85100        .25880       -.10861E-05   -.10134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.998
  Prefactor  = 0.0001
  norm       = 9.93664
  Prefactor  = 0.000100011
  Prefactor  = 163.377
  Prefactor  = 18.7351
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 1.49618
  Prefactor  = 0.0001
  Prefactor  = 9.98847
  Prefactor  = 4.7767
  Prefactor  = 629.668
  Prefactor  = 19.9359
  norm       = 2.05613
  Prefactor  = 2.794
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 16.8556
  norm       = 34.6233
  Prefactor  = 1.38474
  Prefactor  = 0.000100004
  Prefactor  = 3.88569
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1151
  Normalizat = 1.02923
  Prefactor  = 0.850998
 **********
 **   18 **HESSE 
 **********

 FCN=   4085.567     FROM HESSE     STATUS=OK           695 CALLS     6394 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.998        11.736        .11565E-03   -1.5015    
   2  Prefactor     .10000E-03    1.2376        .69130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9366        8.8357        .12712E-03   -1.5077    
   4  Prefactor     .10001E-03    16.489        .29147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     163.38        144.82        .31553E-04   -1.3145    
   6  Prefactor     18.735        10.437        .92541E-04   -1.4842    
   7  norm          .10000E-03    13.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    605.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    74.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1732        .11098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    39.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4962        2.5338        .12150E-03   -1.5463    
  15  Prefactor     .10000E-03    6.7994        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9885        39.423        .12671E-03   -1.5076    
  17  Prefactor     4.7767        6.5421        .18410E-03   -1.5271    
  18  Prefactor     629.67        437.29        .82335E-04   -1.0635    
  19  Prefactor     19.936        16.408        .89703E-04   -1.4815    
  20  norm          2.0561        .65271        .27894E-04   -1.5421    
  21  Prefactor     2.7940        4.5299        .15074E-03   -1.5374    
  22  Prefactor     .10000E-03    32.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.856        22.678        .97551E-04   -1.4887    
  25  norm          34.623        18.419        .68103E-04   -1.4530    
  26  Prefactor     1.3847        4.1011        .20910E-03   -1.5473    
  27  Prefactor     .10000E-03    32.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.8857        31.571        .10232E-02   -1.5314    
  29  norm          .10000E-03    1.6741        .80640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    17.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     15.115        11.201        .10302E-03   -1.4930    
  32  Normalizat    1.0292        .29828        .26622E-03   -.92058    
  33  Prefactor     .85100        .30158        .31385E-03   -.97875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4361e-09
Minuit parameter uncertainties:
  1  11.7379
  2  2.7465e-06
  3  8.83681
  4  0.000862008
  5  145.133
  6  10.4383
  7  2.11005e-05
  8  0.00413842
  9  0.000578287
  10  0.000598634
  11  3.79213e-05
  12  1.07045e-06
  13  0.00108799
  14  2.53396
  15  5.34878e-06
  16  39.5265
  17  6.54309
  18  439.692
  19  16.4117
  20  0.652711
  21  4.53048
  22  0.000743615
  23  2.48457e-05
  24  22.6894
  25  18.4223
  26  4.10189
  27  0.000754472
  28  22.1676
  29  1.89792e-07
  30  1.86321e-05
  31  11.2025
  32  0.298762
  33  0.302168
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  9.988e+00  3.953e+01  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  8.510e-01  3.022e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.029e+00  2.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 162.911 32.885
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266176/likelihoodResults_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4085.37153212
delta logL = 0.195572849036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4085.33098012
delta logL = 0.236124846095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2097       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8546       1.0000          .0000       10.000    
     3 'Normalizat'    1.0013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4085.331     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      232 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2097        302.72        .44029E-02    .36720E-03
   2  Index         2.8545        6.4103        .93937E-01    .12282E-03
   3  Normalizat    1.0013        .79243E-01    .46183E-01    .80962E-05
   4  Prefactor     .86095        .79800E-01    .70521E-01    .11031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.20971
  Index      = 2.85454
  Normalizat = 1.00128
  Prefactor  = 0.860945
 **********
 **   18 **HESSE 
 **********

 FCN=   4085.331     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2097        45.064        .17612E-03   -1.5251    
   2  Index         2.8545        2.0984        .59254E-02   -.44349    
   3  Normalizat    1.0013        .27964        .26941E-03   -.92988    
   4  Prefactor     .86095        .29985        .31202E-03   -.97519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69834e-08
Minuit parameter uncertainties:
  1  30.6753
  2  2.1823
  3  0.280048
  4  0.300425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266176': 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) = 4085.33098012
delta logL = 0.236124852041

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  5.210e+00  3.068e+01  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.855e+00  2.182e+00  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  8.609e-01  3.004e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.001e+00  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 162.911 32.885

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/266176/cmap_HighResolution_545702401_545961601_4FGL_J1051.6+3253_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.20e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-02 19:27:20.358667', job_id='266176', GAL2='0.86', fit_tolerance='1e-08', EG2='1.00', EG='1.03', time_epoch_completed='1630636040.36', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.36e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1182' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:27:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 266176: <4FGL_J1051.6+3253_daily_bin1182> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1182> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 19:11:21 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:11:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 19:11:25 2021
Terminated at Thu Sep  2 19:27:21 2021
Results reported at Thu Sep  2 19:27:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1182 162.911 32.8853 545702401 545961601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+3253 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   812.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            960 sec.

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

