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


Performing analysis on: 4FGL_J0256.3+0334_daily_bin1586
RA = 44.0964, Dec = 3.5698
tmin = 650419201, tmax = 650678401
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='967224', job_status='RUN', time_executed='2021-08-17 04:54:01.101726', time_epoch_executed='1629201241.1' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='1586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/967224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/967224/ft1_4FGL_J0256.3+0334_daily_bin1586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/967224/ft2_4FGL_J0256.3+0334_daily_bin1586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/967224/ft1_4FGL_J0256.3+0334_daily_bin1586.fits outfile=/scratch/kocevski/967224/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin1586.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=650419201.0 tmax=650678401.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 3.93
user 3.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/967224/ft1_filtered_4FGL_J0256.3+0334_daily_bin1586.fits" evtable="EVENTS" scfile=/scratch/kocevski/967224/ft2_4FGL_J0256.3+0334_daily_bin1586.fits sctable="SC_DATA" outfile=/scratch/kocevski/967224/ltcube_650419201_650678401_4FGL_J0256.3+0334_daily_bin1586.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/967224/ft2_4FGL_J0256.3+0334_daily_bin1586.fits
.....................!
real 14.44
user 13.69
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/967224/ft1_filtered_4FGL_J0256.3+0334_daily_bin1586.fits evtable="EVENTS" scfile=/scratch/kocevski/967224/ft2_4FGL_J0256.3+0334_daily_bin1586.fits sctable="SC_DATA" expcube=/scratch/kocevski/967224/ltcube_650419201_650678401_4FGL_J0256.3+0334_daily_bin1586.fits outfile=/scratch/kocevski/967224/expmap_650419201_650678401_4FGL_J0256.3+0334_daily_bin1586.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/967224/ltcube_650419201_650678401_4FGL_J0256.3+0334_daily_bin1586.fits
.....................!
real 194.47
user 185.86
sys 5.91

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/967224/ft1_filtered_4FGL_J0256.3+0334_daily_bin1586.fits scfile=/scratch/kocevski/967224/ft2_4FGL_J0256.3+0334_daily_bin1586.fits outfile=/scratch/kocevski/967224/cmap_650419201_650678401_4FGL_J0256.3+0334_daily_bin1586.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.71
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/967224/ft1_filtered_4FGL_J0256.3+0334_daily_bin1586.fits scfile=/scratch/kocevski/967224/ft2_4FGL_J0256.3+0334_daily_bin1586.fits outfile=/scratch/kocevski/967224/cmap_HighResolution_650419201_650678401_4FGL_J0256.3+0334_daily_bin1586.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.29
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14122E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8682       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26160E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.355       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2320       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.808       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.997       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4807       1.0000         .10000E-03   10000.    
    15 'norm      '    11.034       1.0000         .10000E-03   10000.    
    16 'norm      '    .10696E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.234       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1887       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0514       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=   8467.067     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2876 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1.1341       -.29751E-06** at limit **
   2  norm          3.8681        1.2773        .23787E-07    .36562E-03
   3  Prefactor     .10002E-03    85.966       -.39072E-04** at limit **
   4  Prefactor     .10000E-03    31.038        .10695E-04** at limit **
   5  Prefactor     16.206        11.339       -.50161E-06   -.62123E-03
   6  Prefactor     23.341        17.910       -.48081E-05    .29005E-03
   7  Prefactor     9.2312        7.9862        .30517E-06    .17283E-03
   8  Prefactor     62.808        51.515        .52197E-06    .10464E-03
   9  Prefactor     .10000E-03    17.003       -.67798E-05** at limit **
  10  norm          18.997        13.148        .32549E-06    .18521E-03
  11  Prefactor     .10000E-03    6.0604       -.27023E-06** at limit **
  12  Prefactor     .10000E-03    35.586       -.20584E-04** at limit **
  13  Prefactor     .10000E-03    29.513        .16783E-04** at limit **
  14  Prefactor     5.4811        4.5472       -.80076E-07    .78892E-04
  15  norm          11.034        9.4500        .42449E-07    .11986E-03
  16  norm          .10002E-03    2.5958       -.18025E-05** at limit **
  17  Prefactor     .10000E-03    9.7549        .19650E-05** at limit **
  18  Prefactor     .10000E-03    4.0741        .38603E-06** at limit **
  19  norm          .10000E-03    5.4545        .45175E-05** at limit **
  20  Prefactor     .10000E-03    9.1416        .44394E-06** at limit **
  21  Prefactor     11.241        20.506        .56904E-05   -.10543E-04
  22  Prefactor     .10000E-03    3.9095       -.19382E-06** at limit **
  23  Prefactor     .10000E-03    5.9372        .14781E-05** at limit **
  24  Normalizat    1.1886        .19940        .45117E-06    .42811E-03
  25  Prefactor     1.0514        .92236E-01    .50752E-07    .76959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  norm       = 3.86815
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 16.206
  Prefactor  = 23.3413
  Prefactor  = 9.23123
  Prefactor  = 62.8081
  Prefactor  = 0.0001
  norm       = 18.997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.48109
  norm       = 11.0335
  norm       = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1886
  Prefactor  = 1.05143
 **********
 **   18 **HESSE 
 **********

 FCN=   8467.067     FROM HESSE     STATUS=OK           415 CALLS     3291 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    5.0426        .18909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8681        1.2808        .57178E-04   -1.5315    
   3  Prefactor     .10002E-03    87.147        .42893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.206        11.364        .49746E-03   -1.4903    
   6  Prefactor     23.341        17.817        .82885E-04   -1.4741    
   7  Prefactor     9.2312        7.9824        .13190E-03   -1.5100    
   8  Prefactor     62.808        51.515        .50633E-04   -1.4121    
   9  Prefactor     .10000E-03    17.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.997        13.142        .91894E-04   -1.4836    
  11  Prefactor     .10000E-03    6.0877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4811        4.5461        .17163E-03   -1.5240    
  15  norm          11.034        9.4417        .12061E-03   -1.5044    
  16  norm          .10002E-03    6.3682        .28229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1646        .18122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.5080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.241        20.454        .11953E-03   -1.5037    
  22  Prefactor     .10000E-03    3.9794        .17758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.9571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1886        .21790        .35861E-03   -.86956    
  25  Prefactor     1.0514        .10086        .17906E-03   -.91034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92204e-09
Minuit parameter uncertainties:
  1  0.000565438
  2  1.28083
  3  0.00259726
  4  4.13567e-05
  5  11.3659
  6  17.8213
  7  7.9833
  8  51.5512
  9  0.000106637
  10  13.1438
  11  4.1238e-06
  12  3.89256e-05
  13  1.27724e-05
  14  4.54641
  15  9.44296
  16  0.000670487
  17  1.16783e-05
  18  2.62849e-05
  19  7.69501e-06
  20  8.954e-05
  21  20.4669
  22  3.87918e-06
  23  7.93226e-06
  24  0.218064
  25  0.100876
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  5.481e+00  4.546e+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.051e+00  1.009e-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.189e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.84
Ra Dec: 44.096 3.570
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.48e-05

TS (Fixed Index): 3.84
Ra Dec: 44.096 3.570
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/967224/likelihoodResults_650419201_650678401_4FGL_J0256.3+0334_daily_bin1586.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) = 8467.05708141
delta logL = 0.0102856675112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8467.05182009
delta logL = 0.0155469942256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0598       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9661       1.0000          .0000       10.000    
     3 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0507       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=   8467.052     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      229 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0609        156.63        .40776E-02    .95967E-05
   2  Index         1.9662        5.7674        .16552        .92056E-04
   3  Normalizat    1.1928        .14927        .80885E-01    .26498E-04
   4  Prefactor     1.0508        .45726E-01    .39867E-01    .16152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.06086
  Index      = 1.96621
  Normalizat = 1.19281
  Prefactor  = 1.05075
 **********
 **   18 **HESSE 
 **********

 FCN=   8467.052     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0609        6.1109        .16310E-03   -1.5216    
   2  Index         1.9662        .69869        .97957E-02   -.65198    
   3  Normalizat    1.1928        .21154        .35806E-03   -.86825    
   4  Prefactor     1.0508        .99993E-01    .17912E-03   -.91056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05927e-12
Minuit parameter uncertainties:
  1  6.11155
  2  0.702337
  3  0.211689
  4  0.100011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/967224': 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) = 8467.05181995
delta logL = 0.0155471307917

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  6.061e+00  6.112e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.966e+00  7.023e-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:  1.051e+00  1.000e-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.193e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.86
Ra Dec: 44.096 3.570
Photon Index (Free Index): 1.97 +/- 0.70
Photon Flux (Free Index): 2.71e-08 +/- 3.33e-08
Energy Flux (Free Index): 2.04e-05 +/- 2.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/967224/cmap_HighResolution_650419201_650678401_4FGL_J0256.3+0334_daily_bin1586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='2.04e-05', photon_flux_error='2.62e-08', dlogl='1.55e-02', energy_flux='1.79e-05', photon_flux2='2.71e-08', job_status='DONE', time_completed='2021-08-17 05:08:21.834402', photon_index_error2='0.70', photon_index2='1.97', ts='3.84', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='2.52e-05', EG='1.19', time_epoch_completed='1629202101.83', return_code='0', job_id='967224', GAL2='1.05', EG2='1.19', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='3.33e-08', ts2='3.86', photon_index='2.09' WHERE bin_id='1586' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 05:08:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 967224: <4FGL_J0256.3+0334_daily_bin1586> in cluster <slac> Done

Job <4FGL_J0256.3+0334_daily_bin1586> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 04:53:10 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:53: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:53:29 2021
Terminated at Tue Aug 17 05:08:22 2021
Results reported at Tue Aug 17 05:08:22 2021

Your job looked like:

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

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

