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


Performing analysis on: 4FGL_J0339.5-0146_daily_bin375
RA = 54.8771, Dec = -1.7769
tmin = 336528001, tmax = 336787201
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='727841', job_status='RUN', time_executed='2021-08-18 21:42:09.446296', time_epoch_executed='1629348129.45' WHERE source_name='4FGL J0339.5-0146' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727841

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727841/ft1_4FGL_J0339.5-0146_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727841/ft2_4FGL_J0339.5-0146_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727841/ft1_4FGL_J0339.5-0146_daily_bin375.fits outfile=/scratch/kocevski/727841/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin375.fits ra=54.8771 dec=-1.7769 rad=12.0 tmin=336528001.0 tmax=336787201.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 13.41
user 5.51
sys 7.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/727841/ft2_4FGL_J0339.5-0146_daily_bin375.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/727841/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/727841/ft1_filtered_4FGL_J0339.5-0146_daily_bin375.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 8.12
user 0.33
sys 7.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727841/ft1_filtered_4FGL_J0339.5-0146_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/727841/ft2_4FGL_J0339.5-0146_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/727841/ltcube_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.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/727841/ft2_4FGL_J0339.5-0146_daily_bin375.fits
.....................!
real 20.61
user 11.71
sys 8.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727841/ft1_filtered_4FGL_J0339.5-0146_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/727841/ft2_4FGL_J0339.5-0146_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/727841/ltcube_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.fits outfile=/scratch/kocevski/727841/expmap_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.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/727841/ltcube_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.fits
.....................!
real 200.15
user 184.98
sys 14.79

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/727841/ft1_filtered_4FGL_J0339.5-0146_daily_bin375.fits scfile=/scratch/kocevski/727841/ft2_4FGL_J0339.5-0146_daily_bin375.fits outfile=/scratch/kocevski/727841/cmap_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.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 7.94
user 0.37
sys 7.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727841/ft1_filtered_4FGL_J0339.5-0146_daily_bin375.fits scfile=/scratch/kocevski/727841/ft2_4FGL_J0339.5-0146_daily_bin375.fits outfile=/scratch/kocevski/727841/cmap_HighResolution_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.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 7.25
user 0.38
sys 6.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/727841/ft1_filtered_4FGL_J0339.5-0146_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/727841/ft2_4FGL_J0339.5-0146_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/727841/Model_4FGL_J0339.5-0146_daily_bin375.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/727841/ft1_filtered_4FGL_J0339.5-0146_daily_bin375.fits.....................!
real 106.53
user 94.01
sys 11.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/727841/ft1_filtered_4FGL_J0339.5-0146_daily_bin375.fits', '/scratch/kocevski/727841/ft2_4FGL_J0339.5-0146_daily_bin375.fits', expMap='/scratch/kocevski/727841/expmap_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.fits', expCube='/scratch/kocevski/727841/ltcube_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/727841/Model_4FGL_J0339.5-0146_daily_bin375.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/727841/ft1_filtered_4FGL_J0339.5-0146_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/727841/ft2_4FGL_J0339.5-0146_daily_bin375.fits
Exposure map: /scratch/kocevski/727841/expmap_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.fits
Exposure cube: /scratch/kocevski/727841/ltcube_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/727841/Model_4FGL_J0339.5-0146_daily_bin375.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7688.92893664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1075       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.921       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9767       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.406       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2827       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1228       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95396       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .65566       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0210       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=   7688.774     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1697 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.810        .12274E-05** at limit **
   2  Prefactor     1.1057        3.6601       -.14290E-05   -.12544E-02
   3  Prefactor     .10000E-03    16.720       -.13331E-04** at limit **
   4  Prefactor     .27425        16.984        .16661E-05   -.86231E-04
   5  Prefactor     .10000E-03    1.8007       -.27266E-07** at limit **
   6  Prefactor     .10000E-03    11.552       -.31548E-05** at limit **
   7  Prefactor     15.924        13.162        .24706E-05   -.44307E-04
   8  norm          3.9769        1.6550        .27626E-07   -.23858E-03
   9  Prefactor     47.123        41.261        .46700E-05   -.63448E-04
  10  Prefactor     .10000E-03    16.112        .13778E-04** at limit **
  11  norm          16.405        13.424        .84765E-06    .57053E-05
  12  Prefactor     .10000E-03    10.966        .19114E-05** at limit **
  13  norm          .10000E-03    2.3790        .32603E-07** at limit **
  14  norm          .10000E-03    7.0656        .79932E-08** at limit **
  15  norm          4.2848        24.482       -.34620E-05   -.38065E-04
  16  norm          3.1230        1.3842        .81446E-07   -.16327E-03
  17  Prefactor     .95414        2.0307       -.28546E-06   -.12982E-02
  18  Normalizat    .65551        .18177       -.17934E-05   -.20759E-04
  19  Prefactor     1.0210        .85647E-01    .21445E-06   -.11043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.10572
  Prefactor  = 0.0001
  Prefactor  = 0.274252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.924
  norm       = 3.97686
  Prefactor  = 47.1231
  Prefactor  = 0.0001
  norm       = 16.4055
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.28481
  norm       = 3.12302
  Prefactor  = 0.954136
  Normalizat = 0.655512
  Prefactor  = 1.02101
 **********
 **   18 **HESSE 
 **********

 FCN=   7688.774     FROM HESSE     STATUS=OK           276 CALLS     1973 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1057        3.7094        .30016E-03   -1.5498    
   3  Prefactor     .10000E-03    16.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27425        22.632        .95833E-01   -1.5603    
   5  Prefactor     .10000E-03    1.8254        .11487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.924        13.188        .10038E-03   -1.4910    
   8  norm          3.9769        1.6525        .68864E-04   -1.5309    
   9  Prefactor     47.123        41.060        .58419E-04   -1.4334    
  10  Prefactor     .10000E-03    15.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.405        13.423        .98883E-04   -1.4898    
  12  Prefactor     .10000E-03    10.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4106        .13195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.1881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2848        23.758        .19468E-03   -1.5294    
  16  norm          3.1230        1.3610        .62522E-04   -1.5355    
  17  Prefactor     .95414        1.9521        .16127E-03   -1.5513    
  18  Normalizat    .65551        .19814        .38151E-03   -1.0568    
  19  Prefactor     1.0210        .94469E-01    .15363E-03   -.92032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86925e-09
Minuit parameter uncertainties:
  1  2.39761e-05
  2  3.71012
  3  5.03735e-05
  4  4.98378
  5  2.63777e-06
  6  2.10879e-05
  7  13.1907
  8  1.65253
  9  41.0842
  10  9.94945e-05
  11  13.4251
  12  8.25688e-06
  13  1.58628e-06
  14  9.59705e-06
  15  20.191
  16  1.36102
  17  1.95221
  18  0.19836
  19  0.0944841
Done.

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

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  3.977e+00  1.653e+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.021e+00  9.448e-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:  6.555e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.43
Ra Dec: 54.877 -1.777
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 4.89e-08
Energy Flux (Fixed Index): 4.24e-05 +/- 1.76e-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) = 7688.75378328
delta logL = 0.0200734318114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7688.75279765
delta logL = 0.0210590611887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9234       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3146       1.0000          .0000       5.0000    
     3 'Normalizat'    .65027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0221       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=   7688.753     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      243 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9234        1.6519        .67439E-04    .21399E-02
   2  alpha         2.3147        .35588        .10940E-01    .13498E-03
   3  Normalizat    .65028        .18760        .38290E-03    .62441E-04
   4  Prefactor     1.0221        .92025E-01    .15355E-03    .59677E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.92336
  alpha      = 2.31466
  Normalizat = 0.650278
  Prefactor  = 1.02211
 **********
 **   18 **HESSE 
 **********

 FCN=   7688.753     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9234        1.6421        .26976E-05   -1.5312    
   2  alpha         2.3147        .35367        .43762E-03   -.74206E-01
   3  Normalizat    .65028        .18768        .15316E-04   -1.0589    
   4  Prefactor     1.0221        .92049E-01    .61418E-05   -.91996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99085e-10
Minuit parameter uncertainties:
  1  1.64215
  2  0.354866
  3  0.187863
  4  0.0920636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727841': 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) = 7688.75279765
delta logL = 0.0210590618544

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  3.923e+00  1.642e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  2.315e+00  3.549e-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.022e+00  9.206e-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:  6.503e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.45
Ra Dec: 54.877 -1.777
Photon Index (Free Index): 2.31 +/- 0.35
Photon Flux (Free Index): 1.23e-07 +/- 5.73e-08
Energy Flux (Free Index): 4.10e-05 +/- 1.80e-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/727841/cmap_HighResolution_336528001_336787201_4FGL_J0339.5-0146_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='4.10e-05', photon_flux_error='4.89e-08', dlogl='2.11e-02', energy_flux='4.24e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-08-18 21:53:16.960778', photon_index_error2='0.35', photon_index2='2.31', ts='11.43', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='0.66', time_epoch_completed='1629348796.96', return_code='0', job_id='727841', GAL2='1.02', EG2='0.65', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='5.73e-08', ts2='11.45', photon_index='2.24' WHERE bin_id='375' AND source_name='4FGL J0339.5-0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:53:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 727841: <4FGL_J0339.5-0146_daily_bin375> in cluster <slac> Done

Job <4FGL_J0339.5-0146_daily_bin375> 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) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:39:11 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:11 2021
Terminated at Wed Aug 18 21:53:21 2021
Results reported at Wed Aug 18 21:53:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0339.5-0146_daily_bin375 54.8771 -1.7769 336528001 336787201 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.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            854 sec.

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

