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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin960
RA = 162.911, Dec = 32.8853
tmin = 488160001, tmax = 488419201
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='263404', job_status='RUN', time_executed='2021-09-02 19:03:30.276475', time_epoch_executed='1630634610.28' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263404

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263404/ft1_4FGL_J1051.6+3253_daily_bin960.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263404/ft2_4FGL_J1051.6+3253_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263404/ft1_4FGL_J1051.6+3253_daily_bin960.fits outfile=/scratch/kocevski/263404/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin960.fits ra=162.911 dec=32.8853 rad=12.0 tmin=488160001.0 tmax=488419201.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 5.52
user 5.05
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263404/ft2_4FGL_J1051.6+3253_daily_bin960.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/263404/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin960.fits evtable="EVENTS" outfile="/scratch/kocevski/263404/ft1_filtered_4FGL_J1051.6+3253_daily_bin960.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.74
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263404/ft1_filtered_4FGL_J1051.6+3253_daily_bin960.fits" evtable="EVENTS" scfile=/scratch/kocevski/263404/ft2_4FGL_J1051.6+3253_daily_bin960.fits sctable="SC_DATA" outfile=/scratch/kocevski/263404/ltcube_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.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/263404/ft2_4FGL_J1051.6+3253_daily_bin960.fits
.....................!
real 14.08
user 13.50
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263404/ft1_filtered_4FGL_J1051.6+3253_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/263404/ft2_4FGL_J1051.6+3253_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/263404/ltcube_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.fits outfile=/scratch/kocevski/263404/expmap_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.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/263404/ltcube_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.fits
.....................!
real 193.54
user 186.84
sys 5.07

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/263404/ft1_filtered_4FGL_J1051.6+3253_daily_bin960.fits scfile=/scratch/kocevski/263404/ft2_4FGL_J1051.6+3253_daily_bin960.fits outfile=/scratch/kocevski/263404/cmap_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263404/ft1_filtered_4FGL_J1051.6+3253_daily_bin960.fits scfile=/scratch/kocevski/263404/ft2_4FGL_J1051.6+3253_daily_bin960.fits outfile=/scratch/kocevski/263404/cmap_HighResolution_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263404/ft1_filtered_4FGL_J1051.6+3253_daily_bin960.fits', '/scratch/kocevski/263404/ft2_4FGL_J1051.6+3253_daily_bin960.fits', expMap='/scratch/kocevski/263404/expmap_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.fits', expCube='/scratch/kocevski/263404/ltcube_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263404/Model_4FGL_J1051.6+3253_daily_bin960.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/263404/ft1_filtered_4FGL_J1051.6+3253_daily_bin960.fits
Spacecraft file(s): /scratch/kocevski/263404/ft2_4FGL_J1051.6+3253_daily_bin960.fits
Exposure map: /scratch/kocevski/263404/expmap_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.fits
Exposure cube: /scratch/kocevski/263404/ltcube_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263404/Model_4FGL_J1051.6+3253_daily_bin960.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) = 4278.30213601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7078       1.0000         .10000E-03   10000.    
     3 'norm      '    10.410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11778E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12690E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    43.564       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7786       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25483E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9904       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5542       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.805       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2208       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8412       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2763       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19992       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.010       1.0000         .10000E-03   10000.    
    24 'norm      '    22.296       1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0861       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9696       1.0000         .10000E-03   10000.    
    29 'norm      '    1.8998       1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.260       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .92732       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .41690       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=   4278.297     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     4704 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0733        12.781       -.13705E-05    .54097E-04
   2  Prefactor     4.7077        2.7621        .20947E-07    .10548E-03
   3  norm          10.409        10.975       -.34822E-06   -.10810E-03
   4  Prefactor     .10000E-03    1.8776        .56034E-07** at limit **
   5  Prefactor     .10001E-03    23.241        .16807E-05** at limit **
   6  Prefactor     .10000E-03    1.8407       -.31424E-07** at limit **
   7  norm          43.556        14.238        .12803E-07   -.95795E-05
   8  Prefactor     38.221        44.307        .44871E-06    .32506E-04
   9  Prefactor     .10000E-03    12.563        .78126E-08** at limit **
  10  Prefactor     2.7800        4.9724       -.16972E-06    .19863E-03
  11  Prefactor     .10000E-03    2.8012        .70299E-07** at limit **
  12  Prefactor     .10000E-03    19.536       -.62372E-05** at limit **
  13  Prefactor     10.001        34.812        .13030E-05    .58355E-04
  14  Prefactor     5.5525        2.7226       -.10040E-06   -.12045E-03
  15  Prefactor     .10000E-03    6.0010       -.42670E-07** at limit **
  16  Prefactor     50.816        37.905       -.18576E-06   -.72040E-06
  17  Prefactor     6.2170        9.2047       -.15302E-06   -.16761E-05
  18  Prefactor     .10000E-03    33.797       -.72292E-07** at limit **
  19  Prefactor     6.8418        10.028       -.53995E-06   -.13191E-03
  20  norm          1.2768        .36742       -.71937E-07    .25762E-03
  21  Prefactor     .10000E-03    .93033        .10201E-08** at limit **
  22  Prefactor     .54501E-01    18.633        .11770E-06    .11579E-03
  23  Prefactor     16.041        18.318       -.31730E-06    .10602E-03
  24  norm          22.338        17.123       -.12431E-05   -.57102E-04
  25  norm          .10000E-03    4.5467        .21442E-07** at limit **
  26  Prefactor     3.0855        2.2792       -.33265E-07    .10371E-03
  27  Prefactor     .10000E-03    15.374       -.12737E-06** at limit **
  28  Prefactor     1.9747        27.355       -.15799E-05    .45510E-04
  29  norm          1.8995        1.8113       -.58812E-08    .75565E-04
  30  Prefactor     18.253        15.019        .21944E-06    .76441E-04
  31  Prefactor     .10000E-03    2.7719        .86826E-07** at limit **
  32  Normalizat    .92757        .17692       -.81415E-06   -.69588E-04
  33  Prefactor     .41652        .19407        .71235E-06    .46054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.07325
  Prefactor  = 4.70774
  norm       = 10.4087
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 43.5564
  Prefactor  = 38.2214
  Prefactor  = 0.0001
  Prefactor  = 2.78
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.001
  Prefactor  = 5.55253
  Prefactor  = 0.0001
  Prefactor  = 50.8157
  Prefactor  = 6.21702
  Prefactor  = 0.0001
  Prefactor  = 6.84184
  norm       = 1.2768
  Prefactor  = 0.0001
  Prefactor  = 0.0545005
  Prefactor  = 16.0412
  norm       = 22.3378
  norm       = 0.0001
  Prefactor  = 3.08552
  Prefactor  = 0.0001
  Prefactor  = 1.97466
  norm       = 1.89952
  Prefactor  = 18.2535
  Prefactor  = 0.0001
  Normalizat = 0.927572
  Prefactor  = 0.416525
 **********
 **   18 **HESSE 
 **********

 FCN=   4278.297     FROM HESSE     STATUS=OK           713 CALLS     5417 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0733        12.276        .28698E-03   -1.5420    
   2  Prefactor     4.7077        2.7598        .80148E-04   -1.5274    
   3  norm          10.409        10.979        .12419E-03   -1.5063    
   4  Prefactor     .10000E-03    1.9256        .17466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    144.10        .58672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.587        .17020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          43.556        13.972        .60740E-04   -1.4387    
   8  Prefactor     38.221        44.366        .64827E-04   -1.4471    
   9  Prefactor     .10000E-03    12.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7800        4.9136        .17161E-03   -1.5374    
  11  Prefactor     .10000E-03    2.8450        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.631        .27850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.001        34.712        .12677E-03   -1.5075    
  14  Prefactor     5.5525        2.6733        .70600E-04   -1.5237    
  15  Prefactor     .10000E-03    6.0135        .15620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     50.816        38.010        .56264E-04   -1.4281    
  17  Prefactor     6.2170        9.1740        .16095E-03   -1.5209    
  18  Prefactor     .10000E-03    33.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.8418        10.020        .15340E-03   -1.5185    
  20  norm          1.2768        .37665        .19585E-04   -1.5482    
  21  Prefactor     .10000E-03    .93762        .61538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .54501E-01    41.047        .65777E-01   -1.5661    
  23  Prefactor     16.041        19.225        .10010E-03   -1.4907    
  24  norm          22.338        18.347        .84829E-04   -1.4762    
  25  norm          .10000E-03    4.5697        .13621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.0855        2.2700        .80559E-04   -1.5357    
  27  Prefactor     .10000E-03    15.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.9747        25.749        .29546E-03   -1.5427    
  29  norm          1.8995        1.7993        .82531E-04   -1.5432    
  30  Prefactor     18.253        14.734        .93728E-04   -1.4853    
  31  Prefactor     .10000E-03    2.8008        .10632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .92757        .20242        .20159E-03   -.95498    
  33  Prefactor     .41652        .21629        .33660E-03   -1.1597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14335e-09
Minuit parameter uncertainties:
  1  10.0928
  2  2.7599
  3  10.9811
  4  1.47703e-05
  5  0.00184135
  6  5.00864e-05
  7  13.9726
  8  44.4047
  9  2.50474e-05
  10  4.91431
  11  1.1812e-05
  12  7.29986e-05
  13  34.782
  14  2.67334
  15  2.09267e-05
  16  38.0284
  17  9.1761
  18  3.58455e-05
  19  10.0222
  20  0.376652
  21  9.96253e-06
  22  2.99067
  23  19.2321
  24  18.352
  25  1.54228e-06
  26  2.27008
  27  2.4746e-05
  28  14.2685
  29  1.79938
  30  14.7368
  31  6.41003e-06
  32  0.20259
  33  0.216712
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  5.082e+01  3.803e+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:  4.165e-01  2.167e-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:  9.276e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 162.911 32.885
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 2.32e-05

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

Saving results to:
/scratch/kocevski/263404/likelihoodResults_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.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) = 4276.38560704
delta logL = 1.91147810726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4276.33722752
delta logL = 1.95985762811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7051       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4090       1.0000          .0000       10.000    
     3 'Normalizat'    .83115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49278       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=   4276.337     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      272 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7032        20.735        .61917E-02    .47964E-03
   2  Index         3.4093        1.7469        .47225E-01    .23905E-03
   3  Normalizat    .83121        .67267E-01    .44016E-01   -.33008E-04
   4  Prefactor     .49269        .75522E-01    .70203E-01    .19153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70316
  Index      = 3.40933
  Normalizat = 0.831209
  Prefactor  = 0.49269
 **********
 **   18 **HESSE 
 **********

 FCN=   4276.337     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      305 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7032        28.706        .48212E-04   -1.5379    
   2  Index         3.4093        2.1585        .19932E-02   -.32376    
   3  Normalizat    .83121        .18982        .21113E-03   -.98921    
   4  Prefactor     .49269        .21749        .31081E-03   -1.1231    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43826e-10
Minuit parameter uncertainties:
  1  17.6283
  2  2.24106
  3  0.189969
  4  0.217862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263404': 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): 102
logL (Free Index) = 4276.3372273
delta logL = 1.95985784199

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  2.703e+00  1.763e+01  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  3.409e+00  2.241e+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:  4.927e-01  2.179e-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:  8.312e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.65
Ra Dec: 162.911 32.885
Photon Index (Free Index): 3.41 +/- 2.24
Photon Flux (Free Index): 1.18e-07 +/- 5.94e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.38e-05

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/263404/cmap_HighResolution_488160001_488419201_4FGL_J1051.6+3253_daily_bin960.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.51e-03', comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='2.01e-05', photon_flux_error='3.80e-08', dlogl='1.96e+00', energy_flux='3.10e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-02 19:17:25.152819', photon_index_error2='2.24', photon_index2='3.41', ts='2.55', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.38e-05', EG='0.93', time_epoch_completed='1630635445.15', return_code='0', job_id='263404', GAL2='0.49', EG2='0.83', return_code2='102', energy_flux_error='2.32e-05', photon_flux_error2='5.94e-08', ts2='6.65', photon_index='2.05' WHERE bin_id='960' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:17:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 263404: <4FGL_J1051.6+3253_daily_bin960> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin960> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 19:01:31 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:03:02 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:03:02 2021
Terminated at Thu Sep  2 19:17:25 2021
Results reported at Thu Sep  2 19:17:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin960 162.911 32.8853 488160001 488419201 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 :                                   824.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            954 sec.

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

