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


Performing analysis on: 4FGL_J0339.5-0146_daily_bin372
RA = 54.8771, Dec = -1.7769
tmin = 335750401, tmax = 336009601
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='727834', job_status='RUN', time_executed='2021-08-18 21:41:08.055719', time_epoch_executed='1629348068.06' WHERE source_name='4FGL J0339.5-0146' and cadence='daily' and bin_id='372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727834

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727834/ft1_4FGL_J0339.5-0146_daily_bin372.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727834/ft1_4FGL_J0339.5-0146_daily_bin372.fits outfile=/scratch/kocevski/727834/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin372.fits ra=54.8771 dec=-1.7769 rad=12.0 tmin=335750401.0 tmax=336009601.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.79
user 6.50
sys 4.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.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/727834/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin372.fits evtable="EVENTS" outfile="/scratch/kocevski/727834/ft1_filtered_4FGL_J0339.5-0146_daily_bin372.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 4.44
user 0.31
sys 4.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727834/ft1_filtered_4FGL_J0339.5-0146_daily_bin372.fits" evtable="EVENTS" scfile=/scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits sctable="SC_DATA" outfile=/scratch/kocevski/727834/ltcube_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.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/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits
.....................!
real 15.61
user 10.86
sys 4.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727834/ft1_filtered_4FGL_J0339.5-0146_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits sctable="SC_DATA" expcube=/scratch/kocevski/727834/ltcube_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.fits outfile=/scratch/kocevski/727834/expmap_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.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/727834/ltcube_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.fits
.....................!
real 195.72
user 184.96
sys 10.33

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 137 point sources and 0 extended sources

Setting source of interest to:
4FGL J0339.5-0146 @ 54.8771 -1.7769

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/727834/ft1_filtered_4FGL_J0339.5-0146_daily_bin372.fits scfile=/scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits outfile=/scratch/kocevski/727834/cmap_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.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=54.8771 yref=-1.7769 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 4.38
user 0.36
sys 3.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727834/ft1_filtered_4FGL_J0339.5-0146_daily_bin372.fits scfile=/scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits outfile=/scratch/kocevski/727834/cmap_HighResolution_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.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=54.8771 yref=-1.7769 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 4.39
user 0.38
sys 3.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/727834/ft1_filtered_4FGL_J0339.5-0146_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/727834/Model_4FGL_J0339.5-0146_daily_bin372.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/727834/ft1_filtered_4FGL_J0339.5-0146_daily_bin372.fits.....................!
real 125.69
user 119.12
sys 6.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/727834/ft1_filtered_4FGL_J0339.5-0146_daily_bin372.fits', '/scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits', expMap='/scratch/kocevski/727834/expmap_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.fits', expCube='/scratch/kocevski/727834/ltcube_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/727834/Model_4FGL_J0339.5-0146_daily_bin372.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0339.5-0146'

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  3.850e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  2.242e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  5.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/727834/ft1_filtered_4FGL_J0339.5-0146_daily_bin372.fits
Spacecraft file(s): /scratch/kocevski/727834/ft2_4FGL_J0339.5-0146_daily_bin372.fits
Exposure map: /scratch/kocevski/727834/expmap_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.fits
Exposure cube: /scratch/kocevski/727834/ltcube_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/727834/Model_4FGL_J0339.5-0146_daily_bin372.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) = 9798.37845598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6848       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8084       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.796       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7429       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.494       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19339       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3665       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.236       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11400E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.6329       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.978       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0259       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7541       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23220       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .80685       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0200       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9798.377     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     2473 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6840        7.9523       -.25909E-06   -.13491E-03
   2  Prefactor     1.8082        3.1716        .27021E-06   -.15520E-03
   3  Prefactor     11.295        14.460        .49818E-06    .37594E-04
   4  Prefactor     19.794        26.127       -.90259E-06   -.68480E-04
   5  Prefactor     1.7435        4.0000        .69365E-06   -.31154E-03
   6  Prefactor     17.491        14.272        .53855E-07   -.97181E-05
   7  Prefactor     .14358        4.3659       -.16534E-06    .15360E-04
   8  norm          2.3663        1.2158        .82849E-08   -.57915E-04
   9  Prefactor     44.223        39.132       -.42226E-05   -.34336E-03
  10  Prefactor     .10000E-03    30.908       -.36810E-06** at limit **
  11  norm          8.6327        9.1629       -.38661E-06    .15234E-03
  12  Prefactor     .10000E-03    23.705       -.15474E-06** at limit **
  13  norm          12.977        5.0302        .13766E-06   -.35245E-03
  14  norm          4.0246        8.0855       -.33242E-06   -.14435E-03
  15  norm          .10000E-03    11.011       -.12750E-06** at limit **
  16  norm          2.7535        1.2112       -.18247E-06   -.70520E-03
  17  Prefactor     .23210        1.2975        .13784E-05   -.85100E-03
  18  Normalizat    .80695        .17446       -.17573E-06   -.21780E-04
  19  Prefactor     1.0200        .78887E-01    .13745E-06   -.10111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.68401
  Prefactor  = 1.80824
  Prefactor  = 11.2948
  Prefactor  = 19.7943
  Prefactor  = 1.74352
  Prefactor  = 17.4911
  Prefactor  = 0.14358
  norm       = 2.36633
  Prefactor  = 44.223
  Prefactor  = 0.0001
  norm       = 8.63274
  Prefactor  = 0.0001
  norm       = 12.9774
  norm       = 4.0246
  norm       = 0.0001
  norm       = 2.75348
  Prefactor  = 0.232099
  Normalizat = 0.806949
  Prefactor  = 1.01996
 **********
 **   18 **HESSE 
 **********

 FCN=   9798.377     FROM HESSE     STATUS=OK           286 CALLS     2759 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6840        8.0008        .21040E-03   -1.5324    
   2  Prefactor     1.8082        3.1449        .22456E-03   -1.5439    
   3  Prefactor     11.295        14.401        .11920E-03   -1.5036    
   4  Prefactor     19.794        26.065        .90021E-04   -1.4818    
   5  Prefactor     1.7435        4.0715        .29057E-03   -1.5444    
   6  Prefactor     17.491        14.286        .95759E-04   -1.4871    
   7  Prefactor     .14358        6.5120        .71008E-01   -1.5632    
   8  norm          2.3663        1.2151        .74684E-04   -1.5400    
   9  Prefactor     44.223        42.283        .60278E-04   -1.4377    
  10  Prefactor     .10000E-03    31.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.6327        9.1897        .68214E-03   -1.5120    
  12  Prefactor     .10000E-03    24.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.977        5.0449        .55595E-03   -1.4987    
  14  norm          4.0246        8.1439        .20098E-03   -1.5307    
  15  norm          .10000E-03    11.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7535        1.2048        .65959E-04   -1.5376    
  17  Prefactor     .23210        1.5254        .22711E-03   -1.5612    
  18  Normalizat    .80695        .19272        .37536E-03   -.99811    
  19  Prefactor     1.0200        .87188E-01    .16176E-03   -.92067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7057e-09
Minuit parameter uncertainties:
  1  8.00312
  2  3.1452
  3  14.4052
  4  26.0796
  5  4.07212
  6  14.289
  7  1.93344
  8  1.21513
  9  42.3114
  10  0.000220336
  11  9.19116
  12  3.66276e-05
  13  5.0451
  14  8.14612
  15  1.67196e-05
  16  1.20478
  17  1.18983
  18  0.19288
  19  0.0872003
Done.

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

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  2.366e+00  1.215e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  2.242e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  5.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
436    Prefactor:  1.020e+00  8.720e-02  0.000e+00  1.000e+01 ( 1.000e+00)
437        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
438        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
435   Normalization:  8.069e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.30
Ra Dec: 54.877 -1.777
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 7.00e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 1.30e-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) = 9798.23679368
delta logL = 0.140525874414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9798.2189127
delta logL = 0.158406850647

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1230       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9658       1.0000          .0000       5.0000    
     3 'Normalizat'    .82431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9798.219     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1217        1.3126        .70757E-02    .21771E-03
   2  alpha         1.9648        .41143        .38896       -.30916E-04
   3  Normalizat    .82416        .16269        .83977E-01    .36235E-04
   4  Prefactor     1.0174        .77740E-01    .42410E-01   -.56653E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.12173
  alpha      = 1.96477
  Normalizat = 0.824165
  Prefactor  = 1.01744
 **********
 **   18 **HESSE 
 **********

 FCN=   9798.219     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1217        1.3884        .78127E-04   -1.5417    
   2  alpha         1.9648        .50652        .14691E-01   -.21576    
   3  Normalizat    .82416        .18013        .37186E-03   -.99178    
   4  Prefactor     1.0174        .85543E-01    .16198E-03   -.92150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86912e-10
Minuit parameter uncertainties:
  1  1.38845
  2  0.510227
  3  0.180256
  4  0.0855549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727834': 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) = 9798.21891001
delta logL = 0.158409545884

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  2.122e+00  1.388e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  1.965e+00  5.102e-01  0.000e+00  5.000e+00 ( 1.000e+00)
264         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  5.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
436    Prefactor:  1.017e+00  8.555e-02  0.000e+00  1.000e+01 ( 1.000e+00)
437        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
438        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
435   Normalization:  8.242e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.57
Ra Dec: 54.877 -1.777
Photon Index (Free Index): 1.96 +/- 0.51
Photon Flux (Free Index): 5.10e-08 +/- 4.44e-08
Energy Flux (Free Index): 2.73e-05 +/- 1.62e-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/727834/cmap_HighResolution_335750401_336009601_4FGL_J0339.5-0146_daily_bin372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.00e-08', energy_flux2='2.73e-05', photon_flux_error='3.59e-08', dlogl='1.58e-01', energy_flux='2.52e-05', photon_flux2='5.10e-08', job_status='DONE', time_completed='2021-08-18 21:53:37.355359', photon_index_error2='0.51', photon_index2='1.96', ts='12.30', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.81', time_epoch_completed='1629348817.36', return_code='0', job_id='727834', GAL2='1.02', EG2='0.82', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.44e-08', ts2='12.57', photon_index='2.24' WHERE bin_id='372' AND source_name='4FGL J0339.5-0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:53:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 727834: <4FGL_J0339.5-0146_daily_bin372> in cluster <slac> Done

Job <4FGL_J0339.5-0146_daily_bin372> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Aug 18 21:39:06 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:39:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 21:39:08 2021
Terminated at Wed Aug 18 21:53:38 2021
Results reported at Wed Aug 18 21:53:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0339.5-0146_daily_bin372 54.8771 -1.7769 335750401 336009601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0339.5-0146 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   806.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            872 sec.

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

