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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin24
RA = 15.969, Dec = 13.3536
tmin = 245548801, tmax = 245808001
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='318258', job_status='RUN', time_executed='2021-08-13 10:57:35.865231', time_epoch_executed='1628877455.87' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318258/ft1_4FGL_J0103.8+1321_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318258/ft2_4FGL_J0103.8+1321_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318258/ft1_4FGL_J0103.8+1321_daily_bin24.fits outfile=/scratch/kocevski/318258/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin24.fits ra=15.969 dec=13.3536 rad=12.0 tmin=245548801.0 tmax=245808001.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 5.04
user 1.02
sys 3.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318258/ft2_4FGL_J0103.8+1321_daily_bin24.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/318258/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin24.fits evtable="EVENTS" outfile="/scratch/kocevski/318258/ft1_filtered_4FGL_J0103.8+1321_daily_bin24.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 4.15
user 0.28
sys 3.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318258/ft1_filtered_4FGL_J0103.8+1321_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/318258/ft2_4FGL_J0103.8+1321_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/318258/ltcube_245548801_245808001_4FGL_J0103.8+1321_daily_bin24.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/318258/ft2_4FGL_J0103.8+1321_daily_bin24.fits
.....................!
real 16.93
user 12.13
sys 4.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318258/ft1_filtered_4FGL_J0103.8+1321_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/318258/ft2_4FGL_J0103.8+1321_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/318258/ltcube_245548801_245808001_4FGL_J0103.8+1321_daily_bin24.fits outfile=/scratch/kocevski/318258/expmap_245548801_245808001_4FGL_J0103.8+1321_daily_bin24.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/318258/ltcube_245548801_245808001_4FGL_J0103.8+1321_daily_bin24.fits
.....................!
real 160.90
user 151.55
sys 8.68

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/318258/ft1_filtered_4FGL_J0103.8+1321_daily_bin24.fits scfile=/scratch/kocevski/318258/ft2_4FGL_J0103.8+1321_daily_bin24.fits outfile=/scratch/kocevski/318258/cmap_245548801_245808001_4FGL_J0103.8+1321_daily_bin24.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 4.20
user 0.31
sys 3.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318258/ft1_filtered_4FGL_J0103.8+1321_daily_bin24.fits scfile=/scratch/kocevski/318258/ft2_4FGL_J0103.8+1321_daily_bin24.fits outfile=/scratch/kocevski/318258/cmap_HighResolution_245548801_245808001_4FGL_J0103.8+1321_daily_bin24.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 4.08
user 0.33
sys 3.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.0755       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19325E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.7769       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.693       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.461       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1352       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .83231       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.187       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .60655E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4921       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90285       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=   10094.88     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1747 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .45461       -.47768E-08** at limit **
   2  norm          2.0761        5.1015        .16226E-05   -.72862E-03
   3  Prefactor     .10000E-03    3.5328       -.14808E-08** at limit **
   4  Prefactor     .10000E-03    2.7317        .53269E-06** at limit **
   5  norm          7.7769        6.3129       -.56788E-07   -.14142E-05
   6  Prefactor     3.0813        3.2188       -.21547E-06   -.46176E-03
   7  Prefactor     50.695        15.070        .27045E-06   -.19814E-05
   8  Prefactor     .10000E-03    1.1790        .52054E-07** at limit **
   9  norm          .10000E-03    7.8948       -.13257E-05** at limit **
  10  Prefactor     41.467        43.817        .66345E-05   -.15053E-05
  11  Prefactor     .10000E-03    34.286        .11925E-04** at limit **
  12  norm          1.1347        1.4204       -.18575E-06   -.10903E-02
  13  Prefactor     .10000E-03    18.651       -.31957E-05** at limit **
  14  norm          .83235        .50178       -.22050E-07   -.61929E-03
  15  Prefactor     35.189        16.573       -.17715E-06   -.68966E-05
  16  Prefactor     .10001E-03    111.02       -.14065E-03** at limit **
  17  Normalizat    1.4921        .17078       -.42501E-07    .32709E-03
  18  Prefactor     .90283        .11968       -.21735E-06    .28473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.07612
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 7.77689
  Prefactor  = 3.0813
  Prefactor  = 50.6953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.4665
  Prefactor  = 0.0001
  norm       = 1.13467
  Prefactor  = 0.0001
  norm       = 0.832355
  Prefactor  = 35.1888
  Prefactor  = 0.00010001
  Normalizat = 1.49207
  Prefactor  = 0.902829
 **********
 **   18 **HESSE 
 **********

 FCN=   10094.88     FROM HESSE     STATUS=OK           246 CALLS     1993 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .45513        .66156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0761        5.0682        .28670E-03   -1.5420    
   3  Prefactor     .10000E-03    3.5343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2553        .32283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.7769        6.3114        .14379E-03   -1.5150    
   6  Prefactor     3.0813        3.2101        .17895E-03   -1.5357    
   7  Prefactor     50.695        15.084        .56326E-04   -1.4283    
   8  Prefactor     .10000E-03    2.3334        .21102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.9513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.467        43.811        .62255E-04   -1.4419    
  11  Prefactor     .10000E-03    34.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1347        1.3903        .12894E-03   -1.5495    
  13  Prefactor     .10000E-03    18.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .83235        .48722        .53435E-03   -1.5526    
  15  Prefactor     35.189        16.594        .67559E-04   -1.4521    
  16  Prefactor     .10001E-03    111.05        .21058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4921        .19890        .27232E-03   -.78001    
  18  Prefactor     .90283        .13967        .24123E-03   -.96042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65522e-09
Minuit parameter uncertainties:
  1  5.87724e-08
  2  5.06927
  3  5.2469e-07
  4  0.000345785
  5  6.31198
  6  3.21028
  7  15.0852
  8  2.45234e-06
  9  3.07531e-06
  10  43.8455
  11  2.00472e-05
  12  1.39031
  13  1.00264e-05
  14  0.487218
  15  16.5966
  16  0.00212757
  17  0.199
  18  0.13973
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  4.147e+01  4.385e+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:  9.028e-01  1.397e-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.492e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 15.969 13.354
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.59e-05

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

Saving results to:
/scratch/kocevski/318258/likelihoodResults_245548801_245808001_4FGL_J0103.8+1321_daily_bin24.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) = 10093.6817211
delta logL = 1.19519085241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10093.6540764
delta logL = 1.22283554353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3535       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2624       1.0000          .0000       10.000    
     3 'Normalizat'    1.4008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94017       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   10093.65     FROM MIGRAD    STATUS=FAILED       102 CALLS      316 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3303        118.03        .69353E-03   -.13386E-03
   2  Index         3.2634        2.7892        .34122E-02    .11902E-02
   3  Normalizat    1.4008        .19751        .27906E-03    .58665E-05
   4  Prefactor     .94024        .13524        .23680E-03   -.87378E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10093.65     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      401 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3303        118.03        .23648E-03   -.13386E-03
   2  Index         3.2634        2.7892        .60216E-03    .11902E-02
   3  Normalizat    1.4008        .19751        .21917E-03    .58665E-05
   4  Prefactor     .94024        .13524        .22750E-03   -.87378E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10093.65     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      439 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3304        23.092        .27741E-04   -.10983E-03
   2  Index         3.2634        1.0906        .68245E-03   -.39648E-04
   3  Normalizat    1.4008        .20590        .11162E-04    .52961E-05
   4  Prefactor     .94024        .14305        .94720E-05   -.67214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.33035
  Index      = 3.26341
  Normalizat = 1.40075
  Prefactor  = 0.940236
 **********
 **   18 **HESSE 
 **********

 FCN=   10093.65     FROM HESSE     STATUS=OK            23 CALLS      462 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3304        18.522        .11096E-05   -1.5131    
   2  Index         3.2634        .87714        .27298E-04   -.35471    
   3  Normalizat    1.4008        .20424        .22325E-05   -.80607    
   4  Prefactor     .94024        .14200        .18944E-05   -.94749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75436e-12
Minuit parameter uncertainties:
  1  18.5347
  2  0.882336
  3  0.204359
  4  0.142059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318258': 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) = 10093.6540756
delta logL = 1.22283642

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  8.330e+00  1.853e+01  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  3.263e+00  8.823e-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:  9.402e-01  1.421e-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.401e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.33
Ra Dec: 15.969 13.354
Photon Index (Free Index): 3.26 +/- 0.88
Photon Flux (Free Index): 1.03e-07 +/- 6.26e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.05e-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/318258/cmap_HighResolution_245548801_245808001_4FGL_J0103.8+1321_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='1.85e-05', photon_flux_error='2.78e-08', dlogl='1.22e+00', energy_flux='1.50e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-08-13 11:08:33.813523', photon_index_error2='0.88', photon_index2='3.26', ts='1.70', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='9.07e-08', energy_flux_error2='1.05e-05', EG='1.49', time_epoch_completed='1628878113.81', return_code='0', job_id='318258', GAL2='0.94', EG2='1.40', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='6.26e-08', ts2='4.33', photon_index='2.08' WHERE bin_id='24' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:08:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 318258: <4FGL_J0103.8+1321_daily_bin24> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin24 15.969 13.3536 245548801 245808001 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 :                                   709.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            787 sec.

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

