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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1598
RA = 54.6355, Dec = 13.0419
tmin = 653529601, tmax = 653788801
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='719912', job_status='RUN', time_executed='2021-09-20 00:09:00.716283', time_epoch_executed='1632121740.72' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719912

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719912/ft1_4FGL_J0338.5+1302_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719912/ft2_4FGL_J0338.5+1302_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719912/ft1_4FGL_J0338.5+1302_daily_bin1598.fits outfile=/scratch/kocevski/719912/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1598.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.08
user 4.85
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/719912/ft2_4FGL_J0338.5+1302_daily_bin1598.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/719912/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1598.fits evtable="EVENTS" outfile="/scratch/kocevski/719912/ft1_filtered_4FGL_J0338.5+1302_daily_bin1598.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/719912/ft1_filtered_4FGL_J0338.5+1302_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/719912/ft2_4FGL_J0338.5+1302_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/719912/ltcube_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.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/719912/ft2_4FGL_J0338.5+1302_daily_bin1598.fits
.....................!
real 12.04
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719912/ft1_filtered_4FGL_J0338.5+1302_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/719912/ft2_4FGL_J0338.5+1302_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/719912/ltcube_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.fits outfile=/scratch/kocevski/719912/expmap_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.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/719912/ltcube_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.fits
.....................!
real 189.85
user 185.05
sys 4.27

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/719912/ft1_filtered_4FGL_J0338.5+1302_daily_bin1598.fits scfile=/scratch/kocevski/719912/ft2_4FGL_J0338.5+1302_daily_bin1598.fits outfile=/scratch/kocevski/719912/cmap_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.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 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/719912/ft1_filtered_4FGL_J0338.5+1302_daily_bin1598.fits scfile=/scratch/kocevski/719912/ft2_4FGL_J0338.5+1302_daily_bin1598.fits outfile=/scratch/kocevski/719912/cmap_HighResolution_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.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 0.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/719912/ft1_filtered_4FGL_J0338.5+1302_daily_bin1598.fits', '/scratch/kocevski/719912/ft2_4FGL_J0338.5+1302_daily_bin1598.fits', expMap='/scratch/kocevski/719912/expmap_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.fits', expCube='/scratch/kocevski/719912/ltcube_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/719912/Model_4FGL_J0338.5+1302_daily_bin1598.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/719912/ft1_filtered_4FGL_J0338.5+1302_daily_bin1598.fits
Spacecraft file(s): /scratch/kocevski/719912/ft2_4FGL_J0338.5+1302_daily_bin1598.fits
Exposure map: /scratch/kocevski/719912/expmap_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.fits
Exposure cube: /scratch/kocevski/719912/ltcube_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/719912/Model_4FGL_J0338.5+1302_daily_bin1598.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) = 10193.0516156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0744       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2106       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79303E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4778       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.205       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .63894       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9447       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6464       1.0000         .10000E-03   10000.    
    11 'norm      '    101.60       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.158       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.380       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99544E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30392E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1449       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93529       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.

 FCN=   10193.05     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1586 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3297        .90712E-02** at limit **
   2  Prefactor     3.0716        6.5310        .57833E-02    .33650E-03
   3  norm          6.2122        9.5426        .40271E-02   -.71803E-03
   4  Prefactor     .10000E-03    44.828        .10454E-01** at limit **
   5  Prefactor     6.4845        5.6192        .39422E-02    .10530E-03
   6  Prefactor     12.190        8.1488        .28665E-02   -.30695E-03
   7  Prefactor     .64120        6.1186        .11826        .52276E-03
   8  norm          2.9504        2.3214        .59170E-02    .43257E-03
   9  Prefactor     .10000E-03    7.2908        .90712E-02** at limit **
  10  norm          3.6685        3.9807        .52888E-02   -.49664E-04
  11  norm          101.57        72.651        .99721E-03    .48309E-03
  12  Prefactor     33.495        54.850        .17397E-02   -.22101E-04
  13  Prefactor     12.473        16.460        .28462E-02    .29965E-04
  14  Prefactor     .10000E-03    20.920        .10383E-01** at limit **
  15  Prefactor     .10000E-03    16.509        .10692E-01** at limit **
  16  Normalizat    1.1445        .25451        .10671       -.45702E-05
  17  Prefactor     .93529        .68484E-01    .32186E-01   -.23700E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.07157
  norm       = 6.21221
  Prefactor  = 0.0001
  Prefactor  = 6.48451
  Prefactor  = 12.1901
  Prefactor  = 0.641198
  norm       = 2.95036
  Prefactor  = 0.0001
  norm       = 3.66854
  norm       = 101.573
  Prefactor  = 33.4946
  Prefactor  = 12.4725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14446
  Prefactor  = 0.935286
 **********
 **   18 **HESSE 
 **********

 FCN=   10193.05     FROM HESSE     STATUS=OK           225 CALLS     1811 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3332        .11368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0716        6.5156        .23133E-03   -1.5357    
   3  norm          6.2122        9.5247        .16108E-03   -1.5209    
   4  Prefactor     .10000E-03    44.830        .20907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4845        5.6159        .15769E-03   -1.5199    
   6  Prefactor     12.190        8.1213        .11466E-03   -1.5010    
   7  Prefactor     .64120        24.451        .48545E-02   -1.5548    
   8  norm          2.9504        2.3116        .12658E-03   -1.5364    
   9  Prefactor     .10000E-03    7.3092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6685        3.9800        .20485E-03   -1.5325    
  11  norm          101.57        72.656        .39888E-04   -1.3689    
  12  Prefactor     33.495        54.884        .69589E-04   -1.4550    
  13  Prefactor     12.473        16.458        .11385E-03   -1.5001    
  14  Prefactor     .10000E-03    21.198        .20765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.569        .21384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1445        .28094        .47303E-03   -.88337    
  17  Prefactor     .93529        .76235E-01    .14222E-03   -.94919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54448e-08
Minuit parameter uncertainties:
  1  2.7366e-06
  2  6.51715
  3  9.52704
  4  0.000160749
  5  5.61632
  6  8.122
  7  7.92194
  8  2.31162
  9  1.01488e-06
  10  3.98033
  11  72.7202
  12  54.9671
  13  16.464
  14  1.71613e-05
  15  0.000131875
  16  0.281314
  17  0.0762441
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  3.669e+00  3.980e+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:  9.353e-01  7.624e-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:  1.144e+00  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 54.636 13.042
Photon Index (Fixed Index): 1.54 +/- 0.00
Photon Flux (Fixed Index): 7.36e-09 +/- 7.99e-09
Energy Flux (Fixed Index): 2.29e-05 +/- 2.49e-05

TS (Fixed Index): 2.30
Ra Dec: 54.636 13.042
Photon Flux Upper Limit: 3.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/719912/likelihoodResults_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.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) = 10192.8427789
delta logL = 0.208553419947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10192.8387224
delta logL = 0.212609982331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0224       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0495       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93550       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.

 FCN=   10192.84     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0308        6.0420        .50267E-02   -.68039E-04
   2  alpha         1.0501        .91666        .50000       -.73243E-05
   3  Normalizat    1.1445        .24648        .10670        .38082E-04
   4  Prefactor     .93551        .68132E-01    .32179E-01   -.12984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.03081
  alpha      = 1.05005
  Normalizat = 1.14455
  Prefactor  = 0.935512
 **********
 **   18 **HESSE 
 **********

 FCN=   10192.84     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0308        4.1694        .20107E-03   -1.5306    
   2  alpha         1.0501        .68331        .31325E-01   -.61870    
   3  Normalizat    1.1445        .27296        .47299E-03   -.88334    
   4  Prefactor     .93551        .75738E-01    .14219E-03   -.94911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1633e-10
Minuit parameter uncertainties:
  1  4.16973
  2  0.696822
  3  0.273303
  4  0.0757462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719912': 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) = 10192.8387203
delta logL = 0.212612103744

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  4.031e+00  4.170e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.050e+00  6.968e-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:  9.355e-01  7.575e-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:  1.145e+00  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.72
Ra Dec: 54.636 13.042
Photon Index (Free Index): 1.05 +/- 0.70
Photon Flux (Free Index): 5.80e-09 +/- 6.12e-09
Energy Flux (Free Index): 5.02e-05 +/- 7.45e-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/719912/cmap_HighResolution_653529601_653788801_4FGL_J0338.5+1302_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-04', comment='SUCCESS', photon_flux='7.36e-09', energy_flux2='5.02e-05', photon_flux_error='7.99e-09', dlogl='2.13e-01', energy_flux='2.29e-05', photon_flux2='5.80e-09', job_status='DONE', time_completed='2021-09-20 00:20:55.017887', photon_index_error2='0.70', photon_index2='1.05', ts='2.30', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='3.34e-08', energy_flux_error2='7.45e-05', EG='1.14', time_epoch_completed='1632122455.02', return_code='0', job_id='719912', GAL2='0.94', EG2='1.14', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='6.12e-09', ts2='2.72', photon_index='1.54' WHERE bin_id='1598' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:20:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 719912: <4FGL_J0338.5+1302_daily_bin1598> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin1598> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 20 00:05:33 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:05:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:05:34 2021
Terminated at Mon Sep 20 00:20:55 2021
Results reported at Mon Sep 20 00:20:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1598 54.6355 13.0419 653529601 653788801 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 :                                   716.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

