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


Performing analysis on: 4FGL_J0339.5-0146_daily_bin825
RA = 54.8771, Dec = -1.7769
tmin = 453168001, tmax = 453427201
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='732284', job_status='RUN', time_executed='2021-08-18 21:55:19.638955', time_epoch_executed='1629348919.64' WHERE source_name='4FGL J0339.5-0146' and cadence='daily' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732284

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732284/ft1_4FGL_J0339.5-0146_daily_bin825.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732284/ft2_4FGL_J0339.5-0146_daily_bin825.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732284/ft1_4FGL_J0339.5-0146_daily_bin825.fits outfile=/scratch/kocevski/732284/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin825.fits ra=54.8771 dec=-1.7769 rad=12.0 tmin=453168001.0 tmax=453427201.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.48
user 3.41
sys 1.06

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/732284/ft1_filtered_4FGL_J0339.5-0146_daily_bin825.fits" evtable="EVENTS" scfile=/scratch/kocevski/732284/ft2_4FGL_J0339.5-0146_daily_bin825.fits sctable="SC_DATA" outfile=/scratch/kocevski/732284/ltcube_453168001_453427201_4FGL_J0339.5-0146_daily_bin825.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/732284/ft2_4FGL_J0339.5-0146_daily_bin825.fits
.....................!
real 12.98
user 11.65
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732284/ft1_filtered_4FGL_J0339.5-0146_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/732284/ft2_4FGL_J0339.5-0146_daily_bin825.fits sctable="SC_DATA" expcube=/scratch/kocevski/732284/ltcube_453168001_453427201_4FGL_J0339.5-0146_daily_bin825.fits outfile=/scratch/kocevski/732284/expmap_453168001_453427201_4FGL_J0339.5-0146_daily_bin825.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/732284/ltcube_453168001_453427201_4FGL_J0339.5-0146_daily_bin825.fits
.....................!
real 191.85
user 186.49
sys 5.03

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 137 point sources and 0 extended sources

Setting source of interest to:
4FGL J0339.5-0146 @ 54.8771 -1.7769

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/732284/ft1_filtered_4FGL_J0339.5-0146_daily_bin825.fits scfile=/scratch/kocevski/732284/ft2_4FGL_J0339.5-0146_daily_bin825.fits outfile=/scratch/kocevski/732284/cmap_453168001_453427201_4FGL_J0339.5-0146_daily_bin825.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=54.8771 yref=-1.7769 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.41
user 0.37
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/732284/ft1_filtered_4FGL_J0339.5-0146_daily_bin825.fits scfile=/scratch/kocevski/732284/ft2_4FGL_J0339.5-0146_daily_bin825.fits outfile=/scratch/kocevski/732284/cmap_HighResolution_453168001_453427201_4FGL_J0339.5-0146_daily_bin825.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=54.8771 yref=-1.7769 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.40
user 0.39
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/732284/ft1_filtered_4FGL_J0339.5-0146_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/732284/ft2_4FGL_J0339.5-0146_daily_bin825.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/732284/Model_4FGL_J0339.5-0146_daily_bin825.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/732284/ft1_filtered_4FGL_J0339.5-0146_daily_bin825.fits.....................!
real 80.85
user 78.34
sys 2.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6420       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8084       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51303       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.1074       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.444       1.0000         .10000E-03   10000.    
    11 'norm      '    15.709       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .39660       1.0000         .10000E-03   10000.    
    15 'norm      '    35.956       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0731       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0186       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=   5924.385     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1913 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6329        18.154       -.80154E-05   -.47680E-04
   2  Prefactor     .10000E-03    2.3765        .15713E-06** at limit **
   3  Prefactor     8.8097        12.093        .26354E-05    .62017E-06
   4  Prefactor     .10000E-03    15.633       -.23792E-06** at limit **
   5  Prefactor     .10000E-03    3.9916       -.11761E-06** at limit **
   6  Prefactor     .58474        11.070       -.17734E-05   -.17204E-04
   7  Prefactor     .10000E-03    6.8806       -.47901E-06** at limit **
   8  norm          9.1070        2.5593       -.61863E-07    .13832E-03
   9  Prefactor     .10000E-03    25.481       -.63441E-06** at limit **
  10  Prefactor     26.451        22.001       -.31588E-05   -.15743E-05
  11  norm          15.714        23.038        .17817E-05    .83577E-05
  12  Prefactor     .10120E-03    19.699        .42070E-05** at limit **
  13  norm          .10000E-03    2.2649        .74907E-07** at limit **
  14  norm          .30637        13.251       -.20030E-05    .90291E-04
  15  norm          35.956        32.293       -.67367E-06   -.55352E-04
  16  norm          .10000E-03    .46529       -.62221E-07** at limit **
  17  Prefactor     .10000E-03    .98131       -.15267E-06** at limit **
  18  Normalizat    1.0736        .25034        .26336E-05    .14454E-03
  19  Prefactor     1.0183        .10895        .86280E-07    .30269E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.63288
  Prefactor  = 0.0001
  Prefactor  = 8.8097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.584737
  Prefactor  = 0.0001
  norm       = 9.10697
  Prefactor  = 0.0001
  Prefactor  = 26.4508
  norm       = 15.7138
  Prefactor  = 0.000101204
  norm       = 0.0001
  norm       = 0.306367
  norm       = 35.9559
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07357
  Prefactor  = 1.01827
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.385     FROM HESSE     STATUS=OK           274 CALLS     2187 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6329        18.861        .18680E-03   -1.5277    
   2  Prefactor     .10000E-03    2.3842        .11584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8097        12.017        .13505E-03   -1.5114    
   4  Prefactor     .10000E-03    15.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0298        .15015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .58474        87.999        .48343E-02   -1.5555    
   7  Prefactor     .10000E-03    6.8959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.1070        2.5665        .62121E-04   -1.5104    
   9  Prefactor     .10000E-03    25.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.451        22.061        .77902E-04   -1.4679    
  11  norm          15.714        23.019        .10105E-03   -1.4915    
  12  Prefactor     .10120E-03    102.56        .62936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2806        .11308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30637        220.32        .52613E-02   -1.5597    
  15  norm          35.956        32.185        .66834E-04   -1.4508    
  16  norm          .10000E-03    .62618        .10196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .99671        .74305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0736        .28940        .36606E-03   -.90605    
  19  Prefactor     1.0183        .12451        .17024E-03   -.92123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80168e-08
Minuit parameter uncertainties:
  1  18.7056
  2  4.60089e-06
  3  12.0202
  4  9.9987e-05
  5  1.94721e-06
  6  14.3669
  7  6.57583e-06
  8  2.56657
  9  1.36967e-05
  10  22.0673
  11  23.0323
  12  0.0222651
  13  3.26888e-06
  14  16.4901
  15  32.2
  16  3.46523e-06
  17  1.50426e-06
  18  0.289828
  19  0.124542
Done.

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

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  9.107e+00  2.567e+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.018e+00  1.245e-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.074e+00  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.61
Ra Dec: 54.877 -1.777
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.69e-07 +/- 7.59e-08
Energy Flux (Fixed Index): 9.71e-05 +/- 2.74e-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) = 5924.22139001
delta logL = 0.163826280654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5924.21346974
delta logL = 0.171746551422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2508       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0738       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0107       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=   5924.213     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2511        2.8995        .32942E-02    .69207E-04
   2  alpha         2.0737        .29769        .19088       -.60744E-05
   3  Normalizat    1.1041        .23944        .81745E-01    .16998E-04
   4  Prefactor     1.0107        .10743        .43231E-01   -.82526E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 9.25109
  alpha      = 2.07368
  Normalizat = 1.10408
  Prefactor  = 1.01065
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.213     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2511        2.6534        .64191E-04   -1.5100    
   2  alpha         2.0737        .28315        .81054E-02   -.17136    
   3  Normalizat    1.1041        .27097        .36189E-03   -.89621    
   4  Prefactor     1.0107        .12127        .17082E-03   -.92375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9753e-13
Minuit parameter uncertainties:
  1  2.65339
  2  0.283778
  3  0.271309
  4  0.1213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732284': 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) = 5924.2134697
delta logL = 0.171746592587

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  9.251e+00  2.653e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  2.074e+00  2.838e-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.011e+00  1.213e-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.104e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.83
Ra Dec: 54.877 -1.777
Photon Index (Free Index): 2.07 +/- 0.28
Photon Flux (Free Index): 2.40e-07 +/- 8.54e-08
Energy Flux (Free Index): 1.08e-04 +/- 3.82e-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/732284/cmap_HighResolution_453168001_453427201_4FGL_J0339.5-0146_daily_bin825.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-07', energy_flux2='1.08e-04', photon_flux_error='7.59e-08', dlogl='1.72e-01', energy_flux='9.71e-05', photon_flux2='2.40e-07', job_status='DONE', time_completed='2021-08-18 22:03:55.205613', photon_index_error2='0.28', photon_index2='2.07', ts='33.61', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.82e-05', EG='1.07', time_epoch_completed='1629349435.21', return_code='0', job_id='732284', GAL2='1.01', EG2='1.10', return_code2='0', energy_flux_error='2.74e-05', photon_flux_error2='8.54e-08', ts2='33.83', photon_index='2.24' WHERE bin_id='825' AND source_name='4FGL J0339.5-0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 22:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 732284: <4FGL_J0339.5-0146_daily_bin825> in cluster <slac> Done

Job <4FGL_J0339.5-0146_daily_bin825> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Aug 18 21:54:24 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:54:26 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:54:26 2021
Terminated at Wed Aug 18 22:03:56 2021
Results reported at Wed Aug 18 22:03:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0339.5-0146_daily_bin825 54.8771 -1.7769 453168001 453427201 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 :                                   528.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             337.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            572 sec.

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

