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


Performing analysis on: 4FGL_J0256.3+0334_daily_bin1386
RA = 44.0964, Dec = 3.5698
tmin = 598579201, tmax = 598838401
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='965080', job_status='RUN', time_executed='2021-08-17 04:47:15.027189', time_epoch_executed='1629200835.03' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='1386'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/965080

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/965080/ft1_4FGL_J0256.3+0334_daily_bin1386.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/965080/ft2_4FGL_J0256.3+0334_daily_bin1386.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/965080/ft1_4FGL_J0256.3+0334_daily_bin1386.fits outfile=/scratch/kocevski/965080/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin1386.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=598579201.0 tmax=598838401.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.29
user 2.67
sys 0.96

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/965080/ft1_filtered_4FGL_J0256.3+0334_daily_bin1386.fits" evtable="EVENTS" scfile=/scratch/kocevski/965080/ft2_4FGL_J0256.3+0334_daily_bin1386.fits sctable="SC_DATA" outfile=/scratch/kocevski/965080/ltcube_598579201_598838401_4FGL_J0256.3+0334_daily_bin1386.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/965080/ft2_4FGL_J0256.3+0334_daily_bin1386.fits
.....................!
real 16.49
user 13.79
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/965080/ft1_filtered_4FGL_J0256.3+0334_daily_bin1386.fits evtable="EVENTS" scfile=/scratch/kocevski/965080/ft2_4FGL_J0256.3+0334_daily_bin1386.fits sctable="SC_DATA" expcube=/scratch/kocevski/965080/ltcube_598579201_598838401_4FGL_J0256.3+0334_daily_bin1386.fits outfile=/scratch/kocevski/965080/expmap_598579201_598838401_4FGL_J0256.3+0334_daily_bin1386.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/965080/ltcube_598579201_598838401_4FGL_J0256.3+0334_daily_bin1386.fits
.....................!
real 199.74
user 185.09
sys 6.29

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/965080/ft1_filtered_4FGL_J0256.3+0334_daily_bin1386.fits scfile=/scratch/kocevski/965080/ft2_4FGL_J0256.3+0334_daily_bin1386.fits outfile=/scratch/kocevski/965080/cmap_598579201_598838401_4FGL_J0256.3+0334_daily_bin1386.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 1.46
user 0.37
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/965080/ft1_filtered_4FGL_J0256.3+0334_daily_bin1386.fits scfile=/scratch/kocevski/965080/ft2_4FGL_J0256.3+0334_daily_bin1386.fits outfile=/scratch/kocevski/965080/cmap_HighResolution_598579201_598838401_4FGL_J0256.3+0334_daily_bin1386.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 1.71
user 0.39
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9672       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8382       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9655       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.061       1.0000         .10000E-03   10000.    
    10 'norm      '    19.256       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.472       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.8488       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .96771       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7897       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.440       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5521       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87779       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98172       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=   8314.906     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2894 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9670        2.4841       -.23555E-07   -.44073E-04
   2  norm          2.4936        .83981        .96435E-08    .10027E-03
   3  Prefactor     .10000E-03    15.931        .38684E-06** at limit **
   4  Prefactor     .10000E-03    62.816        .15953E-05** at limit **
   5  Prefactor     .10000E-03    5.8207       -.59603E-07** at limit **
   6  Prefactor     4.8360        18.114       -.18342E-05   -.95622E-05
   7  Prefactor     .10000E-03    8.9943        .62887E-07** at limit **
   8  Prefactor     8.7797        51.148       -.20411E-05   -.29637E-05
   9  Prefactor     13.058        15.344       -.10047E-05   -.35475E-05
  10  norm          19.265        15.581       -.23897E-05   -.46749E-04
  11  Prefactor     1.9499        5.5536       -.11354E-05   -.10142E-03
  12  Prefactor     .10000E-03    26.869        .13099E-05** at limit **
  13  Prefactor     69.470        38.605       -.30386E-06    .10809E-04
  14  Prefactor     .10000E-03    2.6577        .21187E-06** at limit **
  15  norm          .10000E-03    5.7088       -.29203E-06** at limit **
  16  norm          5.8490        4.6214       -.35245E-07   -.17897E-04
  17  Prefactor     .96660        6.3287       -.50273E-06   -.89703E-05
  18  Prefactor     .10000E-03    1.8328        .52559E-07** at limit **
  19  norm          3.7900        3.9672        .55404E-06   -.70916E-03
  20  Prefactor     20.439        17.078        .24428E-06    .22382E-04
  21  Prefactor     5.5512        27.553       -.19159E-05   -.82129E-05
  22  Prefactor     .10000E-03    2.8107        .72046E-07** at limit **
  23  Prefactor     .10000E-03    10.231       -.23911E-07** at limit **
  24  Normalizat    .87787        .18004        .11763E-05    .44238E-04
  25  Prefactor     .98169        .89799E-01    .15962E-06    .72837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96702
  norm       = 2.49363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83599
  Prefactor  = 0.0001
  Prefactor  = 8.77968
  Prefactor  = 13.0583
  norm       = 19.2648
  Prefactor  = 1.94987
  Prefactor  = 0.0001
  Prefactor  = 69.4696
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.84896
  Prefactor  = 0.966603
  Prefactor  = 0.0001
  norm       = 3.79002
  Prefactor  = 20.4389
  Prefactor  = 5.55121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.877874
  Prefactor  = 0.981687
 **********
 **   18 **HESSE 
 **********

 FCN=   8314.906     FROM HESSE     STATUS=OK           429 CALLS     3323 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9670        2.4796        .12644E-03   -1.5363    
   2  norm          2.4936        .84195        .46264E-04   -1.5392    
   3  Prefactor     .10000E-03    15.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8360        18.083        .18289E-03   -1.5268    
   7  Prefactor     .10000E-03    9.1466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7797        51.058        .13386E-03   -1.5115    
   9  Prefactor     13.058        15.359        .11083E-03   -1.4985    
  10  norm          19.265        15.611        .91272E-04   -1.4830    
  11  Prefactor     1.9499        5.5825        .29708E-03   -1.5429    
  12  Prefactor     .10000E-03    27.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     69.470        38.631        .48159E-04   -1.4039    
  14  Prefactor     .10000E-03    2.6821        .14511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.7415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.8490        4.6309        .16597E-03   -1.5224    
  17  Prefactor     .96660        16.581        .43424E-02   -1.5511    
  18  Prefactor     .10000E-03    1.8393        .12052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7900        8.9401        .10368E-02   -1.5319    
  20  Prefactor     20.439        16.885        .88592E-04   -1.4803    
  21  Prefactor     5.5512        26.950        .17051E-03   -1.5237    
  22  Prefactor     .10000E-03    2.8253        .14925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87787        .19702        .34930E-03   -.97242    
  25  Prefactor     .98169        .10180        .17560E-03   -.93342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14925e-08
Minuit parameter uncertainties:
  1  2.47972
  2  0.841957
  3  1.87923e-05
  4  6.70304e-05
  5  1.81941e-05
  6  18.1033
  7  5.92251e-05
  8  42.3997
  9  15.3634
  10  15.6142
  11  5.58395
  12  8.42575e-05
  13  38.6451
  14  1.13418e-08
  15  2.46767e-06
  16  4.63119
  17  8.009
  18  3.39485e-07
  19  8.94328
  20  16.8885
  21  24.4802
  22  2.53448e-06
  23  8.76379e-06
  24  0.19718
  25  0.101816
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.134e-08  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.817e-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:  8.779e-01  1.972e-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: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/965080/likelihoodResults_598579201_598838401_4FGL_J0256.3+0334_daily_bin1386.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) = 8314.90755042
delta logL = -0.00177657742279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8314.90577385
delta logL = -1.93176674657e-09

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.0850       1.0000          .0000       10.000    
     3 'Normalizat'    .87787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98168       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=   8314.906     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2140        .90712E-02** at limit **
   2  Index         2.0838        5.6688        .50000        .37837E-05
   3  Normalizat    .87787        .33360E-02    .78910E-01    .43326E-05
   4  Prefactor     .98169        .17735E-02    .46038E-01   -.51535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08377
  Normalizat = 0.877874
  Prefactor  = 0.981687
 **********
 **   18 **HESSE 
 **********

 FCN=   8314.906     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.801        .14513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0838        6.1140        .50000       -.62272    
   3  Normalizat    .87787        .13814E-01    .34930E-03   -.97242    
   4  Prefactor     .98169        .73581E-02    .17560E-03   -.93342    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01975e-08
Minuit parameter uncertainties:
  1  1.6773e-05
  2  111.746
  3  0.0138145
  4  0.00735814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/965080': 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) = 8314.90577384
delta logL = 2.37378117163e-09

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.677e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.084e+00  1.117e+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.817e-01  7.358e-03  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:  8.779e-01  1.381e-02  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/965080/cmap_HighResolution_598579201_598838401_4FGL_J0256.3+0334_daily_bin1386.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-08-17 05:00:54.158465', job_id='965080', GAL2='0.98', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1629201654.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.37e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1386' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 05:00:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 965080: <4FGL_J0256.3+0334_daily_bin1386> in cluster <slac> Done

Job <4FGL_J0256.3+0334_daily_bin1386> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 17 04:45:43 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:46:20 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:46:20 2021
Terminated at Tue Aug 17 05:00:56 2021
Results reported at Tue Aug 17 05:00:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_daily_bin1386 44.0964 3.5698 598579201 598838401 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 :                                   811.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            913 sec.

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

