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


Performing analysis on: 4FGL_J0339.5-0146_daily_bin256
RA = 54.8771, Dec = -1.7769
tmin = 305683201, tmax = 305942401
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='726499', job_status='RUN', time_executed='2021-08-18 21:37:50.631988', time_epoch_executed='1629347870.63' WHERE source_name='4FGL J0339.5-0146' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726499

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726499/ft1_4FGL_J0339.5-0146_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726499/ft2_4FGL_J0339.5-0146_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726499/ft1_4FGL_J0339.5-0146_daily_bin256.fits outfile=/scratch/kocevski/726499/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin256.fits ra=54.8771 dec=-1.7769 rad=12.0 tmin=305683201.0 tmax=305942401.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 4.73
user 4.46
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/726499/ft1_filtered_4FGL_J0339.5-0146_daily_bin256.fits" evtable="EVENTS" scfile=/scratch/kocevski/726499/ft2_4FGL_J0339.5-0146_daily_bin256.fits sctable="SC_DATA" outfile=/scratch/kocevski/726499/ltcube_305683201_305942401_4FGL_J0339.5-0146_daily_bin256.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/726499/ft2_4FGL_J0339.5-0146_daily_bin256.fits
.....................!
real 11.95
user 11.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726499/ft1_filtered_4FGL_J0339.5-0146_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/726499/ft2_4FGL_J0339.5-0146_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/726499/ltcube_305683201_305942401_4FGL_J0339.5-0146_daily_bin256.fits outfile=/scratch/kocevski/726499/expmap_305683201_305942401_4FGL_J0339.5-0146_daily_bin256.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/726499/ltcube_305683201_305942401_4FGL_J0339.5-0146_daily_bin256.fits
.....................!
real 191.50
user 185.73
sys 5.40

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/726499/ft1_filtered_4FGL_J0339.5-0146_daily_bin256.fits scfile=/scratch/kocevski/726499/ft2_4FGL_J0339.5-0146_daily_bin256.fits outfile=/scratch/kocevski/726499/cmap_305683201_305942401_4FGL_J0339.5-0146_daily_bin256.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726499/ft1_filtered_4FGL_J0339.5-0146_daily_bin256.fits scfile=/scratch/kocevski/726499/ft2_4FGL_J0339.5-0146_daily_bin256.fits outfile=/scratch/kocevski/726499/cmap_HighResolution_305683201_305942401_4FGL_J0339.5-0146_daily_bin256.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.65
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/726499/ft1_filtered_4FGL_J0339.5-0146_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/726499/ft2_4FGL_J0339.5-0146_daily_bin256.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/726499/Model_4FGL_J0339.5-0146_daily_bin256.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/726499/ft1_filtered_4FGL_J0339.5-0146_daily_bin256.fits.....................!
real 82.63
user 81.11
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.3992       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65065       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.930       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7389       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6488       1.0000         .10000E-03   10000.    
    11 'norm      '    10.586       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50349E-02   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      '    9.8720       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4633       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1325       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89952       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=   6248.476     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1641 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7357        .90712E-02** at limit **
   2  Prefactor     7.3990        5.2252        .36861E-02    .76010E-04
   3  Prefactor     .10001E-03    24.246        .90712E-02** at limit **
   4  Prefactor     .10000E-03    9.1900        .90712E-02** at limit **
   5  Prefactor     .67172        3.7132        .79750E-01    .43219E-03
   6  Prefactor     10.930        13.165        .30297E-02   -.28095E-04
   7  Prefactor     .10000E-03    4.4665        .90712E-02** at limit **
   8  norm          6.7391        2.2169        .38642E-02   -.18259E-03
   9  Prefactor     .10000E-03    34.909        .90712E-02** at limit **
  10  Prefactor     9.6514        15.433        .32252E-02    .32648E-03
  11  norm          10.586        14.263        .30786E-02    .78325E-04
  12  Prefactor     .10028E-03    151.58        .95964E-02** at limit **
  13  norm          .10000E-03    1.6766        .90712E-02** at limit **
  14  norm          .10002E-03    24.667        .90712E-02** at limit **
  15  norm          9.7658        25.787        .31884E-02   -.52723E-03
  16  norm          .10000E-03    .36052        .90712E-02** at limit **
  17  Prefactor     1.4640        1.4369        .88895E-02   -.20691E-03
  18  Normalizat    1.1324        .21558        .76329E-01   -.19399E-04
  19  Prefactor     .89947        .94845E-01    .44999E-01   -.43351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.39896
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.671718
  Prefactor  = 10.9299
  Prefactor  = 0.0001
  norm       = 6.73914
  Prefactor  = 0.0001
  Prefactor  = 9.65138
  norm       = 10.5864
  Prefactor  = 0.000100283
  norm       = 0.0001
  norm       = 0.000100017
  norm       = 9.76579
  norm       = 0.0001
  Prefactor  = 1.46401
  Normalizat = 1.13242
  Prefactor  = 0.899473
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.476     FROM HESSE     STATUS=OK           268 CALLS     1909 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3990        5.2257        .14744E-03   -1.5164    
   3  Prefactor     .10001E-03    24.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .67172        12.630        .28958E-02   -1.5544    
   6  Prefactor     10.930        13.177        .12119E-03   -1.5047    
   7  Prefactor     .10000E-03    4.4737        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7391        2.2220        .64117E-04   -1.5189    
   9  Prefactor     .10000E-03    34.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6514        15.434        .12901E-03   -1.5087    
  11  norm          10.586        14.261        .12314E-03   -1.5057    
  12  Prefactor     .10028E-03    157.77        .38386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6903        .99950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    25.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.7658        25.730        .12754E-03   -1.5083    
  16  norm          .10000E-03    .37645        .92636E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4640        1.4315        .90287E-04   -1.5466    
  18  Normalizat    1.1324        .24003        .33783E-03   -.88718    
  19  Prefactor     .89947        .10649        .16746E-03   -.96160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30272e-08
Minuit parameter uncertainties:
  1  1.28578e-05
  2  5.22605
  3  0.0011611
  4  8.24076e-05
  5  5.82632
  6  13.1809
  7  5.10853e-05
  8  2.22205
  9  0.00012431
  10  15.4403
  11  14.2659
  12  0.0134052
  13  1.22443e-06
  14  0.00131029
  15  25.759
  16  4.25534e-06
  17  1.43152
  18  0.240264
  19  0.106519
Done.

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

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  6.739e+00  2.222e+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:  8.995e-01  1.065e-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.132e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.02
Ra Dec: 54.877 -1.777
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.99e-07 +/- 6.57e-08
Energy Flux (Fixed Index): 7.19e-05 +/- 2.37e-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) = 6248.37185565
delta logL = 0.104200817326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.3692133
delta logL = 0.106843171249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7026       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4140       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90630       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=   6248.369     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      204 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7026        9.5996        .38748E-02   -.50517E-03
   2  alpha         2.4140        1.4501        .23925        .25960E-04
   3  Normalizat    1.1015        .24618        .77175E-01    .78746E-04
   4  Prefactor     .90630        .10074        .45085E-01    .14843E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.7026
  alpha      = 2.41397
  Normalizat = 1.10154
  Prefactor  = 0.9063
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.369     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7026        2.1570        .60936E-04   -1.5190    
   2  alpha         2.4140        .36990        .98540E-02   -.34417E-01
   3  Normalizat    1.1015        .24570        .34159E-03   -.89702    
   4  Prefactor     .90630        .10617        .16685E-03   -.95921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08289e-11
Minuit parameter uncertainties:
  1  2.15701
  2  0.371267
  3  0.245951
  4  0.106191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726499': 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) = 6248.3692133
delta logL = 0.106843171408

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  6.703e+00  2.157e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  2.414e+00  3.713e-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:  9.063e-01  1.062e-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.102e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.30
Ra Dec: 54.877 -1.777
Photon Index (Free Index): 2.41 +/- 0.37
Photon Flux (Free Index): 2.31e-07 +/- 9.69e-08
Energy Flux (Free Index): 6.93e-05 +/- 2.24e-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/726499/cmap_HighResolution_305683201_305942401_4FGL_J0339.5-0146_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-07', energy_flux2='6.93e-05', photon_flux_error='6.57e-08', dlogl='1.07e-01', energy_flux='7.19e-05', photon_flux2='2.31e-07', job_status='DONE', time_completed='2021-08-18 21:46:14.312973', photon_index_error2='0.37', photon_index2='2.41', ts='30.02', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='1.13', time_epoch_completed='1629348374.31', return_code='0', job_id='726499', GAL2='0.91', EG2='1.10', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='9.69e-08', ts2='30.30', photon_index='2.24' WHERE bin_id='256' AND source_name='4FGL J0339.5-0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:46:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 726499: <4FGL_J0339.5-0146_daily_bin256> in cluster <slac> Done

Job <4FGL_J0339.5-0146_daily_bin256> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Aug 18 21:33:50 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:37:36 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:37:36 2021
Terminated at Wed Aug 18 21:46:14 2021
Results reported at Wed Aug 18 21:46:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0339.5-0146_daily_bin256 54.8771 -1.7769 305683201 305942401 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 :                                   499.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             372.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            744 sec.

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

