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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin49
RA = 15.969, Dec = 13.3536
tmin = 252028801, tmax = 252288001
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='318297', job_status='RUN', time_executed='2021-08-13 10:58:30.263563', time_epoch_executed='1628877510.26' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318297

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318297/ft1_4FGL_J0103.8+1321_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318297/ft2_4FGL_J0103.8+1321_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318297/ft1_4FGL_J0103.8+1321_daily_bin49.fits outfile=/scratch/kocevski/318297/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin49.fits ra=15.969 dec=13.3536 rad=12.0 tmin=252028801.0 tmax=252288001.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 2.62
user 1.24
sys 1.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318297/ft2_4FGL_J0103.8+1321_daily_bin49.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/318297/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/318297/ft1_filtered_4FGL_J0103.8+1321_daily_bin49.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.65
user 0.34
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318297/ft1_filtered_4FGL_J0103.8+1321_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/318297/ft2_4FGL_J0103.8+1321_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/318297/ltcube_252028801_252288001_4FGL_J0103.8+1321_daily_bin49.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/318297/ft2_4FGL_J0103.8+1321_daily_bin49.fits
.....................!
real 17.85
user 15.93
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318297/ft1_filtered_4FGL_J0103.8+1321_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/318297/ft2_4FGL_J0103.8+1321_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/318297/ltcube_252028801_252288001_4FGL_J0103.8+1321_daily_bin49.fits outfile=/scratch/kocevski/318297/expmap_252028801_252288001_4FGL_J0103.8+1321_daily_bin49.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/318297/ltcube_252028801_252288001_4FGL_J0103.8+1321_daily_bin49.fits
.....................!
real 193.97
user 187.66
sys 5.60

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/318297/ft1_filtered_4FGL_J0103.8+1321_daily_bin49.fits scfile=/scratch/kocevski/318297/ft2_4FGL_J0103.8+1321_daily_bin49.fits outfile=/scratch/kocevski/318297/cmap_252028801_252288001_4FGL_J0103.8+1321_daily_bin49.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.71
user 0.39
sys 1.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318297/ft1_filtered_4FGL_J0103.8+1321_daily_bin49.fits scfile=/scratch/kocevski/318297/ft2_4FGL_J0103.8+1321_daily_bin49.fits outfile=/scratch/kocevski/318297/cmap_HighResolution_252028801_252288001_4FGL_J0103.8+1321_daily_bin49.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.69
user 0.40
sys 1.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36846       1.0000         .10000E-03   10000.    
     2 'norm      '    7.0252       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .41371       1.0000         .10000E-03   10000.    
     5 'norm      '    15.430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.641       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7066       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9088       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.759       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    101.75       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0576       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0059       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=   6954.092     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     2094 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34933        1.8167       -.10051E-05   -.10199E-03
   2  norm          7.0225        6.3862       -.13084E-05    .75371E-04
   3  Prefactor     .10000E-03    11.283       -.59257E-07** at limit **
   4  Prefactor     .44926        5.8021       -.11267E-05    .17765E-04
   5  norm          15.431        8.7804        .24330E-05    .73217E-04
   6  Prefactor     .10000E-03    3.1172       -.23148E-06** at limit **
   7  Prefactor     .10000E-03    4.6051       -.23036E-06** at limit **
   8  Prefactor     .10000E-03    1.5902        .14489E-06** at limit **
   9  norm          10.644        9.4599        .57800E-05    .60047E-04
  10  Prefactor     7.9714        24.613       -.63690E-04   -.37135E-06
  11  Prefactor     1.6154        403.66       -.15080E-03    .34676E-05
  12  norm          3.9096        1.8515        .96074E-06    .16726E-02
  13  Prefactor     44.740        36.167        .69378E-05    .18914E-03
  14  norm          .10000E-03    .21895       -.36703E-06** at limit **
  15  Prefactor     .10000E-03    3.3283        .10853E-06** at limit **
  16  Prefactor     101.66        53.043       -.25573E-04    .32022E-04
  17  Normalizat    1.0577        .17968        .26468E-05    .63528E-03
  18  Prefactor     1.0058        .13180        .18243E-05    .72428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.349333
  norm       = 7.02254
  Prefactor  = 0.0001
  Prefactor  = 0.44926
  norm       = 15.4309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6435
  Prefactor  = 7.97144
  Prefactor  = 1.61543
  norm       = 3.90964
  Prefactor  = 44.7405
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.659
  Normalizat = 1.05772
  Prefactor  = 1.00584
 **********
 **   18 **HESSE 
 **********

 FCN=   6954.092     FROM HESSE     STATUS=OK           248 CALLS     2342 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34933        6.8392        .21543E-02   -1.5590    
   2  norm          7.0225        6.3870        .15135E-03   -1.5178    
   3  Prefactor     .10000E-03    11.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44926        44.854        .38337E-02   -1.5574    
   5  norm          15.431        8.7795        .10196E-03   -1.4922    
   6  Prefactor     .10000E-03    8.6960        .28353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6163        .17476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6632        .20523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.644        9.4611        .12282E-03   -1.5055    
  10  Prefactor     7.9714        24.619        .14214E-03   -1.5143    
  11  Prefactor     1.6154        410.66        .32187E-03   -1.5454    
  12  norm          3.9096        1.8381        .72825E-04   -1.5312    
  13  Prefactor     44.740        35.428        .59927E-04   -1.4369    
  14  norm          .10000E-03    .26715        .74287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3335        .14857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     101.66        52.997        .19930E-03   -1.3688    
  17  Normalizat    1.0577        .21209        .27279E-03   -.91121    
  18  Prefactor     1.0058        .15685        .20658E-03   -.92535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97804e-08
Minuit parameter uncertainties:
  1  3.09134
  2  6.38757
  3  1.90389e-05
  4  8.98396
  5  8.78024
  6  0.000100764
  7  2.62398e-05
  8  1.41926e-06
  9  9.46238
  10  24.6506
  11  51.875
  12  1.83817
  13  35.4444
  14  1.96914e-05
  15  1.61144e-05
  16  53.0217
  17  0.212257
  18  0.156921
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  7.971e+00  2.465e+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.006e+00  1.569e-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.058e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/318297/likelihoodResults_252028801_252288001_4FGL_J0103.8+1321_daily_bin49.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) = 6953.9251039
delta logL = 0.166964766147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6953.91964966
delta logL = 0.172419007857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.682       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4791       1.0000          .0000       10.000    
     3 'Normalizat'    1.0621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0021       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=   6953.920     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      308 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.685        39.566        .86019E-04   -.37532E-03
   2  Index         1.4790        .82445        .13891E-01   -.18868E-03
   3  Normalizat    1.0624        .20951        .27224E-03    .74626E-04
   4  Prefactor     1.0019        .15616        .20689E-03    .19248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6848
  Index      = 1.47898
  Normalizat = 1.06239
  Prefactor  = 1.0019
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.920     FROM HESSE     STATUS=OK            23 CALLS      331 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.685        39.390        .17204E-04   -1.4776    
   2  Index         1.4790        .82123        .55566E-03   -.78130    
   3  Normalizat    1.0624        .20969        .10889E-04   -.90969    
   4  Prefactor     1.0019        .15630        .41378E-04   -.92666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88691e-09
Minuit parameter uncertainties:
  1  39.4372
  2  0.828737
  3  0.209854
  4  0.156374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318297': 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) = 6953.91964859
delta logL = 0.172420077244

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  2.168e+01  3.944e+01  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  1.479e+00  8.287e-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.002e+00  1.564e-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.062e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/318297/cmap_HighResolution_252028801_252288001_4FGL_J0103.8+1321_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-08-13 11:09:05.346689', job_id='318297', GAL2='1.00', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1628878145.35', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.72e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='49' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:09:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 318297: <4FGL_J0103.8+1321_daily_bin49> in cluster <slac> Done

Job <4FGL_J0103.8+1321_daily_bin49> 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) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 10:56:34 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:34 2021
Terminated at Fri Aug 13 11:09:06 2021
Results reported at Fri Aug 13 11:09:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin49 15.969 13.3536 252028801 252288001 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 :                                   650.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            817 sec.

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

