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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin83
RA = 15.969, Dec = 13.3536
tmin = 260841601, tmax = 261100801
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='318347', job_status='RUN', time_executed='2021-08-13 11:00:09.738275', time_epoch_executed='1628877609.74' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318347/ft1_4FGL_J0103.8+1321_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318347/ft2_4FGL_J0103.8+1321_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318347/ft1_4FGL_J0103.8+1321_daily_bin83.fits outfile=/scratch/kocevski/318347/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin83.fits ra=15.969 dec=13.3536 rad=12.0 tmin=260841601.0 tmax=261100801.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.83
user 1.40
sys 5.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318347/ft2_4FGL_J0103.8+1321_daily_bin83.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/318347/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin83.fits evtable="EVENTS" outfile="/scratch/kocevski/318347/ft1_filtered_4FGL_J0103.8+1321_daily_bin83.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 5.63
user 0.32
sys 5.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318347/ft1_filtered_4FGL_J0103.8+1321_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/318347/ft2_4FGL_J0103.8+1321_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/318347/ltcube_260841601_261100801_4FGL_J0103.8+1321_daily_bin83.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/318347/ft2_4FGL_J0103.8+1321_daily_bin83.fits
.....................!
real 21.29
user 14.85
sys 6.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318347/ft1_filtered_4FGL_J0103.8+1321_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/318347/ft2_4FGL_J0103.8+1321_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/318347/ltcube_260841601_261100801_4FGL_J0103.8+1321_daily_bin83.fits outfile=/scratch/kocevski/318347/expmap_260841601_261100801_4FGL_J0103.8+1321_daily_bin83.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/318347/ltcube_260841601_261100801_4FGL_J0103.8+1321_daily_bin83.fits
.....................!
real 199.87
user 186.59
sys 12.07

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/318347/ft1_filtered_4FGL_J0103.8+1321_daily_bin83.fits scfile=/scratch/kocevski/318347/ft2_4FGL_J0103.8+1321_daily_bin83.fits outfile=/scratch/kocevski/318347/cmap_260841601_261100801_4FGL_J0103.8+1321_daily_bin83.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 5.63
user 0.36
sys 5.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318347/ft1_filtered_4FGL_J0103.8+1321_daily_bin83.fits scfile=/scratch/kocevski/318347/ft2_4FGL_J0103.8+1321_daily_bin83.fits outfile=/scratch/kocevski/318347/cmap_HighResolution_260841601_261100801_4FGL_J0103.8+1321_daily_bin83.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 5.59
user 0.40
sys 5.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6733       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    102.48       1.0000         .10000E-03   10000.    
    12 'norm      '    11.612       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4052       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.745       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1822       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.5102       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=   7514.115     FROM MIGRAD    STATUS=CONVERGED    350 CALLS     1717 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .83472       -.33435E-08** at limit **
   2  norm          11.906        8.6787       -.14144E-07    .13727E-04
   3  Prefactor     .10000E-03    5.9025       -.25658E-06** at limit **
   4  Prefactor     .10000E-03    9.4676        .25498E-05** at limit **
   5  norm          1.6765        4.7728       -.82023E-05   -.47999E-03
   6  Prefactor     .10000E-03    3.4272        .36959E-07** at limit **
   7  Prefactor     .10000E-03    14.396       -.45355E-05** at limit **
   8  Prefactor     .10000E-03    .98521        .42238E-07** at limit **
   9  norm          .10001E-03    33.577       -.24488E-04** at limit **
  10  Prefactor     62.822        47.222       -.33706E-05    .70940E-04
  11  Prefactor     102.46        109.90       -.12488E-04    .84464E-04
  12  norm          11.612        3.2829        .34274E-06    .62845E-04
  13  Prefactor     .10001E-03    27.389        .25621E-04** at limit **
  14  norm          1.4051        .72498       -.67797E-07   -.97900E-03
  15  Prefactor     .10000E-03    10.471       -.97765E-06** at limit **
  16  Prefactor     49.746        43.152        .14439E-05   -.23050E-04
  17  Normalizat    1.1823        .22490        .14153E-05    .50686E-04
  18  Prefactor     1.5101        .16743        .17159E-06    .15243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.9057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.67645
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 62.8219
  Prefactor  = 102.464
  norm       = 11.6121
  Prefactor  = 0.000100008
  norm       = 1.40513
  Prefactor  = 0.0001
  Prefactor  = 49.7465
  Normalizat = 1.1823
  Prefactor  = 1.51007
 **********
 **   18 **HESSE 
 **********

 FCN=   7514.115     FROM HESSE     STATUS=OK           236 CALLS     1953 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .83612        .77341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.906        8.6800        .11610E-03   -1.5018    
   3  Prefactor     .10000E-03    5.9050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6765        4.9077        .32348E-03   -1.5449    
   6  Prefactor     .10000E-03    3.4471        .15670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .99821        .84015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    33.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     62.822        47.223        .50626E-04   -1.4121    
  11  Prefactor     102.46        110.16        .39718E-04   -1.3680    
  12  norm          11.612        3.2852        .76196E-04   -1.5026    
  13  Prefactor     .10001E-03    27.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4051        .72191        .51296E-04   -1.5471    
  15  Prefactor     .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.746        43.151        .56858E-04   -1.4296    
  17  Normalizat    1.1823        .26793        .34012E-03   -.87152    
  18  Prefactor     1.5101        .19996        .23083E-03   -.77258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15752e-09
Minuit parameter uncertainties:
  1  1.13624e-07
  2  8.68089
  3  3.84104e-06
  4  6.79497e-05
  5  4.90887
  6  3.39511e-06
  7  0.000228276
  8  3.69522e-07
  9  0.0011198
  10  47.2515
  11  110.385
  12  3.2853
  13  0.000932494
  14  0.721912
  15  2.48002e-05
  16  43.1786
  17  0.268236
  18  0.200063
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  6.282e+01  4.725e+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.510e+00  2.001e-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.182e+00  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.86
Ra Dec: 15.969 13.354
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.71e-05

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): 0
logL (Free Index) = 7514.1130561
delta logL = 0.00227562074269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7514.11049556
delta logL = 0.00483616045494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.698       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0204       1.0000          .0000       10.000    
     3 'Normalizat'    1.1848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5091       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=   7514.110     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.698        1460.8        .12195E-02    .22605E-03
   2  Index         2.0204        5.9413        .12954        .12595E-03
   3  Normalizat    1.1849        .14965        .76769E-01    .11330E-04
   4  Prefactor     1.5090        .79078E-01    .52229E-01   -.46145E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.698
  Index      = 2.02035
  Normalizat = 1.18495
  Prefactor  = 1.50902
 **********
 **   18 **HESSE 
 **********

 FCN=   7514.110     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.698        75.505        .48782E-04   -1.4061    
   2  Index         2.0204        .66007        .76948E-02   -.63842    
   3  Normalizat    1.1849        .26390        .33979E-03   -.87069    
   4  Prefactor     1.5090        .19870        .23090E-03   -.77287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83983e-09
Minuit parameter uncertainties:
  1  75.6123
  2  0.663084
  3  0.264198
  4  0.198803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318347': 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) = 7514.11049538
delta logL = 0.00483633525528

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  6.770e+01  7.561e+01  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.020e+00  6.631e-01  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.509e+00  1.988e-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.185e+00  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.86
Ra Dec: 15.969 13.354
Photon Index (Free Index): 2.02 +/- 0.66
Photon Flux (Free Index): 3.76e-08 +/- 3.66e-08
Energy Flux (Free Index): 2.47e-05 +/- 3.06e-05

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/318347/cmap_HighResolution_260841601_261100801_4FGL_J0103.8+1321_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='2.47e-05', photon_flux_error='3.00e-08', dlogl='4.84e-03', energy_flux='2.28e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-08-13 11:10:48.933972', photon_index_error2='0.66', photon_index2='2.02', ts='4.86', fit_tolerance='1e-08', GAL='1.51', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='1.18', time_epoch_completed='1628878248.93', return_code='0', job_id='318347', GAL2='1.51', EG2='1.18', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='3.66e-08', ts2='4.86', photon_index='2.08' WHERE bin_id='83' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:10:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 318347: <4FGL_J0103.8+1321_daily_bin83> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin83 15.969 13.3536 260841601 261100801 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 :                                   716.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            918 sec.

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

