/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 130 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 = 7436
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0103.8+1321_daily_bin235
RA = 15.969, Dec = 13.3536
tmin = 300240001, tmax = 300499201
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='319764', job_status='RUN', time_executed='2021-08-13 11:04:13.305271', time_epoch_executed='1628877853.31' WHERE source_name='4FGL J0103.8+1321' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319764/ft1_4FGL_J0103.8+1321_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319764/ft2_4FGL_J0103.8+1321_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/319764/ft1_4FGL_J0103.8+1321_daily_bin235.fits outfile=/scratch/kocevski/319764/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin235.fits ra=15.969 dec=13.3536 rad=12.0 tmin=300240001.0 tmax=300499201.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 8.54
user 3.28
sys 5.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/319764/ft2_4FGL_J0103.8+1321_daily_bin235.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/319764/ft1_filteredMKT_4FGL_J0103.8+1321_daily_bin235.fits evtable="EVENTS" outfile="/scratch/kocevski/319764/ft1_filtered_4FGL_J0103.8+1321_daily_bin235.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 5.33
user 0.35
sys 4.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/319764/ft1_filtered_4FGL_J0103.8+1321_daily_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/319764/ft2_4FGL_J0103.8+1321_daily_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/319764/ltcube_300240001_300499201_4FGL_J0103.8+1321_daily_bin235.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/319764/ft2_4FGL_J0103.8+1321_daily_bin235.fits
.....................!
real 19.64
user 13.64
sys 5.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319764/ft1_filtered_4FGL_J0103.8+1321_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/319764/ft2_4FGL_J0103.8+1321_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/319764/ltcube_300240001_300499201_4FGL_J0103.8+1321_daily_bin235.fits outfile=/scratch/kocevski/319764/expmap_300240001_300499201_4FGL_J0103.8+1321_daily_bin235.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/319764/ltcube_300240001_300499201_4FGL_J0103.8+1321_daily_bin235.fits
.....................!
real 198.38
user 187.48
sys 10.01

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/319764/ft1_filtered_4FGL_J0103.8+1321_daily_bin235.fits scfile=/scratch/kocevski/319764/ft2_4FGL_J0103.8+1321_daily_bin235.fits outfile=/scratch/kocevski/319764/cmap_300240001_300499201_4FGL_J0103.8+1321_daily_bin235.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 5.44
user 0.41
sys 4.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/319764/ft1_filtered_4FGL_J0103.8+1321_daily_bin235.fits scfile=/scratch/kocevski/319764/ft2_4FGL_J0103.8+1321_daily_bin235.fits outfile=/scratch/kocevski/319764/cmap_HighResolution_300240001_300499201_4FGL_J0103.8+1321_daily_bin235.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 5.26
user 0.40
sys 4.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6226       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.911       1.0000         .10000E-03   10000.    
     5 'norm      '    11.559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42907       1.0000         .10000E-03   10000.    
     9 'norm      '    14.666       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.703       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1263       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .81515       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1646       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.838       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0829       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95067       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=   6864.208     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1710 TOTAL
                     EDM=   .94E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6223        4.1075       -.49960E-06   -.88464E-04
   2  norm          3.2487        10.490       -.10076E-06   -.83138E-05
   3  Prefactor     .10000E-03    14.172        .70959E-05** at limit **
   4  Prefactor     21.911        18.795       -.61237E-06   -.45980E-05
   5  norm          11.558        8.2406        .25178E-07   -.59652E-05
   6  Prefactor     1.6524        1.9300        .78177E-07   -.39579E-03
   7  Prefactor     .10000E-03    5.8434        .36709E-07** at limit **
   8  Prefactor     .42924        1.7997       -.14094E-06    .46975E-04
   9  norm          14.666        11.381       -.28135E-07    .93966E-05
  10  Prefactor     32.703        35.583        .11063E-06    .79442E-06
  11  Prefactor     .10000E-03    15.323       -.60812E-05** at limit **
  12  norm          7.1262        2.1613        .90582E-08    .96759E-04
  13  Prefactor     .10000E-03    10.853       -.12292E-05** at limit **
  14  norm          .81517        .54627       -.71353E-08    .12498E-04
  15  Prefactor     3.1654        9.2592       -.71693E-07   -.10124E-03
  16  Prefactor     20.835        31.882       -.58200E-05    .33383E-06
  17  Normalizat    1.0828        .18836        .22941E-06    .32708E-05
  18  Prefactor     .95068        .13186        .20297E-06   -.93462E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62233
  norm       = 3.24869
  Prefactor  = 0.0001
  Prefactor  = 21.9111
  norm       = 11.5584
  Prefactor  = 1.65237
  Prefactor  = 0.0001
  Prefactor  = 0.429239
  norm       = 14.6664
  Prefactor  = 32.7031
  Prefactor  = 0.0001
  norm       = 7.12619
  Prefactor  = 0.0001
  norm       = 0.815171
  Prefactor  = 3.16545
  Prefactor  = 20.8345
  Normalizat = 1.08281
  Prefactor  = 0.95068
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.208     FROM HESSE     STATUS=OK           254 CALLS     1964 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6223        4.1005        .25553E-03   -1.5453    
   2  norm          3.2487        10.497        .22469E-03   -1.5347    
   3  Prefactor     .10000E-03    14.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.911        19.532        .85569E-04   -1.4771    
   5  norm          11.558        8.2405        .11783E-03   -1.5028    
   6  Prefactor     1.6524        7.1147        .16421E-02   -1.5451    
   7  Prefactor     .10000E-03    5.8541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .42924        3.2584        .21046E-02   -1.5577    
   9  norm          14.666        11.382        .52293E-03   -1.4942    
  10  Prefactor     32.703        35.611        .70070E-04   -1.4564    
  11  Prefactor     .10000E-03    15.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1262        2.1613        .64794E-04   -1.5174    
  13  Prefactor     .10000E-03    10.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .81517        .54323        .48451E-04   -1.5527    
  15  Prefactor     3.1654        9.5508        .11392E-02   -1.5352    
  16  Prefactor     20.835        31.874        .87743E-04   -1.4795    
  17  Normalizat    1.0828        .22103        .28119E-03   -.90306    
  18  Prefactor     .95068        .15619        .21215E-03   -.94392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83861e-10
Minuit parameter uncertainties:
  1  4.10124
  2  10.5033
  3  6.38493e-09
  4  19.5375
  5  8.2413
  6  6.85859
  7  1.11559e-06
  8  2.36519
  9  11.3841
  10  35.6342
  11  1.73293e-07
  12  2.16133
  13  9.1507e-07
  14  0.543237
  15  9.55544
  16  31.8997
  17  0.221222
  18  0.15626
Done.

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

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  3.270e+01  3.563e+01  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  2.082e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.507e-01  1.563e-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.083e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 15.969 13.354
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/319764/likelihoodResults_300240001_300499201_4FGL_J0103.8+1321_daily_bin235.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) = 6864.01792434
delta logL = 0.190059208549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6864.01317693
delta logL = 0.194806627422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.661       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4813       1.0000          .0000       10.000    
     3 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94764       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=   6864.013     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      275 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.663        41.757        .67109E-04   -.34965E-04
   2  Index         1.4813        .83646        .14280E-01   -.12556E-03
   3  Normalizat    1.0960        .21386        .27966E-03   -.86751E-04
   4  Prefactor     .94753        .15305        .21246E-03   -.10376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.6633
  Index      = 1.48132
  Normalizat = 1.09603
  Prefactor  = 0.947528
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.013     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.663        42.150        .13422E-04   -1.4513    
   2  Index         1.4813        .84430        .28559E-02   -.78064    
   3  Normalizat    1.0960        .21404        .11186E-04   -.89879    
   4  Prefactor     .94753        .15320        .84983E-05   -.94500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48337e-11
Minuit parameter uncertainties:
  1  42.185
  2  0.852454
  3  0.214213
  4  0.153267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319764': 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) = 6864.01317667
delta logL = 0.19480688584

Extracting fit parameters...

4FGL J0103.8+1321
   Spectrum: PowerLaw
232    Prefactor:  3.566e+01  4.218e+01  1.000e-04  1.000e+04 ( 1.000e-14)
233        Index:  1.481e+00  8.525e-01  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  2.306e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.475e-01  1.533e-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.096e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 15.969 13.354
Photon Index (Free Index): 1.48 +/- 0.85
Photon Flux (Free Index): 7.46e-09 +/- 1.39e-08
Energy Flux (Free Index): 2.51e-05 +/- 4.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/319764/cmap_HighResolution_300240001_300499201_4FGL_J0103.8+1321_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='2.51e-05', photon_flux_error='2.26e-08', dlogl='1.95e-01', energy_flux='1.19e-05', photon_flux2='7.46e-09', job_status='DONE', time_completed='2021-08-13 11:15:08.409277', photon_index_error2='0.85', photon_index2='1.48', ts='2.03', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.41e-08', energy_flux_error2='4.48e-05', EG='1.08', time_epoch_completed='1628878508.41', return_code='0', job_id='319764', GAL2='0.95', EG2='1.10', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='1.39e-08', ts2='2.40', photon_index='2.08' WHERE bin_id='235' AND source_name='4FGL J0103.8+1321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:15:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0181>
Subject: Job 319764: <4FGL_J0103.8+1321_daily_bin235> in cluster <slac> Done

Job <4FGL_J0103.8+1321_daily_bin235> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 11:00:24 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:00:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 11:00:35 2021
Terminated at Fri Aug 13 11:15:09 2021
Results reported at Fri Aug 13 11:15:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0103.8+1321_daily_bin235 15.969 13.3536 300240001 300499201 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 :                                   728.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            885 sec.

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

