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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin44
RA = 15.969, Dec = 13.3536
tmin = 250732801, tmax = 250992001
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='318287', job_status='RUN', time_executed='2021-08-13 10:59:33.464880', time_epoch_executed='1628877573.46' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='44'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318287/ft1_4FGL_J0103.8+1321_daily_bin44.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318287/ft2_4FGL_J0103.8+1321_daily_bin44.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318287/ft1_4FGL_J0103.8+1321_daily_bin44.fits outfile=/scratch/kocevski/318287/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin44.fits ra=15.969 dec=13.3536 rad=12.0 tmin=250732801.0 tmax=250992001.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.81
user 1.27
sys 9.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318287/ft2_4FGL_J0103.8+1321_daily_bin44.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/318287/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin44.fits evtable="EVENTS" outfile="/scratch/kocevski/318287/ft1_filtered_4FGL_J0103.8+1321_daily_bin44.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 9.79
user 0.36
sys 9.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318287/ft1_filtered_4FGL_J0103.8+1321_daily_bin44.fits" evtable="EVENTS" scfile=/scratch/kocevski/318287/ft2_4FGL_J0103.8+1321_daily_bin44.fits sctable="SC_DATA" outfile=/scratch/kocevski/318287/ltcube_250732801_250992001_4FGL_J0103.8+1321_daily_bin44.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/318287/ft2_4FGL_J0103.8+1321_daily_bin44.fits
.....................!
real 25.98
user 15.13
sys 10.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318287/ft1_filtered_4FGL_J0103.8+1321_daily_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/318287/ft2_4FGL_J0103.8+1321_daily_bin44.fits sctable="SC_DATA" expcube=/scratch/kocevski/318287/ltcube_250732801_250992001_4FGL_J0103.8+1321_daily_bin44.fits outfile=/scratch/kocevski/318287/expmap_250732801_250992001_4FGL_J0103.8+1321_daily_bin44.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/318287/ltcube_250732801_250992001_4FGL_J0103.8+1321_daily_bin44.fits
.....................!
real 207.17
user 187.40
sys 16.47

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/318287/ft1_filtered_4FGL_J0103.8+1321_daily_bin44.fits scfile=/scratch/kocevski/318287/ft2_4FGL_J0103.8+1321_daily_bin44.fits outfile=/scratch/kocevski/318287/cmap_250732801_250992001_4FGL_J0103.8+1321_daily_bin44.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 11.06
user 0.37
sys 9.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318287/ft1_filtered_4FGL_J0103.8+1321_daily_bin44.fits scfile=/scratch/kocevski/318287/ft2_4FGL_J0103.8+1321_daily_bin44.fits outfile=/scratch/kocevski/318287/cmap_HighResolution_250732801_250992001_4FGL_J0103.8+1321_daily_bin44.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 9.77
user 0.38
sys 9.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22149       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8866       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28723E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .55273       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.497       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3897       1.0000         .10000E-03   10000.    
     9 'norm      '    6.3564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.809       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3721       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4754       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8761       1.0000         .10000E-03   10000.    
    16 'Prefactor '    91.028       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .66129       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95189       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=   6338.649     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1748 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20353        1.6330       -.68627E-06    .73173E-04
   2  norm          5.8888        8.5648       -.51239E-06   -.75345E-04
   3  Prefactor     .10001E-03    86.168        .31363E-04** at limit **
   4  Prefactor     .10000E-03    3.5825       -.21808E-07** at limit **
   5  norm          .56324        .92026        .20387E-06   -.12658E-02
   6  Prefactor     .10000E-03    1.6633        .85894E-08** at limit **
   7  Prefactor     23.495        14.231        .77342E-06   -.66016E-04
   8  Prefactor     2.3892        2.0553       -.98475E-07    .13391E-04
   9  norm          6.3558        7.5592       -.43402E-06    .51340E-05
  10  Prefactor     43.788        45.074       -.23566E-04   -.60610E-05
  11  Prefactor     .10000E-03    78.445       -.38538E-05** at limit **
  12  norm          6.3690        2.1452        .16763E-07    .11263E-03
  13  Prefactor     .10000E-03    14.241       -.48269E-07** at limit **
  14  norm          1.4753        .58387       -.50520E-07    .13582E-04
  15  Prefactor     8.8747        7.4642       -.37992E-06    .30100E-04
  16  Prefactor     91.015        55.337       -.10900E-04   -.24133E-06
  17  Normalizat    .66157        .16662        .24259E-05   -.15059E-03
  18  Prefactor     .95175        .12119        .54466E-06   -.17606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.203532
  norm       = 5.88876
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.563238
  Prefactor  = 0.0001
  Prefactor  = 23.4947
  Prefactor  = 2.38916
  norm       = 6.35581
  Prefactor  = 43.7878
  Prefactor  = 0.0001
  norm       = 6.36902
  Prefactor  = 0.0001
  norm       = 1.47528
  Prefactor  = 8.87475
  Prefactor  = 91.0153
  Normalizat = 0.661571
  Prefactor  = 0.951751
 **********
 **   18 **HESSE 
 **********

 FCN=   6338.649     FROM HESSE     STATUS=OK           252 CALLS     2000 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20353        12.332        .19320E-02   -1.5618    
   2  norm          5.8888        8.5663        .16552E-03   -1.5223    
   3  Prefactor     .10001E-03    87.787        .42816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5921        .14716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .56324        9.8298        .22968E-02   -1.5558    
   6  Prefactor     .10000E-03    1.6700        .10027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.495        14.464        .82634E-04   -1.4738    
   8  Prefactor     2.3892        2.0468        .10244E-03   -1.5399    
   9  norm          6.3558        7.5585        .15920E-03   -1.5204    
  10  Prefactor     43.788        45.168        .60570E-04   -1.4384    
  11  Prefactor     .10000E-03    78.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3690        2.1466        .65202E-04   -1.5203    
  13  Prefactor     .10000E-03    14.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4753        .58531        .37053E-04   -1.5465    
  15  Prefactor     8.8747        7.4623        .13454E-03   -1.5112    
  16  Prefactor     91.015        55.361        .21059E-03   -1.3797    
  17  Normalizat    .66157        .19623        .29228E-03   -1.0543    
  18  Prefactor     .95175        .14344        .18428E-03   -.94356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89202e-09
Minuit parameter uncertainties:
  1  3.16848
  2  8.56803
  3  0.00144019
  4  2.02318e-06
  5  4.70645
  6  3.09296e-06
  7  14.4659
  8  2.04682
  9  7.5596
  10  45.2031
  11  4.55166e-05
  12  2.14665
  13  1.35342e-05
  14  0.585309
  15  7.46308
  16  55.3923
  17  0.196436
  18  0.143501
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  4.379e+01  4.520e+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.518e-01  1.435e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  6.616e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 15.969 13.354
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.64e-05

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

Saving results to:
/scratch/kocevski/318287/likelihoodResults_250732801_250992001_4FGL_J0103.8+1321_daily_bin44.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) = 6338.2372882
delta logL = 0.412186501687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6338.23330082
delta logL = 0.416173889364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.449       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7251       1.0000          .0000       10.000    
     3 'Normalizat'    .63431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96337       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=   6338.233     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      303 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.443        53.781        .98752E-04   -.10660E-02
   2  Index         2.7260        1.3346        .47030E-02   -.51084E-03
   3  Normalizat    .63379        .19685        .29821E-03   -.75302E-03
   4  Prefactor     .96360        .14559        .18323E-03   -.13690E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4433
  Index      = 2.72598
  Normalizat = 0.633785
  Prefactor  = 0.963599
 **********
 **   18 **HESSE 
 **********

 FCN=   6338.233     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.443        31.957        .19750E-04   -1.4897    
   2  Index         2.7260        .79863        .18812E-03   -.47215    
   3  Normalizat    .63379        .19421        .59642E-04   -1.0657    
   4  Prefactor     .96360        .14384        .36646E-04   -.93953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25615e-09
Minuit parameter uncertainties:
  1  31.9901
  2  0.802974
  3  0.194422
  4  0.143898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318287': 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) = 6338.23329501
delta logL = 0.416179697429

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.644e+01  3.199e+01  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.726e+00  8.030e-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.636e-01  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  6.338e-01  1.944e-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): 2.73 +/- 0.80
Photon Flux (Free Index): 4.95e-08 +/- 4.28e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.02e-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/318287/cmap_HighResolution_250732801_250992001_4FGL_J0103.8+1321_daily_bin44.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='1.17e-05', photon_flux_error='2.87e-08', dlogl='4.16e-01', energy_flux='1.59e-05', photon_flux2='4.95e-08', job_status='DONE', time_completed='2021-08-13 11:11:17.607075', photon_index_error2='0.80', photon_index2='2.73', ts='1.46', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.23e-08', energy_flux_error2='1.02e-05', EG='0.66', time_epoch_completed='1628878277.61', return_code='0', job_id='318287', GAL2='0.96', EG2='0.63', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='4.28e-08', ts2='2.31', photon_index='2.08' WHERE bin_id='44' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 318287: <4FGL_J0103.8+1321_daily_bin44> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin44 15.969 13.3536 250732801 250992001 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 :                                   838.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            950 sec.

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

