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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1202
RA = 162.911, Dec = 32.8853
tmin = 550886401, tmax = 551145601
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='266214', job_status='RUN', time_executed='2021-09-02 19:14:58.625272', time_epoch_executed='1630635298.63' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266214/ft1_4FGL_J1051.6+3253_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266214/ft2_4FGL_J1051.6+3253_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266214/ft1_4FGL_J1051.6+3253_daily_bin1202.fits outfile=/scratch/kocevski/266214/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1202.fits ra=162.911 dec=32.8853 rad=12.0 tmin=550886401.0 tmax=551145601.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.80
user 3.57
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266214/ft2_4FGL_J1051.6+3253_daily_bin1202.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/266214/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/266214/ft1_filtered_4FGL_J1051.6+3253_daily_bin1202.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.52
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266214/ft1_filtered_4FGL_J1051.6+3253_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/266214/ft2_4FGL_J1051.6+3253_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/266214/ltcube_550886401_551145601_4FGL_J1051.6+3253_daily_bin1202.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/266214/ft2_4FGL_J1051.6+3253_daily_bin1202.fits
.....................!
real 16.36
user 16.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266214/ft1_filtered_4FGL_J1051.6+3253_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/266214/ft2_4FGL_J1051.6+3253_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/266214/ltcube_550886401_551145601_4FGL_J1051.6+3253_daily_bin1202.fits outfile=/scratch/kocevski/266214/expmap_550886401_551145601_4FGL_J1051.6+3253_daily_bin1202.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/266214/ltcube_550886401_551145601_4FGL_J1051.6+3253_daily_bin1202.fits
.....................!
real 192.88
user 187.57
sys 4.82

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/266214/ft1_filtered_4FGL_J1051.6+3253_daily_bin1202.fits scfile=/scratch/kocevski/266214/ft2_4FGL_J1051.6+3253_daily_bin1202.fits outfile=/scratch/kocevski/266214/cmap_550886401_551145601_4FGL_J1051.6+3253_daily_bin1202.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.72
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266214/ft1_filtered_4FGL_J1051.6+3253_daily_bin1202.fits scfile=/scratch/kocevski/266214/ft2_4FGL_J1051.6+3253_daily_bin1202.fits outfile=/scratch/kocevski/266214/cmap_HighResolution_550886401_551145601_4FGL_J1051.6+3253_daily_bin1202.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.76
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13152E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12879E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.748       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0842       1.0000         .10000E-03   10000.    
    18 'Prefactor '    174.53       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18090E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .67527       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68973       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4137       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.7456       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17616E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    73.400       1.0000         .10000E-03   10000.    
    28 'Prefactor '    50.682       1.0000         .10000E-03   10000.    
    29 'norm      '    6.5712       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1310       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0826       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=   3679.581     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     5545 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2692        11.990        .24077E-07    .40753E-04
   2  Prefactor     .10000E-03    3.1640       -.25165E-06** at limit **
   3  norm          .10000E-03    8.3917       -.17752E-06** at limit **
   4  Prefactor     .10000E-03    5.9863       -.22110E-06** at limit **
   5  Prefactor     .10000E-03    132.93       -.35885E-06** at limit **
   6  Prefactor     .10000E-03    8.4552       -.31213E-06** at limit **
   7  norm          6.3896        17.494       -.70333E-07    .19665E-04
   8  Prefactor     .10000E-03    62.621       -.24762E-06** at limit **
   9  Prefactor     .10000E-03    26.706       -.27290E-06** at limit **
  10  Prefactor     10.249        13.574        .21353E-08    .15329E-04
  11  Prefactor     .10000E-03    4.6518       -.20031E-06** at limit **
  12  Prefactor     .10000E-03    17.790       -.24656E-06** at limit **
  13  Prefactor     32.782        87.571       -.55932E-06   -.73352E-04
  14  Prefactor     1.5719        2.7782        .52683E-07    .24094E-03
  15  Prefactor     .10000E-03    4.0315       -.51607E-07** at limit **
  16  Prefactor     .10000E-03    15.452       -.14528E-06** at limit **
  17  Prefactor     8.0840        7.8880        .13857E-07    .47345E-04
  18  Prefactor     174.57        210.93       -.77497E-06   -.53410E-04
  19  Prefactor     .10000E-03    18.647       -.23125E-05** at limit **
  20  norm          .67529        .67615       -.11458E-06   -.80104E-03
  21  Prefactor     .68331        6.7761        .11244E-05    .51756E-03
  22  Prefactor     23.971        41.854       -.94919E-06   -.25256E-04
  23  Prefactor     2.4180        72.160        .38190E-05    .18505E-03
  24  norm          .10000E-03    13.136       -.22640E-07** at limit **
  25  norm          3.7478        11.394       -.11204E-06    .24344E-04
  26  Prefactor     .10001E-03    22.759       -.91510E-05** at limit **
  27  Prefactor     73.129        182.77       -.12392E-04   -.72429E-04
  28  Prefactor     50.665        34.649       -.31488E-06    .65657E-05
  29  norm          6.5701        10.955        .61188E-06   -.24671E-03
  30  Prefactor     .10000E-03    31.165       -.14491E-06** at limit **
  31  Prefactor     .10000E-03    15.759       -.42565E-06** at limit **
  32  Normalizat    1.1308        .25681        .69114E-06    .16284E-03
  33  Prefactor     1.0827        .27253       -.31614E-07    .90046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.26922
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.38959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7823
  Prefactor  = 1.57194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.08399
  Prefactor  = 174.569
  Prefactor  = 0.000100001
  norm       = 0.675289
  Prefactor  = 0.683306
  Prefactor  = 23.9711
  Prefactor  = 2.41797
  norm       = 0.0001
  norm       = 3.74784
  Prefactor  = 0.000100015
  Prefactor  = 73.1294
  Prefactor  = 50.6647
  norm       = 6.57009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13082
  Prefactor  = 1.08274
 **********
 **   18 **HESSE 
 **********

 FCN=   3679.581     FROM HESSE     STATUS=OK           701 CALLS     6246 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2692        11.981        .14878E-03   -1.5169    
   2  Prefactor     .10000E-03    3.3183        .21062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.4776        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1925        .28954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    133.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6733        .34416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3896        17.433        .15888E-03   -1.5202    
   8  Prefactor     .10000E-03    62.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.249        13.550        .12514E-03   -1.5068    
  11  Prefactor     .10000E-03    4.6658        .12775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.782        87.502        .70022E-04   -1.4562    
  14  Prefactor     1.5719        2.7425        .12431E-03   -1.5457    
  15  Prefactor     .10000E-03    4.0355        .11894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0840        7.8855        .14101E-03   -1.5139    
  18  Prefactor     174.57        211.09        .15273E-03   -1.3058    
  19  Prefactor     .10000E-03    141.17        .44007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .67529        .67383        .39769E-03   -1.5544    
  21  Prefactor     .68331        5.6668        .26282E-02   -1.5543    
  22  Prefactor     23.971        41.834        .81778E-04   -1.4728    
  23  Prefactor     2.4180        75.384        .13174E-02   -1.5397    
  24  norm          .10000E-03    13.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.7478        11.369        .20862E-03   -1.5321    
  26  Prefactor     .10001E-03    23.164        .22930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     73.129        180.10        .23431E-03   -1.3996    
  28  Prefactor     50.665        34.697        .56332E-04   -1.4283    
  29  norm          6.5701        10.799        .75864E-03   -1.5195    
  30  Prefactor     .10000E-03    31.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    15.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1308        .31081        .25921E-03   -.88768    
  33  Prefactor     1.0827        .32832        .29366E-03   -.90020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30095e-09
Minuit parameter uncertainties:
  1  11.9847
  2  2.69221e-05
  3  2.50751e-05
  4  2.09294e-05
  5  0.000914469
  6  4.13086e-05
  7  17.4473
  8  8.49758e-05
  9  0.000168183
  10  13.5541
  11  1.55678e-05
  12  2.05478e-05
  13  87.847
  14  2.74275
  15  5.60288e-06
  16  7.66209e-05
  17  7.88654
  18  212.019
  19  0.000725198
  20  0.673836
  21  3.93577
  22  41.8853
  23  27.0388
  24  3.56302e-05
  25  11.376
  26  0.00117801
  27  181.467
  28  34.7104
  29  10.8022
  30  8.4891e-05
  31  2.23485e-05
  32  0.311317
  33  0.328939
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  7.662e-05  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:  1.083e+00  3.289e-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.131e+00  3.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.911 32.885
Photon Flux Upper Limit: 7.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266214/likelihoodResults_550886401_551145601_4FGL_J1051.6+3253_daily_bin1202.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) = 3679.58164529
delta logL = -0.000306992234528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3679.58133905
delta logL = -7.47111243982e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3679.581     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      274 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    45.285        .18142E-02** at limit **
   2  Index         2.1449        5.3209        .50000        .22485E-04
   3  Normalizat    1.1308        .11277E-01    .25921E-03   -.25686E-03
   4  Prefactor     1.0827        .12587E-01    .29366E-03   -.22532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100805
  Index      = 2.14489
  Normalizat = 1.13082
  Prefactor  = 1.08274
 **********
 **   18 **HESSE 
 **********

 FCN=   3679.581     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10080E-03    206.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1449        6.0331        .50000       -.60775    
   3  Normalizat    1.1308        .24430E-01    .51842E-04   -.88768    
   4  Prefactor     1.0827        .27268E-01    .58733E-04   -.90020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.26224e-09
Minuit parameter uncertainties:
  1  0.0258487
  2  183.757
  3  0.0244302
  4  0.0272684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266214': 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) = 3679.58133877
delta logL = -4.6958848543e-07

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.008e-04  2.585e-02  1.000e-04  1.000e+04 ( 1.000e-14)
294        Index:  2.145e+00  1.838e+02  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:  1.083e+00  2.727e-02  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.131e+00  2.443e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/266214/cmap_HighResolution_550886401_551145601_4FGL_J1051.6+3253_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-02 19:27:58.392581', job_id='266214', GAL2='1.08', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630636078.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-4.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1202' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:27:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 266214: <4FGL_J1051.6+3253_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1202> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 19:11:22 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 19:11:30 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:30 2021
Terminated at Thu Sep  2 19:27:59 2021
Results reported at Thu Sep  2 19:27:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1202 162.911 32.8853 550886401 551145601 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 :                                   766.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            997 sec.

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

