/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 194 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0256.3+0334_daily_bin418
RA = 44.0964, Dec = 3.5698
tmin = 347673601, tmax = 347932801
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='958461', job_status='RUN', time_executed='2021-08-17 04:29:51.041414', time_epoch_executed='1629199791.04' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958461

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958461/ft1_4FGL_J0256.3+0334_daily_bin418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958461/ft2_4FGL_J0256.3+0334_daily_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958461/ft1_4FGL_J0256.3+0334_daily_bin418.fits outfile=/scratch/kocevski/958461/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin418.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=347673601.0 tmax=347932801.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 4.90
user 3.21
sys 0.74

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958461/ft1_filtered_4FGL_J0256.3+0334_daily_bin418.fits" evtable="EVENTS" scfile=/scratch/kocevski/958461/ft2_4FGL_J0256.3+0334_daily_bin418.fits sctable="SC_DATA" outfile=/scratch/kocevski/958461/ltcube_347673601_347932801_4FGL_J0256.3+0334_daily_bin418.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/958461/ft2_4FGL_J0256.3+0334_daily_bin418.fits
.....................!
real 13.09
user 11.97
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958461/ft1_filtered_4FGL_J0256.3+0334_daily_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/958461/ft2_4FGL_J0256.3+0334_daily_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/958461/ltcube_347673601_347932801_4FGL_J0256.3+0334_daily_bin418.fits outfile=/scratch/kocevski/958461/expmap_347673601_347932801_4FGL_J0256.3+0334_daily_bin418.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/958461/ltcube_347673601_347932801_4FGL_J0256.3+0334_daily_bin418.fits
.....................!
real 191.79
user 185.36
sys 5.08

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/958461/ft1_filtered_4FGL_J0256.3+0334_daily_bin418.fits scfile=/scratch/kocevski/958461/ft2_4FGL_J0256.3+0334_daily_bin418.fits outfile=/scratch/kocevski/958461/cmap_347673601_347932801_4FGL_J0256.3+0334_daily_bin418.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.17
user 0.37
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958461/ft1_filtered_4FGL_J0256.3+0334_daily_bin418.fits scfile=/scratch/kocevski/958461/ft2_4FGL_J0256.3+0334_daily_bin418.fits outfile=/scratch/kocevski/958461/cmap_HighResolution_347673601_347932801_4FGL_J0256.3+0334_daily_bin418.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.20
user 0.38
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13954E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.2118       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.808       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23670E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2132       1.0000         .10000E-03   10000.    
    15 'norm      '    18.797       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8217       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .56752       1.0000         .10000E-03   10000.    
    19 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6270       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .50027       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96529       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89941       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=   6383.223     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2526 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.5739        .20134E-05** at limit **
   2  norm          4.2119        1.3180       -.36575E-07   -.23432E-03
   3  Prefactor     .10000E-03    9.6930       -.74328E-05** at limit **
   4  Prefactor     43.765        51.038       -.51601E-04   -.16995E-03
   5  Prefactor     7.7735        7.3114        .23599E-06   -.20136E-03
   6  Prefactor     .10000E-03    7.3442       -.13679E-06** at limit **
   7  Prefactor     .10000E-03    4.7297        .21587E-05** at limit **
   8  Prefactor     .10000E-03    46.188       -.10646E-04** at limit **
   9  Prefactor     .10000E-03    43.551       -.11327E-05** at limit **
  10  norm          .10000E-03    2.0784        .57965E-08** at limit **
  11  Prefactor     .10000E-03    12.132        .27682E-06** at limit **
  12  Prefactor     .10000E-03    31.699        .19708E-04** at limit **
  13  Prefactor     18.065        29.749       -.12213E-05   -.19401E-06
  14  Prefactor     7.2141        5.9817        .70769E-06    .91197E-04
  15  norm          18.797        11.967        .13620E-07    .60547E-04
  16  norm          .10000E-03    1.7015       -.36587E-07** at limit **
  17  Prefactor     7.8222        9.0516       -.22606E-06    .88794E-05
  18  Prefactor     .58197        3.8564       -.71791E-06   -.10708E-03
  19  norm          .10000E-03    8.7964        .50768E-05** at limit **
  20  Prefactor     8.6272        8.9762        .40522E-07    .15311E-03
  21  Prefactor     .10000E-03    20.591       -.13460E-04** at limit **
  22  Prefactor     .48976        3.4662       -.11490E-05    .18342E-04
  23  Prefactor     .10000E-03    13.179        .38027E-05** at limit **
  24  Normalizat    .96518        .19332        .12758E-05   -.20546E-03
  25  Prefactor     .89943        .90583E-01    .75493E-06   -.34891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  norm       = 4.21195
  Prefactor  = 0.0001
  Prefactor  = 43.765
  Prefactor  = 7.77351
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0651
  Prefactor  = 7.21413
  norm       = 18.7972
  norm       = 0.0001
  Prefactor  = 7.82222
  Prefactor  = 0.581974
  norm       = 0.0001
  Prefactor  = 8.62718
  Prefactor  = 0.0001
  Prefactor  = 0.489758
  Prefactor  = 0.0001
  Normalizat = 0.965183
  Prefactor  = 0.899429
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.223     FROM HESSE     STATUS=OK           431 CALLS     2957 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    2.9143        .19446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2119        1.3233        .49045E-04   -1.5297    
   3  Prefactor     .10000E-03    9.6960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.765        51.230        .30285E-03   -1.4384    
   5  Prefactor     7.7735        7.3065        .14380E-03   -1.5150    
   6  Prefactor     .10000E-03    7.3656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.413        .33660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0793        .11249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.065        29.754        .94230E-04   -1.4858    
  14  Prefactor     7.2141        5.9786        .14935E-03   -1.5171    
  15  norm          18.797        11.963        .92379E-04   -1.4841    
  16  norm          .10000E-03    1.7173        .10173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.8222        9.0541        .14338E-03   -1.5149    
  18  Prefactor     .58197        18.483        .29350E-02   -1.5555    
  19  norm          .10000E-03    9.0236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6272        8.9751        .13647E-03   -1.5120    
  21  Prefactor     .10000E-03    20.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .48976        19.784        .27600E-02   -1.5568    
  23  Prefactor     .10000E-03    13.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96518        .21371        .33350E-03   -.94206    
  25  Prefactor     .89943        .10193        .16144E-03   -.96161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96665e-08
Minuit parameter uncertainties:
  1  0.000345427
  2  1.32326
  3  5.68759e-05
  4  51.2812
  5  7.3073
  6  2.91126e-05
  7  0.000289264
  8  3.40098e-05
  9  2.93837e-05
  10  2.39312e-06
  11  2.47274e-05
  12  6.34745e-05
  13  29.7782
  14  5.97908
  15  11.9649
  16  3.4815e-06
  17  9.0557
  18  6.56111
  19  6.14352e-05
  20  8.97649
  21  9.11535e-06
  22  6.22715
  23  4.14298e-05
  24  0.213894
  25  0.101952
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  7.214e+00  5.979e+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:  8.994e-01  1.020e-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:  9.652e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.68
Ra Dec: 44.096 3.570
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.95e-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) = 6382.94490766
delta logL = 0.278304783276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6382.93446813
delta logL = 0.288744314973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5559       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7453       1.0000          .0000       10.000    
     3 'Normalizat'    .90588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91143       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=   6382.934     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      286 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5562        9.3788        .82881E-04    .58489E-03
   2  Index         2.7451        1.3537        .41549E-02    .16736E-03
   3  Normalizat    .90585        .23153        .34271E-03   -.13634E-04
   4  Prefactor     .91143        .99730E-01    .16040E-03    .11611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55617
  Index      = 2.74506
  Normalizat = 0.905848
  Prefactor  = 0.911428
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.934     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5562        5.2131        .33152E-05   -1.5331    
   2  Index         2.7451        .75931        .16620E-03   -.46787    
   3  Normalizat    .90585        .21670        .13708E-04   -.96255    
   4  Prefactor     .91143        .97671E-01    .32080E-04   -.95743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42965e-10
Minuit parameter uncertainties:
  1  5.21373
  2  0.763026
  3  0.216907
  4  0.0976893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958461': 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) = 6382.93446766
delta logL = 0.288744787719

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  3.556e+00  5.214e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.745e+00  7.630e-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.114e-01  9.769e-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:  9.058e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.38
Ra Dec: 44.096 3.570
Photon Index (Free Index): 2.75 +/- 0.76
Photon Flux (Free Index): 9.78e-08 +/- 7.98e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.32e-05

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/958461/cmap_HighResolution_347673601_347932801_4FGL_J0256.3+0334_daily_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='2.27e-05', photon_flux_error='3.45e-08', dlogl='2.89e-01', energy_flux='2.35e-05', photon_flux2='9.78e-08', job_status='DONE', time_completed='2021-08-17 04:40:21.904011', photon_index_error2='0.76', photon_index2='2.75', ts='5.68', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.97', time_epoch_completed='1629200421.9', return_code='0', job_id='958461', GAL2='0.91', EG2='0.91', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='7.98e-08', ts2='6.38', photon_index='2.09' WHERE bin_id='418' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:40:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 958461: <4FGL_J0256.3+0334_daily_bin418> in cluster <slac> Done

Job <4FGL_J0256.3+0334_daily_bin418> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 04:25:23 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:25:40 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:25:40 2021
Terminated at Tue Aug 17 04:40:22 2021
Results reported at Tue Aug 17 04:40:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_daily_bin418 44.0964 3.5698 347673601 347932801 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 :                                   627.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             248.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            899 sec.

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

