/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 58 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 = 7445
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0103.8+1321_daily_bin65
RA = 15.969, Dec = 13.3536
tmin = 256176001, tmax = 256435201
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='318320', job_status='RUN', time_executed='2021-08-13 11:00:22.454217', time_epoch_executed='1628877622.45' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318320/ft1_4FGL_J0103.8+1321_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318320/ft1_4FGL_J0103.8+1321_daily_bin65.fits outfile=/scratch/kocevski/318320/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin65.fits ra=15.969 dec=13.3536 rad=12.0 tmin=256176001.0 tmax=256435201.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 10.98
user 1.26
sys 9.64

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.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/318320/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin65.fits evtable="EVENTS" outfile="/scratch/kocevski/318320/ft1_filtered_4FGL_J0103.8+1321_daily_bin65.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 10.03
user 0.34
sys 9.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318320/ft1_filtered_4FGL_J0103.8+1321_daily_bin65.fits" evtable="EVENTS" scfile=/scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits sctable="SC_DATA" outfile=/scratch/kocevski/318320/ltcube_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.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/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits
.....................!
real 25.40
user 14.45
sys 10.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318320/ft1_filtered_4FGL_J0103.8+1321_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/318320/ltcube_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.fits outfile=/scratch/kocevski/318320/expmap_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.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/318320/ltcube_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.fits
.....................!
real 204.21
user 187.33
sys 16.40

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

Setting source of interest to:
4FGL J0103.8+1321 @ 15.969 13.3536

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/318320/ft1_filtered_4FGL_J0103.8+1321_daily_bin65.fits scfile=/scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits outfile=/scratch/kocevski/318320/cmap_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.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=15.969 yref=13.3536 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 9.95
user 0.38
sys 9.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318320/ft1_filtered_4FGL_J0103.8+1321_daily_bin65.fits scfile=/scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits outfile=/scratch/kocevski/318320/cmap_HighResolution_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.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=15.969 yref=13.3536 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 9.81
user 0.39
sys 9.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318320/ft1_filtered_4FGL_J0103.8+1321_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318320/Model_4FGL_J0103.8+1321_daily_bin65.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/318320/ft1_filtered_4FGL_J0103.8+1321_daily_bin65.fits.....................!
real 74.81
user 61.06
sys 13.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318320/ft1_filtered_4FGL_J0103.8+1321_daily_bin65.fits', '/scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits', expMap='/scratch/kocevski/318320/expmap_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.fits', expCube='/scratch/kocevski/318320/ltcube_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318320/Model_4FGL_J0103.8+1321_daily_bin65.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0103.8+1321'

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  4.686e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.082e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/318320/ft1_filtered_4FGL_J0103.8+1321_daily_bin65.fits
Spacecraft file(s): /scratch/kocevski/318320/ft2_4FGL_J0103.8+1321_daily_bin65.fits
Exposure map: /scratch/kocevski/318320/expmap_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.fits
Exposure cube: /scratch/kocevski/318320/ltcube_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318320/Model_4FGL_J0103.8+1321_daily_bin65.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) = 5747.73608364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6417       1.0000         .10000E-03   10000.    
     2 'norm      '    26.978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.698       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .64882E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.3604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.566       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    19.970       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44812E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82683E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4852       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6448       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12770E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.985       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .89788       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5747.674     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1028 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6454        2.5870       -.31201E-06    .15693E-04
   2  norm          27.108        4.2572       -.26985E-08    .28905E-02
   3  Prefactor     20.447        24.966        .19872E-05   -.53365E-03
   4  Prefactor     .10000E-03    6.1185       -.25433E-06** at limit **
   5  norm          7.3879        7.2304       -.86576E-06    .81945E-04
   6  Prefactor     .10000E-03    2.8131        .15576E-06** at limit **
   7  Prefactor     38.603        3.0040       -.21588E-06   -.22807E-02
   8  Prefactor     .10000E-03    1.5019       -.88586E-06** at limit **
   9  norm          20.147        15.986       -.83490E-06   -.37707E-03
  10  Prefactor     .10001E-03    43.848       -.44434E-05** at limit **
  11  Prefactor     .10000E-03    17.736        .27320E-05** at limit **
  12  norm          1.4852        1.2852        .64685E-06   -.48753E-04
  13  Prefactor     4.6780        4.4009       -.76515E-06   -.99325E-03
  14  norm          .10000E-03    1.3068       -.13023E-05** at limit **
  15  Prefactor     .10000E-03    16.356        .17686E-05** at limit **
  16  Prefactor     37.826        34.139       -.10861E-06   -.26649E-04
  17  Normalizat    .89770        .21300        .17450E-05    .12100E-04
  18  Prefactor     1.0158        .16022       -.35125E-05    .25005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64541
  norm       = 27.1081
  Prefactor  = 20.4471
  Prefactor  = 0.0001
  norm       = 7.38793
  Prefactor  = 0.0001
  Prefactor  = 38.6032
  Prefactor  = 0.0001
  norm       = 20.1465
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 1.48519
  Prefactor  = 4.67796
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8258
  Normalizat = 0.897704
  Prefactor  = 1.01582
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.674     FROM HESSE     STATUS=OK           290 CALLS     1318 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6454        2.5966        .62712E-02   -1.5383    
   2  norm          27.108        14.858        .19282E-02   -1.4666    
   3  Prefactor     20.447        25.654        .22009E-02   -1.4803    
   4  Prefactor     .10000E-03    6.0933        .10511E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.3879        7.3265        .36959E-02   -1.5164    
   6  Prefactor     .10000E-03    2.7989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.603        17.422        .16135E-02   -1.4465    
   8  Prefactor     .10000E-03    1.4629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.147        16.356        .22407E-02   -1.4810    
  10  Prefactor     .10001E-03    45.085        .92447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.731        .92099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4852        1.3006        .87999E-02   -1.5464    
  13  Prefactor     4.6780        29.486        .46686E-02   -1.5275    
  14  norm          .10000E-03    .43281        .16520E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.826        34.185        .16702E-02   -1.4477    
  17  Normalizat    .89770        .18687        .44874E-01   -.96541    
  18  Prefactor     1.0158        .13958        .42570E-01   -.92204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32126e-08
Minuit parameter uncertainties:
  1  2.59674
  2  14.8596
  3  25.668
  4  2.86529e-07
  5  7.32738
  6  7.28448e-08
  7  17.424
  8  9.49085e-07
  9  16.36
  10  0.00144611
  11  1.5759e-05
  12  1.30065
  13  23.5058
  14  7.50182e-07
  15  1.3443e-06
  16  34.2023
  17  0.187003
  18  0.139629
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.446e-03  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.082e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.016e+00  1.396e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  8.977e-01  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 15.969 13.354
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318320/likelihoodResults_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.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) = 5747.67400387
delta logL = -0.000105412183075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5747.67389947
delta logL = -1.01768637251e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21653E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4160       1.0000          .0000       10.000    
     3 'Normalizat'    .89770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5747.674     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5245        .90712E-02** at limit **
   2  Index         2.4256        8.5101        .50000       -.16578E-05
   3  Normalizat    .89770        .18374E-02    .44872E-01    .23431E-04
   4  Prefactor     1.0158        .13820E-02    .42584E-01    .11825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42557
  Normalizat = 0.897704
  Prefactor  = 1.01582
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.674     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    160.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4256        5.0528        .50000       -.54087    
   3  Normalizat    .89770        .84916E-02    .27794E-03   -.96541    
   4  Prefactor     1.0158        .63887E-02    .19670E-03   -.92204    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.96587e-09
Minuit parameter uncertainties:
  1  9.7357e-05
  2  197.244
  3  0.00849163
  4  0.00638873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318320': 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) = 5747.67389833
delta logL = 1.28659848997e-07

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  9.736e-05  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.426e+00  1.972e+02  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.016e+00  6.389e-03  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  8.977e-01  8.492e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 15.969 13.354

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/318320/cmap_HighResolution_256176001_256435201_4FGL_J0103.8+1321_daily_bin65.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-08-13 11:11:01.777741', job_id='318320', GAL2='1.02', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1628878261.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='65' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:11:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 318320: <4FGL_J0103.8+1321_daily_bin65> in cluster <slac> Done

Job <4FGL_J0103.8+1321_daily_bin65> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 10:55:31 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 10:56:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 10:56:46 2021
Terminated at Fri Aug 13 11:11:04 2021
Results reported at Fri Aug 13 11:11:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin65 15.969 13.3536 256176001 256435201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0103.8+1321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   784.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            933 sec.

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

