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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1092
RA = 54.6355, Dec = 13.0419
tmin = 522374401, tmax = 522633601
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='706581', job_status='RUN', time_executed='2021-08-18 20:30:50.232310', time_epoch_executed='1629343850.23' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706581

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706581/ft1_4FGL_J0338.5+1302_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706581/ft2_4FGL_J0338.5+1302_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706581/ft1_4FGL_J0338.5+1302_daily_bin1092.fits outfile=/scratch/kocevski/706581/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1092.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=522374401.0 tmax=522633601.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.95
user 3.44
sys 3.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706581/ft2_4FGL_J0338.5+1302_daily_bin1092.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/706581/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1092.fits evtable="EVENTS" outfile="/scratch/kocevski/706581/ft1_filtered_4FGL_J0338.5+1302_daily_bin1092.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.53
user 0.33
sys 3.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706581/ft1_filtered_4FGL_J0338.5+1302_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/706581/ft2_4FGL_J0338.5+1302_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/706581/ltcube_522374401_522633601_4FGL_J0338.5+1302_daily_bin1092.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/706581/ft2_4FGL_J0338.5+1302_daily_bin1092.fits
.....................!
real 15.58
user 11.58
sys 3.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706581/ft1_filtered_4FGL_J0338.5+1302_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/706581/ft2_4FGL_J0338.5+1302_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/706581/ltcube_522374401_522633601_4FGL_J0338.5+1302_daily_bin1092.fits outfile=/scratch/kocevski/706581/expmap_522374401_522633601_4FGL_J0338.5+1302_daily_bin1092.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/706581/ltcube_522374401_522633601_4FGL_J0338.5+1302_daily_bin1092.fits
.....................!
real 202.16
user 192.60
sys 9.05

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/706581/ft1_filtered_4FGL_J0338.5+1302_daily_bin1092.fits scfile=/scratch/kocevski/706581/ft2_4FGL_J0338.5+1302_daily_bin1092.fits outfile=/scratch/kocevski/706581/cmap_522374401_522633601_4FGL_J0338.5+1302_daily_bin1092.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 3.67
user 0.38
sys 3.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706581/ft1_filtered_4FGL_J0338.5+1302_daily_bin1092.fits scfile=/scratch/kocevski/706581/ft2_4FGL_J0338.5+1302_daily_bin1092.fits outfile=/scratch/kocevski/706581/cmap_HighResolution_522374401_522633601_4FGL_J0338.5+1302_daily_bin1092.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 3.41
user 0.38
sys 2.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.766       1.0000         .10000E-03   10000.    
     8 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.939       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .19208E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7494       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.855       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0652       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98067       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=   11273.49     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1601 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9279        3.2281        .49301E-06    .95905E-04
   2  Prefactor     .10000E-03    2.1290       -.20598E-07** at limit **
   3  norm          .10000E-03    8.3075       -.79633E-07** at limit **
   4  Prefactor     .10000E-03    97.411       -.12374E-04** at limit **
   5  Prefactor     .10000E-03    2.8830       -.18888E-07** at limit **
   6  Prefactor     .20762        24.065        .92986E-05   -.30406E-04
   7  Prefactor     16.765        11.847        .46705E-06    .52831E-04
   8  norm          .10000E-03    .96611        .47603E-06** at limit **
   9  Prefactor     14.940        16.834       -.32986E-06   -.13338E-04
  10  norm          .10000E-03    2.1010       -.60862E-07** at limit **
  11  norm          .10000E-03    129.38        .17051E-04** at limit **
  12  Prefactor     .10000E-03    15.723       -.68985E-06** at limit **
  13  Prefactor     1.7477        22.832        .48344E-05   -.18774E-04
  14  Prefactor     14.857        14.404       -.21650E-05   -.12808E-03
  15  Prefactor     .10000E-03    5.9629       -.14914E-06** at limit **
  16  Normalizat    1.0652        .22978        .31334E-06   -.43489E-04
  17  Prefactor     .98065        .64351E-01    .10998E-06   -.43962E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.92787
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.207621
  Prefactor  = 16.7653
  norm       = 0.000100002
  Prefactor  = 14.9395
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.74775
  Prefactor  = 14.8566
  Prefactor  = 0.0001
  Normalizat = 1.06517
  Prefactor  = 0.98065
 **********
 **   18 **HESSE 
 **********

 FCN=   11273.49     FROM HESSE     STATUS=OK           225 CALLS     1826 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9279        3.2312        .16854E-03   -1.5312    
   2  Prefactor     .10000E-03    2.1349        .15129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.5976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    98.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9084        .17602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20762        23.538        .36789E-02   -1.5617    
   7  Prefactor     16.765        11.851        .97816E-04   -1.4889    
   8  norm          .10000E-03    1.7050        .19197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.940        16.848        .10363E-03   -1.4935    
  10  norm          .10000E-03    2.1044        .15030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    130.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7477        23.649        .31702E-03   -1.5444    
  14  Prefactor     14.857        14.432        .10392E-03   -1.4937    
  15  Prefactor     .10000E-03    5.9663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0652        .25137        .46237E-03   -.90878    
  17  Prefactor     .98065        .71273E-01    .13775E-03   -.93377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57177e-08
Minuit parameter uncertainties:
  1  3.23135
  2  1.79208e-06
  3  3.12405e-05
  4  0.00103305
  5  6.15478e-06
  6  4.42201
  7  11.8524
  8  0.000122096
  9  16.8535
  10  1.58438e-06
  11  0.00126749
  12  1.47928e-05
  13  12.8639
  14  14.4358
  15  7.70423e-07
  16  0.25165
  17  0.0712799
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  1.584e-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:  9.807e-01  7.128e-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.065e+00  2.516e-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: 2.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706581/likelihoodResults_522374401_522633601_4FGL_J0338.5+1302_daily_bin1092.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) = 11273.4916264
delta logL = -0.00225744521049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11273.489369
delta logL = -4.19749994762e-08

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 'alpha     '    1.5385       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98067       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=   11273.49     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      248 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    157.33        .15033E-02** at limit **
   2  alpha         1.6235        3.9105        .50000       -.20054E-07
   3  Normalizat    1.0652        .57818E-01    .46237E-03    .27440E-04
   4  Prefactor     .98065        .16740E-01    .13775E-03    .13255E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.6235
  Normalizat = 1.06517
  Prefactor  = 0.98065
 **********
 **   18 **HESSE 
 **********

 FCN=   11273.49     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    487.40        .30066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6235        2.8411        .50000       -.35821    
   3  Normalizat    1.0652        .18778        .18495E-04   -.90878    
   4  Prefactor     .98065        .54397E-01    .55100E-05   -.93377    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.28827e-09
Minuit parameter uncertainties:
  1  0.000321841
  2  2358.68
  3  0.187895
  4  0.0544002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706581': 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): 102
logL (Free Index) = 11273.4893688
delta logL = 9.50349203777e-08

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  3.218e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.623e+00  2.359e+03  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.807e-01  5.440e-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.065e+00  1.879e-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/706581/cmap_HighResolution_522374401_522633601_4FGL_J0338.5+1302_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-05', job_status='DONE', photon_flux_upper_limit='2.27e-08', time_completed='2021-08-18 20:44:27.362173', job_id='706581', GAL2='0.98', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1629344667.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='9.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='1092' 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@bullet0182>
Subject: Job 706581: <4FGL_J0338.5+1302_daily_bin1092> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1092 54.6355 13.0419 522374401 522633601 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 :                                   861.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

