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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin1615
RA = 15.969, Dec = 13.3536
tmin = 657936001, tmax = 658195201
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='135435', job_status='RUN', time_executed='2021-12-07 11:52:33.192888', time_epoch_executed='1638906753.19' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135435/ft1_4FGL_J0103.8+1321_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135435/ft2_4FGL_J0103.8+1321_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135435/ft1_4FGL_J0103.8+1321_daily_bin1615.fits outfile=/scratch/kocevski/135435/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin1615.fits ra=15.969 dec=13.3536 rad=12.0 tmin=657936001.0 tmax=658195201.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 4.14
user 3.92
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135435/ft2_4FGL_J0103.8+1321_daily_bin1615.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/135435/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin1615.fits evtable="EVENTS" outfile="/scratch/kocevski/135435/ft1_filtered_4FGL_J0103.8+1321_daily_bin1615.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135435/ft1_filtered_4FGL_J0103.8+1321_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/135435/ft2_4FGL_J0103.8+1321_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/135435/ltcube_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.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/135435/ft2_4FGL_J0103.8+1321_daily_bin1615.fits
.....................!
real 15.67
user 15.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135435/ft1_filtered_4FGL_J0103.8+1321_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/135435/ft2_4FGL_J0103.8+1321_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/135435/ltcube_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.fits outfile=/scratch/kocevski/135435/expmap_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.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/135435/ltcube_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.fits
.....................!
real 193.21
user 187.52
sys 5.31

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/135435/ft1_filtered_4FGL_J0103.8+1321_daily_bin1615.fits scfile=/scratch/kocevski/135435/ft2_4FGL_J0103.8+1321_daily_bin1615.fits outfile=/scratch/kocevski/135435/cmap_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135435/ft1_filtered_4FGL_J0103.8+1321_daily_bin1615.fits scfile=/scratch/kocevski/135435/ft2_4FGL_J0103.8+1321_daily_bin1615.fits outfile=/scratch/kocevski/135435/cmap_HighResolution_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.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 0.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135435/ft1_filtered_4FGL_J0103.8+1321_daily_bin1615.fits', '/scratch/kocevski/135435/ft2_4FGL_J0103.8+1321_daily_bin1615.fits', expMap='/scratch/kocevski/135435/expmap_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.fits', expCube='/scratch/kocevski/135435/ltcube_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135435/Model_4FGL_J0103.8+1321_daily_bin1615.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/135435/ft1_filtered_4FGL_J0103.8+1321_daily_bin1615.fits
Spacecraft file(s): /scratch/kocevski/135435/ft2_4FGL_J0103.8+1321_daily_bin1615.fits
Exposure map: /scratch/kocevski/135435/expmap_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.fits
Exposure cube: /scratch/kocevski/135435/ltcube_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135435/Model_4FGL_J0103.8+1321_daily_bin1615.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) = 6622.84809842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15991       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8846       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8617       1.0000         .10000E-03   10000.    
     5 'norm      '    .15594E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6420       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3102       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25387E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.761       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3584       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.761       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.745       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0191       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96969       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=   6622.780     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1548 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17411        2.2933        .38220E-01    .11112E-02
   2  norm          4.8831        9.3424        .45500E-02    .68030E-03
   3  Prefactor     .10000E-03    8.5941        .90712E-02** at limit **
   4  Prefactor     8.8632        14.918        .33661E-02    .20648E-03
   5  norm          .10001E-03    5.5434        .72574E-01** at limit **
   6  Prefactor     6.6429        6.3039        .38926E-02   -.73141E-04
   7  Prefactor     .10000E-03    5.8722        .90712E-02** at limit **
   8  Prefactor     3.3102        2.3562        .55627E-02   -.68859E-04
   9  norm          .10000E-03    7.1720        .90712E-02** at limit **
  10  Prefactor     .10017E-03    111.84        .10729E-01** at limit **
  11  Prefactor     .10000E-03    34.446        .90712E-02** at limit **
  12  norm          17.761        3.5596        .23759E-02   -.13772E-03
  13  Prefactor     .10000E-03    10.772        .90712E-02** at limit **
  14  norm          1.3584        .60792        .93278E-02   -.19490E-03
  15  Prefactor     13.766        14.635        .26994E-02    .56871E-03
  16  Prefactor     29.745        36.919        .18365E-02    .14248E-03
  17  Normalizat    1.0191        .19613        .67079E-01   -.18435E-03
  18  Prefactor     .96960        .13789        .45887E-01   -.36009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.174114
  norm       = 4.88313
  Prefactor  = 0.0001
  Prefactor  = 8.86318
  norm       = 0.000100013
  Prefactor  = 6.64293
  Prefactor  = 0.0001
  Prefactor  = 3.31023
  norm       = 0.0001
  Prefactor  = 0.00010017
  Prefactor  = 0.0001
  norm       = 17.7613
  Prefactor  = 0.0001
  norm       = 1.35842
  Prefactor  = 13.7658
  Prefactor  = 29.7448
  Normalizat = 1.01913
  Prefactor  = 0.969604
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.780     FROM HESSE     STATUS=OK           256 CALLS     1804 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17411        6.8638        .23817E-02   -1.5625    
   2  norm          4.8831        9.3479        .18200E-03   -1.5266    
   3  Prefactor     .10000E-03    8.6002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8632        14.898        .13465E-03   -1.5112    
   5  norm          .10001E-03    5.9682        .67443E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6429        6.2966        .15570E-03   -1.5192    
   7  Prefactor     .10000E-03    5.9022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3102        2.3560        .10231E-03   -1.5344    
   9  norm          .10000E-03    7.1826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10017E-03    113.23        .21459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.761        3.5666        .66098E-04   -1.4865    
  13  Prefactor     .10000E-03    10.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3584        .60895        .41154E-04   -1.5475    
  15  Prefactor     13.766        14.658        .10798E-03   -1.4966    
  16  Prefactor     29.745        36.919        .73462E-04   -1.4617    
  17  Normalizat    1.0191        .23184        .29673E-03   -.92392    
  18  Prefactor     .96960        .16373        .21444E-03   -.93750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96263e-08
Minuit parameter uncertainties:
  1  2.18605
  2  9.35074
  3  1.11984e-06
  4  14.9045
  5  0.000562798
  6  6.29721
  7  3.00827e-06
  8  2.3561
  9  7.76993e-06
  10  0.00878748
  11  0.000178747
  12  3.56668
  13  4.26992e-05
  14  0.608953
  15  14.6616
  16  36.9471
  17  0.23207
  18  0.163817
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.002e-04  8.787e-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:  9.696e-01  1.638e-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:  1.019e+00  2.321e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135435/likelihoodResults_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.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) = 6622.77978322
delta logL = -4.19483940277e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6622.77978322
delta logL = -4.19474554292e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0817       1.0000          .0000       10.000    
     3 'Normalizat'    1.0191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96960       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=   6622.780     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      203 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.430        .90712E-02** at limit **
   2  Index         2.0708        8.5048        .50000        .72314E-06
   3  Normalizat    1.0191        .33578E-02    .67079E-01    .16861E-04
   4  Prefactor     .96961        .23852E-02    .45886E-01    .81388E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07078
  Normalizat = 1.01913
  Prefactor  = 0.969605
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.780     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    512.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0708        5.9708        .50000       -.62592    
   3  Normalizat    1.0191        .10766E-01    .29673E-03   -.92392    
   4  Prefactor     .96961        .76551E-02    .21444E-03   -.93750    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.72908e-09
Minuit parameter uncertainties:
  1  5.35456e-05
  2  386.655
  3  0.0107662
  4  0.00765515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135435': 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) = 6622.77974127
delta logL = 2.81852408079e-09

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  5.355e-05  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.071e+00  3.867e+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:  9.696e-01  7.655e-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:  1.019e+00  1.077e-02  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/135435/cmap_HighResolution_657936001_658195201_4FGL_J0103.8+1321_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-12-07 12:01:50.907079', job_id='135435', GAL2='0.97', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1638907310.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.82e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1615' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:01:50 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 135435: <4FGL_J0103.8+1321_daily_bin1615> in cluster <slac> Done

Job <4FGL_J0103.8+1321_daily_bin1615> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 11:50:23 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:52:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 11:52:22 2021
Terminated at Tue Dec  7 12:01:51 2021
Results reported at Tue Dec  7 12:01:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin1615 15.969 13.3536 657936001 658195201 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 :                                   557.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             395.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            688 sec.

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

