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


Performing analysis on: 4FGL_J0256.3+0334_daily_bin792
RA = 44.0964, Dec = 3.5698
tmin = 444614401, tmax = 444873601
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='961429', job_status='RUN', time_executed='2021-08-17 04:37:55.995374', time_epoch_executed='1629200276.0' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='792'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961429/ft1_4FGL_J0256.3+0334_daily_bin792.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961429/ft2_4FGL_J0256.3+0334_daily_bin792.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961429/ft1_4FGL_J0256.3+0334_daily_bin792.fits outfile=/scratch/kocevski/961429/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin792.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=444614401.0 tmax=444873601.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 7.11
user 3.29
sys 3.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961429/ft2_4FGL_J0256.3+0334_daily_bin792.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/961429/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin792.fits evtable="EVENTS" outfile="/scratch/kocevski/961429/ft1_filtered_4FGL_J0256.3+0334_daily_bin792.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 3.74
user 0.34
sys 3.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961429/ft1_filtered_4FGL_J0256.3+0334_daily_bin792.fits" evtable="EVENTS" scfile=/scratch/kocevski/961429/ft2_4FGL_J0256.3+0334_daily_bin792.fits sctable="SC_DATA" outfile=/scratch/kocevski/961429/ltcube_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.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/961429/ft2_4FGL_J0256.3+0334_daily_bin792.fits
.....................!
real 16.59
user 12.01
sys 3.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961429/ft1_filtered_4FGL_J0256.3+0334_daily_bin792.fits evtable="EVENTS" scfile=/scratch/kocevski/961429/ft2_4FGL_J0256.3+0334_daily_bin792.fits sctable="SC_DATA" expcube=/scratch/kocevski/961429/ltcube_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.fits outfile=/scratch/kocevski/961429/expmap_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.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/961429/ltcube_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.fits
.....................!
real 201.97
user 185.20
sys 9.55

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/961429/ft1_filtered_4FGL_J0256.3+0334_daily_bin792.fits scfile=/scratch/kocevski/961429/ft2_4FGL_J0256.3+0334_daily_bin792.fits outfile=/scratch/kocevski/961429/cmap_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.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 3.78
user 0.40
sys 3.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961429/ft1_filtered_4FGL_J0256.3+0334_daily_bin792.fits scfile=/scratch/kocevski/961429/ft2_4FGL_J0256.3+0334_daily_bin792.fits outfile=/scratch/kocevski/961429/cmap_HighResolution_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.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 3.68
user 0.40
sys 3.06

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/961429/ft1_filtered_4FGL_J0256.3+0334_daily_bin792.fits', '/scratch/kocevski/961429/ft2_4FGL_J0256.3+0334_daily_bin792.fits', expMap='/scratch/kocevski/961429/expmap_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.fits', expCube='/scratch/kocevski/961429/ltcube_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/961429/Model_4FGL_J0256.3+0334_daily_bin792.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/961429/ft1_filtered_4FGL_J0256.3+0334_daily_bin792.fits
Spacecraft file(s): /scratch/kocevski/961429/ft2_4FGL_J0256.3+0334_daily_bin792.fits
Exposure map: /scratch/kocevski/961429/expmap_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.fits
Exposure cube: /scratch/kocevski/961429/ltcube_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/961429/Model_4FGL_J0256.3+0334_daily_bin792.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) = 6484.99190113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4733       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.938       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7254       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5549       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.8597       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9466       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4344       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13998E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92763       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99962       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=   6484.946     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2501 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4733        2.3578        .10171E-06   -.29384E-04
   2  norm          .10000E-03    .28547        .19064E-07** at limit **
   3  Prefactor     .10000E-03    24.459        .58834E-06** at limit **
   4  Prefactor     44.924        46.131       -.45906E-05   -.22836E-03
   5  Prefactor     1.7241        11.433        .41282E-07   -.15247E-03
   6  Prefactor     .10000E-03    6.7139       -.22311E-05** at limit **
   7  Prefactor     1.3070        5.4768        .22378E-06   -.35221E-03
   8  Prefactor     .10000E-03    19.914        .52817E-07** at limit **
   9  Prefactor     .10006E-03    17.666       -.41386E-06** at limit **
  10  norm          .10000E-03    7.5664        .85305E-06** at limit **
  11  Prefactor     .10000E-03    6.1316       -.80848E-06** at limit **
  12  Prefactor     9.5518        28.519       -.37655E-06   -.20648E-04
  13  Prefactor     .10001E-03    40.211        .65244E-05** at limit **
  14  Prefactor     .10000E-03    3.4705       -.45988E-07** at limit **
  15  norm          .10000E-03    2.6987       -.99913E-08** at limit **
  16  norm          6.8596        3.7326       -.48950E-07   -.97369E-05
  17  Prefactor     1.1385        8.4964       -.39832E-07   -.24288E-04
  18  Prefactor     4.9456        4.7269        .17556E-05   -.18675E-02
  19  norm          3.4349        8.2266        .13878E-06   -.93988E-04
  20  Prefactor     .10000E-03    6.3192        .23053E-05** at limit **
  21  Prefactor     .10000E-03    9.8034       -.33391E-06** at limit **
  22  Prefactor     .10000E-03    3.6401        .13394E-07** at limit **
  23  Prefactor     .10000E-03    35.233       -.59209E-05** at limit **
  24  Normalizat    .92737        .19385       -.25172E-06    .90135E-04
  25  Prefactor     .99969        .91843E-01   -.98892E-07    .16576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.47329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.9236
  Prefactor  = 1.72411
  Prefactor  = 0.000100001
  Prefactor  = 1.30702
  Prefactor  = 0.0001
  Prefactor  = 0.000100061
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.55184
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.85957
  Prefactor  = 1.1385
  Prefactor  = 4.94555
  norm       = 3.43486
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 0.927369
  Prefactor  = 0.999688
 **********
 **   18 **HESSE 
 **********

 FCN=   6484.946     FROM HESSE     STATUS=OK           423 CALLS     2924 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4733        2.3513        .11658E-03   -1.5393    
   2  norm          .10000E-03    .29291        .83919E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.924        46.944        .59808E-04   -1.4366    
   5  Prefactor     1.7241        11.552        .31971E-03   -1.5445    
   6  Prefactor     .10000E-03    6.8177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3070        5.6223        .37236E-03   -1.5479    
   8  Prefactor     .10000E-03    19.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10006E-03    135.98        .62315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.6529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5518        28.433        .12964E-03   -1.5090    
  13  Prefactor     .10001E-03    41.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5229        .14647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6994        .12920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.8596        3.7327        .11099E-03   -1.5184    
  17  Prefactor     1.1385        41.059        .44601E-02   -1.5495    
  18  Prefactor     4.9456        5.7922        .90415E-03   -1.5263    
  19  norm          3.4349        8.2991        .21826E-03   -1.5337    
  20  Prefactor     .10000E-03    6.4355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.8215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6940        .14995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    36.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92737        .20470        .33787E-03   -.95505    
  25  Prefactor     .99969        .10179        .15948E-03   -.92740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34467e-08
Minuit parameter uncertainties:
  1  2.35143
  2  1.77834e-07
  3  0.000110085
  4  46.9831
  5  8.92796
  6  0.000138659
  7  5.42225
  8  1.76372e-05
  9  0.00578388
  10  6.87821e-05
  11  5.07218e-05
  12  28.4733
  13  0.00102681
  14  3.12029e-06
  15  5.06523e-07
  16  3.73281
  17  13.6837
  18  5.79282
  19  8.30192
  20  0.000142117
  21  3.00073e-05
  22  2.01906e-07
  23  0.000819987
  24  0.204871
  25  0.10181
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.120e-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.997e-01  1.018e-01  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.274e-01  2.049e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/961429/likelihoodResults_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.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) = 6484.94732171
delta logL = -0.00135294685424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6484.94596843
delta logL = 3.33628122462e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6484.946     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      254 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    113.38        .14998E-01** at limit **
   2  Index         1.6188        9.0095        .10178        .10712E-06
   3  Normalizat    .92737        .28665E-01    .33787E-03    .41657E-04
   4  Prefactor     .99969        .14095E-01    .15948E-03    .63086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.61884
  Normalizat = 0.927369
  Prefactor  = 0.999688
 **********
 **   18 **HESSE 
 **********

 FCN=   6484.946     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6037        .33242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6188        9.1552        .40712E-02   -.74264    
   3  Normalizat    .92737        .19798        .13515E-04   -.95505    
   4  Prefactor     .99969        .97403E-01    .63794E-05   -.92740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77161e-11
Minuit parameter uncertainties:
  1  2.72842e-05
  2  176.008
  3  0.198139
  4  0.0974206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961429': 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) = 6484.94596544
delta logL = 3.32331819664e-06

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.728e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.619e+00  1.760e+02  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.997e-01  9.742e-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.274e-01  1.981e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/961429/cmap_HighResolution_444614401_444873601_4FGL_J0256.3+0334_daily_bin792.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-08-17 04:50:12.991635', job_id='961429', GAL2='1.00', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1629201012.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='792' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:50:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 961429: <4FGL_J0256.3+0334_daily_bin792> in cluster <slac> Done

Job <4FGL_J0256.3+0334_daily_bin792> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 04:35:33 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:35:53 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:53 2021
Terminated at Tue Aug 17 04:50:15 2021
Results reported at Tue Aug 17 04:50:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_daily_bin792 44.0964 3.5698 444614401 444873601 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 :                                   769.28 sec.
    Max Memory :                                 1037 MB
    Average Memory :                             297.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            882 sec.

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

