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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin115
RA = 15.969, Dec = 13.3536
tmin = 269136001, tmax = 269395201
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='318392', job_status='RUN', time_executed='2021-08-13 11:01:24.467618', time_epoch_executed='1628877684.47' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318392/ft1_4FGL_J0103.8+1321_daily_bin115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318392/ft2_4FGL_J0103.8+1321_daily_bin115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318392/ft1_4FGL_J0103.8+1321_daily_bin115.fits outfile=/scratch/kocevski/318392/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin115.fits ra=15.969 dec=13.3536 rad=12.0 tmin=269136001.0 tmax=269395201.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.30
user 1.48
sys 2.77

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318392/ft1_filtered_4FGL_J0103.8+1321_daily_bin115.fits" evtable="EVENTS" scfile=/scratch/kocevski/318392/ft2_4FGL_J0103.8+1321_daily_bin115.fits sctable="SC_DATA" outfile=/scratch/kocevski/318392/ltcube_269136001_269395201_4FGL_J0103.8+1321_daily_bin115.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/318392/ft2_4FGL_J0103.8+1321_daily_bin115.fits
.....................!
real 17.30
user 13.87
sys 3.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318392/ft1_filtered_4FGL_J0103.8+1321_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/318392/ft2_4FGL_J0103.8+1321_daily_bin115.fits sctable="SC_DATA" expcube=/scratch/kocevski/318392/ltcube_269136001_269395201_4FGL_J0103.8+1321_daily_bin115.fits outfile=/scratch/kocevski/318392/expmap_269136001_269395201_4FGL_J0103.8+1321_daily_bin115.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/318392/ltcube_269136001_269395201_4FGL_J0103.8+1321_daily_bin115.fits
.....................!
real 194.08
user 185.97
sys 7.36

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/318392/ft1_filtered_4FGL_J0103.8+1321_daily_bin115.fits scfile=/scratch/kocevski/318392/ft2_4FGL_J0103.8+1321_daily_bin115.fits outfile=/scratch/kocevski/318392/cmap_269136001_269395201_4FGL_J0103.8+1321_daily_bin115.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 3.23
user 0.39
sys 2.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318392/ft1_filtered_4FGL_J0103.8+1321_daily_bin115.fits scfile=/scratch/kocevski/318392/ft2_4FGL_J0103.8+1321_daily_bin115.fits outfile=/scratch/kocevski/318392/cmap_HighResolution_269136001_269395201_4FGL_J0103.8+1321_daily_bin115.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 2.96
user 0.37
sys 2.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2844       1.0000         .10000E-03   10000.    
     2 'norm      '    8.1113       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.910       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3336       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.162       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.030       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.574       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11957E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14254E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3255       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .69717       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2325       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1716       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98530       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=   7174.191     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1525 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2833        3.0029        .35420E-07   -.11501E-02
   2  norm          8.1108        8.4030       -.22517E-05   -.55721E-04
   3  Prefactor     .10000E-03    4.1621       -.19169E-07** at limit **
   4  Prefactor     15.904        14.675        .65591E-05   -.26047E-05
   5  norm          6.3314        5.5559       -.35291E-06    .22151E-04
   6  Prefactor     15.162        9.8265        .33588E-05    .11099E-03
   7  Prefactor     12.033        11.535        .76534E-05   -.60889E-04
   8  Prefactor     .10000E-03    .77707        .21444E-07** at limit **
   9  norm          24.604        20.852        .20543E-04   -.29916E-04
  10  Prefactor     .10004E-03    474.11       -.18516E-03** at limit **
  11  Prefactor     .10000E-03    192.42        .70922E-04** at limit **
  12  norm          5.3294        2.1031        .88634E-07   -.97158E-03
  13  Prefactor     .10000E-03    10.324        .48458E-07** at limit **
  14  norm          .69716        .49889        .96571E-07   -.29195E-03
  15  Prefactor     2.2406        16.999        .37992E-04    .16740E-03
  16  Prefactor     .10000E-03    35.074        .25220E-05** at limit **
  17  Normalizat    1.1715        .19047       -.53393E-05    .20673E-03
  18  Prefactor     .98544        .13881       -.30250E-05    .47859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28332
  norm       = 8.1108
  Prefactor  = 0.0001
  Prefactor  = 15.9044
  norm       = 6.33142
  Prefactor  = 15.1622
  Prefactor  = 12.0326
  Prefactor  = 0.0001
  norm       = 24.6041
  Prefactor  = 0.000100043
  Prefactor  = 0.000100001
  norm       = 5.32941
  Prefactor  = 0.0001
  norm       = 0.697162
  Prefactor  = 2.24065
  Prefactor  = 0.0001
  Normalizat = 1.17152
  Prefactor  = 0.985436
 **********
 **   18 **HESSE 
 **********

 FCN=   7174.191     FROM HESSE     STATUS=OK           248 CALLS     1773 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2833        2.9965        .21571E-03   -1.5481    
   2  norm          8.1108        8.4094        .14077E-03   -1.5138    
   3  Prefactor     .10000E-03    4.1631        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.904        14.652        .10041E-03   -1.4910    
   5  norm          6.3314        5.5555        .15949E-03   -1.5205    
   6  Prefactor     15.162        9.8203        .10286E-03   -1.4929    
   7  Prefactor     12.033        11.527        .11550E-03   -1.5014    
   8  Prefactor     .10000E-03    .78567        .72904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.604        20.795        .80807E-04   -1.4716    
  10  Prefactor     .10004E-03    494.17        .36331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    194.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3294        2.1041        .74645E-04   -1.5246    
  13  Prefactor     .10000E-03    10.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .69716        .48824        .48973E-04   -1.5541    
  15  Prefactor     2.2406        17.059        .27513E-03   -1.5409    
  16  Prefactor     .10000E-03    35.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1715        .22435        .28000E-03   -.87487    
  18  Prefactor     .98544        .16407        .22129E-03   -.93217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4142e-09
Minuit parameter uncertainties:
  1  2.99688
  2  8.41057
  3  3.71731e-06
  4  14.6553
  5  5.55595
  6  9.82135
  7  11.5293
  8  3.13909e-06
  9  20.8008
  10  0.00929922
  11  0.00063393
  12  2.10415
  13  1.05438e-05
  14  0.488247
  15  12.3698
  16  7.82074e-05
  17  0.224534
  18  0.164151
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  9.299e-03  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.854e-01  1.642e-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.172e+00  2.245e-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: 8.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318392/likelihoodResults_269136001_269395201_4FGL_J0103.8+1321_daily_bin115.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) = 7174.19129267
delta logL = -9.50481899054e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7174.19129267
delta logL = -9.5030054581e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0817       1.0000          .0000       10.000    
     3 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98544       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=   7172.067     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      278 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0505        14.209        .90712E-02    .48406E-03
   2  Index         4.0825        2.2191        .70978E-01    .17910E-03
   3  Normalizat    1.0154        .15298        .67254E-01    .50435E-03
   4  Prefactor     1.0492        .89344E-01    .46085E-01    .10873E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05046
  Index      = 4.08248
  Normalizat = 1.0154
  Prefactor  = 1.04924
 **********
 **   18 **HESSE 
 **********

 FCN=   7172.067     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0505        14.934        .45579E-04   -1.5913    
   2  Index         4.0825        2.5776        .27933E-02   -.18455    
   3  Normalizat    1.0154        .21648        .29758E-03   -.92516    
   4  Prefactor     1.0492        .15517        .21499E-03   -.91106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.204e-09
Minuit parameter uncertainties:
  1  7.92356
  2  2.71338
  3  0.216668
  4  0.155236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318392': 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): 102
logL (Free Index) = 7172.06655696
delta logL = 2.1247262114

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.050e+00  7.924e+00  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  4.082e+00  2.713e+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:  1.049e+00  1.552e-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.015e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.61
Ra Dec: 15.969 13.354
Photon Index (Free Index): 4.08 +/- 2.71
Photon Flux (Free Index): 1.25e-07 +/- 1.90e-06
Energy Flux (Free Index): 1.85e-05 +/- 2.73e-04

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/318392/cmap_HighResolution_269136001_269395201_4FGL_J0103.8+1321_daily_bin115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', comment='SUCCESS', energy_flux2='1.85e-05', dlogl='2.12e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-08-13 11:11:38.151464', photon_index_error2='2.71', photon_index2='4.08', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.31e-08', energy_flux_error2='2.73e-04', EG='1.17', time_epoch_completed='1628878298.15', return_code='0', job_id='318392', GAL2='1.05', EG2='1.02', return_code2='102', photon_flux_error2='1.90e-06', ts2='4.61', photon_index='2.08' WHERE bin_id='115' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:11:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 318392: <4FGL_J0103.8+1321_daily_bin115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin115 15.969 13.3536 269136001 269395201 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 :                                   653.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            964 sec.

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

