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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin1430
RA = 15.969, Dec = 13.3536
tmin = 609984001, tmax = 610243201
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='328835', job_status='RUN', time_executed='2021-08-13 11:32:05.878449', time_epoch_executed='1628879525.88' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/328835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/328835/ft1_4FGL_J0103.8+1321_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/328835/ft2_4FGL_J0103.8+1321_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/328835/ft1_4FGL_J0103.8+1321_daily_bin1430.fits outfile=/scratch/kocevski/328835/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin1430.fits ra=15.969 dec=13.3536 rad=12.0 tmin=609984001.0 tmax=610243201.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.19
user 4.91
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/328835/ft2_4FGL_J0103.8+1321_daily_bin1430.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/328835/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin1430.fits evtable="EVENTS" outfile="/scratch/kocevski/328835/ft1_filtered_4FGL_J0103.8+1321_daily_bin1430.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/328835/ft1_filtered_4FGL_J0103.8+1321_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/328835/ft2_4FGL_J0103.8+1321_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/328835/ltcube_609984001_610243201_4FGL_J0103.8+1321_daily_bin1430.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/328835/ft2_4FGL_J0103.8+1321_daily_bin1430.fits
.....................!
real 13.46
user 13.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/328835/ft1_filtered_4FGL_J0103.8+1321_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/328835/ft2_4FGL_J0103.8+1321_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/328835/ltcube_609984001_610243201_4FGL_J0103.8+1321_daily_bin1430.fits outfile=/scratch/kocevski/328835/expmap_609984001_610243201_4FGL_J0103.8+1321_daily_bin1430.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/328835/ltcube_609984001_610243201_4FGL_J0103.8+1321_daily_bin1430.fits
.....................!
real 193.19
user 188.46
sys 4.02

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/328835/ft1_filtered_4FGL_J0103.8+1321_daily_bin1430.fits scfile=/scratch/kocevski/328835/ft2_4FGL_J0103.8+1321_daily_bin1430.fits outfile=/scratch/kocevski/328835/cmap_609984001_610243201_4FGL_J0103.8+1321_daily_bin1430.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=15.969 yref=13.3536 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/328835/ft1_filtered_4FGL_J0103.8+1321_daily_bin1430.fits scfile=/scratch/kocevski/328835/ft2_4FGL_J0103.8+1321_daily_bin1430.fits outfile=/scratch/kocevski/328835/cmap_HighResolution_609984001_610243201_4FGL_J0103.8+1321_daily_bin1430.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=15.969 yref=13.3536 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5301       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5559       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.001       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9430       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4119       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2060       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8201       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0247       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1138       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=   5872.670     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1714 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5303        3.1950        .37121E-05    .11076E-04
   2  norm          .10000E-03    3.2557       -.10511E-07** at limit **
   3  Prefactor     .10000E-03    8.7878        .12665E-06** at limit **
   4  Prefactor     .10000E-03    5.9629        .75577E-07** at limit **
   5  norm          .10000E-03    2.5883       -.73897E-08** at limit **
   6  Prefactor     .10000E-03    11.374        .16040E-06** at limit **
   7  Prefactor     3.0395        8.3029        .35631E-05   -.39879E-05
   8  Prefactor     1.5563        3.1791        .33711E-05   -.46770E-04
   9  norm          .10000E-03    21.082        .14277E-05** at limit **
  10  Prefactor     53.001        49.502        .33301E-06    .11461E-04
  11  Prefactor     .10000E-03    51.464        .21688E-05** at limit **
  12  norm          5.9427        2.7376       -.11595E-06   -.28184E-03
  13  Prefactor     8.4007        32.803        .15140E-05   -.10765E-04
  14  norm          2.2062        .85444        .43766E-07    .72602E-03
  15  Prefactor     4.8202        10.247        .16923E-05    .41653E-05
  16  Prefactor     .10000E-03    28.258       -.32533E-05** at limit **
  17  Normalizat    1.0247        .21009       -.18649E-05   -.49551E-04
  18  Prefactor     1.1138        .15258       -.45795E-06   -.58741E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53031
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.03945
  Prefactor  = 1.55625
  norm       = 0.0001
  Prefactor  = 53.0013
  Prefactor  = 0.0001
  norm       = 5.94267
  Prefactor  = 8.40066
  norm       = 2.20618
  Prefactor  = 4.82016
  Prefactor  = 0.0001
  Normalizat = 1.02466
  Prefactor  = 1.11385
 **********
 **   18 **HESSE 
 **********

 FCN=   5872.670     FROM HESSE     STATUS=OK           240 CALLS     1954 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5303        3.1851        .95472E-03   -1.5461    
   2  norm          .10000E-03    3.2578        .13504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5912        .12039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0395        8.2777        .11637E-02   -1.5359    
   8  Prefactor     1.5563        3.1721        .94151E-03   -1.5458    
   9  norm          .10000E-03    21.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.001        49.515        .55093E-04   -1.4251    
  11  Prefactor     .10000E-03    51.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9427        2.7417        .82954E-04   -1.5220    
  13  Prefactor     8.4007        32.934        .13822E-03   -1.5128    
  14  norm          2.2062        .85865        .40082E-04   -1.5411    
  15  Prefactor     4.8202        10.236        .91619E-03   -1.5269    
  16  Prefactor     .10000E-03    28.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0247        .24286        .29728E-03   -.92209    
  18  Prefactor     1.1138        .17684        .20981E-03   -.89025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64727e-10
Minuit parameter uncertainties:
  1  3.18545
  2  1.27026e-06
  3  2.02728e-06
  4  1.02076e-05
  5  9.30806e-07
  6  0.000144275
  7  8.2808
  8  3.17246
  9  0.000195756
  10  49.5538
  11  4.81809e-05
  12  2.74176
  13  33.0056
  14  0.85866
  15  10.2402
  16  1.27191e-05
  17  0.243128
  18  0.17693
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  5.300e+01  4.955e+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.114e+00  1.769e-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.025e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 15.969 13.354
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.80e-05

TS (Fixed Index): 2.26
Ra Dec: 15.969 13.354
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/328835/likelihoodResults_609984001_610243201_4FGL_J0103.8+1321_daily_bin1430.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) = 5872.64512571
delta logL = 0.0248434406967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5872.64314108
delta logL = 0.0268280693654

Fit tolerance = 1e-08

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

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

 FCN=   5872.643     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      318 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.684        68.083        .51090E-04    .33868E-04
   2  Index         1.8937        .81725        .10012E-01    .12491E-04
   3  Normalizat    1.0339        .24138        .29611E-03   -.14590E-04
   4  Prefactor     1.1104        .17603        .21010E-03   -.11660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.6844
  Index      = 1.89372
  Normalizat = 1.0339
  Prefactor  = 1.11038
 **********
 **   18 **HESSE 
 **********

 FCN=   5872.643     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.684        65.761        .10218E-04   -1.4136    
   2  Index         1.8937        .78900        .40047E-03   -.67034    
   3  Normalizat    1.0339        .24115        .11844E-04   -.91903    
   4  Prefactor     1.1104        .17607        .42020E-04   -.89136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00624e-11
Minuit parameter uncertainties:
  1  65.839
  2  0.794432
  3  0.241406
  4  0.176165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/328835': 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) = 5872.64314104
delta logL = 0.0268281158505

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  6.168e+01  6.584e+01  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  1.894e+00  7.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:  1.110e+00  1.762e-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.034e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 15.969 13.354
Photon Index (Free Index): 1.89 +/- 0.79
Photon Flux (Free Index): 2.63e-08 +/- 3.99e-08
Energy Flux (Free Index): 2.40e-05 +/- 3.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/328835/cmap_HighResolution_609984001_610243201_4FGL_J0103.8+1321_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='2.40e-05', photon_flux_error='3.15e-08', dlogl='2.68e-02', energy_flux='1.92e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2021-08-13 11:41:28.932682', photon_index_error2='0.79', photon_index2='1.89', ts='2.26', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='3.39e-05', EG='1.02', time_epoch_completed='1628880088.93', return_code='0', job_id='328835', GAL2='1.11', EG2='1.03', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='3.99e-08', ts2='2.31', photon_index='2.08' WHERE bin_id='1430' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:41:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 328835: <4FGL_J0103.8+1321_daily_bin1430> in cluster <slac> Done

Job <4FGL_J0103.8+1321_daily_bin1430> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 11:30:36 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:31:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 11:31:50 2021
Terminated at Fri Aug 13 11:41:29 2021
Results reported at Fri Aug 13 11:41:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin1430 15.969 13.3536 609984001 610243201 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 :                                   556.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            653 sec.

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

