/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 146 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 = 7490
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0103.8+1321_daily_bin131
RA = 15.969, Dec = 13.3536
tmin = 273283201, tmax = 273542401
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='318416', job_status='RUN', time_executed='2021-08-13 11:00:25.593690', time_epoch_executed='1628877625.59' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318416/ft1_4FGL_J0103.8+1321_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318416/ft2_4FGL_J0103.8+1321_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318416/ft1_4FGL_J0103.8+1321_daily_bin131.fits outfile=/scratch/kocevski/318416/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin131.fits ra=15.969 dec=13.3536 rad=12.0 tmin=273283201.0 tmax=273542401.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 2.60
user 1.51
sys 1.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318416/ft1_filtered_4FGL_J0103.8+1321_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/318416/ft2_4FGL_J0103.8+1321_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/318416/ltcube_273283201_273542401_4FGL_J0103.8+1321_daily_bin131.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/318416/ft2_4FGL_J0103.8+1321_daily_bin131.fits
.....................!
real 15.61
user 14.24
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318416/ft1_filtered_4FGL_J0103.8+1321_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/318416/ft2_4FGL_J0103.8+1321_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/318416/ltcube_273283201_273542401_4FGL_J0103.8+1321_daily_bin131.fits outfile=/scratch/kocevski/318416/expmap_273283201_273542401_4FGL_J0103.8+1321_daily_bin131.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/318416/ltcube_273283201_273542401_4FGL_J0103.8+1321_daily_bin131.fits
.....................!
real 192.49
user 185.85
sys 6.14

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/318416/ft1_filtered_4FGL_J0103.8+1321_daily_bin131.fits scfile=/scratch/kocevski/318416/ft2_4FGL_J0103.8+1321_daily_bin131.fits outfile=/scratch/kocevski/318416/cmap_273283201_273542401_4FGL_J0103.8+1321_daily_bin131.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 1.42
user 0.40
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318416/ft1_filtered_4FGL_J0103.8+1321_daily_bin131.fits scfile=/scratch/kocevski/318416/ft2_4FGL_J0103.8+1321_daily_bin131.fits outfile=/scratch/kocevski/318416/cmap_HighResolution_273283201_273542401_4FGL_J0103.8+1321_daily_bin131.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 1.33
user 0.38
sys 0.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5393       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7354       1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.597       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6452       1.0000         .10000E-03   10000.    
    12 'norm      '    6.5584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .84963       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.543       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .61239       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3088       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8203.543     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1520 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5394        3.1803       -.84464E-07   -.70171E-04
   2  norm          .10000E-03    2.1412        .42798E-08** at limit **
   3  Prefactor     .10000E-03    25.275        .46265E-07** at limit **
   4  Prefactor     5.7349        12.092       -.28671E-06   -.34964E-04
   5  norm          .10000E-03    6.5575       -.37143E-06** at limit **
   6  Prefactor     5.6708        4.9610        .62230E-06   -.88262E-03
   7  Prefactor     3.8236        8.9812        .43910E-05   -.10786E-02
   8  Prefactor     .10000E-03    1.5476        .61316E-07** at limit **
   9  norm          14.597        13.683        .20645E-06   -.11267E-03
  10  Prefactor     10.195        44.982       -.17128E-04   -.22124E-03
  11  Prefactor     9.6460        24.747        .83661E-06    .29053E-04
  12  norm          6.5584        1.9616       -.44112E-08    .12344E-04
  13  Prefactor     .10000E-03    14.763       -.48978E-07** at limit **
  14  norm          .84954        .52820       -.21582E-07   -.27457E-03
  15  Prefactor     .10000E-03    4.2139        .74027E-08** at limit **
  16  Prefactor     34.535        31.495       -.42412E-05   -.35542E-03
  17  Normalizat    .61241        .17587        .22537E-06   -.10123E-04
  18  Prefactor     1.3088        .13152        .11918E-06    .27161E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.53939
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.73492
  norm       = 0.0001
  Prefactor  = 5.67078
  Prefactor  = 3.8236
  Prefactor  = 0.0001
  norm       = 14.5966
  Prefactor  = 10.1947
  Prefactor  = 9.64605
  norm       = 6.55841
  Prefactor  = 0.0001
  norm       = 0.849539
  Prefactor  = 0.0001
  Prefactor  = 34.5347
  Normalizat = 0.612411
  Prefactor  = 1.30883
 **********
 **   18 **HESSE 
 **********

 FCN=   8203.543     FROM HESSE     STATUS=OK           248 CALLS     1768 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5394        3.1780        .13030E-03   -1.5282    
   2  norm          .10000E-03    2.1422        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7349        12.055        .16772E-03   -1.5229    
   5  norm          .10000E-03    6.6315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6708        5.0330        .84345E-03   -1.5232    
   7  Prefactor     3.8236        11.201        .10319E-02   -1.5317    
   8  Prefactor     .10000E-03    1.6085        .21981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.597        13.709        .52418E-03   -1.4944    
  10  Prefactor     10.195        50.043        .12540E-03   -1.5069    
  11  Prefactor     9.6460        24.738        .12903E-03   -1.5087    
  12  norm          6.5584        1.9625        .66857E-04   -1.5196    
  13  Prefactor     .10000E-03    14.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .84954        .51312        .50096E-03   -1.5524    
  15  Prefactor     .10000E-03    4.2330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.535        32.102        .68183E-04   -1.4532    
  17  Normalizat    .61241        .19750        .34866E-03   -1.0746    
  18  Prefactor     1.3088        .14760        .18750E-03   -.83045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74781e-09
Minuit parameter uncertainties:
  1  3.17812
  2  2.77947e-07
  3  2.60905e-05
  4  12.0603
  5  3.07368e-05
  6  5.03333
  7  11.2071
  8  3.50017e-06
  9  13.7122
  10  45.2346
  11  24.7642
  12  1.96255
  13  9.99399e-06
  14  0.513122
  15  1.79618e-05
  16  32.1176
  17  0.197731
  18  0.147644
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.019e+01  4.523e+01  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.309e+00  1.476e-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:  6.124e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/318416/likelihoodResults_273283201_273542401_4FGL_J0103.8+1321_daily_bin131.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) = 8203.18426738
delta logL = 0.358345222563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8203.12125744
delta logL = 0.421355162956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3372       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0833       1.0000          .0000       10.000    
     3 'Normalizat'    .57448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3211       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8203.121     FROM MIGRAD    STATUS=FAILED        84 CALLS      263 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3349        317.84        .17396E-03   -.27994E-02
   2  Index         3.0835        6.5300        .49027E-02   -.12665E-02
   3  Normalizat    .57448        .20882        .35940E-03   -.12568E-02
   4  Prefactor     1.3211        .15881        .18671E-03   -.20141E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8203.121     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      354 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3349        317.84        .31072E-03   -.27994E-02
   2  Index         3.0835        6.5300        .12374E-02   -.12665E-02
   3  Normalizat    .57448        .20882        .25870E-03   -.12568E-02
   4  Prefactor     1.3211        .15881        .15591E-03   -.20141E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8203.121     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      387 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3335        15.278        .69585E-05   -.14377E-03
   2  Index         3.0836        1.0750        .19611E-03   -.40116E-04
   3  Normalizat    .57448        .19736        .71881E-04   -.94896E-05
   4  Prefactor     1.3211        .14759        .37342E-04   -.10229E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33353
  Index      = 3.08359
  Normalizat = 0.574476
  Prefactor  = 1.32114
 **********
 **   18 **HESSE 
 **********

 FCN=   8203.121     FROM HESSE     STATUS=OK            23 CALLS      410 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3335        15.025        .13917E-05   -1.5246    
   2  Index         3.0836        1.0576        .78444E-05   -.39335    
   3  Normalizat    .57448        .19747        .28752E-05   -1.0908    
   4  Prefactor     1.3211        .14766        .74684E-05   -.82680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40578e-11
Minuit parameter uncertainties:
  1  15.0355
  2  1.06704
  3  0.197716
  4  0.147711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318416': 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) = 8203.12125734
delta logL = 0.421355265698

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  5.334e+00  1.504e+01  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  3.084e+00  1.067e+00  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.321e+00  1.477e-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:  5.745e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 15.969 13.354

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/318416/cmap_HighResolution_273283201_273542401_4FGL_J0103.8+1321_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-08-13 11:10:58.889126', job_id='318416', GAL2='1.32', fit_tolerance='1e-08', EG2='0.57', EG='0.61', time_epoch_completed='1628878258.89', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='4.21e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='131' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:10:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 318416: <4FGL_J0103.8+1321_daily_bin131> in cluster <slac> Done

Job <4FGL_J0103.8+1321_daily_bin131> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 10:55:37 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 10:57:36 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:57:36 2021
Terminated at Fri Aug 13 11:10:59 2021
Results reported at Fri Aug 13 11:10:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin131 15.969 13.3536 273283201 273542401 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 :                                   646.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            922 sec.

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

