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


Performing analysis on: 4FGL_J1056.8+7012_daily_bin1229
RA = 164.208, Dec = 70.2019
tmin = 557884801, tmax = 558144001
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='287379', job_status='RUN', time_executed='2021-09-02 20:24:07.960540', time_epoch_executed='1630639447.96' WHERE source_name='4FGL J1056.8+7012' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287379/ft1_4FGL_J1056.8+7012_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287379/ft1_4FGL_J1056.8+7012_daily_bin1229.fits outfile=/scratch/kocevski/287379/ft1_filteredMKT_4FGL_J1056.8+7012_daily_bin1229.fits ra=164.208 dec=70.2019 rad=12.0 tmin=557884801.0 tmax=558144001.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.36
user 3.12
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.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/287379/ft1_filteredMKT_4FGL_J1056.8+7012_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/287379/ft1_filtered_4FGL_J1056.8+7012_daily_bin1229.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287379/ft1_filtered_4FGL_J1056.8+7012_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/287379/ltcube_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.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/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits
.....................!
real 10.66
user 9.98
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287379/ft1_filtered_4FGL_J1056.8+7012_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/287379/ltcube_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.fits outfile=/scratch/kocevski/287379/expmap_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.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/287379/ltcube_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.fits
.....................!
real 158.55
user 150.85
sys 3.28

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

Setting source of interest to:
4FGL J1056.8+7012 @ 164.208 70.2019

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/287379/ft1_filtered_4FGL_J1056.8+7012_daily_bin1229.fits scfile=/scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits outfile=/scratch/kocevski/287379/cmap_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.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=164.208 yref=70.2019 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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287379/ft1_filtered_4FGL_J1056.8+7012_daily_bin1229.fits scfile=/scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits outfile=/scratch/kocevski/287379/cmap_HighResolution_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.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=164.208 yref=70.2019 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.48
user 0.31
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287379/ft1_filtered_4FGL_J1056.8+7012_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287379/Model_4FGL_J1056.8+7012_daily_bin1229.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/287379/ft1_filtered_4FGL_J1056.8+7012_daily_bin1229.fits....!
real 11.75
user 10.44
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/287379/ft1_filtered_4FGL_J1056.8+7012_daily_bin1229.fits', '/scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits', expMap='/scratch/kocevski/287379/expmap_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.fits', expCube='/scratch/kocevski/287379/ltcube_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/287379/Model_4FGL_J1056.8+7012_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1056.8+7012'

4FGL J1056.8+7012
   Spectrum: LogParabola
382         norm:  1.645e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
383        alpha:  2.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
384         beta:  1.139e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
385           Eb:  9.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/287379/ft1_filtered_4FGL_J1056.8+7012_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/287379/ft2_4FGL_J1056.8+7012_daily_bin1229.fits
Exposure map: /scratch/kocevski/287379/expmap_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.fits
Exposure cube: /scratch/kocevski/287379/ltcube_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/287379/Model_4FGL_J1056.8+7012_daily_bin1229.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) = 34.9996841906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    631.08       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3064       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.719       1.0000         .10000E-03   10000.    
     6 'norm      '    9999.9       1.0000         .10000E-03   10000.    
     7 'norm      '    8.6517       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10898E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47496E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.394       1.0000         .10000E-03   10000.    
    11 'norm      '    79.444       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13262E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.550       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10815E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    17 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    259.33       1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.895       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6008       1.0000         .10000E-03   10000.    
    22 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    23 'norm      '    2.3654       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.3324       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.3274       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.9861       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .20692E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.8718       1.0000         .10000E-03   10000.    
    30 'norm      '    .46208E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .64665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34.59760     FROM MIGRAD    STATUS=CONVERGED     54 CALLS     4450 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10035E-03    43.911        .67223E-04** at limit **
   2  Prefactor     631.08        1.0000        .44670E-08   -.42176E-04
   3  Prefactor    10000.0        .30521        .73205E-05** at limit **
   4  Prefactor     3.3078        1.0504        .24824E-05   -.90043E-04
   5  Prefactor     17.721        1.0943        .16949E-05   -.33658E-03
   6  norm          9999.9        12.651        .11302E-03   -.14062E-02
   7  norm          8.6527        1.0233        .11432E-05   -.11067E-03
   8  Prefactor     .10011E-03    130.12       -.28110E-03** at limit **
   9  Prefactor     .13203E-03    5.3450       -.67368E-04** at limit **
  10  Prefactor     14.394        1.0050        .39652E-06   -.63961E-04
  11  norm          79.447        1.2495        .13565E-05   -.12012E-02
  12  Prefactor     .54051E-02    24.125       -.15503E-03    .18687E-02
  13  norm          .13304E-03    69.728        .20552E-03** at limit **
  14  Prefactor     10.550        1.0040        .37648E-06   -.44481E-04
  15  Prefactor     .13617E-03    66.175       -.65182E-04** at limit **
  16  norm          .10000E-03    35.930        .94437E-05** at limit **
  17  norm         10000.0        1.5452        .37094E-04   -.49239E-03
  18  Prefactor     259.34        1.7581        .14602E-05   -.40791E-02
  19  Prefactor    10000.0        .34476        .94630E-05** at limit **
  20  Prefactor     10.895        1.0013        .11212E-06   -.13682E-04
  21  Prefactor     9.6018        1.0239        .11067E-05   -.11895E-03
  22  Prefactor    10000.0        .29509        .93208E-05   -.12371E-03
  23  norm          2.3656        1.0248        .33963E-06   -.86018E-05
  24  Prefactor     .11428E-03    54.393        .80132E-04** at limit **
  25  norm          3.3330        1.0197        .11134E-05   -.40718E-04
  26  Prefactor     4.3277        1.0085        .44853E-06   -.21505E-04
  27  Prefactor     1.9863        1.0362        .28270E-06   -.58786E-05
  28  Prefactor     .45296E-02    36.402       -.18984E-03    .21991E-02
  29  Prefactor     4.8722        1.0087        .59560E-06   -.32241E-04
  30  norm          .11369E-03    5.7828       -.68230E-04** at limit **
  31  norm          .10490E-03    59.260       -.14093E-03** at limit **
  32  Normalizat    .10000E-01    2.0793        .13351E-04** at limit **
  33  Prefactor     .64671        1.6385       -.91764E-04   -.21649E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100353
  Prefactor  = 631.082
  Prefactor  = 10000
  Prefactor  = 3.30776
  Prefactor  = 17.7212
  norm       = 9999.94
  norm       = 8.65271
  Prefactor  = 0.000100114
  Prefactor  = 0.000132031
  Prefactor  = 14.394
  norm       = 79.4472
  Prefactor  = 0.00540507
  norm       = 0.000133043
  Prefactor  = 10.5502
  Prefactor  = 0.000136175
  norm       = 0.000100002
  norm       = 9999.99
  Prefactor  = 259.34
  Prefactor  = 10000
  Prefactor  = 10.8952
  Prefactor  = 9.60179
  Prefactor  = 9999.97
  norm       = 2.3656
  Prefactor  = 0.000114276
  norm       = 3.33297
  Prefactor  = 4.3277
  Prefactor  = 1.98626
  Prefactor  = 0.00452957
  Prefactor  = 4.8722
  norm       = 0.000113693
  norm       = 0.000104898
  Normalizat = 0.01
  Prefactor  = 0.646705
 **********
 **   18 **HESSE 
 **********

 FCN=   34.59760     FROM HESSE     STATUS=OK           729 CALLS     5179 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10035E-03    43.250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     631.08        886.88        .41126E-03   -1.0629    
   3  Prefactor    10000.0        2112.9        .10065E-01    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3078        2288.2        .55660E-02   -1.5344    
   5  Prefactor     17.721        2284.8        .23787E-02   -1.4866    
   6  norm          9999.9        1818.1        .93731E-02    1.5658    
   7  norm          8.6527        2284.5        .34070E-02   -1.5120    
   8  Prefactor     .10011E-03    246.08        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13203E-03    562.60        .10591E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.394        2279.7        .26393E-02   -1.4949    
  11  norm          79.447        2262.0        .11264E-02   -1.3923    
  12  Prefactor     .54051E-02    1052.8        .90712E-02   -1.5693    
  13  norm          .13304E-03    86.854        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.550        2281.2        .30839E-02   -1.5058    
  15  Prefactor     .13617E-03    167.30        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    35.424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        1833.9        .90871E-02    1.5690    
  18  Prefactor     259.34        253.06        .62918E-03   -1.2473    
  19  Prefactor    10000.0        2048.2        .10156E-01    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.895        2280.0        .30345E-02   -1.5048    
  21  Prefactor     9.6018        2284.2        .32333E-02   -1.5088    
  22  Prefactor    10000.0        2215.2        .91864E-02    1.5672    
  23  norm          2.3656        2284.1        .66608E-02   -1.5400    
  24  Prefactor     .11428E-03    137.07        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3330        2285.4        .55432E-02   -1.5343    
  26  Prefactor     4.3277        2283.7        .48411E-02   -1.5292    
  27  Prefactor     1.9863        2284.1        .73509E-02   -1.5426    
  28  Prefactor     .45296E-02    911.19        .90712E-02   -1.5695    
  29  Prefactor     4.8722        2283.9        .45561E-02   -1.5266    
  30  norm          .11369E-03    478.41        .10598E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10490E-03    60.124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    1.1310        .12398       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .64671        1.4020        .95542E-01   -1.0565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9027e-06
Minuit parameter uncertainties:
  1  0.00781985
  2  907.828
  3  4.30191
  4  181.461
  5  420.031
  6  21.9878
  7  293.326
  8  0.0106574
  9  0.271066
  10  378.022
  11  887.783
  12  4.8137
  13  0.107299
  14  323.672
  15  0.156025
  16  0.000478009
  17  8.07378
  18  254.143
  19  3.76381
  20  328.839
  21  308.985
  22  17.6187
  23  153.295
  24  0.0886752
  25  182.027
  26  207.348
  27  140.465
  28  4.08172
  29  220.023
  30  0.163191
  31  0.0343566
  32  9.20305e-06
  33  1.49184
Done.

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

Extracting fit parameters...

4FGL J1056.8+7012
   Spectrum: LogParabola
382         norm:  1.000e+04  8.074e+00  1.000e-04  1.000e+04 ( 1.000e-12)
383        alpha:  2.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
384         beta:  1.139e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
385           Eb:  9.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  6.467e-01  1.492e+00  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  1.000e-02  9.203e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 164.208 70.202
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.65e-04 +/- 1.33e-07
Energy Flux (Fixed Index): 4.43e-02 +/- 3.58e-05
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 4.4801345922e-07

TS (Fixed Index): 1.33
Ra Dec: 164.208 70.202
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -2.69e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287379/likelihoodResults_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.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) = 30.9318754154
delta logL = 3.66572721581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30.9301659807
delta logL = 3.66743665048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7320E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30.93017     FROM MIGRAD    STATUS=CONVERGED     30 CALLS       63 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        .24976         .0000    ** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   30.93017     FROM HESSE     STATUS=OK             7 CALLS       70 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        .24794        .12340E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.65856e-08
Minuit parameter uncertainties:
  1  0.000117609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287379': 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) = 30.9301659807
delta logL = 3.66743665048

Extracting fit parameters...

4FGL J1056.8+7012
   Spectrum: LogParabola
382         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
383        alpha:  5.000e+00  1.176e-04  0.000e+00  5.000e+00 ( 1.000e+00)
384         beta:  1.139e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
385           Eb:  9.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  6.467e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  1.027e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 8.66
Ra Dec: 164.208 70.202
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.10e-02 +/- 2.52e-06
Energy Flux (Free Index): 1.52e+00 +/- 3.29e-04

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/287379/cmap_HighResolution_557884801_558144001_4FGL_J1056.8+7012_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-2.69e+02', comment='SUCCESS', photon_flux='1.65e-04', energy_flux2='1.52e+00', photon_flux_error='1.33e-07', dlogl='3.67e+00', energy_flux='4.43e-02', photon_flux2='1.10e-02', job_status='DONE', time_completed='2021-09-02 20:29:10.606398', photon_index_error2='0.00', photon_index2='5.00', ts='1.33', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='3.29e-04', EG='0.01', time_epoch_completed='1630639750.61', return_code='0', job_id='287379', GAL2='0.65', EG2='0.01', return_code2='0', energy_flux_error='3.58e-05', photon_flux_error2='2.52e-06', ts2='8.66', photon_index='2.67' WHERE bin_id='1229' AND source_name='4FGL J1056.8+7012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 20:29:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 287379: <4FGL_J1056.8+7012_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1056.8+7012_daily_bin1229> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 20:16:11 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 20:21:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 20:21:23 2021
Terminated at Thu Sep  2 20:29:11 2021
Results reported at Thu Sep  2 20:29:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1056.8+7012_daily_bin1229 164.208 70.2019 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1056.8+7012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   286.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   467 sec.
    Turnaround time :                            780 sec.

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

