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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin445
RA = 197.129, Dec = 35.7918
tmin = 354672001, tmax = 354931201
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='263743', job_status='RUN', time_executed='2021-09-07 00:11:21.294670', time_epoch_executed='1630998681.29' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263743/ft1_4FGL_J1308.5+3547_daily_bin445.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263743/ft1_4FGL_J1308.5+3547_daily_bin445.fits outfile=/scratch/kocevski/263743/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin445.fits ra=197.129 dec=35.7918 rad=12.0 tmin=354672001.0 tmax=354931201.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 3.38
user 3.14
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.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/263743/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin445.fits evtable="EVENTS" outfile="/scratch/kocevski/263743/ft1_filtered_4FGL_J1308.5+3547_daily_bin445.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 0.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263743/ft1_filtered_4FGL_J1308.5+3547_daily_bin445.fits" evtable="EVENTS" scfile=/scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits sctable="SC_DATA" outfile=/scratch/kocevski/263743/ltcube_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.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/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits
.....................!
real 13.58
user 13.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263743/ft1_filtered_4FGL_J1308.5+3547_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/263743/ltcube_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.fits outfile=/scratch/kocevski/263743/expmap_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.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/263743/ltcube_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.fits
.....................!
real 192.04
user 185.92
sys 5.58

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1308.5+3547 @ 197.129 35.7918

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/263743/ft1_filtered_4FGL_J1308.5+3547_daily_bin445.fits scfile=/scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits outfile=/scratch/kocevski/263743/cmap_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.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=197.129 yref=35.7918 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 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263743/ft1_filtered_4FGL_J1308.5+3547_daily_bin445.fits scfile=/scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits outfile=/scratch/kocevski/263743/cmap_HighResolution_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.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=197.129 yref=35.7918 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 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263743/ft1_filtered_4FGL_J1308.5+3547_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263743/Model_4FGL_J1308.5+3547_daily_bin445.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/263743/ft1_filtered_4FGL_J1308.5+3547_daily_bin445.fits.....................!
real 49.54
user 48.09
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263743/ft1_filtered_4FGL_J1308.5+3547_daily_bin445.fits', '/scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits', expMap='/scratch/kocevski/263743/expmap_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.fits', expCube='/scratch/kocevski/263743/ltcube_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263743/Model_4FGL_J1308.5+3547_daily_bin445.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1308.5+3547'

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.918e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.182e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/263743/ft1_filtered_4FGL_J1308.5+3547_daily_bin445.fits
Spacecraft file(s): /scratch/kocevski/263743/ft2_4FGL_J1308.5+3547_daily_bin445.fits
Exposure map: /scratch/kocevski/263743/expmap_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.fits
Exposure cube: /scratch/kocevski/263743/ltcube_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263743/Model_4FGL_J1308.5+3547_daily_bin445.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) = 5915.62091977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7232       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .25449E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18914E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4142       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.894       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.340       1.0000         .10000E-03   10000.    
    22 'norm      '    13.525       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81601       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2471       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5915.615     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3055 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4668       -.26785E-05** at limit **
   2  Prefactor     .10000E-03    1.3658       -.18933E-07** at limit **
   3  Prefactor     9.2539        9.4014        .76462E-07   -.20724E-03
   4  Prefactor     .10000E-03    35.259        .52648E-05** at limit **
   5  Prefactor     .10000E-03    30.009        .80700E-06** at limit **
   6  Prefactor     3.7192        3.0195        .75633E-06   -.24765E-02
   7  norm          .10000E-03    1.2968       -.18219E-07** at limit **
   8  Prefactor     .10000E-03    40.115       -.15869E-06** at limit **
   9  Prefactor     .10000E-03    6.0147       -.14365E-05** at limit **
  10  norm          10.926        5.0279        .44215E-08   -.21176E-03
  11  Prefactor     .10000E-03    9.9044       -.35889E-06** at limit **
  12  norm          .10000E-03    2.9966        .40002E-06** at limit **
  13  norm          .10000E-03    5.1561        .26258E-05** at limit **
  14  norm          .10000E-03    1.8540       -.30600E-07** at limit **
  15  norm          .10000E-03    3.1947       -.40745E-07** at limit **
  16  Prefactor     .10000E-03    2.8735        .63519E-06** at limit **
  17  Prefactor     1.4057        39.790       -.30775E-06   -.17054E-03
  18  Prefactor     .10000E-03    42.397       -.61597E-05** at limit **
  19  Prefactor     24.899        19.701        .88286E-06   -.49734E-05
  20  Prefactor     .10000E-03    12.197        .34907E-05** at limit **
  21  Prefactor     35.332        71.125       -.81705E-05   -.46641E-04
  22  norm          13.525        2.8203        .23904E-07    .26420E-04
  23  Prefactor     .10000E-03    2.9798       -.53621E-06** at limit **
  24  norm          .10000E-03    13.752       -.39427E-05** at limit **
  25  Normalizat    .81604        .16717        .75675E-06   -.14513E-03
  26  Prefactor     1.2471        .20725       -.54120E-06   -.37233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.25389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71919
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9263
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40572
  Prefactor  = 0.000100001
  Prefactor  = 24.8986
  Prefactor  = 0.0001
  Prefactor  = 35.3323
  norm       = 13.5253
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.81604
  Prefactor  = 1.2471
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.615     FROM HESSE     STATUS=OK           450 CALLS     3505 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5299        .15897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3953        .87754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2539        9.4450        .65875E-03   -1.5099    
   4  Prefactor     .10000E-03    35.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7192        5.5459        .10464E-02   -1.5322    
   7  norm          .10000E-03    1.3023        .85522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.926        5.0370        .56785E-03   -1.5047    
  11  Prefactor     .10000E-03    9.9717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0397        .12993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1829        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8934        .20356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.1288        .26424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2047        .21714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4057        30.752        .36412E-03   -1.5471    
  18  Prefactor     .10000E-03    42.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.899        19.678        .80286E-04   -1.4710    
  20  Prefactor     .10000E-03    12.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.332        71.881        .67412E-04   -1.4518    
  22  norm          13.525        2.8213        .57000E-04   -1.4972    
  23  Prefactor     .10000E-03    3.0568        .25922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    13.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81604        .19938        .24476E-03   -.99476    
  26  Prefactor     1.2471        .24745        .26282E-03   -.84894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58979e-09
Minuit parameter uncertainties:
  1  3.82484e-05
  2  6.50151e-07
  3  9.44656
  4  0.000144501
  5  2.51653e-05
  6  5.54668
  7  9.74621e-07
  8  1.97895e-05
  9  2.89406e-05
  10  5.03722
  11  1.73719e-05
  12  3.35856e-07
  13  4.29475e-05
  14  3.69141e-06
  15  3.17336e-05
  16  9.04213e-05
  17  13.1568
  18  0.000291919
  19  19.6828
  20  7.23239e-05
  21  72.0584
  22  2.82136
  23  9.33785e-06
  24  7.7188e-05
  25  0.199559
  26  0.247685
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  3.359e-07  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.182e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.247e+00  2.477e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  8.160e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.129 35.792
Photon Flux Upper Limit: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263743/likelihoodResults_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.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) = 5915.61615359
delta logL = -0.0015652331449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5915.61458839
delta logL = -3.36849552696e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1718       1.0000          .0000       5.0000    
     3 'Normalizat'    .81605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2471       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+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=   5915.615     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      236 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    143.15        .13047E-01** at limit **
   2  alpha         1.8186        3.5298        .16643        .25684E-07
   3  Normalizat    .81604        .28004E-01    .24476E-03    .17284E-03
   4  Prefactor     1.2471        .36541E-01    .26282E-03    .16361E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.81857
  Normalizat = 0.816042
  Prefactor  = 1.2471
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.615     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3016        .26833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8186        3.1709        .66574E-02   -.27607    
   3  Normalizat    .81604        .18815        .97902E-05   -.99476    
   4  Prefactor     1.2471        .24528        .52565E-04   -.84894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01058e-11
Minuit parameter uncertainties:
  1  1.9576e-06
  2  213.189
  3  0.1883
  4  0.245511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263743': 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) = 5915.61458706
delta logL = 1.29896216094e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.958e-06  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.819e+00  2.132e+02  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  7.382e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.247e+00  2.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  8.160e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.129 35.792

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/263743/cmap_HighResolution_354672001_354931201_4FGL_J1308.5+3547_daily_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-05', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-07 00:23:54.980345', job_id='263743', GAL2='1.25', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630999434.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='445' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:23:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 263743: <4FGL_J1308.5+3547_daily_bin445> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin445> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:10:31 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:11:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:11:09 2021
Terminated at Tue Sep  7 00:23:55 2021
Results reported at Tue Sep  7 00:23:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin445 197.129 35.7918 354672001 354931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1308.5+3547 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   747.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            804 sec.

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

