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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin95
RA = 15.969, Dec = 13.3536
tmin = 263952001, tmax = 264211201
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='318363', job_status='RUN', time_executed='2021-08-13 10:59:34.171789', time_epoch_executed='1628877574.17' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318363

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318363/ft1_4FGL_J0103.8+1321_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318363/ft2_4FGL_J0103.8+1321_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318363/ft1_4FGL_J0103.8+1321_daily_bin95.fits outfile=/scratch/kocevski/318363/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin95.fits ra=15.969 dec=13.3536 rad=12.0 tmin=263952001.0 tmax=264211201.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.15
user 1.56
sys 8.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318363/ft2_4FGL_J0103.8+1321_daily_bin95.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/318363/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/318363/ft1_filtered_4FGL_J0103.8+1321_daily_bin95.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 8.92
user 0.35
sys 8.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318363/ft1_filtered_4FGL_J0103.8+1321_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/318363/ft2_4FGL_J0103.8+1321_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/318363/ltcube_263952001_264211201_4FGL_J0103.8+1321_daily_bin95.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/318363/ft2_4FGL_J0103.8+1321_daily_bin95.fits
.....................!
real 24.10
user 14.30
sys 9.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318363/ft1_filtered_4FGL_J0103.8+1321_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/318363/ft2_4FGL_J0103.8+1321_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/318363/ltcube_263952001_264211201_4FGL_J0103.8+1321_daily_bin95.fits outfile=/scratch/kocevski/318363/expmap_263952001_264211201_4FGL_J0103.8+1321_daily_bin95.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/318363/ltcube_263952001_264211201_4FGL_J0103.8+1321_daily_bin95.fits
.....................!
real 202.01
user 185.82
sys 15.71

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/318363/ft1_filtered_4FGL_J0103.8+1321_daily_bin95.fits scfile=/scratch/kocevski/318363/ft2_4FGL_J0103.8+1321_daily_bin95.fits outfile=/scratch/kocevski/318363/cmap_263952001_264211201_4FGL_J0103.8+1321_daily_bin95.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 8.78
user 0.39
sys 8.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318363/ft1_filtered_4FGL_J0103.8+1321_daily_bin95.fits scfile=/scratch/kocevski/318363/ft2_4FGL_J0103.8+1321_daily_bin95.fits outfile=/scratch/kocevski/318363/cmap_HighResolution_263952001_264211201_4FGL_J0103.8+1321_daily_bin95.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 8.76
user 0.39
sys 8.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .61758E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.956       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6722       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50651E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3974       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9541       1.0000         .10000E-03   10000.    
     9 'norm      '    39.740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.087       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4299       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1790       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .83652       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=   8279.264     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1786 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8381       -.10664E-05** at limit **
   2  norm          .10001E-03    5.2198       -.90202E-06** at limit **
   3  Prefactor     .10000E-03    40.455        .23876E-04** at limit **
   4  Prefactor     16.962        12.123       -.84176E-06   -.54922E-04
   5  norm          5.6770        5.4033        .47813E-06    .13781E-03
   6  Prefactor     .10000E-03    3.0205        .95123E-06** at limit **
   7  Prefactor     8.3951        11.305       -.21547E-05   -.20307E-04
   8  Prefactor     1.9540        1.9541       -.58110E-06   -.62546E-03
   9  norm          39.747        18.969        .69131E-06    .37979E-04
  10  Prefactor     12.001        39.513       -.16507E-03    .35070E-04
  11  Prefactor     .10000E-03    18.383        .88652E-05** at limit **
  12  norm          6.5476        2.0710       -.26340E-06    .78684E-04
  13  Prefactor     .10000E-03    9.0437       -.91156E-06** at limit **
  14  norm          1.4299        .56986       -.15039E-06    .32361E-03
  15  Prefactor     .10000E-03    7.6782        .16961E-05** at limit **
  16  Prefactor     .10000E-03    24.419       -.22182E-04** at limit **
  17  Normalizat    1.1789        .16736        .73749E-05   -.16791E-03
  18  Prefactor     .83662        .11821        .20629E-05    .34493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.000100011
  Prefactor  = 0.000100003
  Prefactor  = 16.9621
  norm       = 5.67703
  Prefactor  = 0.000100001
  Prefactor  = 8.39507
  Prefactor  = 1.95403
  norm       = 39.747
  Prefactor  = 12.0007
  Prefactor  = 0.0001
  norm       = 6.54763
  Prefactor  = 0.0001
  norm       = 1.42991
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.17887
  Prefactor  = 0.836624
 **********
 **   18 **HESSE 
 **********

 FCN=   8279.264     FROM HESSE     STATUS=OK           252 CALLS     2038 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5343        .23834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    39.809        .40268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    41.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.962        11.969        .97265E-04   -1.4884    
   5  norm          5.6770        5.4054        .16866E-03   -1.5231    
   6  Prefactor     .10000E-03    12.274        .30274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3951        11.304        .13834E-03   -1.5128    
   8  Prefactor     1.9540        1.9408        .12326E-03   -1.5428    
   9  norm          39.747        18.975        .63584E-04   -1.4446    
  10  Prefactor     12.001        39.596        .11522E-03   -1.5015    
  11  Prefactor     .10000E-03    18.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5476        2.0730        .71169E-04   -1.5196    
  13  Prefactor     .10000E-03    9.0472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4299        .56984        .41915E-04   -1.5469    
  15  Prefactor     .10000E-03    7.7532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1789        .19809        .26194E-03   -.87258    
  18  Prefactor     .83662        .13989        .21820E-03   -.98392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57593e-09
Minuit parameter uncertainties:
  1  0.000195389
  2  0.00130531
  3  0.000744797
  4  11.9709
  5  5.40585
  6  0.000219402
  7  11.3068
  8  1.94083
  9  18.9775
  10  39.6828
  11  2.35009e-05
  12  2.073
  13  1.64933e-05
  14  0.569841
  15  0.000371231
  16  5.78721e-05
  17  0.198217
  18  0.139953
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.200e+01  3.968e+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:  8.366e-01  1.400e-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.179e+00  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/318363/likelihoodResults_263952001_264211201_4FGL_J0103.8+1321_daily_bin95.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): 0
logL (Free Index) = 8278.79889577
delta logL = 0.465433573738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8278.79555469
delta logL = 0.468774652411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1826       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0372       1.0000          .0000       10.000    
     3 'Normalizat'    1.1404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84920       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=   8278.796     FROM MIGRAD    STATUS=FAILED        84 CALLS      290 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1792        78.838        .16145E-03   -.36562E-02
   2  Index         3.0377        2.6411        .49003E-02   -.17388E-02
   3  Normalizat    1.1403        .20553        .26577E-03   -.21865E-02
   4  Prefactor     .84924        .14463        .21669E-03   -.22581E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8278.796     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      373 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1792        78.838        .22350E-03   -1.5211    
   2  Index         3.0377        2.6411        .60680E-03   -.40331    
   3  Normalizat    1.1403        .20553        .29383E-03   -.88469    
   4  Prefactor     .84924        .14463        .27860E-03   -.97938    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8278.796     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      404 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1773        15.875        .64581E-05   -.12111E-03
   2  Index         3.0379        1.0011        .19601E-03   -.33756E-04
   3  Normalizat    1.1403        .20013        .53153E-04    .67588E-05
   4  Prefactor     .84924        .14063        .43338E-04    .10388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.17735
  Index      = 3.03785
  Normalizat = 1.14027
  Prefactor  = 0.849242
 **********
 **   18 **HESSE 
 **********

 FCN=   8278.796     FROM HESSE     STATUS=OK            23 CALLS      427 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1773        15.643        .12916E-05   -1.5211    
   2  Index         3.0379        .98671        .78406E-05   -.40327    
   3  Normalizat    1.1403        .20014        .10631E-04   -.88469    
   4  Prefactor     .84924        .14063        .86676E-05   -.97938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10476e-11
Minuit parameter uncertainties:
  1  15.6538
  2  0.994437
  3  0.200276
  4  0.140691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318363': 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) = 8278.79555418
delta logL = 0.468775166199

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  6.177e+00  1.565e+01  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  3.038e+00  9.944e-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:  8.492e-01  1.407e-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.140e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 15.969 13.354
Photon Index (Free Index): 3.04 +/- 0.99
Photon Flux (Free Index): 4.20e-08 +/- 4.76e-08
Energy Flux (Free Index): 8.22e-06 +/- 8.95e-06

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/318363/cmap_HighResolution_263952001_264211201_4FGL_J0103.8+1321_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', comment='SUCCESS', energy_flux2='8.22e-06', dlogl='4.69e-01', photon_flux2='4.20e-08', job_status='DONE', time_completed='2021-08-13 11:12:41.426461', photon_index_error2='0.99', photon_index2='3.04', ts='0.10', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='6.91e-08', energy_flux_error2='8.95e-06', EG='1.18', time_epoch_completed='1628878361.43', return_code='0', job_id='318363', GAL2='0.85', EG2='1.14', return_code2='0', photon_flux_error2='4.76e-08', ts2='1.06', photon_index='2.08' WHERE bin_id='95' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:12:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 318363: <4FGL_J0103.8+1321_daily_bin95> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin95 15.969 13.3536 263952001 264211201 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 :                                   912.03 sec.
    Max Memory :                                 618 MB
    Average Memory :                             248.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            1030 sec.

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

