/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 11 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 = 7479
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0256.3+0334_daily_bin616
RA = 44.0964, Dec = 3.5698
tmin = 398995201, tmax = 399254401
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='959832', job_status='RUN', time_executed='2021-08-17 04:35:16.736346', time_epoch_executed='1629200116.74' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959832/ft1_4FGL_J0256.3+0334_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959832/ft2_4FGL_J0256.3+0334_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959832/ft1_4FGL_J0256.3+0334_daily_bin616.fits outfile=/scratch/kocevski/959832/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin616.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=398995201.0 tmax=399254401.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 9.81
user 4.19
sys 4.95

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/959832/ft2_4FGL_J0256.3+0334_daily_bin616.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/959832/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin616.fits evtable="EVENTS" outfile="/scratch/kocevski/959832/ft1_filtered_4FGL_J0256.3+0334_daily_bin616.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 5.81
user 0.30
sys 5.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/959832/ft1_filtered_4FGL_J0256.3+0334_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/959832/ft2_4FGL_J0256.3+0334_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/959832/ltcube_398995201_399254401_4FGL_J0256.3+0334_daily_bin616.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/959832/ft2_4FGL_J0256.3+0334_daily_bin616.fits
.....................!
real 18.02
user 11.89
sys 5.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959832/ft1_filtered_4FGL_J0256.3+0334_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/959832/ft2_4FGL_J0256.3+0334_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/959832/ltcube_398995201_399254401_4FGL_J0256.3+0334_daily_bin616.fits outfile=/scratch/kocevski/959832/expmap_398995201_399254401_4FGL_J0256.3+0334_daily_bin616.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/959832/ltcube_398995201_399254401_4FGL_J0256.3+0334_daily_bin616.fits
.....................!
real 170.49
user 155.76
sys 11.52

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/959832/ft1_filtered_4FGL_J0256.3+0334_daily_bin616.fits scfile=/scratch/kocevski/959832/ft2_4FGL_J0256.3+0334_daily_bin616.fits outfile=/scratch/kocevski/959832/cmap_398995201_399254401_4FGL_J0256.3+0334_daily_bin616.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.36
user 0.34
sys 5.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959832/ft1_filtered_4FGL_J0256.3+0334_daily_bin616.fits scfile=/scratch/kocevski/959832/ft2_4FGL_J0256.3+0334_daily_bin616.fits outfile=/scratch/kocevski/959832/cmap_HighResolution_398995201_399254401_4FGL_J0256.3+0334_daily_bin616.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 6.07
user 0.35
sys 5.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8928       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    83.468       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5576       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18973E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.057       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.987       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.836       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8342       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1070       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95913       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=   4421.135     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     3388 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8945        3.9233       -.34582E-06   -.90136E-04
   2  norm          .10000E-03    .41699        .26280E-07** at limit **
   3  Prefactor     .10000E-03    23.205        .72092E-06** at limit **
   4  Prefactor     83.376        133.73        .96823E-05   -.65104E-05
   5  Prefactor     .10000E-03    7.4423        .31202E-06** at limit **
   6  Prefactor     .10000E-03    25.789        .38116E-06** at limit **
   7  Prefactor     8.5375        19.883       -.12434E-05   -.28245E-04
   8  Prefactor     .10000E-03    18.645       -.11456E-05** at limit **
   9  Prefactor     8.5529        25.500        .59580E-06   -.11671E-04
  10  norm          4.8047        14.897        .56204E-06   -.24684E-05
  11  Prefactor     .10002E-03    13.263        .15453E-05** at limit **
  12  Prefactor     .10000E-03    21.317        .66568E-06** at limit **
  13  Prefactor     .10000E-03    32.411       -.17396E-05** at limit **
  14  Prefactor     10.058        6.8359       -.66041E-07   -.16947E-04
  15  norm          .10000E-03    7.3788       -.50183E-06** at limit **
  16  norm          12.719        8.2663        .17349E-06   -.86477E-05
  17  Prefactor     .10000E-03    11.458        .83123E-07** at limit **
  18  Prefactor     .10000E-03    2.4818       -.17080E-06** at limit **
  19  norm          .10000E-03    3.5722        .15237E-07** at limit **
  20  Prefactor     39.960        40.159        .33811E-07   -.20841E-04
  21  Prefactor     17.795        51.782        .43766E-05   -.70624E-05
  22  Prefactor     .10000E-03    5.8146        .27187E-07** at limit **
  23  Prefactor     1.8309        27.855        .91732E-05    .19220E-04
  24  Normalizat    1.1065        .27275       -.12517E-06   -.38702E-04
  25  Prefactor     .95931        .11703       -.10049E-05   -.69803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.89453
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.3763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.53753
  Prefactor  = 0.0001
  Prefactor  = 8.55289
  norm       = 4.80467
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0578
  norm       = 0.0001
  norm       = 12.7188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.9599
  Prefactor  = 17.7949
  Prefactor  = 0.0001
  Prefactor  = 1.83085
  Normalizat = 1.10646
  Prefactor  = 0.959311
 **********
 **   18 **HESSE 
 **********

 FCN=   4421.135     FROM HESSE     STATUS=OK           425 CALLS     3813 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8945        3.9082        .14441E-03   -1.5368    
   2  norm          .10000E-03    .42358        .41908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     83.376        133.67        .21984E-03   -1.3879    
   5  Prefactor     .10000E-03    7.4605        .17704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.5375        19.744        .13725E-03   -1.5124    
   8  Prefactor     .10000E-03    18.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5529        25.620        .13703E-03   -1.5123    
  10  norm          4.8047        14.788        .18343E-03   -1.5270    
  11  Prefactor     .10002E-03    50.783        .45955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.058        6.8377        .12635E-03   -1.5074    
  15  norm          .10000E-03    7.3901        .17640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.719        8.2727        .11232E-03   -1.4995    
  17  Prefactor     .10000E-03    11.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4852        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5785        .12272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.960        39.974        .63387E-04   -1.4443    
  21  Prefactor     17.795        51.577        .94837E-04   -1.4864    
  22  Prefactor     .10000E-03    5.8831        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.8309        28.061        .15405E-02   -1.5437    
  24  Normalizat    1.1065        .29719        .35378E-03   -.89545    
  25  Prefactor     .95931        .12826        .17040E-03   -.94098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75249e-10
Minuit parameter uncertainties:
  1  3.90852
  2  4.87392e-07
  3  5.84933e-05
  4  134.156
  5  1.6966e-05
  6  6.08012e-05
  7  19.7588
  8  3.56808e-07
  9  25.6531
  10  14.7995
  11  0.00192554
  12  2.46241e-07
  13  7.67598e-06
  14  6.8382
  15  2.00004e-07
  16  8.27342
  17  5.05079e-06
  18  9.36478e-06
  19  2.10295e-06
  20  40.0008
  21  51.7064
  22  5.17418e-06
  23  14.3429
  24  0.29764
  25  0.128298
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.006e+01  6.838e+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.593e-01  1.283e-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.106e+00  2.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.98
Ra Dec: 44.096 3.570
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.80e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 2.23e-05

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) = 4419.64926836
delta logL = 1.48543055755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4419.58780231
delta logL = 1.54689660818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.975       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2095       1.0000          .0000       10.000    
     3 'Normalizat'    1.1378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95505       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=   4419.588     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.008        9.3811        .27801E-02   -.87777E-04
   2  Index         1.2103        .40281        .18979       -.49512E-03
   3  Normalizat    1.1382        .24971        .78954E-01    .59152E-05
   4  Prefactor     .95490        .11336        .45703E-01   -.10225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0082
  Index      = 1.21029
  Normalizat = 1.13817
  Prefactor  = 0.954901
 **********
 **   18 **HESSE 
 **********

 FCN=   4419.588     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.008        9.7988        .11120E-03   -1.4986    
   2  Index         1.2103        .44047        .39937E-01   -.86015    
   3  Normalizat    1.1382        .27363        .34949E-03   -.88536    
   4  Prefactor     .95490        .12455        .17078E-03   -.94248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56003e-09
Minuit parameter uncertainties:
  1  9.79997
  2  0.441819
  3  0.273973
  4  0.124585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959832': 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) = 4419.5877959
delta logL = 1.54690301735

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.301e+01  9.800e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.210e+00  4.418e-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.549e-01  1.246e-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.138e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.07
Ra Dec: 44.096 3.570
Photon Index (Free Index): 1.21 +/- 0.44
Photon Flux (Free Index): 1.99e-08 +/- 1.66e-08
Energy Flux (Free Index): 1.61e-04 +/- 1.87e-04

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/959832/cmap_HighResolution_398995201_399254401_4FGL_J0256.3+0334_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.80e-08', energy_flux2='1.61e-04', photon_flux_error='3.94e-08', dlogl='1.55e+00', energy_flux='3.28e-05', photon_flux2='1.99e-08', job_status='DONE', time_completed='2021-08-17 04:44:58.494253', photon_index_error2='0.44', photon_index2='1.21', ts='15.98', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.87e-04', EG='1.11', time_epoch_completed='1629200698.49', return_code='0', job_id='959832', GAL2='0.95', EG2='1.14', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='1.66e-08', ts2='19.07', photon_index='2.09' WHERE bin_id='616' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:44:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 959832: <4FGL_J0256.3+0334_daily_bin616> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_daily_bin616 44.0964 3.5698 398995201 399254401 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 :                                   630.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             235.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            869 sec.

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

