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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1105
RA = 54.6355, Dec = 13.0419
tmin = 525744001, tmax = 526003201
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='706602', job_status='RUN', time_executed='2021-08-18 20:30:50.031754', time_epoch_executed='1629343850.03' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706602

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706602/ft1_4FGL_J0338.5+1302_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706602/ft2_4FGL_J0338.5+1302_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706602/ft1_4FGL_J0338.5+1302_daily_bin1105.fits outfile=/scratch/kocevski/706602/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1105.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=525744001.0 tmax=526003201.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 6.78
user 4.05
sys 2.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706602/ft2_4FGL_J0338.5+1302_daily_bin1105.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/706602/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1105.fits evtable="EVENTS" outfile="/scratch/kocevski/706602/ft1_filtered_4FGL_J0338.5+1302_daily_bin1105.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 3.17
user 0.34
sys 2.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706602/ft1_filtered_4FGL_J0338.5+1302_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/706602/ft2_4FGL_J0338.5+1302_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/706602/ltcube_525744001_526003201_4FGL_J0338.5+1302_daily_bin1105.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/706602/ft2_4FGL_J0338.5+1302_daily_bin1105.fits
.....................!
real 15.51
user 12.18
sys 3.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706602/ft1_filtered_4FGL_J0338.5+1302_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/706602/ft2_4FGL_J0338.5+1302_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/706602/ltcube_525744001_526003201_4FGL_J0338.5+1302_daily_bin1105.fits outfile=/scratch/kocevski/706602/expmap_525744001_526003201_4FGL_J0338.5+1302_daily_bin1105.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/706602/ltcube_525744001_526003201_4FGL_J0338.5+1302_daily_bin1105.fits
.....................!
real 195.41
user 185.01
sys 9.37

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/706602/ft1_filtered_4FGL_J0338.5+1302_daily_bin1105.fits scfile=/scratch/kocevski/706602/ft2_4FGL_J0338.5+1302_daily_bin1105.fits outfile=/scratch/kocevski/706602/cmap_525744001_526003201_4FGL_J0338.5+1302_daily_bin1105.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.95
user 0.37
sys 2.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706602/ft1_filtered_4FGL_J0338.5+1302_daily_bin1105.fits scfile=/scratch/kocevski/706602/ft2_4FGL_J0338.5+1302_daily_bin1105.fits outfile=/scratch/kocevski/706602/cmap_HighResolution_525744001_526003201_4FGL_J0338.5+1302_daily_bin1105.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 2.98
user 0.38
sys 2.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0964       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10351E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94909       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.903       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    66.221       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .81156       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0243       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=   11592.60     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1577 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0977        4.9914        .79937E-06    .77408E-03
   2  Prefactor     .10000E-03    2.0865       -.17406E-08** at limit **
   3  norm          .10000E-03    14.044       -.76724E-07** at limit **
   4  Prefactor     .10000E-03    95.038       -.75272E-06** at limit **
   5  Prefactor     .10000E-03    1.6686        .88059E-07** at limit **
   6  Prefactor     .94998        3.2861        .16826E-05   -.67385E-03
   7  Prefactor     .10000E-03    3.6750       -.16708E-07** at limit **
   8  norm          .10000E-03    1.0823       -.17536E-06** at limit **
   9  Prefactor     13.902        16.469        .22715E-06    .63887E-05
  10  norm          .10000E-03    1.4320        .10019E-06** at limit **
  11  norm          66.215        52.820       -.19532E-05   -.17235E-03
  12  Prefactor     47.884        38.718       -.57692E-06   -.56135E-04
  13  Prefactor     .10000E-03    19.743        .19312E-06** at limit **
  14  Prefactor     10.561        14.871        .11385E-05    .15490E-03
  15  Prefactor     .10000E-03    7.7193        .11141E-06** at limit **
  16  Normalizat    .81157        .22988       -.86798E-06   -.41332E-04
  17  Prefactor     1.0242        .64327E-01    .26306E-07   -.63808E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.09774
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.949983
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.902
  norm       = 0.0001
  norm       = 66.2151
  Prefactor  = 47.8842
  Prefactor  = 0.0001
  Prefactor  = 10.5609
  Prefactor  = 0.0001
  Normalizat = 0.811569
  Prefactor  = 1.02425
 **********
 **   18 **HESSE 
 **********

 FCN=   11592.60     FROM HESSE     STATUS=OK           217 CALLS     1794 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0977        5.1685        .14090E-03   -1.5139    
   2  Prefactor     .10000E-03    2.0897        .15188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    95.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6731        .13582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .94998        4.1114        .42626E-03   -1.5513    
   7  Prefactor     .10000E-03    3.6769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1249        .21869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.902        16.463        .10742E-03   -1.4962    
  10  norm          .10000E-03    1.4337        .12589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          66.215        54.038        .49319E-04   -1.4079    
  12  Prefactor     47.884        38.832        .57946E-04   -1.4323    
  13  Prefactor     .10000E-03    19.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.561        15.013        .12327E-03   -1.5058    
  15  Prefactor     .10000E-03    7.7303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .81157        .24351        .51943E-03   -.99641    
  17  Prefactor     1.0242        .68878E-01    .13520E-03   -.91926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13268e-09
Minuit parameter uncertainties:
  1  5.16877
  2  1.3209e-06
  3  5.06861e-05
  4  0.000256531
  5  3.30417e-06
  6  3.95285
  7  5.34696e-07
  8  3.66283e-06
  9  16.4682
  10  4.48736e-06
  11  54.0779
  12  38.8525
  13  4.81122e-05
  14  15.018
  15  8.85103e-06
  16  0.243842
  17  0.0688839
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  4.487e-06  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.024e+00  6.888e-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:  8.116e-01  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/706602/likelihoodResults_525744001_526003201_4FGL_J0338.5+1302_daily_bin1105.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): 102
logL (Free Index) = 11592.5971519
delta logL = -8.31815668789e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11592.5971505
delta logL = -6.87353349349e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11592.60     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      248 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    337.35        .12643E-02** at limit **
   2  alpha         1.2951        4.2934        .18450        .97236E-07
   3  Normalizat    .81157        .16817        .51943E-03    .29722E-04
   4  Prefactor     1.0242        .49142E-01    .13520E-03    .12327E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.29505
  Normalizat = 0.811569
  Prefactor  = 1.02425
 **********
 **   18 **HESSE 
 **********

 FCN=   11592.60     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4963        .25285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2951        3.0343        .73799E-02   -.50291    
   3  Normalizat    .81157        .23537        .20777E-04   -.99641    
   4  Prefactor     1.0242        .68816E-01    .54081E-05   -.91926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74554e-11
Minuit parameter uncertainties:
  1  1.25605e-05
  2  140.909
  3  0.235668
  4  0.0688224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706602': 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) = 11592.5971422
delta logL = 1.45369631355e-06

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  1.256e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.295e+00  1.409e+02  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.024e+00  6.882e-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:  8.116e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/706602/cmap_HighResolution_525744001_526003201_4FGL_J0338.5+1302_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-05', job_status='DONE', photon_flux_upper_limit='1.69e-08', time_completed='2021-08-18 20:44:27.432619', job_id='706602', GAL2='1.02', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1629344667.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='1105' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:44:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 706602: <4FGL_J0338.5+1302_daily_bin1105> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin1105> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Aug 18 20:29:36 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:29:38 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:29:38 2021
Terminated at Wed Aug 18 20:44:28 2021
Results reported at Wed Aug 18 20:44:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1105 54.6355 13.0419 525744001 526003201 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 :                                   846.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

