/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7468
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0256.3+0334_daily_bin780
RA = 44.0964, Dec = 3.5698
tmin = 441504001, tmax = 441763201
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='961410', job_status='RUN', time_executed='2021-08-17 04:37:55.959731', time_epoch_executed='1629200275.96' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961410

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961410/ft1_4FGL_J0256.3+0334_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961410/ft1_4FGL_J0256.3+0334_daily_bin780.fits outfile=/scratch/kocevski/961410/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin780.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=441504001.0 tmax=441763201.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.97
user 3.16
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.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/961410/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin780.fits evtable="EVENTS" outfile="/scratch/kocevski/961410/ft1_filtered_4FGL_J0256.3+0334_daily_bin780.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 1.93
user 0.33
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961410/ft1_filtered_4FGL_J0256.3+0334_daily_bin780.fits" evtable="EVENTS" scfile=/scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits sctable="SC_DATA" outfile=/scratch/kocevski/961410/ltcube_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.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/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits
.....................!
real 13.84
user 11.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961410/ft1_filtered_4FGL_J0256.3+0334_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/961410/ltcube_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.fits outfile=/scratch/kocevski/961410/expmap_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.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/961410/ltcube_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.fits
.....................!
real 194.94
user 185.11
sys 5.60

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

Setting source of interest to:
4FGL J0256.3+0334 @ 44.0964 3.5698

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/961410/ft1_filtered_4FGL_J0256.3+0334_daily_bin780.fits scfile=/scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits outfile=/scratch/kocevski/961410/cmap_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.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=44.0964 yref=3.5698 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961410/ft1_filtered_4FGL_J0256.3+0334_daily_bin780.fits scfile=/scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits outfile=/scratch/kocevski/961410/cmap_HighResolution_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.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=44.0964 yref=3.5698 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.70
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/961410/ft1_filtered_4FGL_J0256.3+0334_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961410/Model_4FGL_J0256.3+0334_daily_bin780.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/961410/ft1_filtered_4FGL_J0256.3+0334_daily_bin780.fits.....................!
real 106.51
user 100.94
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/961410/ft1_filtered_4FGL_J0256.3+0334_daily_bin780.fits', '/scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits', expMap='/scratch/kocevski/961410/expmap_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.fits', expCube='/scratch/kocevski/961410/ltcube_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/961410/Model_4FGL_J0256.3+0334_daily_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0256.3+0334'

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.009e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  2.192e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/961410/ft1_filtered_4FGL_J0256.3+0334_daily_bin780.fits
Spacecraft file(s): /scratch/kocevski/961410/ft2_4FGL_J0256.3+0334_daily_bin780.fits
Exposure map: /scratch/kocevski/961410/expmap_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.fits
Exposure cube: /scratch/kocevski/961410/ltcube_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/961410/Model_4FGL_J0256.3+0334_daily_bin780.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) = 8450.08966575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77446       1.0000         .10000E-03   10000.    
     2 'norm      '    .62525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.645       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.222       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25252E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.299       1.0000         .10000E-03   10000.    
    10 'norm      '    18.848       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8660       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8453       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4796       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.779       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97631       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8450.080     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2902 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77357        2.1218        .10064E-05    .21396E-05
   2  norm          .62523        .83541        .45004E-06    .71384E-03
   3  Prefactor     12.645        18.428       -.37879E-06   -.29314E-04
   4  Prefactor     .10000E-03    33.238       -.33654E-07** at limit **
   5  Prefactor     .10000E-03    10.418       -.24327E-05** at limit **
   6  Prefactor     13.220        15.897       -.41114E-07   -.17589E-04
   7  Prefactor     .10000E-03    6.3693        .11448E-07** at limit **
   8  Prefactor     .10000E-03    116.61       -.14868E-04** at limit **
   9  Prefactor     20.297        14.997       -.54485E-07   -.38469E-04
  10  norm          18.846        12.884       -.24906E-07    .80395E-04
  11  Prefactor     3.8678        7.2934        .38075E-06   -.17681E-04
  12  Prefactor     31.906        54.731       -.11021E-05   -.14799E-04
  13  Prefactor     .10000E-03    15.950        .11345E-06** at limit **
  14  Prefactor     .10000E-03    5.1066        .43692E-06** at limit **
  15  norm          .10000E-03    5.4397        .10826E-06** at limit **
  16  norm          1.8449        2.7686        .22665E-06   -.54276E-05
  17  Prefactor     .10000E-03    15.230        .83762E-06** at limit **
  18  Prefactor     .10000E-03    2.3561        .12867E-06** at limit **
  19  norm          .10000E-03    4.5394       -.13807E-07** at limit **
  20  Prefactor     .10000E-03    10.578        .27880E-06** at limit **
  21  Prefactor     6.4804        21.046        .57303E-06   -.85809E-05
  22  Prefactor     14.779        7.5235        .18278E-07    .45110E-05
  23  Prefactor     .10000E-03    3.5977        .11723E-06** at limit **
  24  Normalizat    .97637        .17634       -.12613E-05   -.22909E-04
  25  Prefactor     .93952        .82521E-01    .13205E-06   -.82433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.773568
  norm       = 0.625225
  Prefactor  = 12.6453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2199
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.2966
  norm       = 18.8465
  Prefactor  = 3.86776
  Prefactor  = 31.906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.84487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48039
  Prefactor  = 14.7789
  Prefactor  = 0.0001
  Normalizat = 0.976371
  Prefactor  = 0.939518
 **********
 **   18 **HESSE 
 **********

 FCN=   8450.080     FROM HESSE     STATUS=OK           427 CALLS     3329 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77357        2.0945        .21352E-03   -1.5532    
   2  norm          .62523        .78185        .94506E-03   -1.5550    
   3  Prefactor     12.645        18.388        .11265E-03   -1.4997    
   4  Prefactor     .10000E-03    33.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.220        15.884        .11016E-03   -1.4981    
   7  Prefactor     .10000E-03    6.4304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    113.57        .21461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.297        15.033        .88898E-04   -1.4807    
  10  norm          18.846        12.881        .92254E-04   -1.4839    
  11  Prefactor     3.8678        7.2902        .20523E-03   -1.5315    
  12  Prefactor     31.906        54.836        .70844E-04   -1.4578    
  13  Prefactor     .10000E-03    15.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.2513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.4775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8449        2.7519        .18094E-03   -1.5436    
  17  Prefactor     .10000E-03    15.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3747        .13767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.5862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.4804        20.976        .15766E-03   -1.5199    
  22  Prefactor     14.779        7.5721        .10419E-03   -1.4939    
  23  Prefactor     .10000E-03    3.6047        .17028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97637        .19184        .34094E-03   -.93826    
  25  Prefactor     .93952        .91067E-01    .16834E-03   -.94774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30968e-10
Minuit parameter uncertainties:
  1  2.09474
  2  0.781867
  3  18.3963
  4  2.32828e-05
  5  6.97263e-05
  6  15.8889
  7  4.62385e-06
  8  0.000756301
  9  15.0355
  10  12.8834
  11  7.29191
  12  54.9223
  13  7.768e-07
  14  1.89638e-06
  15  2.25472e-06
  16  2.75205
  17  3.55321e-06
  18  6.87671e-07
  19  2.79463e-06
  20  3.90486e-06
  21  20.9998
  22  7.57257
  23  4.33901e-07
  24  0.191977
  25  0.0910818
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.896e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  2.192e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  9.395e-01  9.108e-02  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  9.764e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 44.096 3.570
Photon Flux Upper Limit: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/961410/likelihoodResults_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.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) = 8450.08072146
delta logL = -0.00090887738952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8450.07981263
delta logL = -4.88817022415e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8450.080     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.131        .90712E-02** at limit **
   2  Index         2.0830        5.0173        .50000        .22153E-05
   3  Normalizat    .97637        .94852E-02    .77040E-01    .24651E-04
   4  Prefactor     .93952        .46297E-02    .45507E-01   -.21828E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08297
  Normalizat = 0.976371
  Prefactor  = 0.939519
 **********
 **   18 **HESSE 
 **********

 FCN=   8450.080     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0830        5.5108        .50000       -.62292    
   3  Normalizat    .97637        .17712        .34094E-03   -.93826    
   4  Prefactor     .93952        .86634E-01    .16834E-03   -.94774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43179e-11
Minuit parameter uncertainties:
  1  2.50729e-06
  2  8.64919
  3  0.177225
  4  0.0866471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961410': 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) = 8450.07981258
delta logL = 2.09365680348e-09

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.507e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.083e+00  8.649e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  2.192e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  9.395e-01  8.665e-02  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  9.764e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 44.096 3.570

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/961410/cmap_HighResolution_441504001_441763201_4FGL_J0256.3+0334_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-08-17 04:51:54.250987', job_id='961410', GAL2='0.94', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1629201114.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.09e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='780' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 961410: <4FGL_J0256.3+0334_daily_bin780> in cluster <slac> Done

Job <4FGL_J0256.3+0334_daily_bin780> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 04:35:31 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:35:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 04:35:36 2021
Terminated at Tue Aug 17 04:51:55 2021
Results reported at Tue Aug 17 04:51:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_daily_bin780 44.0964 3.5698 441504001 441763201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0256.3+0334 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   814.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            984 sec.

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

