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


Performing analysis on: 4FGL_J0339.5-0146_daily_bin408
RA = 54.8771, Dec = -1.7769
tmin = 345081601, tmax = 345340801
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='727893', job_status='RUN', time_executed='2021-08-18 21:41:04.552251', time_epoch_executed='1629348064.55' WHERE source_name='4FGL J0339.5-0146' and cadence='daily' and bin_id='408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727893

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727893/ft1_4FGL_J0339.5-0146_daily_bin408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727893/ft2_4FGL_J0339.5-0146_daily_bin408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727893/ft1_4FGL_J0339.5-0146_daily_bin408.fits outfile=/scratch/kocevski/727893/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin408.fits ra=54.8771 dec=-1.7769 rad=12.0 tmin=345081601.0 tmax=345340801.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.49
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/727893/ft2_4FGL_J0339.5-0146_daily_bin408.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/727893/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin408.fits evtable="EVENTS" outfile="/scratch/kocevski/727893/ft1_filtered_4FGL_J0339.5-0146_daily_bin408.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727893/ft1_filtered_4FGL_J0339.5-0146_daily_bin408.fits" evtable="EVENTS" scfile=/scratch/kocevski/727893/ft2_4FGL_J0339.5-0146_daily_bin408.fits sctable="SC_DATA" outfile=/scratch/kocevski/727893/ltcube_345081601_345340801_4FGL_J0339.5-0146_daily_bin408.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/727893/ft2_4FGL_J0339.5-0146_daily_bin408.fits
.....................!
real 12.08
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727893/ft1_filtered_4FGL_J0339.5-0146_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/727893/ft2_4FGL_J0339.5-0146_daily_bin408.fits sctable="SC_DATA" expcube=/scratch/kocevski/727893/ltcube_345081601_345340801_4FGL_J0339.5-0146_daily_bin408.fits outfile=/scratch/kocevski/727893/expmap_345081601_345340801_4FGL_J0339.5-0146_daily_bin408.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/727893/ltcube_345081601_345340801_4FGL_J0339.5-0146_daily_bin408.fits
.....................!
real 191.60
user 185.76
sys 5.42

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/727893/ft1_filtered_4FGL_J0339.5-0146_daily_bin408.fits scfile=/scratch/kocevski/727893/ft2_4FGL_J0339.5-0146_daily_bin408.fits outfile=/scratch/kocevski/727893/cmap_345081601_345340801_4FGL_J0339.5-0146_daily_bin408.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727893/ft1_filtered_4FGL_J0339.5-0146_daily_bin408.fits scfile=/scratch/kocevski/727893/ft2_4FGL_J0339.5-0146_daily_bin408.fits outfile=/scratch/kocevski/727893/cmap_HighResolution_345081601_345340801_4FGL_J0339.5-0146_daily_bin408.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/727893/ft1_filtered_4FGL_J0339.5-0146_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/727893/ft2_4FGL_J0339.5-0146_daily_bin408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/727893/Model_4FGL_J0339.5-0146_daily_bin408.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/727893/ft1_filtered_4FGL_J0339.5-0146_daily_bin408.fits.....................!
real 108.29
user 106.81
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9600       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9503       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8110       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.886       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11624E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.398       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.5358       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1340       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1312       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .63287       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0909       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=   9054.845     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1840 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9589        7.4634       -.16640E-05   -.13256E-02
   2  Prefactor     2.9505        2.6936       -.33442E-07    .26480E-03
   3  Prefactor     .10000E-03    11.234       -.37804E-05** at limit **
   4  Prefactor     .10000E-03    11.454       -.42224E-05** at limit **
   5  Prefactor     3.8101        3.8507        .23134E-05   -.36940E-03
   6  Prefactor     .10000E-03    16.819        .19555E-05** at limit **
   7  Prefactor     .10000E-03    9.2499        .36531E-05** at limit **
   8  norm          3.3945        1.4044       -.18198E-06   -.92983E-04
   9  Prefactor     44.830        40.648       -.68073E-04    .54667E-05
  10  Prefactor     .10000E-03    8.2205       -.21562E-05** at limit **
  11  norm          .10000E-03    9.2345        .39816E-05** at limit **
  12  Prefactor     .10000E-03    20.762        .24727E-05** at limit **
  13  norm          10.398        4.5841       -.61817E-06   -.56473E-04
  14  norm          .10000E-03    3.0925       -.53956E-07** at limit **
  15  norm          9.5364        16.616        .38006E-06   -.11894E-04
  16  norm          2.1340        1.0767       -.28296E-07   -.19569E-04
  17  Prefactor     3.1314        1.8883       -.71140E-07   -.21239E-03
  18  Normalizat    .63315        .16946        .16385E-05    .15157E-03
  19  Prefactor     1.0908        .82986E-01    .29740E-05   -.51188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95888
  Prefactor  = 2.95047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.81011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.39446
  Prefactor  = 44.8303
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.398
  norm       = 0.0001
  norm       = 9.53644
  norm       = 2.13398
  Prefactor  = 3.13139
  Normalizat = 0.633153
  Prefactor  = 1.09081
 **********
 **   18 **HESSE 
 **********

 FCN=   9054.845     FROM HESSE     STATUS=OK           268 CALLS     2108 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9589        7.4811        .76034E-03   -1.5180    
   2  Prefactor     2.9505        2.6993        .14552E-03   -1.5364    
   3  Prefactor     .10000E-03    11.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8101        3.8436        .18040E-03   -1.5318    
   6  Prefactor     .10000E-03    17.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3945        1.4020        .69089E-04   -1.5339    
   9  Prefactor     44.830        40.682        .29921E-03   -1.4368    
  10  Prefactor     .10000E-03    8.2332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.2762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.398        4.5824        .12426E-03   -1.5063    
  14  norm          .10000E-03    3.1085        .16342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.5364        16.610        .12977E-03   -1.5090    
  16  norm          2.1340        1.0754        .28220E-04   -1.5416    
  17  Prefactor     3.1314        1.8814        .95528E-04   -1.5354    
  18  Normalizat    .63315        .18151        .40500E-03   -1.0659    
  19  Prefactor     1.0908        .89527E-01    .15678E-03   -.89761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61211e-09
Minuit parameter uncertainties:
  1  7.48206
  2  2.69938
  3  4.81668e-05
  4  3.38948e-05
  5  3.84385
  6  5.87141e-05
  7  0.000126998
  8  1.40202
  9  40.7068
  10  0.000293962
  11  2.50415e-05
  12  3.90971e-05
  13  4.58259
  14  8.41301e-06
  15  16.6184
  16  1.07538
  17  1.88144
  18  0.181677
  19  0.0895391
Done.

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

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  3.394e+00  1.402e+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.091e+00  8.954e-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.332e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.14
Ra Dec: 54.877 -1.777
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 4.15e-08
Energy Flux (Fixed Index): 3.62e-05 +/- 1.49e-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) = 9054.64769992
delta logL = 0.197322748434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9054.63992461
delta logL = 0.2050980562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2566       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9256       1.0000          .0000       5.0000    
     3 'Normalizat'    .65653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0860       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=   9054.640     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2566        1.6412        .56106E-02    .15657E-02
   2  alpha         1.9256        .40625        .36080       -.59147E-04
   3  Normalizat    .65654        .16626        .89880E-01    .45285E-04
   4  Prefactor     1.0860        .82151E-01    .38145E-01   -.92165E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25655
  alpha      = 1.92559
  Normalizat = 0.656543
  Prefactor  = 1.08599
 **********
 **   18 **HESSE 
 **********

 FCN=   9054.640     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2566        1.5385        .71311E-04   -1.5347    
   2  alpha         1.9256        .46175        .13107E-01   -.23184    
   3  Normalizat    .65654        .18109        .39824E-03   -1.0563    
   4  Prefactor     1.0860        .88831E-01    .15710E-03   -.89916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77299e-09
Minuit parameter uncertainties:
  1  1.5385
  2  0.464567
  3  0.181255
  4  0.0888427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727893': 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) = 9054.63992461
delta logL = 0.205098058479

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  3.257e+00  1.539e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  1.926e+00  4.646e-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.086e+00  8.884e-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.565e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.46
Ra Dec: 54.877 -1.777
Photon Index (Free Index): 1.93 +/- 0.46
Photon Flux (Free Index): 7.64e-08 +/- 4.92e-08
Energy Flux (Free Index): 4.37e-05 +/- 2.40e-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/727893/cmap_HighResolution_345081601_345340801_4FGL_J0339.5-0146_daily_bin408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='4.37e-05', photon_flux_error='4.15e-08', dlogl='2.05e-01', energy_flux='3.62e-05', photon_flux2='7.64e-08', job_status='DONE', time_completed='2021-08-18 21:50:50.312808', photon_index_error2='0.46', photon_index2='1.93', ts='12.14', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='0.63', time_epoch_completed='1629348650.31', return_code='0', job_id='727893', GAL2='1.09', EG2='0.66', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.92e-08', ts2='12.46', photon_index='2.24' WHERE bin_id='408' AND source_name='4FGL J0339.5-0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:50:50 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0339.5-0146_daily_bin408 54.8771 -1.7769 345081601 345340801 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 :                                   585.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             323.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            701 sec.

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

