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


Performing analysis on: 4FGL_J0256.3+0334_daily_bin594
RA = 44.0964, Dec = 3.5698
tmin = 393292801, tmax = 393552001
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='959800', job_status='RUN', time_executed='2021-08-17 04:31:32.409258', time_epoch_executed='1629199892.41' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959800/ft1_4FGL_J0256.3+0334_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959800/ft2_4FGL_J0256.3+0334_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959800/ft1_4FGL_J0256.3+0334_daily_bin594.fits outfile=/scratch/kocevski/959800/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin594.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=393292801.0 tmax=393552001.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 5.69
user 4.43
sys 1.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/959800/ft1_filtered_4FGL_J0256.3+0334_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/959800/ft2_4FGL_J0256.3+0334_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/959800/ltcube_393292801_393552001_4FGL_J0256.3+0334_daily_bin594.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/959800/ft2_4FGL_J0256.3+0334_daily_bin594.fits
.....................!
real 14.77
user 12.94
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959800/ft1_filtered_4FGL_J0256.3+0334_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/959800/ft2_4FGL_J0256.3+0334_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/959800/ltcube_393292801_393552001_4FGL_J0256.3+0334_daily_bin594.fits outfile=/scratch/kocevski/959800/expmap_393292801_393552001_4FGL_J0256.3+0334_daily_bin594.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/959800/ltcube_393292801_393552001_4FGL_J0256.3+0334_daily_bin594.fits
.....................!
real 195.39
user 186.56
sys 6.82

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/959800/ft1_filtered_4FGL_J0256.3+0334_daily_bin594.fits scfile=/scratch/kocevski/959800/ft2_4FGL_J0256.3+0334_daily_bin594.fits outfile=/scratch/kocevski/959800/cmap_393292801_393552001_4FGL_J0256.3+0334_daily_bin594.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.55
user 0.37
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959800/ft1_filtered_4FGL_J0256.3+0334_daily_bin594.fits scfile=/scratch/kocevski/959800/ft2_4FGL_J0256.3+0334_daily_bin594.fits outfile=/scratch/kocevski/959800/cmap_HighResolution_393292801_393552001_4FGL_J0256.3+0334_daily_bin594.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 2.40
user 0.38
sys 1.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6434       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14845E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.656       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14280E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.364       1.0000         .10000E-03   10000.    
    10 'norm      '    42.387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11193E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7534       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .85843       1.0000         .10000E-03   10000.    
    19 'norm      '    9.6015       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .72758       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .39804E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89135       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93156       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=   6774.252     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2554 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6426        2.6213        .68387E-08   -.32183E-04
   2  norm          .10000E-03    .60494       -.23900E-07** at limit **
   3  Prefactor     12.599        19.199        .26884E-06   -.85903E-05
   4  Prefactor     .10000E-03    133.72       -.23821E-05** at limit **
   5  Prefactor     13.697        12.326       -.90578E-06   -.32826E-03
   6  Prefactor     .10000E-03    9.4070        .48133E-06** at limit **
   7  Prefactor     .10000E-03    27.767        .15521E-05** at limit **
   8  Prefactor     .10000E-03    300.96        .19363E-04** at limit **
   9  Prefactor     32.352        24.797       -.49795E-07   -.26235E-04
  10  norm          42.401        17.335       -.20719E-06   -.25978E-03
  11  Prefactor     .10000E-03    10.066       -.10448E-05** at limit **
  12  Prefactor     .10000E-03    15.177       -.18356E-06** at limit **
  13  Prefactor     .10000E-03    25.013       -.96181E-06** at limit **
  14  Prefactor     2.7484        5.1800        .18235E-06    .34747E-05
  15  norm          .10000E-03    11.049        .52110E-06** at limit **
  16  norm          12.434        5.4101       -.61034E-08   -.60558E-04
  17  Prefactor     .10000E-03    24.925       -.56596E-06** at limit **
  18  Prefactor     .85747        2.8329        .28073E-06   -.27823E-04
  19  norm          9.5995        7.5362        .58158E-07    .29785E-04
  20  Prefactor     3.1316        8.5655        .23906E-05    .13379E-03
  21  Prefactor     .10000E-03    7.1717        .11909E-06** at limit **
  22  Prefactor     .73033        3.5689       -.80432E-06    .17677E-03
  23  Prefactor     .10012E-03    9.6781        .20769E-05** at limit **
  24  Normalizat    .89138        .20092       -.50770E-07   -.11257E-03
  25  Prefactor     .93165        .91959E-01   -.10025E-06   -.26288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64264
  norm       = 0.0001
  Prefactor  = 12.5989
  Prefactor  = 0.0001
  Prefactor  = 13.6967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 32.3519
  norm       = 42.4012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.74841
  norm       = 0.0001
  norm       = 12.4344
  Prefactor  = 0.0001
  Prefactor  = 0.857469
  norm       = 9.5995
  Prefactor  = 3.13158
  Prefactor  = 0.0001
  Prefactor  = 0.730328
  Prefactor  = 0.000100124
  Normalizat = 0.891384
  Prefactor  = 0.931655
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.252     FROM HESSE     STATUS=OK           431 CALLS     2985 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6426        2.6162        .10847E-03   -1.5326    
   2  norm          .10000E-03    1.0374        .12265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.599        19.186        .11289E-03   -1.4998    
   4  Prefactor     .10000E-03    134.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.697        12.474        .10839E-03   -1.4968    
   6  Prefactor     .10000E-03    9.4194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    306.14        .41018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.352        25.007        .70435E-04   -1.4570    
  10  norm          42.401        17.305        .61574E-04   -1.4405    
  11  Prefactor     .10000E-03    10.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7484        5.1516        .24532E-03   -1.5376    
  15  norm          .10000E-03    11.337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.434        5.4080        .11359E-03   -1.5003    
  17  Prefactor     .10000E-03    25.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .85747        3.0485        .24194E-02   -1.5523    
  19  norm          9.5995        7.5001        .12933E-03   -1.5088    
  20  Prefactor     3.1316        8.7324        .11444E-02   -1.5354    
  21  Prefactor     .10000E-03    7.1833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .73033        9.8906        .27627E-02   -1.5537    
  23  Prefactor     .10012E-03    46.181        .43126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89138        .21759        .36083E-03   -.96764    
  25  Prefactor     .93165        .10154        .16698E-03   -.95044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93961e-08
Minuit parameter uncertainties:
  1  2.61627
  2  1.81073e-06
  3  19.1956
  4  0.000196294
  5  12.4767
  6  8.88007e-06
  7  3.42164e-05
  8  0.00196798
  9  25.0152
  10  17.3075
  11  2.501e-05
  12  7.79791e-06
  13  3.74886e-05
  14  5.15247
  15  1.29933e-06
  16  5.40822
  17  1.84253e-05
  18  3.04909
  19  7.50085
  20  8.736
  21  6.03948e-07
  22  5.37598
  23  0.00479211
  24  0.217803
  25  0.101564
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  2.748e+00  5.152e+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

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  9.317e-01  1.016e-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.914e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/959800/likelihoodResults_393292801_393552001_4FGL_J0256.3+0334_daily_bin594.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6773.93317032
delta logL = 0.318557057712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6773.90182762
delta logL = 0.349899758234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2682       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3419       1.0000          .0000       10.000    
     3 'Normalizat'    .89829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93041       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=   6773.902     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2697        404.56        .48755E-02    .71663E-04
   2  Index         1.3419        7.2719        .31916       -.29319E-04
   3  Normalizat    .89835        .20825        .81211E-01    .20233E-04
   4  Prefactor     .93040        .60947E-01    .45391E-01    .13585E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26968
  Index      = 1.34193
  Normalizat = 0.898349
  Prefactor  = 0.930401
 **********
 **   18 **HESSE 
 **********

 FCN=   6773.902     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2697        6.2494        .19502E-03   -1.5295    
   2  Index         1.3419        .77225        .13923E-01   -.82069    
   3  Normalizat    .89835        .20072        .35952E-03   -.96518    
   4  Prefactor     .93040        .95558E-01    .16704E-03   -.95087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47001e-10
Minuit parameter uncertainties:
  1  6.2504
  2  0.779013
  3  0.20089
  4  0.0955749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959800': 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) = 6773.90182754
delta logL = 0.34989984178

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  4.270e+00  6.250e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.342e+00  7.790e-01  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.304e-01  9.557e-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:  8.983e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 44.096 3.570
Photon Index (Free Index): 1.34 +/- 0.78
Photon Flux (Free Index): 7.12e-09 +/- 1.30e-08
Energy Flux (Free Index): 3.81e-05 +/- 7.27e-05

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/959800/cmap_HighResolution_393292801_393552001_4FGL_J0256.3+0334_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', comment='SUCCESS', energy_flux2='3.81e-05', dlogl='3.50e-01', photon_flux2='7.12e-09', job_status='DONE', time_completed='2021-08-17 04:43:45.563387', photon_index_error2='0.78', photon_index2='1.34', ts='0.39', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.77e-08', energy_flux_error2='7.27e-05', EG='0.89', time_epoch_completed='1629200625.56', return_code='0', job_id='959800', GAL2='0.93', EG2='0.90', return_code2='0', photon_flux_error2='1.30e-08', ts2='1.09', photon_index='2.09' WHERE bin_id='594' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:43:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 959800: <4FGL_J0256.3+0334_daily_bin594> in cluster <slac> Done

Job <4FGL_J0256.3+0334_daily_bin594> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 17 04:30:31 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:30:44 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:30:44 2021
Terminated at Tue Aug 17 04:43:46 2021
Results reported at Tue Aug 17 04:43:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_daily_bin594 44.0964 3.5698 393292801 393552001 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 :                                   736.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            795 sec.

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

