/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 51 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 = 7511
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1329
RA = 197.129, Dec = 35.7918
tmin = 583804801, tmax = 584064001
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='272558', job_status='RUN', time_executed='2021-09-07 00:37:25.730869', time_epoch_executed='1631000245.73' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272558

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272558/ft1_4FGL_J1308.5+3547_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272558/ft2_4FGL_J1308.5+3547_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272558/ft1_4FGL_J1308.5+3547_daily_bin1329.fits outfile=/scratch/kocevski/272558/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1329.fits ra=197.129 dec=35.7918 rad=12.0 tmin=583804801.0 tmax=584064001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.85
user 2.65
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272558/ft1_filtered_4FGL_J1308.5+3547_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/272558/ft2_4FGL_J1308.5+3547_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/272558/ltcube_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.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/272558/ft2_4FGL_J1308.5+3547_daily_bin1329.fits
.....................!
real 10.87
user 10.57
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272558/ft1_filtered_4FGL_J1308.5+3547_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/272558/ft2_4FGL_J1308.5+3547_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/272558/ltcube_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.fits outfile=/scratch/kocevski/272558/expmap_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.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/272558/ltcube_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.fits
.....................!
real 157.30
user 152.85
sys 4.14

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/272558/ft1_filtered_4FGL_J1308.5+3547_daily_bin1329.fits scfile=/scratch/kocevski/272558/ft2_4FGL_J1308.5+3547_daily_bin1329.fits outfile=/scratch/kocevski/272558/cmap_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272558/ft1_filtered_4FGL_J1308.5+3547_daily_bin1329.fits scfile=/scratch/kocevski/272558/ft2_4FGL_J1308.5+3547_daily_bin1329.fits outfile=/scratch/kocevski/272558/cmap_HighResolution_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.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.48
user 0.31
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272558/ft1_filtered_4FGL_J1308.5+3547_daily_bin1329.fits', '/scratch/kocevski/272558/ft2_4FGL_J1308.5+3547_daily_bin1329.fits', expMap='/scratch/kocevski/272558/expmap_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.fits', expCube='/scratch/kocevski/272558/ltcube_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272558/Model_4FGL_J1308.5+3547_daily_bin1329.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/272558/ft1_filtered_4FGL_J1308.5+3547_daily_bin1329.fits
Spacecraft file(s): /scratch/kocevski/272558/ft2_4FGL_J1308.5+3547_daily_bin1329.fits
Exposure map: /scratch/kocevski/272558/expmap_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.fits
Exposure cube: /scratch/kocevski/272558/ltcube_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272558/Model_4FGL_J1308.5+3547_daily_bin1329.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) = 5985.93155341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.267       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25180E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.904       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6153       1.0000         .10000E-03   10000.    
     5 'Prefactor '    143.17       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .42533       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1358       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18178       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.637       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.798       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1508       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7143       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9439       1.0000         .10000E-03   10000.    
    22 'norm      '    11.611       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3115       1.0000         .10000E-03   10000.    
    24 'norm      '    .10610E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87300       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0427       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=   5985.877     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2671 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.263        9.0734        .21738E-07   -.18960E-04
   2  Prefactor     .10000E-03    2.1086        .17389E-06** at limit **
   3  Prefactor     18.891        13.476       -.18638E-07   -.33715E-04
   4  Prefactor     5.6151        9.7542        .11321E-06   -.92084E-05
   5  Prefactor     143.20        78.117       -.13653E-05   -.18473E-04
   6  Prefactor     .10000E-03    1.2268        .15053E-07** at limit **
   7  norm          .41937        4.2462        .36341E-05   -.58074E-04
   8  Prefactor     7.1264        25.491        .17764E-06   -.13537E-04
   9  Prefactor     .10000E-03    13.161       -.10064E-06** at limit **
  10  norm          .16870        1.8070       -.23088E-07    .46596E-04
  11  Prefactor     .10000E-03    3.8148        .25204E-07** at limit **
  12  norm          17.638        6.5719       -.65824E-07   -.95267E-04
  13  norm          .10000E-03    3.9792       -.11890E-07** at limit **
  14  norm          13.800        4.5823       -.20890E-06   -.29848E-03
  15  norm          .10000E-03    3.7332       -.10129E-06** at limit **
  16  Prefactor     1.1507        2.4722        .37848E-06   -.18709E-04
  17  Prefactor     9.7133        12.377       -.82356E-07   -.35219E-04
  18  Prefactor     .10000E-03    30.005       -.60734E-07** at limit **
  19  Prefactor     .10000E-03    17.189        .46906E-06** at limit **
  20  Prefactor     .10000E-03    56.917        .10651E-05** at limit **
  21  Prefactor     6.8859        107.40       -.24525E-05   -.42908E-04
  22  norm          11.611        2.6540       -.39804E-08    .10398E-04
  23  Prefactor     2.3115        2.9531        .16704E-06   -.24061E-04
  24  norm          .10000E-03    21.222       -.98583E-06** at limit **
  25  Normalizat    .87322        .17239        .94233E-06   -.19040E-03
  26  Prefactor     1.0425        .21643       -.18897E-05   -.23316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2634
  Prefactor  = 0.0001
  Prefactor  = 18.8905
  Prefactor  = 5.61513
  Prefactor  = 143.196
  Prefactor  = 0.0001
  norm       = 0.419367
  Prefactor  = 7.12636
  Prefactor  = 0.0001
  norm       = 0.1687
  Prefactor  = 0.0001
  norm       = 17.6378
  norm       = 0.0001
  norm       = 13.8002
  norm       = 0.0001
  Prefactor  = 1.15075
  Prefactor  = 9.71327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.88591
  norm       = 11.6109
  Prefactor  = 2.31149
  norm       = 0.0001
  Normalizat = 0.873221
  Prefactor  = 1.04254
 **********
 **   18 **HESSE 
 **********

 FCN=   5985.877     FROM HESSE     STATUS=OK           464 CALLS     3135 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.263        9.0781        .10251E-03   -1.4926    
   2  Prefactor     .10000E-03    5.5393        .21682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.891        13.388        .92119E-04   -1.4838    
   4  Prefactor     5.6151        9.7465        .16953E-03   -1.5234    
   5  Prefactor     143.20        78.240        .16836E-03   -1.3309    
   6  Prefactor     .10000E-03    1.2274        .83685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .41937        4.2912        .30396E-03   -1.5578    
   8  Prefactor     7.1264        25.491        .15017E-03   -1.5174    
   9  Prefactor     .10000E-03    13.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .16870        9.0700        .20168E-02   -1.5626    
  11  Prefactor     .10000E-03    3.8188        .14757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.638        6.5637        .95368E-04   -1.4868    
  13  norm          .10000E-03    3.9802        .15073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.800        4.5791        .89338E-04   -1.4965    
  15  norm          .10000E-03    3.7406        .14567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1507        2.4009        .16288E-03   -1.5493    
  17  Prefactor     9.7133        12.279        .12857E-03   -1.5085    
  18  Prefactor     .10000E-03    30.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    57.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.8859        109.08        .15225E-03   -1.5183    
  22  norm          11.611        2.6547        .58303E-04   -1.5026    
  23  Prefactor     2.3115        2.9413        .14521E-03   -1.5404    
  24  norm          .10000E-03    21.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .87322        .20476        .24293E-03   -.97408    
  26  Prefactor     1.0425        .25553        .28700E-03   -.91325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9462e-10
Minuit parameter uncertainties:
  1  9.07892
  2  3.88722e-05
  3  13.3904
  4  9.74928
  5  78.2969
  6  1.75169e-07
  7  2.6829
  8  25.5301
  9  4.35072e-05
  10  2.47361
  11  3.01685e-06
  12  6.56399
  13  1.25694e-06
  14  4.5792
  15  3.16357e-06
  16  2.40109
  17  12.2826
  18  4.11365e-05
  19  3.97281e-05
  20  2.09904e-05
  21  54.9315
  22  2.65468
  23  2.94147
  24  1.2487e-05
  25  0.204941
  26  0.255833
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.764e+01  6.564e+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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.043e+00  2.558e-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.732e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.49
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 7.69e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 1.18e-05

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) = 5985.68771275
delta logL = 0.189270383676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5985.65367145
delta logL = 0.22331168442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.426       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9340       1.0000          .0000       5.0000    
     3 'Normalizat'    .88560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0316       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.

 FCN=   5985.654     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.426        11.194        .22718E-02   -.52137E-02
   2  alpha         1.9340        .52111        .24754        .16835E-04
   3  Normalizat    .88560        .16574        .44717E-01    .39249E-04
   4  Prefactor     1.0316        .21223        .65179E-01   -.27277E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.4257
  alpha      = 1.93401
  Normalizat = 0.885601
  Prefactor  = 1.03163
 **********
 **   18 **HESSE 
 **********

 FCN=   5985.654     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.426        7.4680        .90874E-04   -1.4826    
   2  alpha         1.9340        .36527        .10422E-01   -.22838    
   3  Normalizat    .88560        .19768        .24145E-03   -.96968    
   4  Prefactor     1.0316        .25347        .28830E-03   -.91683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39355e-09
Minuit parameter uncertainties:
  1  7.46839
  2  0.36665
  3  0.197846
  4  0.253768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272558': 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) = 5985.65367145
delta logL = 0.223311685399

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.943e+01  7.468e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.934e+00  3.666e-01  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.032e+00  2.538e-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.856e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.94
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.93 +/- 0.37
Photon Flux (Free Index): 6.73e-08 +/- 2.89e-08
Energy Flux (Free Index): 3.64e-05 +/- 1.59e-05

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/272558/cmap_HighResolution_583804801_584064001_4FGL_J1308.5+3547_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.69e-08', energy_flux2='3.64e-05', photon_flux_error='2.86e-08', dlogl='2.23e-01', energy_flux='3.17e-05', photon_flux2='6.73e-08', job_status='DONE', time_completed='2021-09-07 00:46:35.467336', photon_index_error2='0.37', photon_index2='1.93', ts='19.49', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.87', time_epoch_completed='1631000795.47', return_code='0', job_id='272558', GAL2='1.03', EG2='0.89', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.89e-08', ts2='19.94', photon_index='2.18' WHERE bin_id='1329' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:46:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 272558: <4FGL_J1308.5+3547_daily_bin1329> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1329> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:35:42 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:36: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:36:09 2021
Terminated at Tue Sep  7 00:46:36 2021
Results reported at Tue Sep  7 00:46:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1329 197.129 35.7918 583804801 584064001 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 :                                   512.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            654 sec.

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

