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


Performing analysis on: 4FGL_J0339.5-0146_daily_bin378
RA = 54.8771, Dec = -1.7769
tmin = 337305601, tmax = 337564801
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='727846', job_status='RUN', time_executed='2021-08-18 21:39:57.378237', time_epoch_executed='1629347997.38' WHERE source_name='4FGL J0339.5-0146' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727846

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727846/ft1_4FGL_J0339.5-0146_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727846/ft2_4FGL_J0339.5-0146_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727846/ft1_4FGL_J0339.5-0146_daily_bin378.fits outfile=/scratch/kocevski/727846/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin378.fits ra=54.8771 dec=-1.7769 rad=12.0 tmin=337305601.0 tmax=337564801.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 8.63
user 7.20
sys 1.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727846/ft1_filtered_4FGL_J0339.5-0146_daily_bin378.fits" evtable="EVENTS" scfile=/scratch/kocevski/727846/ft2_4FGL_J0339.5-0146_daily_bin378.fits sctable="SC_DATA" outfile=/scratch/kocevski/727846/ltcube_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.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/727846/ft2_4FGL_J0339.5-0146_daily_bin378.fits
.....................!
real 12.71
user 10.99
sys 1.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727846/ft1_filtered_4FGL_J0339.5-0146_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/727846/ft2_4FGL_J0339.5-0146_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/727846/ltcube_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.fits outfile=/scratch/kocevski/727846/expmap_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.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/727846/ltcube_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.fits
.....................!
real 191.77
user 184.37
sys 7.03

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/727846/ft1_filtered_4FGL_J0339.5-0146_daily_bin378.fits scfile=/scratch/kocevski/727846/ft2_4FGL_J0339.5-0146_daily_bin378.fits outfile=/scratch/kocevski/727846/cmap_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.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 1.65
user 0.36
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727846/ft1_filtered_4FGL_J0339.5-0146_daily_bin378.fits scfile=/scratch/kocevski/727846/ft2_4FGL_J0339.5-0146_daily_bin378.fits outfile=/scratch/kocevski/727846/cmap_HighResolution_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.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 1.71
user 0.37
sys 1.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/727846/ft1_filtered_4FGL_J0339.5-0146_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/727846/ft2_4FGL_J0339.5-0146_daily_bin378.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/727846/Model_4FGL_J0339.5-0146_daily_bin378.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/727846/ft1_filtered_4FGL_J0339.5-0146_daily_bin378.fits....................!
real 82.29
user 79.38
sys 2.75

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/727846/ft1_filtered_4FGL_J0339.5-0146_daily_bin378.fits', '/scratch/kocevski/727846/ft2_4FGL_J0339.5-0146_daily_bin378.fits', expMap='/scratch/kocevski/727846/expmap_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.fits', expCube='/scratch/kocevski/727846/ltcube_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/727846/Model_4FGL_J0339.5-0146_daily_bin378.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/727846/ft1_filtered_4FGL_J0339.5-0146_daily_bin378.fits
Spacecraft file(s): /scratch/kocevski/727846/ft2_4FGL_J0339.5-0146_daily_bin378.fits
Exposure map: /scratch/kocevski/727846/expmap_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.fits
Exposure cube: /scratch/kocevski/727846/ltcube_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/727846/Model_4FGL_J0339.5-0146_daily_bin378.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) = 6262.01110514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43850E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.718       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.168       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.504       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.769       1.0000         .10000E-03   10000.    
    13 'norm      '    .50189       1.0000         .10000E-03   10000.    
    14 'norm      '    .29225E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .72460       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0306       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92543       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6262.000     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     2521 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8926        .18142E-02** at limit **
   2  Prefactor     .10000E-03    5.8887        .18142E-02** at limit **
   3  Prefactor     .12615E-03    29.747        .87798E-01** at limit **
   4  Prefactor     35.713        30.116        .67056E-04    .30917E-03
   5  Prefactor     .10000E-03    2.6182        .12473E-02** at limit **
   6  Prefactor     .10000E-03    20.677        .18142E-02** at limit **
   7  Prefactor     21.173        20.271        .87058E-04    .10016E-03
   8  norm          1.8621        1.7676        .97384E-04   -.90941E-04
   9  Prefactor     16.543        63.240        .98588E-04   -.31250E-04
  10  Prefactor     .10000E-03    20.616        .18142E-02** at limit **
  11  norm          .10000E-03    11.231        .18142E-02** at limit **
  12  Prefactor     45.762        43.675        .59265E-04   -.80568E-05
  13  norm          .49646        9.6436        .30605E-02    .76512E-03
  14  norm          .10971E-03    9.2605        .75547E-01** at limit **
  15  norm          .10000E-03    17.667        .18142E-02** at limit **
  16  norm          .72482        .86978        .88006E-03    .16874E-02
  17  Prefactor     2.0306        1.7989        .94997E-04    .96936E-04
  18  Normalizat    1.2035        .26441        .34428E-03    .21929E-03
  19  Prefactor     .92551        .11213        .17133E-03   -.52135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000126149
  Prefactor  = 35.7127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1727
  norm       = 1.86209
  Prefactor  = 16.5429
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.7617
  norm       = 0.496455
  norm       = 0.000109706
  norm       = 0.0001
  norm       = 0.72482
  Prefactor  = 2.03058
  Normalizat = 1.20355
  Prefactor  = 0.925512
 **********
 **   18 **HESSE 
 **********

 FCN=   6262.000     FROM HESSE     STATUS=OK           270 CALLS     2791 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12615E-03    25.959        .95086E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.713        29.948        .13411E-04   -1.4512    
   5  Prefactor     .10000E-03    2.6184        .24946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.173        20.271        .34823E-05   -1.4787    
   8  norm          1.8621        1.7675        .38953E-05   -1.5435    
   9  Prefactor     16.543        63.314        .39435E-05   -1.4894    
  10  Prefactor     .10000E-03    20.619        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.762        43.684        .23706E-05   -1.4354    
  13  norm          .49646        9.6269        .12242E-03   -1.5567    
  14  norm          .10971E-03    8.8280        .78912E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    17.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .72482        .86805        .35202E-04   -1.5538    
  17  Prefactor     2.0306        1.7987        .37999E-05   -1.5423    
  18  Normalizat    1.2035        .26453        .13771E-04   -.86493    
  19  Prefactor     .92551        .11218        .34267E-04   -.95255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56993e-09
Minuit parameter uncertainties:
  1  6.5163e-05
  2  6.0763e-06
  3  0.0521295
  4  29.9605
  5  4.1079e-05
  6  0.000161886
  7  20.2779
  8  1.7675
  9  63.5732
  10  4.27611e-05
  11  4.09048e-05
  12  43.7146
  13  4.37271
  14  0.0185158
  15  4.37882e-05
  16  0.868069
  17  1.79879
  18  0.264827
  19  0.112212
Done.

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

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  1.862e+00  1.768e+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:  9.255e-01  1.122e-01  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:  1.204e+00  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 54.877 -1.777
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.51e-08 +/- 5.23e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.88e-05

TS (Fixed Index): 1.58
Ra Dec: 54.877 -1.777
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/727846/likelihoodResults_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.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) = 6261.58886527
delta logL = 0.410819971257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6261.53218254
delta logL = 0.467502693649

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15916       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9153       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95567       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=   6261.532     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      311 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15332        .11950        .47853E-02   -.17870E-03
   2  alpha         4.9424        .88524        .48353       -.10571E-03
   3  Normalizat    1.1175        .22722        .80310E-01    .79945E-05
   4  Prefactor     .95571        .98192E-01    .45711E-01   -.50797E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.15332
  alpha      = 4.94244
  Normalizat = 1.1175
  Prefactor  = 0.955711
 **********
 **   18 **HESSE 
 **********

 FCN=   6261.532     FROM HESSE     STATUS=OK            33 CALLS      344 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15332        .27998        .21827E-03   -1.5630    
   2  alpha         4.9424        4.8018        .65912E-01    1.3558    
   3  Normalizat    1.1175        .25604        .35552E-03   -.89192    
   4  Prefactor     .95571        .11084        .16904E-03   -.94221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68282e-09
Minuit parameter uncertainties:
  1  0.279978
  2  1.28003
  3  0.256327
  4  0.110868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727846': 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) = 6261.53215291
delta logL = 0.467532329077

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  1.533e-01  2.800e-01  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  4.942e+00  1.280e+00  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:  9.557e-01  1.109e-01  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:  1.117e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 54.877 -1.777
Photon Index (Free Index): 4.94 +/- 1.28
Photon Flux (Free Index): 1.18e-07 +/- 8.74e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.18e-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/727846/cmap_HighResolution_337305601_337564801_4FGL_J0339.5-0146_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-05', comment='SUCCESS', photon_flux='5.51e-08', energy_flux2='1.61e-05', photon_flux_error='5.23e-08', dlogl='4.68e-01', energy_flux='1.99e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-08-18 21:50:13.872908', photon_index_error2='1.28', photon_index2='4.94', ts='1.58', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.18e-05', EG='1.20', time_epoch_completed='1629348613.87', return_code='0', job_id='727846', GAL2='0.96', EG2='1.12', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='8.74e-08', ts2='2.71', photon_index='2.24' WHERE bin_id='378' AND source_name='4FGL J0339.5-0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:50:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 727846: <4FGL_J0339.5-0146_daily_bin378> in cluster <slac> Done

Job <4FGL_J0339.5-0146_daily_bin378> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Aug 18 21:39:07 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:39:14 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:14 2021
Terminated at Wed Aug 18 21:50:16 2021
Results reported at Wed Aug 18 21:50:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0339.5-0146_daily_bin378 54.8771 -1.7769 337305601 337564801 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 :                                   628.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             319.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            669 sec.

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

