/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 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0103.8+1321_daily_bin143
RA = 15.969, Dec = 13.3536
tmin = 276393601, tmax = 276652801
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='318433', job_status='RUN', time_executed='2021-08-13 10:58:02.820019', time_epoch_executed='1628877482.82' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318433/ft1_4FGL_J0103.8+1321_daily_bin143.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318433/ft2_4FGL_J0103.8+1321_daily_bin143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318433/ft1_4FGL_J0103.8+1321_daily_bin143.fits outfile=/scratch/kocevski/318433/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin143.fits ra=15.969 dec=13.3536 rad=12.0 tmin=276393601.0 tmax=276652801.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 4.03
user 3.26
sys 0.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318433/ft1_filtered_4FGL_J0103.8+1321_daily_bin143.fits" evtable="EVENTS" scfile=/scratch/kocevski/318433/ft2_4FGL_J0103.8+1321_daily_bin143.fits sctable="SC_DATA" outfile=/scratch/kocevski/318433/ltcube_276393601_276652801_4FGL_J0103.8+1321_daily_bin143.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/318433/ft2_4FGL_J0103.8+1321_daily_bin143.fits
.....................!
real 13.44
user 12.46
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318433/ft1_filtered_4FGL_J0103.8+1321_daily_bin143.fits evtable="EVENTS" scfile=/scratch/kocevski/318433/ft2_4FGL_J0103.8+1321_daily_bin143.fits sctable="SC_DATA" expcube=/scratch/kocevski/318433/ltcube_276393601_276652801_4FGL_J0103.8+1321_daily_bin143.fits outfile=/scratch/kocevski/318433/expmap_276393601_276652801_4FGL_J0103.8+1321_daily_bin143.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/318433/ltcube_276393601_276652801_4FGL_J0103.8+1321_daily_bin143.fits
.....................!
real 193.78
user 187.59
sys 5.79

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/318433/ft1_filtered_4FGL_J0103.8+1321_daily_bin143.fits scfile=/scratch/kocevski/318433/ft2_4FGL_J0103.8+1321_daily_bin143.fits outfile=/scratch/kocevski/318433/cmap_276393601_276652801_4FGL_J0103.8+1321_daily_bin143.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 1.08
user 0.38
sys 0.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318433/ft1_filtered_4FGL_J0103.8+1321_daily_bin143.fits scfile=/scratch/kocevski/318433/ft2_4FGL_J0103.8+1321_daily_bin143.fits outfile=/scratch/kocevski/318433/cmap_HighResolution_276393601_276652801_4FGL_J0103.8+1321_daily_bin143.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 1.07
user 0.37
sys 0.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20776E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .12386E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3485       1.0000         .10000E-03   10000.    
     5 'norm      '    12.091       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.108       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.9717       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2557       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2668       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .69303E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    110.99       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4824       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90853       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=   7530.034     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1608 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10380E-03    2.5599        .17816E-05** at limit **
   2  norm          .10000E-03    9.0795        .17542E-05** at limit **
   3  Prefactor     3.0509        71.842       -.27225E-04   -.25247E-04
   4  Prefactor     1.3290        18.861       -.31947E-05   -.30984E-03
   5  norm          12.094        7.7986       -.64462E-07    .19388E-04
   6  Prefactor     12.111        6.8072       -.15181E-08   -.33552E-04
   7  Prefactor     .10000E-03    3.2745        .22068E-06** at limit **
   8  Prefactor     .10000E-03    .75289       -.18542E-06** at limit **
   9  norm          8.9663        15.469        .12397E-06   -.44204E-04
  10  Prefactor     .10000E-03    21.609       -.12124E-05** at limit **
  11  Prefactor     .10000E-03    23.672        .13093E-05** at limit **
  12  norm          2.2555        1.6349       -.10911E-06   -.97495E-04
  13  Prefactor     .10000E-03    113.08       -.18432E-05** at limit **
  14  norm          1.2666        .66068        .53335E-07   -.35167E-03
  15  Prefactor     .10885E-03    11.053        .23551E-05** at limit **
  16  Prefactor     111.01        61.934        .61661E-05   -.32974E-03
  17  Normalizat    1.4828        .19832       -.20532E-06   -.55141E-03
  18  Prefactor     .90824        .13824       -.13172E-06   -.55739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103801
  norm       = 0.000100003
  Prefactor  = 3.05085
  Prefactor  = 1.32897
  norm       = 12.0944
  Prefactor  = 12.1107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.96635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.25552
  Prefactor  = 0.0001
  norm       = 1.26664
  Prefactor  = 0.000108846
  Prefactor  = 111.007
  Normalizat = 1.48276
  Prefactor  = 0.908244
 **********
 **   18 **HESSE 
 **********

 FCN=   7530.034     FROM HESSE     STATUS=OK           262 CALLS     1870 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10380E-03    7.4463        .40446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    56.549        .50077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0509        81.707        .23358E-03   -1.5359    
   4  Prefactor     1.3290        19.962        .37691E-03   -1.5477    
   5  norm          12.094        7.7978        .11520E-03   -1.5012    
   6  Prefactor     12.111        6.7952        .11512E-03   -1.5012    
   7  Prefactor     .10000E-03    3.2784        .15335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .75785        .73500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.9663        15.477        .13381E-03   -1.5109    
  10  Prefactor     .10000E-03    21.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2555        1.6372        .91342E-04   -1.5408    
  13  Prefactor     .10000E-03    114.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2666        .66054        .49084E-04   -1.5483    
  15  Prefactor     .10885E-03    16.155        .80392E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     111.01        60.790        .19091E-03   -1.3597    
  17  Normalizat    1.4828        .23396        .27268E-03   -.78264    
  18  Prefactor     .90824        .16183        .23613E-03   -.95854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53497e-09
Minuit parameter uncertainties:
  1  0.0106409
  2  0.000881203
  3  31.6245
  4  10.305
  5  7.79847
  6  6.79564
  7  2.48485e-06
  8  3.29229e-06
  9  15.4843
  10  9.41128e-05
  11  0.000114665
  12  1.63719
  13  0.000370494
  14  0.660542
  15  0.0239153
  16  60.8239
  17  0.234128
  18  0.161918
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  9.411e-05  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.082e-01  1.619e-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.483e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/318433/likelihoodResults_276393601_276652801_4FGL_J0103.8+1321_daily_bin143.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): 102
logL (Free Index) = 7530.03452607
delta logL = -0.000220153831833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7530.0343061
delta logL = -1.90137143363e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1657       1.0000          .0000       10.000    
     3 'Normalizat'    1.4828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90825       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7530.034     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      229 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1237.8        .90712E-02** at limit **
   2  Index         2.1577        5.6360        .50000        .30897E-05
   3  Normalizat    1.4828        .42974E-01    .61656E-01    .55318E-05
   4  Prefactor     .90824        .30196E-01    .45110E-01    .14290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15767
  Normalizat = 1.48276
  Prefactor  = 0.908244
 **********
 **   18 **HESSE 
 **********

 FCN=   7530.034     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1577        6.0686        .50000       -.60464    
   3  Normalizat    1.4828        .22531        .27268E-03   -.78264    
   4  Prefactor     .90824        .15838        .23613E-03   -.95854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0367e-11
Minuit parameter uncertainties:
  1  6.32457e-06
  2  4.34662
  3  0.225466
  4  0.158462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318433': 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) = 7530.03430596
delta logL = -5.12181941303e-08

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  6.325e-06  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.158e+00  4.347e+00  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.082e-01  1.585e-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.483e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 15.969 13.354

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/318433/cmap_HighResolution_276393601_276652801_4FGL_J0103.8+1321_daily_bin143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-08-13 11:08:16.734453', job_id='318433', GAL2='0.91', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1628878096.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-5.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='143' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:08:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 318433: <4FGL_J0103.8+1321_daily_bin143> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin143 15.969 13.3536 276393601 276652801 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 :                                   618.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            759 sec.

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

