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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin374
RA = 197.129, Dec = 35.7918
tmin = 336268801, tmax = 336528001
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='263636', job_status='RUN', time_executed='2021-09-07 00:10:51.479924', time_epoch_executed='1630998651.48' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263636

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263636/ft1_4FGL_J1308.5+3547_daily_bin374.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263636/ft2_4FGL_J1308.5+3547_daily_bin374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263636/ft1_4FGL_J1308.5+3547_daily_bin374.fits outfile=/scratch/kocevski/263636/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin374.fits ra=197.129 dec=35.7918 rad=12.0 tmin=336268801.0 tmax=336528001.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 7.20
user 6.89
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263636/ft1_filtered_4FGL_J1308.5+3547_daily_bin374.fits" evtable="EVENTS" scfile=/scratch/kocevski/263636/ft2_4FGL_J1308.5+3547_daily_bin374.fits sctable="SC_DATA" outfile=/scratch/kocevski/263636/ltcube_336268801_336528001_4FGL_J1308.5+3547_daily_bin374.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/263636/ft2_4FGL_J1308.5+3547_daily_bin374.fits
.....................!
real 16.49
user 15.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263636/ft1_filtered_4FGL_J1308.5+3547_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/263636/ft2_4FGL_J1308.5+3547_daily_bin374.fits sctable="SC_DATA" expcube=/scratch/kocevski/263636/ltcube_336268801_336528001_4FGL_J1308.5+3547_daily_bin374.fits outfile=/scratch/kocevski/263636/expmap_336268801_336528001_4FGL_J1308.5+3547_daily_bin374.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/263636/ltcube_336268801_336528001_4FGL_J1308.5+3547_daily_bin374.fits
.....................!
real 192.79
user 187.68
sys 4.57

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/263636/ft1_filtered_4FGL_J1308.5+3547_daily_bin374.fits scfile=/scratch/kocevski/263636/ft2_4FGL_J1308.5+3547_daily_bin374.fits outfile=/scratch/kocevski/263636/cmap_336268801_336528001_4FGL_J1308.5+3547_daily_bin374.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263636/ft1_filtered_4FGL_J1308.5+3547_daily_bin374.fits scfile=/scratch/kocevski/263636/ft2_4FGL_J1308.5+3547_daily_bin374.fits outfile=/scratch/kocevski/263636/cmap_HighResolution_336268801_336528001_4FGL_J1308.5+3547_daily_bin374.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.57
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12703E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0949       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0858       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5834       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1086       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11931E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.9963       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2862       1.0000         .10000E-03   10000.    
    15 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.079       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6551       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8243       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2953       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .57529       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=   5175.613     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3153 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    6.5225       -.21336E-05** at limit **
   2  Prefactor     2.0950        1.9603        .18804E-07    .43708E-04
   3  Prefactor     9.1146        11.525        .72529E-07   -.15056E-05
   4  Prefactor     .10000E-03    7.3628        .31663E-06** at limit **
   5  Prefactor     62.668        108.45       -.66004E-06    .10679E-03
   6  Prefactor     .10000E-03    1.4898        .21143E-07** at limit **
   7  norm          2.0848        8.5586        .40586E-05    .61745E-04
   8  Prefactor     .10000E-03    10.889        .62144E-06** at limit **
   9  Prefactor     3.5822        52.640       -.94732E-05   -.56060E-04
  10  norm          3.1082        4.1377        .13591E-05    .68916E-03
  11  Prefactor     .10000E-03    5.4398       -.38874E-07** at limit **
  12  norm          .10001E-03    3.4940       -.85467E-06** at limit **
  13  norm          9.9965        12.013        .59306E-07   -.56757E-05
  14  norm          1.2853        2.4342        .21571E-06   -.29216E-04
  15  norm          .10000E-03    3.5740       -.90640E-07** at limit **
  16  Prefactor     .10000E-03    1.2523        .55086E-07** at limit **
  17  Prefactor     .10000E-03    7.3874        .36727E-06** at limit **
  18  Prefactor     .10000E-03    29.196        .17718E-05** at limit **
  19  Prefactor     .10000E-03    15.522        .18242E-05** at limit **
  20  Prefactor     .10000E-03    16.885       -.36621E-06** at limit **
  21  Prefactor     .10000E-03    67.678       -.14289E-05** at limit **
  22  norm          10.079        2.6160        .23540E-07    .19440E-04
  23  Prefactor     5.6553        3.9193       -.13471E-06   -.29887E-03
  24  norm          2.8238        8.6185        .39727E-06   -.36986E-04
  25  Normalizat    1.2952        .18258       -.48291E-06    .26349E-03
  26  Prefactor     .57546        .21897       -.95759E-07    .13797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100059
  Prefactor  = 2.09496
  Prefactor  = 9.11456
  Prefactor  = 0.0001
  Prefactor  = 62.6677
  Prefactor  = 0.0001
  norm       = 2.0848
  Prefactor  = 0.0001
  Prefactor  = 3.58218
  norm       = 3.10823
  Prefactor  = 0.0001
  norm       = 0.000100007
  norm       = 9.99652
  norm       = 1.28532
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0788
  Prefactor  = 5.65534
  norm       = 2.82379
  Normalizat = 1.29519
  Prefactor  = 0.575461
 **********
 **   18 **HESSE 
 **********

 FCN=   5175.613     FROM HESSE     STATUS=OK           456 CALLS     3609 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    17.959        .32700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0950        1.9523        .94820E-04   -1.5418    
   3  Prefactor     9.1146        11.517        .13275E-03   -1.5104    
   4  Prefactor     .10000E-03    7.3806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.668        112.18        .50699E-04   -1.4123    
   6  Prefactor     .10000E-03    1.4914        .85755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0848        9.2661        .27071E-03   -1.5419    
   8  Prefactor     .10000E-03    10.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5822        53.134        .21348E-03   -1.5329    
  10  norm          3.1082        4.1916        .16562E-03   -1.5355    
  11  Prefactor     .10000E-03    5.4502        .16385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    8.3574        .25224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.9965        12.009        .12674E-03   -1.5076    
  14  norm          1.2853        2.3689        .14642E-03   -1.5481    
  15  norm          .10000E-03    3.5907        .13211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2656        .78566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    68.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.079        2.6184        .57312E-04   -1.5073    
  23  Prefactor     5.6553        3.9308        .11478E-03   -1.5232    
  24  norm          2.8238        8.5988        .24201E-03   -1.5372    
  25  Normalizat    1.2952        .20702        .19624E-03   -.83710    
  26  Prefactor     .57546        .24600        .34687E-03   -1.0863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71713e-09
Minuit parameter uncertainties:
  1  0.00205295
  2  1.95233
  3  11.5197
  4  3.11099e-05
  5  112.561
  6  2.09443e-06
  7  8.79254
  8  7.03166e-05
  9  27.6215
  10  4.19199
  11  4.9117e-06
  12  0.000489833
  13  12.012
  14  2.36902
  15  6.52638e-06
  16  5.35745e-06
  17  3.97953e-05
  18  0.000335606
  19  0.000245087
  20  4.37285e-05
  21  0.000342106
  22  2.6184
  23  3.93101
  24  8.60251
  25  0.207155
  26  0.24646
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  4.898e-04  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:  5.755e-01  2.465e-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:  1.295e+00  2.072e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263636/likelihoodResults_336268801_336528001_4FGL_J1308.5+3547_daily_bin374.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) = 5175.61318335
delta logL = -0.000568383326026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5175.61261685
delta logL = -1.88761532627e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1451       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57497       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5175.613     FROM MIGRAD    STATUS=FAILED        94 CALLS      252 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10764E-03    1030.5        .25676E-02** at limit **
   2  alpha         1.7548        4.0206        .16675        .37427E-05
   3  Normalizat    1.2952        .40913E-01    .19624E-03   -.18588E-03
   4  Prefactor     .57545        .50289E-01    .34687E-03   -.34361E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5175.613     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      392 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10764E-03    1030.5        .62631E-03** at limit **
   2  alpha         1.7548        4.0206        .83857E-04    .37427E-05
   3  Normalizat    1.2952        .40913E-01    .92854E-06   -.18588E-03
   4  Prefactor     .57545        .50289E-01    .98974E-06   -.34361E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5175.613     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      432 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.989        .51351E-03** at limit **
   2  alpha         1.6910        3.6122        .66701E-02    .37838E-07
   3  Normalizat    1.2952        .19848        .39248E-04    .11007E-03
   4  Prefactor     .57546        .24335        .13875E-04   -.87017E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.69096
  Normalizat = 1.29519
  Prefactor  = 0.575457
 **********
 **   18 **HESSE 
 **********

 FCN=   5175.613     FROM HESSE     STATUS=OK            23 CALLS      455 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.976        .10270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6910        3.8710        .13340E-02   -.32955    
   3  Normalizat    1.2952        .19855        .78495E-05   -.83710    
   4  Prefactor     .57546        .24347        .27750E-05   -1.0863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46826e-10
Minuit parameter uncertainties:
  1  6.73688e-05
  2  205.207
  3  0.198668
  4  0.243915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263636': 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) = 5175.61261261
delta logL = 2.35733568843e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  6.737e-05  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.691e+00  2.052e+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:  5.755e-01  2.439e-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:  1.295e+00  1.987e-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/263636/cmap_HighResolution_336268801_336528001_4FGL_J1308.5+3547_daily_bin374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-07 00:23:12.526247', job_id='263636', GAL2='0.58', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630999392.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='2.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='374' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:23:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 263636: <4FGL_J1308.5+3547_daily_bin374> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin374> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:10:21 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:10:34 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:10:34 2021
Terminated at Tue Sep  7 00:23:13 2021
Results reported at Tue Sep  7 00:23:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin374 197.129 35.7918 336268801 336528001 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 :                                   736.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            772 sec.

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

