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


Performing analysis on: 4FGL_J0256.3+0334_daily_bin650
RA = 44.0964, Dec = 3.5698
tmin = 407808001, tmax = 408067201
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='959881', job_status='RUN', time_executed='2021-08-17 04:34:24.913571', time_epoch_executed='1629200064.91' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959881/ft1_4FGL_J0256.3+0334_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959881/ft2_4FGL_J0256.3+0334_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959881/ft1_4FGL_J0256.3+0334_daily_bin650.fits outfile=/scratch/kocevski/959881/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin650.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=407808001.0 tmax=408067201.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 10.71
user 3.88
sys 5.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/959881/ft1_filtered_4FGL_J0256.3+0334_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/959881/ft2_4FGL_J0256.3+0334_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/959881/ltcube_407808001_408067201_4FGL_J0256.3+0334_daily_bin650.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/959881/ft2_4FGL_J0256.3+0334_daily_bin650.fits
.....................!
real 20.72
user 13.37
sys 6.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959881/ft1_filtered_4FGL_J0256.3+0334_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/959881/ft2_4FGL_J0256.3+0334_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/959881/ltcube_407808001_408067201_4FGL_J0256.3+0334_daily_bin650.fits outfile=/scratch/kocevski/959881/expmap_407808001_408067201_4FGL_J0256.3+0334_daily_bin650.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/959881/ltcube_407808001_408067201_4FGL_J0256.3+0334_daily_bin650.fits
.....................!
real 199.94
user 186.27
sys 11.34

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/959881/ft1_filtered_4FGL_J0256.3+0334_daily_bin650.fits scfile=/scratch/kocevski/959881/ft2_4FGL_J0256.3+0334_daily_bin650.fits outfile=/scratch/kocevski/959881/cmap_407808001_408067201_4FGL_J0256.3+0334_daily_bin650.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 6.09
user 0.39
sys 4.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959881/ft1_filtered_4FGL_J0256.3+0334_daily_bin650.fits scfile=/scratch/kocevski/959881/ft2_4FGL_J0256.3+0334_daily_bin650.fits outfile=/scratch/kocevski/959881/cmap_HighResolution_407808001_408067201_4FGL_J0256.3+0334_daily_bin650.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 5.75
user 0.41
sys 5.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1998       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10971E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11438E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.116       1.0000         .10000E-03   10000.    
    10 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.736       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6005       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.274       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4075       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6008       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3789       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82227       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0944       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=   4037.068     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2890 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1285       -.15692E-07** at limit **
   2  norm          .10000E-03    .37577       -.24540E-08** at limit **
   3  Prefactor     .10000E-03    20.537       -.42037E-07** at limit **
   4  Prefactor     4.1407        219.85        .71276E-05   -.26343E-06
   5  Prefactor     .10000E-03    5.2217        .60742E-07** at limit **
   6  Prefactor     .10000E-03    20.540       -.12079E-06** at limit **
   7  Prefactor     6.2968        14.900        .32420E-06   -.44044E-05
   8  Prefactor     .10000E-03    40.038        .39911E-06** at limit **
   9  Prefactor     38.112        32.459        .51553E-06   -.51023E-05
  10  norm          .10000E-03    18.424        .12254E-06** at limit **
  11  Prefactor     .10000E-03    11.315       -.90292E-06** at limit **
  12  Prefactor     7.2143        76.544       -.36535E-05   -.24508E-05
  13  Prefactor     11.598        127.09        .17501E-04   -.17758E-05
  14  Prefactor     2.6015        8.4741        .34289E-05   -.34249E-05
  15  norm          .10000E-03    8.7710        .29541E-07** at limit **
  16  norm          10.272        6.6787        .72838E-07   -.43018E-05
  17  Prefactor     3.4054        17.367        .15388E-06   -.30678E-05
  18  Prefactor     .10000E-03    5.5822        .94193E-07** at limit **
  19  norm          .10000E-03    3.8037        .11894E-07** at limit **
  20  Prefactor     .10000E-03    12.257        .41778E-06** at limit **
  21  Prefactor     .10000E-03    10.582        .34688E-06** at limit **
  22  Prefactor     2.5982        4.8600        .16253E-06    .22924E-05
  23  Prefactor     2.3691        19.310        .92330E-06    .15354E-05
  24  Normalizat    .82141        .27312       -.37570E-06    .46721E-05
  25  Prefactor     1.0949        .12677       -.63524E-06   -.22518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.14075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.29681
  Prefactor  = 0.0001
  Prefactor  = 38.1121
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.21433
  Prefactor  = 11.5984
  Prefactor  = 2.60149
  norm       = 0.0001
  norm       = 10.2724
  Prefactor  = 3.40538
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.59817
  Prefactor  = 2.36914
  Normalizat = 0.821408
  Prefactor  = 1.09487
 **********
 **   18 **HESSE 
 **********

 FCN=   4037.068     FROM HESSE     STATUS=OK           425 CALLS     3315 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1320        .65910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .37859        .38016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1407        220.54        .19665E-03   -1.5301    
   5  Prefactor     .10000E-03    5.2339        .14179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2968        14.853        .16007E-03   -1.5206    
   8  Prefactor     .10000E-03    40.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.112        32.700        .64919E-04   -1.4472    
  10  norm          .10000E-03    18.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2143        76.311        .14798E-03   -1.5171    
  13  Prefactor     11.598        127.31        .11694E-03   -1.5027    
  14  Prefactor     2.6015        8.4898        .12650E-02   -1.5385    
  15  norm          .10000E-03    8.7971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.272        6.6823        .12500E-03   -1.5067    
  17  Prefactor     3.4054        17.392        .21916E-03   -1.5339    
  18  Prefactor     .10000E-03    5.6601        .14659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.8149        .12101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.5982        4.8475        .18514E-03   -1.5386    
  23  Prefactor     2.3691        19.361        .26560E-03   -1.5400    
  24  Normalizat    .82141        .29605        .37522E-03   -.99279    
  25  Prefactor     1.0949        .13792        .16216E-03   -.89631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32584e-10
Minuit parameter uncertainties:
  1  4.39211e-07
  2  8.45965e-08
  3  8.37622e-06
  4  60.6753
  5  4.7927e-06
  6  1.90874e-05
  7  14.8619
  8  7.7323e-05
  9  32.7156
  10  3.54726e-05
  11  3.38102e-05
  12  47.0034
  13  77.0609
  14  8.49374
  15  1.21927e-07
  16  6.68277
  17  15.3987
  18  2.09993e-06
  19  2.31535e-06
  20  2.55767e-06
  21  1.56821e-06
  22  4.84825
  23  13.5509
  24  0.296635
  25  0.137968
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  2.601e+00  8.494e+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:  1.095e+00  1.380e-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.214e-01  2.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 44.096 3.570
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/959881/likelihoodResults_407808001_408067201_4FGL_J0256.3+0334_daily_bin650.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) = 4037.06686457
delta logL = 0.000662728434236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4037.06666459
delta logL = 0.000862705898726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4250       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1460       1.0000          .0000       10.000    
     3 'Normalizat'    .82024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0949       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4037.067     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      259 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4237        10.147        .26281E-03   -.90647E-04
   2  Index         2.1457        1.5322        .89017E-02   -.33996E-04
   3  Normalizat    .82049        .26838        .37540E-03   -.28416E-03
   4  Prefactor     1.0951        .13267        .16214E-03   -.70468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.42369
  Index      = 2.14569
  Normalizat = 0.820491
  Prefactor  = 1.09508
 **********
 **   18 **HESSE 
 **********

 FCN=   4037.067     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4237        9.1757        .10512E-04   -1.5397    
   2  Index         2.1457        1.4227        .35607E-03   -.60755    
   3  Normalizat    .82049        .26835        .15016E-04   -.99313    
   4  Prefactor     1.0951        .13264        .32429E-04   -.89624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49175e-10
Minuit parameter uncertainties:
  1  9.18104
  2  1.45281
  3  0.268789
  4  0.132678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959881': 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) = 4037.06665968
delta logL = 0.000867613251557

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  2.424e+00  9.181e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.146e+00  1.453e+00  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:  1.095e+00  1.327e-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.205e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/959881/cmap_HighResolution_407808001_408067201_4FGL_J0256.3+0334_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-08-17 04:45:29.004859', job_id='959881', GAL2='1.10', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1629200729.0', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='8.68e-04', ts2='0.11', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='650' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:45:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 959881: <4FGL_J0256.3+0334_daily_bin650> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_daily_bin650 44.0964 3.5698 407808001 408067201 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 :                                   721.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             234.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            893 sec.

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

