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


Performing analysis on: 4FGL_J0339.5-0146_daily_bin1402
RA = 54.8771, Dec = -1.7769
tmin = 602726401, tmax = 602985601
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='737914', job_status='RUN', time_executed='2021-08-18 22:16:18.737674', time_epoch_executed='1629350178.74' WHERE source_name='4FGL J0339.5-0146' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737914/ft1_4FGL_J0339.5-0146_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737914/ft2_4FGL_J0339.5-0146_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737914/ft1_4FGL_J0339.5-0146_daily_bin1402.fits outfile=/scratch/kocevski/737914/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin1402.fits ra=54.8771 dec=-1.7769 rad=12.0 tmin=602726401.0 tmax=602985601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.37
user 2.89
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737914/ft2_4FGL_J0339.5-0146_daily_bin1402.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/737914/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/737914/ft1_filtered_4FGL_J0339.5-0146_daily_bin1402.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737914/ft1_filtered_4FGL_J0339.5-0146_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/737914/ft2_4FGL_J0339.5-0146_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/737914/ltcube_602726401_602985601_4FGL_J0339.5-0146_daily_bin1402.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/737914/ft2_4FGL_J0339.5-0146_daily_bin1402.fits
.....................!
real 11.89
user 11.52
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737914/ft1_filtered_4FGL_J0339.5-0146_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/737914/ft2_4FGL_J0339.5-0146_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/737914/ltcube_602726401_602985601_4FGL_J0339.5-0146_daily_bin1402.fits outfile=/scratch/kocevski/737914/expmap_602726401_602985601_4FGL_J0339.5-0146_daily_bin1402.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/737914/ltcube_602726401_602985601_4FGL_J0339.5-0146_daily_bin1402.fits
.....................!
real 189.59
user 184.91
sys 4.36

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/737914/ft1_filtered_4FGL_J0339.5-0146_daily_bin1402.fits scfile=/scratch/kocevski/737914/ft2_4FGL_J0339.5-0146_daily_bin1402.fits outfile=/scratch/kocevski/737914/cmap_602726401_602985601_4FGL_J0339.5-0146_daily_bin1402.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 0.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737914/ft1_filtered_4FGL_J0339.5-0146_daily_bin1402.fits scfile=/scratch/kocevski/737914/ft2_4FGL_J0339.5-0146_daily_bin1402.fits outfile=/scratch/kocevski/737914/cmap_HighResolution_602726401_602985601_4FGL_J0339.5-0146_daily_bin1402.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 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737914/ft1_filtered_4FGL_J0339.5-0146_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/737914/ft2_4FGL_J0339.5-0146_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737914/Model_4FGL_J0339.5-0146_daily_bin1402.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/737914/ft1_filtered_4FGL_J0339.5-0146_daily_bin1402.fits....................!
real 160.65
user 158.27
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    147.37       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7354       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .89517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8403       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2825       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0911       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0026       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=   13216.58     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1693 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4611        .22842E-05** at limit **
   2  Prefactor     .10000E-03    2.5226        .51213E-06** at limit **
   3  Prefactor     .10000E-03    4.3913       -.83524E-06** at limit **
   4  Prefactor     147.38        25.600        .30140E-05    .23230E-05
   5  Prefactor     .90685E-01    2.0709       -.98817E-06    .20395E-03
   6  Prefactor     8.7355        7.5759       -.26603E-06   -.32564E-04
   7  Prefactor     .10000E-03    4.0221        .69944E-06** at limit **
   8  norm          .89509        1.0179       -.18611E-06   -.23415E-02
   9  Prefactor     .10000E-03    9.5869       -.10279E-05** at limit **
  10  Prefactor     7.8365        12.231       -.21520E-05   -.49840E-04
  11  norm          .10000E-03    6.0797       -.25470E-05** at limit **
  12  Prefactor     4.2765        24.436       -.14275E-04   -.81738E-04
  13  norm          .10000E-03    1.1657       -.10392E-06** at limit **
  14  norm          .10000E-03    4.3916       -.19464E-06** at limit **
  15  norm          .10000E-03    19.645       -.16958E-05** at limit **
  16  norm          .10000E-03    .24471        .34624E-07** at limit **
  17  Prefactor     .10000E-03    .69370        .47505E-06** at limit **
  18  Normalizat    1.0912        .14670       -.47731E-06    .71235E-04
  19  Prefactor     1.0025        .69433E-01    .37474E-06   -.71756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 147.378
  Prefactor  = 0.0906853
  Prefactor  = 8.73548
  Prefactor  = 0.0001
  norm       = 0.895093
  Prefactor  = 0.0001
  Prefactor  = 7.83654
  norm       = 0.0001
  Prefactor  = 4.27653
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09124
  Prefactor  = 1.00251
 **********
 **   18 **HESSE 
 **********

 FCN=   13216.58     FROM HESSE     STATUS=OK           274 CALLS     1967 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6143        .35587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     147.38        25.342        .16598E-03   -1.3274    
   5  Prefactor     .90685E-01    2.1032        .49675E-01   -1.5648    
   6  Prefactor     8.7355        7.5782        .13562E-03   -1.5117    
   7  Prefactor     .10000E-03    4.0469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .89509        1.0031        .11862E-03   -1.5519    
   9  Prefactor     .10000E-03    9.5894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8365        12.254        .14320E-03   -1.5148    
  11  norm          .10000E-03    6.0770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2765        24.791        .19469E-03   -1.5294    
  13  norm          .10000E-03    1.1763        .12118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.4819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .37449        .10878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3058        .18222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0912        .16243        .34061E-03   -.90034    
  19  Prefactor     1.0025        .77687E-01    .16985E-03   -.92646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9424e-09
Minuit parameter uncertainties:
  1  6.87688e-06
  2  3.12544e-05
  3  4.21299e-05
  4  25.3441
  5  0.873006
  6  7.57904
  7  2.45678e-06
  8  1.00313
  9  6.67615e-06
  10  12.2577
  11  1.42815e-06
  12  20.6057
  13  1.68604e-06
  14  1.51659e-06
  15  8.38146e-05
  16  6.27638e-06
  17  2.88849e-05
  18  0.1625
  19  0.0776957
Done.

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

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  8.951e-01  1.003e+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.003e+00  7.770e-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:  1.091e+00  1.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 54.877 -1.777
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.65e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 9.54e-06 +/- 1.07e-05

TS (Fixed Index): 1.01
Ra Dec: 54.877 -1.777
Photon Flux Upper Limit: 8.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737914/likelihoodResults_602726401_602985601_4FGL_J0339.5-0146_daily_bin1402.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) = 13216.319877
delta logL = 0.258142906296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13216.3184314
delta logL = 0.259588493993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84356       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8014       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0059       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=   13216.32     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84383        15.256        .12601E-01    .22522E-02
   2  alpha         2.8012        3.7379        .41536        .60805E-04
   3  Normalizat    1.0749        .44692E-01    .77454E-01    .31459E-04
   4  Prefactor     1.0060        .22168E-01    .44004E-01   -.41621E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.843833
  alpha      = 2.80122
  Normalizat = 1.07488
  Prefactor  = 1.00597
 **********
 **   18 **HESSE 
 **********

 FCN=   13216.32     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84383        .98117        .93091E-04   -1.5524    
   2  alpha         2.8012        .86549        .26315E-01    .12078    
   3  Normalizat    1.0749        .16159        .34282E-03   -.90562    
   4  Prefactor     1.0060        .76869E-01    .16957E-03   -.92531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40707e-09
Minuit parameter uncertainties:
  1  0.98119
  2  0.884074
  3  0.161669
  4  0.0768771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737914': 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) = 13216.3184312
delta logL = 0.259588732086

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  8.438e-01  9.812e-01  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  2.801e+00  8.841e-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.006e+00  7.688e-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:  1.075e+00  1.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 54.877 -1.777
Photon Index (Free Index): 2.80 +/- 0.88
Photon Flux (Free Index): 4.28e-08 +/- 4.03e-08
Energy Flux (Free Index): 9.66e-06 +/- 9.23e-06

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/737914/cmap_HighResolution_602726401_602985601_4FGL_J0339.5-0146_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-05', comment='SUCCESS', photon_flux='2.65e-08', energy_flux2='9.66e-06', photon_flux_error='2.97e-08', dlogl='2.60e-01', energy_flux='9.54e-06', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-08-18 22:29:27.540631', photon_index_error2='0.88', photon_index2='2.80', ts='1.01', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.94e-08', energy_flux_error2='9.23e-06', EG='1.09', time_epoch_completed='1629350967.54', return_code='0', job_id='737914', GAL2='1.01', EG2='1.07', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.03e-08', ts2='1.54', photon_index='2.24' WHERE bin_id='1402' AND source_name='4FGL J0339.5-0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 22:29:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 737914: <4FGL_J0339.5-0146_daily_bin1402> in cluster <slac> Done

Job <4FGL_J0339.5-0146_daily_bin1402> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Aug 18 22:14:38 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 22:14:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 22:14:39 2021
Terminated at Wed Aug 18 22:29:28 2021
Results reported at Wed Aug 18 22:29:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0339.5-0146_daily_bin1402 54.8771 -1.7769 602726401 602985601 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 :                                   782.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

