/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: Dan/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 48 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 proviesDone.


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1256
RA = 54.6355, Dec = 13.0419
tmin = 564883201, tmax = 565142401
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 sDone.


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1256
RA = 54.6355, Dec = 13.0419
tmin = 564883201, tmax = 565142401
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='707963', job_status='RUN', time_executed='2021-08-18 20:44:05.822731', time_epoch_executed='1629344645.82' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707963/ft1_4FGL_J0338.5+1302_daily_bin1256.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707963/ft1_4FGL_J0338.5+1302_daily_bin1256.fits outfile=/scratch/kocevski/707963/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1256.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=564883201.0 tmax=565142401.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.12
user 3.31
sys 0.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.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/707963/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1256.fits evtable="EVENTS" outfile="/scratch/kocevski/707963/ft1_filtered_4FGL_J0338.5+1302_daily_bin1256.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 9.89
user 0.32
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707963/ft1_filtered_4FGL_J0338.5+1302_daily_bin1256.fits" evtable="EVENTS" scfile=/scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits sctable="SC_DATA" outfile=/scratch/kocevski/707963/ltcube_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.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/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits
.....................!
real 17.24
user 11.61
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707963/ft1_filtered_4FGL_J0338.5+1302_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits sctable="SC_DATA" expcube=/scratch/kocevski/707963/ltcube_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.fits outfile=/scratch/kocevski/707963/expmap_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.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/707963/ltcube_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.fits
.....................!
real 223.89
user 185.43
sys 4.57

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J0338.5+1302 @ 54.6355 13.0419

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/707963/ft1_filtered_4FGL_J0338.5+1302_daily_bin1256.fits scfile=/scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits outfile=/scratch/kocevski/707963/cmap_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.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.6355 yref=13.0419 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 2.83
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707963/ft1_filtered_4FGL_J0338.5+1302_daily_bin1256.fits scfile=/scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits outfile=/scratch/kocevski/707963/cmap_HighResolution_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.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.6355 yref=13.0419 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.90
user 0.38
sys 0.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707963/ft1_filtered_4FGL_J0338.5+1302_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707963/Model_4FGL_J0338.5+1302_daily_bin1256.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/707963/ft1_filtered_4FGL_J0338.5+1302_daily_bin1256.fits.....................!
real 176.89
user 159.20
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/707963/ft1_filtered_4FGL_J0338.5+1302_daily_bin1256.fits', '/scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits', expMap='/scratch/kocevski/707963/expmap_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.fits', expCube='/scratch/kocevski/707963/ltcube_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/707963/Model_4FGL_J0338.5+1302_daily_bin1256.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.5+1302'

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.629e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.536e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.650e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  3.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/707963/ft1_filtered_4FGL_J0338.5+1302_daily_bin1256.fits
Spacecraft file(s): /scratch/kocevski/707963/ft2_4FGL_J0338.5+1302_daily_bin1256.fits
Exposure map: /scratch/kocevski/707963/expmap_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.fits
Exposure cube: /scratch/kocevski/707963/ltcube_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/707963/Model_4FGL_J0338.5+1302_daily_bin1256.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) = 11797.0588295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9779       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2205       1.0000         .10000E-03   10000.    
     3 'norm      '    14.607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    164.00       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72964       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.6895       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.285       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4222       1.0000         .10000E-03   10000.    
    11 'norm      '    123.11       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8212       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2173       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .72572       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11797.06     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1587 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9779        3.9292        .31357E-07    .72714E-04
   2  Prefactor     6.2205        5.3966        .11596E-06    .99051E-04
   3  norm          14.610        9.4054        .14630E-05    .95544E-03
   4  Prefactor     163.97        169.70       -.69634E-05   -.11488E-03
   5  Prefactor     .70508        3.9974       -.49585E-06   -.13362E-03
   6  Prefactor     .10000E-03    1.7737       -.14148E-06** at limit **
   7  Prefactor     .10000E-03    4.9352        .88569E-07** at limit **
   8  norm          4.6895        2.9384        .19048E-06   -.16291E-03
   9  Prefactor     23.285        15.608       -.48911E-07    .60588E-05
  10  norm          2.4223        3.7042        .41996E-06    .64884E-04
  11  norm          123.10        82.457       -.16748E-05   -.10275E-03
  12  Prefactor     .10000E-03    49.027       -.18971E-05** at limit **
  13  Prefactor     .10000E-03    36.471        .13639E-05** at limit **
  14  Prefactor     2.8203        18.349       -.66178E-06   -.43263E-04
  15  Prefactor     3.2175        26.091        .91716E-05   -.25888E-03
  16  Normalizat    .72576        .25482       -.97305E-06    .35422E-04
  17  Prefactor     1.0465        .68121E-01   -.32400E-07    .24651E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.97786
  Prefactor  = 6.2205
  norm       = 14.6101
  Prefactor  = 163.965
  Prefactor  = 0.705084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.68945
  Prefactor  = 23.2849
  norm       = 2.42232
  norm       = 123.103
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 2.82026
  Prefactor  = 3.21754
  Normalizat = 0.72576
  Prefactor  = 1.04654
 **********
 **   18 **HESSE 
 **********

 FCN=   11797.06     FROM HESSE     STATUS=OK           229 CALLS     1816 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9779        3.9236        .18025E-03   -1.5262    
   2  Prefactor     6.2205        5.3948        .16095E-03   -1.5209    
   3  norm          14.610        9.8576        .10480E-03   -1.4943    
   4  Prefactor     163.97        174.00        .15747E-03   -1.3140    
   5  Prefactor     .70508        11.352        .40563E-02   -1.5540    
   6  Prefactor     .10000E-03    1.7751        .14118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6895        2.9264        .13706E-03   -1.5275    
   9  Prefactor     23.285        15.594        .83010E-04   -1.4743    
  10  norm          2.4223        3.6885        .25230E-03   -1.5397    
  11  norm          123.10        82.938        .36275E-04   -1.3484    
  12  Prefactor     .10000E-03    49.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8203        18.262        .24215E-03   -1.5372    
  15  Prefactor     3.2175        31.537        .11293E-02   -1.5349    
  16  Normalizat    .72576        .26828        .58899E-03   -1.0288    
  17  Prefactor     1.0465        .73576E-01    .13902E-03   -.91194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42221e-08
Minuit parameter uncertainties:
  1  3.92384
  2  5.39525
  3  9.85874
  4  174.552
  5  5.65909
  6  1.22672e-06
  7  1.22324e-05
  8  2.92648
  9  15.597
  10  3.68886
  11  83.0161
  12  0.000377672
  13  0.000274417
  14  14.3595
  15  20.1601
  16  0.268766
  17  0.0735833
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  2.422e+00  3.689e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.536e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.650e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  3.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.047e+00  7.358e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  7.258e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 54.636 13.042
Photon Flux Upper Limit: 2.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/707963/likelihoodResults_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11796.976534
delta logL = 0.0799656131148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11796.9709434
delta logL = 0.0855562100242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8174       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1246       1.0000          .0000       5.0000    
     3 'Normalizat'    .72520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11796.97     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      249 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8185        3.8876        .12116E-02   -.55341E-04
   2  alpha         1.1255        .87308        .41606E-01   -.59481E-04
   3  Normalizat    .72526        .25798        .58915E-03    .11501E-04
   4  Prefactor     1.0467        .72835E-01    .13900E-03   -.16194E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.81846
  alpha      = 1.12547
  Normalizat = 0.725256
  Prefactor  = 1.04673
 **********
 **   18 **HESSE 
 **********

 FCN=   11796.97     FROM HESSE     STATUS=OK            27 CALLS      276 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8185        3.8986        .48465E-04   -1.5372    
   2  alpha         1.1255        .87608        .83212E-02   -.58214    
   3  Normalizat    .72526        .25802        .23566E-04   -1.0290    
   4  Prefactor     1.0467        .72847E-01    .55601E-05   -.91188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8503e-12
Minuit parameter uncertainties:
  1  3.899
  2  0.904058
  3  0.258457
  4  0.0728542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707963': 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) = 11796.9709429
delta logL = 0.085556660546

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  2.818e+00  3.899e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.125e+00  9.041e-01  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.650e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  3.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.047e+00  7.285e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  7.253e-01  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
Ra Dec: 54.636 13.042

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/707963/cmap_HighResolution_564883201_565142401_4FGL_J0338.5+1302_daily_bin1256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-05', job_status='DONE', photon_flux_upper_limit='2.98e-08', time_completed='2021-08-18 20:58:29.285616', job_id='707963', GAL2='1.05', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1629345509.29', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.56e-02', ts2='0.92', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='1256' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:58:29 PDT 2021

er <slac> at Wed Aug 18 20:33:16 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:33:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 20:33:18 2021
Terminated at Wed Aug 18 20:53:14 2021
Results reported at Wed Aug 18 20:53:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1256 54.6355 13.0419 564883201 565142401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0338.5+1302 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   939.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1195 sec.
    Turnaround time :                            1198 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0177>
Subject: Job 707963: <4FGL_J0338.5+1302_daily_bin1256> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin1256> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Aug 18 20:33:23 2021
Job was executed on host(s) <bullet0177>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:33:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 20:33:31 2021
Terminated at Wed Aug 18 20:58:37 2021
Results reported at Wed Aug 18 20:58:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1256 54.6355 13.0419 564883201 565142401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0338.5+1302 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   763.09 sec.
    Max Memory :                                 1113 MB
    Average Memory :                             245.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3407 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1505 sec.
    Turnaround time :                            1514 sec.

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

