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


Performing analysis on: 4FGL_J0256.3+0334_daily_bin672
RA = 44.0964, Dec = 3.5698
tmin = 413510401, tmax = 413769601
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='959913', job_status='RUN', time_executed='2021-08-17 04:34:02.308445', time_epoch_executed='1629200042.31' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959913

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959913/ft1_4FGL_J0256.3+0334_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959913/ft2_4FGL_J0256.3+0334_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959913/ft1_4FGL_J0256.3+0334_daily_bin672.fits outfile=/scratch/kocevski/959913/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin672.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=413510401.0 tmax=413769601.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.28
user 5.30
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/959913/ft1_filtered_4FGL_J0256.3+0334_daily_bin672.fits" evtable="EVENTS" scfile=/scratch/kocevski/959913/ft2_4FGL_J0256.3+0334_daily_bin672.fits sctable="SC_DATA" outfile=/scratch/kocevski/959913/ltcube_413510401_413769601_4FGL_J0256.3+0334_daily_bin672.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/959913/ft2_4FGL_J0256.3+0334_daily_bin672.fits
.....................!
real 13.80
user 12.81
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959913/ft1_filtered_4FGL_J0256.3+0334_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/959913/ft2_4FGL_J0256.3+0334_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/959913/ltcube_413510401_413769601_4FGL_J0256.3+0334_daily_bin672.fits outfile=/scratch/kocevski/959913/expmap_413510401_413769601_4FGL_J0256.3+0334_daily_bin672.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/959913/ltcube_413510401_413769601_4FGL_J0256.3+0334_daily_bin672.fits
.....................!
real 192.77
user 186.00
sys 4.40

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/959913/ft1_filtered_4FGL_J0256.3+0334_daily_bin672.fits scfile=/scratch/kocevski/959913/ft2_4FGL_J0256.3+0334_daily_bin672.fits outfile=/scratch/kocevski/959913/cmap_413510401_413769601_4FGL_J0256.3+0334_daily_bin672.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.10
user 0.38
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959913/ft1_filtered_4FGL_J0256.3+0334_daily_bin672.fits scfile=/scratch/kocevski/959913/ft2_4FGL_J0256.3+0334_daily_bin672.fits outfile=/scratch/kocevski/959913/cmap_HighResolution_413510401_413769601_4FGL_J0256.3+0334_daily_bin672.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.03
user 0.39
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5163       1.0000         .10000E-03   10000.    
     2 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.853       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.685       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14616E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.024       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.702       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12523E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.308       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.139       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12741E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1788       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.836       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3125       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66880       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=   6401.636     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3347 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5166        2.6723        .10409E-06    .12346E-03
   2  norm          .10000E-03    .53040        .58968E-06** at limit **
   3  Prefactor     30.860        28.121       -.11027E-07   -.20664E-04
   4  Prefactor     .10000E-03    24.317       -.21372E-05** at limit **
   5  Prefactor     .10000E-03    2.8316        .93976E-07** at limit **
   6  Prefactor     .10000E-03    8.1889        .17721E-06** at limit **
   7  Prefactor     .10000E-03    2.5716        .10720E-06** at limit **
   8  Prefactor     .10000E-03    14.307       -.43421E-06** at limit **
   9  Prefactor     27.682        22.984       -.36510E-06   -.34396E-04
  10  norm          2.8175        8.6853        .16066E-05    .48784E-03
  11  Prefactor     .10000E-03    16.006        .14726E-05** at limit **
  12  Prefactor     .10000E-03    29.361        .27984E-05** at limit **
  13  Prefactor     .10004E-03    161.18       -.82538E-05** at limit **
  14  Prefactor     .10000E-03    3.6240        .21734E-06** at limit **
  15  norm          .10000E-03    5.8851       -.86336E-08** at limit **
  16  norm          22.024        7.0021        .98654E-07   -.18832E-03
  17  Prefactor     12.702        12.927        .30729E-06   -.28254E-04
  18  Prefactor     .10000E-03    5.8478        .88949E-07** at limit **
  19  norm          11.310        9.0817        .23382E-06   -.37401E-04
  20  Prefactor     10.157        16.413       -.25987E-05   -.15102E-03
  21  Prefactor     .10005E-03    262.80       -.59381E-04** at limit **
  22  Prefactor     5.1815        6.9716        .81141E-06    .36742E-03
  23  Prefactor     12.842        16.086        .86565E-06   -.75895E-04
  24  Normalizat    1.3126        .20992       -.14865E-05   -.13558E-03
  25  Prefactor     .66867        .91382E-01   -.87837E-06   -.47821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.51659
  norm       = 0.000100001
  Prefactor  = 30.8596
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6817
  norm       = 2.81753
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.0244
  Prefactor  = 12.7024
  Prefactor  = 0.0001
  norm       = 11.3103
  Prefactor  = 10.1568
  Prefactor  = 0.000100047
  Prefactor  = 5.18151
  Prefactor  = 12.8424
  Normalizat = 1.31257
  Prefactor  = 0.668667
 **********
 **   18 **HESSE 
 **********

 FCN=   6401.636     FROM HESSE     STATUS=OK           435 CALLS     3782 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5166        2.6705        .10971E-03   -1.5333    
   2  norm          .10000E-03    1.1970        .11268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.860        28.124        .72134E-04   -1.4596    
   4  Prefactor     .10000E-03    24.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8363        .13150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5738        .12531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.682        23.147        .76140E-04   -1.4655    
  10  norm          2.8175        8.7908        .24246E-03   -1.5372    
  11  Prefactor     .10000E-03    16.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    158.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6598        .14878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.024        7.0062        .85351E-04   -1.4769    
  17  Prefactor     12.702        12.956        .11239E-03   -1.4995    
  18  Prefactor     .10000E-03    6.1168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.310        9.0763        .11914E-03   -1.5035    
  20  Prefactor     10.157        21.732        .12584E-03   -1.5070    
  21  Prefactor     .10005E-03    47.707        .99771E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1815        7.0309        .17665E-03   -1.5253    
  23  Prefactor     12.842        16.159        .11180E-03   -1.4991    
  24  Normalizat    1.3126        .23407        .30613E-03   -.83192    
  25  Prefactor     .66867        .10253        .18194E-03   -1.0477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29151e-09
Minuit parameter uncertainties:
  1  2.67056
  2  5.32555e-05
  3  28.1356
  4  0.00027062
  5  1.10302e-05
  6  5.85428e-05
  7  9.95231e-06
  8  6.15387e-05
  9  23.1543
  10  8.79484
  11  0.000181508
  12  0.000137929
  13  0.00511523
  14  5.02489e-05
  15  1.80111e-05
  16  7.00643
  17  12.9584
  18  9.14998e-05
  19  9.07737
  20  21.749
  21  0.0030093
  22  7.03204
  23  16.1641
  24  0.234257
  25  0.102557
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  5.025e-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:  6.687e-01  1.026e-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:  1.313e+00  2.343e-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: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/959913/likelihoodResults_413510401_413769601_4FGL_J0256.3+0334_daily_bin672.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) = 6401.63760025
delta logL = -0.00130097157216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6401.63629937
delta logL = -9.50212779571e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0929       1.0000          .0000       10.000    
     3 'Normalizat'    1.3125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66869       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=   6401.636     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.401        .90712E-02** at limit **
   2  Index         2.0995        7.1301        .50000       -.15691E-04
   3  Normalizat    1.3126        .16599E-01    .69197E-01    .11820E-04
   4  Prefactor     .66867        .73291E-02    .41983E-01    .21690E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09948
  Normalizat = 1.31257
  Prefactor  = 0.668668
 **********
 **   18 **HESSE 
 **********

 FCN=   6401.636     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    213.54        .14900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0995        5.8296        .50000       -.61886    
   3  Normalizat    1.3126        .48169E-01    .30613E-03   -.83192    
   4  Prefactor     .66867        .21281E-01    .18194E-03   -1.0477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32699e-08
Minuit parameter uncertainties:
  1  3.65277e-05
  2  31.1884
  3  0.0481706
  4  0.0212811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959913': 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) = 6401.63629923
delta logL = 4.82168616145e-08

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  3.653e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.099e+00  3.119e+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:  6.687e-01  2.128e-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:  1.313e+00  4.817e-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/959913/cmap_HighResolution_413510401_413769601_4FGL_J0256.3+0334_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2021-08-17 04:46:39.965675', job_id='959913', GAL2='0.67', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1629200799.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='672' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:46:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 959913: <4FGL_J0256.3+0334_daily_bin672> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_daily_bin672 44.0964 3.5698 413510401 413769601 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 :                                   744.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            962 sec.

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

