aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 65 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 = 17484
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0256.3+0334_weekly_bin717
RA = 44.0964, Dec = 3.5698
tmin = 672624001, tmax = 673228801
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='367662', job_status='RUN', time_executed='2022-05-03 01:06:47.696261', time_epoch_executed='1651565207.7' WHERE source_name='4FGL J0256.3+0334' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367662

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367662/ft1_4FGL_J0256.3+0334_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367662/ft2_4FGL_J0256.3+0334_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367662/ft1_4FGL_J0256.3+0334_weekly_bin717.fits outfile=/scratch/kocevski/367662/ft1_filteredMKT_4FGL_J0256.3+0334_weekly_bin717.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=672624001.0 tmax=673228801.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 6.35
user 6.03
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367662/ft2_4FGL_J0256.3+0334_weekly_bin717.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/367662/ft1_filteredMKT_4FGL_J0256.3+0334_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367662/ft1_filtered_4FGL_J0256.3+0334_weekly_bin717.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.58
user 0.39
sys 0.15

Number of photons that the gtmktime cut: 188

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367662/ft1_filtered_4FGL_J0256.3+0334_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367662/ft2_4FGL_J0256.3+0334_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367662/ltcube_672624001_673228801_4FGL_J0256.3+0334_weekly_bin717.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/367662/ft2_4FGL_J0256.3+0334_weekly_bin717.fits
.....................!
real 31.78
user 31.11
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367662/ft1_filtered_4FGL_J0256.3+0334_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367662/ft2_4FGL_J0256.3+0334_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367662/ltcube_672624001_673228801_4FGL_J0256.3+0334_weekly_bin717.fits outfile=/scratch/kocevski/367662/expmap_672624001_673228801_4FGL_J0256.3+0334_weekly_bin717.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/367662/ltcube_672624001_673228801_4FGL_J0256.3+0334_weekly_bin717.fits
.....................!
real 191.69
user 185.77
sys 5.47

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/367662/ft1_filtered_4FGL_J0256.3+0334_weekly_bin717.fits scfile=/scratch/kocevski/367662/ft2_4FGL_J0256.3+0334_weekly_bin717.fits outfile=/scratch/kocevski/367662/cmap_672624001_673228801_4FGL_J0256.3+0334_weekly_bin717.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.61
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367662/ft1_filtered_4FGL_J0256.3+0334_weekly_bin717.fits scfile=/scratch/kocevski/367662/ft2_4FGL_J0256.3+0334_weekly_bin717.fits outfile=/scratch/kocevski/367662/cmap_HighResolution_672624001_673228801_4FGL_J0256.3+0334_weekly_bin717.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.59
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.616       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3447       1.0000         .10000E-03   10000.    
     3 'Prefactor '    192.72       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30200E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .85444E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17930E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11651E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23477E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21561E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    131.25       1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.201       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .45190       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91400       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=   2393.152     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2886 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.642        17.186       -.32912E-06   -.33894E-04
   2  norm          3.3447        2.0082       -.15682E-06   -.22907E-03
   3  Prefactor     192.20        198.91       -.34844E-05   -.12167E-04
   4  Prefactor     .10000E-03    487.52        .34253E-06** at limit **
   5  Prefactor     .10000E-03    118.24        .78715E-06** at limit **
   6  Prefactor     .10005E-03    373.11        .26312E-04** at limit **
   7  Prefactor     .10000E-03    40.124        .73677E-06** at limit **
   8  Prefactor     .10000E-03    902.04        .20362E-05** at limit **
   9  Prefactor     .10000E-03    119.29        .44396E-05** at limit **
  10  norm          .10000E-03    137.85       -.44626E-06** at limit **
  11  Prefactor     .10000E-03    34.012       -.53268E-05** at limit **
  12  Prefactor     .10004E-03    8844.4        .19409E-04** at limit **
  13  Prefactor     .10000E-03    43.864       -.54519E-06** at limit **
  14  Prefactor     .10000E-03    7.8965        .23126E-06** at limit **
  15  norm          .10000E-03    32.173        .15485E-06** at limit **
  16  norm          18.728        25.508       -.49557E-06   -.31497E-04
  17  Prefactor     .10001E-03    71.786        .24112E-04** at limit **
  18  Prefactor     .10000E-03    7.1078       -.53911E-06** at limit **
  19  norm          .10000E-03    17.186       -.42823E-07** at limit **
  20  Prefactor     131.15        95.170       -.51075E-06    .38889E-04
  21  Prefactor     41.526        111.39       -.96247E-06   -.18156E-04
  22  Prefactor     .10000E-03    7.3370       -.12333E-06** at limit **
  23  Prefactor     .10000E-03    12.148       -.29874E-06** at limit **
  24  Normalizat    .45183        .28209        .94768E-05    .16687E-03
  25  Prefactor     .91394        .16399        .27962E-07    .62624E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6419
  norm       = 3.3447
  Prefactor  = 192.198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.7279
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 131.147
  Prefactor  = 41.5256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.451825
  Prefactor  = 0.913939
 **********
 **   18 **HESSE 
 **********

 FCN=   2393.152     FROM HESSE     STATUS=OK           415 CALLS     3301 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.642        17.189        .10135E-03   -1.4917    
   2  norm          3.3447        2.0026        .51124E-04   -1.5342    
   3  Prefactor     192.20        199.74        .14548E-03   -1.2926    
   4  Prefactor     .10000E-03    487.65        .21387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    118.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10005E-03    366.88        .20862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    902.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    119.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    137.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    8844.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8978        .13424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    32.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.728        25.529        .92558E-04   -1.4842    
  17  Prefactor     .10001E-03    70.576        .38662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1104        .12734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     131.15        94.960        .17573E-03   -1.3413    
  21  Prefactor     41.526        110.92        .62450E-04   -1.4418    
  22  Prefactor     .10000E-03    7.3390        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.157        .16656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .45183        .29459        .41225E-03   -1.1470    
  25  Prefactor     .91394        .17506        .17223E-03   -.95656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03282e-09
Minuit parameter uncertainties:
  1  17.1939
  2  2.00267
  3  200.451
  4  0.000814944
  5  8.95864e-05
  6  0.00888841
  7  1.02936e-05
  8  0.00154024
  9  0.00114898
  10  0.000320611
  11  0.000626302
  12  0.0436399
  13  0.000109477
  14  2.68975e-05
  15  2.29227e-06
  16  25.5442
  17  0.00119164
  18  8.40901e-06
  19  1.96698e-06
  20  95.0705
  21  111.473
  22  1.20244e-06
  23  9.13717e-06
  24  0.295608
  25  0.175172
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.690e-05  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.139e-01  1.752e-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:  4.518e-01  2.956e-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: 2.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367662/likelihoodResults_672624001_673228801_4FGL_J0256.3+0334_weekly_bin717.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) = 2393.15251812
delta logL = -0.000600292024501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2393.15191781
delta logL = 2.34790604736e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0729       1.0000          .0000       10.000    
     3 'Normalizat'    .45182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91394       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2393.152     FROM MIGRAD    STATUS=FAILED        87 CALLS      241 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10152E-03    163.63        .13524E-02** at limit **
   2  Index         1.9968        7.1262        .50000        .11840E-04
   3  Normalizat    .45183        .35907E-01    .41222E-03    .25924E-05
   4  Prefactor     .91394        .21127E-01    .17223E-03    .55778E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2393.152     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      372 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10152E-03    163.63        .42239E-03** at limit **
   2  Index         1.9968        7.1262        .93203E-04    .11840E-04
   3  Normalizat    .45183        .35907E-01    .31149E-05    .25924E-05
   4  Prefactor     .91394        .21127E-01    .83635E-06    .55778E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2393.152     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      417 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    229.58        .27047E-02** at limit **
   2  Index         1.5557        5.7505        .50000       -.55343E-07
   3  Normalizat    .45183        .40414E-01    .16489E-04   -.12824E-04
   4  Prefactor     .91394        .23780E-01    .68891E-05   -.31520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.55565
  Normalizat = 0.451827
  Prefactor  = 0.913935
 **********
 **   18 **HESSE 
 **********

 FCN=   2393.152     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    952.97        .54094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5557        8.5045        .50000       -.75993    
   3  Normalizat    .45183        .93639E-01    .32978E-05   -1.1470    
   4  Prefactor     .91394        .55121E-01    .13778E-05   -.95656    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63156e-11
Minuit parameter uncertainties:
  1  0.000758193
  2  2448.21
  3  0.0936713
  4  0.0551244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367662': 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) = 2393.15191688
delta logL = 9.45914507611e-07

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  7.582e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.556e+00  2.448e+03  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.139e-01  5.512e-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:  4.518e-01  9.367e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/367662/cmap_HighResolution_672624001_673228801_4FGL_J0256.3+0334_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', job_status='DONE', photon_flux_upper_limit='2.35e-07', time_completed='2022-05-03 01:14:56.084542', job_id='367662', GAL2='0.91', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1651565696.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='717' AND source_name='4FGL J0256.3+0334' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:14:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 367662: <4FGL_J0256.3+0334_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0256.3+0334_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:33 2022
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:05:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:05:29 2022
Terminated at Tue May  3 01:14:56 2022
Results reported at Tue May  3 01:14:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_weekly_bin717 44.0964 3.5698 672624001 673228801 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 :                                   487.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             335.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            863 sec.

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

