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


Performing analysis on: 4FGL_J0103.8+1321_daily_bin50
RA = 15.969, Dec = 13.3536
tmin = 252288001, tmax = 252547201
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='318299', job_status='RUN', time_executed='2021-08-13 10:59:07.943404', time_epoch_executed='1628877547.94' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318299/ft1_4FGL_J0103.8+1321_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318299/ft2_4FGL_J0103.8+1321_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318299/ft1_4FGL_J0103.8+1321_daily_bin50.fits outfile=/scratch/kocevski/318299/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin50.fits ra=15.969 dec=13.3536 rad=12.0 tmin=252288001.0 tmax=252547201.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 9.12
user 2.37
sys 6.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318299/ft1_filtered_4FGL_J0103.8+1321_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/318299/ft2_4FGL_J0103.8+1321_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/318299/ltcube_252288001_252547201_4FGL_J0103.8+1321_daily_bin50.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/318299/ft2_4FGL_J0103.8+1321_daily_bin50.fits
.....................!
real 22.44
user 15.40
sys 6.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318299/ft1_filtered_4FGL_J0103.8+1321_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/318299/ft2_4FGL_J0103.8+1321_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/318299/ltcube_252288001_252547201_4FGL_J0103.8+1321_daily_bin50.fits outfile=/scratch/kocevski/318299/expmap_252288001_252547201_4FGL_J0103.8+1321_daily_bin50.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/318299/ltcube_252288001_252547201_4FGL_J0103.8+1321_daily_bin50.fits
.....................!
real 199.12
user 185.76
sys 12.93

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/318299/ft1_filtered_4FGL_J0103.8+1321_daily_bin50.fits scfile=/scratch/kocevski/318299/ft2_4FGL_J0103.8+1321_daily_bin50.fits outfile=/scratch/kocevski/318299/cmap_252288001_252547201_4FGL_J0103.8+1321_daily_bin50.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 6.94
user 0.38
sys 6.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318299/ft1_filtered_4FGL_J0103.8+1321_daily_bin50.fits scfile=/scratch/kocevski/318299/ft2_4FGL_J0103.8+1321_daily_bin50.fits outfile=/scratch/kocevski/318299/cmap_HighResolution_252288001_252547201_4FGL_J0103.8+1321_daily_bin50.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 6.95
user 0.40
sys 6.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1183       1.0000         .10000E-03   10000.    
     5 'norm      '    9.3155       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10291E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2511       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.494       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10821E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.557       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3417       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5080       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11368E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .81941       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1199       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=   7163.669     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1493 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91849        .73033E-08** at limit **
   2  norm          .10000E-03    2.4478        .32620E-07** at limit **
   3  Prefactor     7.3700        12.656       -.60100E-05   -.52163E-04
   4  Prefactor     4.1065        10.688       -.13123E-04   -.37779E-03
   5  norm          9.3091        8.1441       -.22860E-05   -.26008E-04
   6  Prefactor     .10002E-03    4.5603        .32078E-05** at limit **
   7  Prefactor     8.2435        12.423        .95952E-05   -.57190E-04
   8  Prefactor     .10000E-03    1.0333       -.22786E-08** at limit **
   9  norm          15.491        14.307        .72465E-05   -.23151E-04
  10  Prefactor     .10000E-03    14.322        .72470E-06** at limit **
  11  Prefactor     13.703        51.211        .10113E-04   -.64530E-05
  12  norm          7.3423        2.3437       -.17814E-06   -.61946E-04
  13  Prefactor     .10000E-03    10.537        .11410E-06** at limit **
  14  norm          1.5080        .62792       -.38449E-07   -.28312E-03
  15  Prefactor     .10000E-03    4.5885       -.34584E-08** at limit **
  16  Prefactor     .10000E-03    12.697       -.18491E-05** at limit **
  17  Normalizat    .81939        .17849       -.18586E-05   -.26601E-03
  18  Prefactor     1.1199        .13269        .83260E-06   -.59557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.37005
  Prefactor  = 4.10654
  norm       = 9.30911
  Prefactor  = 0.000100016
  Prefactor  = 8.24352
  Prefactor  = 0.0001
  norm       = 15.4912
  Prefactor  = 0.0001
  Prefactor  = 13.7029
  norm       = 7.34233
  Prefactor  = 0.0001
  norm       = 1.50803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.819385
  Prefactor  = 1.11987
 **********
 **   18 **HESSE 
 **********

 FCN=   7163.669     FROM HESSE     STATUS=OK           246 CALLS     1739 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .92271        .79207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4485        .12933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3700        12.648        .14778E-03   -1.5165    
   4  Prefactor     4.1065        10.776        .19864E-03   -1.5303    
   5  norm          9.3091        8.1350        .13131E-03   -1.5098    
   6  Prefactor     .10002E-03    16.951        .34321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.2435        12.369        .13957E-03   -1.5134    
   8  Prefactor     .10000E-03    1.0641        .16798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.491        14.280        .10175E-03   -1.4921    
  10  Prefactor     .10000E-03    14.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.703        51.204        .10879E-03   -1.4967    
  12  norm          7.3423        2.3445        .68054E-04   -1.5166    
  13  Prefactor     .10000E-03    10.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5080        .62707        .41821E-04   -1.5462    
  15  Prefactor     .10000E-03    4.6157        .17705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .81939        .20721        .30146E-03   -.99354    
  18  Prefactor     1.1199        .15455        .19644E-03   -.88834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43098e-09
Minuit parameter uncertainties:
  1  6.15446e-07
  2  5.7685e-06
  3  12.6524
  4  10.7816
  5  8.13594
  6  0.00104441
  7  12.3728
  8  3.03061e-07
  9  14.2834
  10  2.49898e-06
  11  51.3693
  12  2.34456
  13  9.28878e-06
  14  0.627074
  15  9.41678e-07
  16  2.02495e-07
  17  0.207408
  18  0.154613
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  2.499e-06  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.120e+00  1.546e-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:  8.194e-01  2.074e-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: 4.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318299/likelihoodResults_252288001_252547201_4FGL_J0103.8+1321_daily_bin50.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) = 7163.66906712
delta logL = -0.000331824872774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7163.66873629
delta logL = -9.95725713437e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3228       1.0000          .0000       10.000    
     3 'Normalizat'    .81937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1199       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=   7163.669     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      267 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10097E-03    55.036        .18142E-02** at limit **
   2  Index         2.2770        5.0020        .50000        .19522E-04
   3  Normalizat    .81938        .95990E-02    .30146E-03    .41294E-04
   4  Prefactor     1.1199        .72478E-02    .19644E-03    .28046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100965
  Index      = 2.27703
  Normalizat = 0.819384
  Prefactor  = 1.11987
 **********
 **   18 **HESSE 
 **********

 FCN=   7163.669     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10097E-03    254.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2770        7.4072        .50000       -.57591    
   3  Normalizat    .81938        .21101E-01    .12059E-04   -.99354    
   4  Prefactor     1.1199        .15932E-01    .39287E-04   -.88834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05675e-08
Minuit parameter uncertainties:
  1  0.0314998
  2  302.403
  3  0.0211013
  4  0.0159321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318299': 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) = 7163.66873606
delta logL = -7.62593117543e-07

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  1.010e-04  3.150e-02  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.277e+00  3.024e+02  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.120e+00  1.593e-02  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:  8.194e-01  2.110e-02  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/318299/cmap_HighResolution_252288001_252547201_4FGL_J0103.8+1321_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-08-13 11:10:17.506314', job_id='318299', GAL2='1.12', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1628878217.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-7.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='50' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:10:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 318299: <4FGL_J0103.8+1321_daily_bin50> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin50 15.969 13.3536 252288001 252547201 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 :                                   767.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            890 sec.

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

