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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin248
RA = 197.129, Dec = 35.7918
tmin = 303609601, tmax = 303868801
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='262334', job_status='RUN', time_executed='2021-09-07 00:06:17.230587', time_epoch_executed='1630998377.23' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262334/ft1_4FGL_J1308.5+3547_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262334/ft2_4FGL_J1308.5+3547_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262334/ft1_4FGL_J1308.5+3547_daily_bin248.fits outfile=/scratch/kocevski/262334/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin248.fits ra=197.129 dec=35.7918 rad=12.0 tmin=303609601.0 tmax=303868801.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.59
user 3.23
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262334/ft1_filtered_4FGL_J1308.5+3547_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/262334/ft2_4FGL_J1308.5+3547_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/262334/ltcube_303609601_303868801_4FGL_J1308.5+3547_daily_bin248.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/262334/ft2_4FGL_J1308.5+3547_daily_bin248.fits
.....................!
real 16.40
user 16.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262334/ft1_filtered_4FGL_J1308.5+3547_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/262334/ft2_4FGL_J1308.5+3547_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/262334/ltcube_303609601_303868801_4FGL_J1308.5+3547_daily_bin248.fits outfile=/scratch/kocevski/262334/expmap_303609601_303868801_4FGL_J1308.5+3547_daily_bin248.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/262334/ltcube_303609601_303868801_4FGL_J1308.5+3547_daily_bin248.fits
.....................!
real 192.88
user 187.07
sys 5.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/262334/ft1_filtered_4FGL_J1308.5+3547_daily_bin248.fits scfile=/scratch/kocevski/262334/ft2_4FGL_J1308.5+3547_daily_bin248.fits outfile=/scratch/kocevski/262334/cmap_303609601_303868801_4FGL_J1308.5+3547_daily_bin248.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262334/ft1_filtered_4FGL_J1308.5+3547_daily_bin248.fits scfile=/scratch/kocevski/262334/ft2_4FGL_J1308.5+3547_daily_bin248.fits outfile=/scratch/kocevski/262334/cmap_HighResolution_303609601_303868801_4FGL_J1308.5+3547_daily_bin248.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6800       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5600       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10518E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.263       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3234       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .42435       1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .96523       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.702       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6416       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1250       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3381       1.0000         .10000E-03   10000.    
    24 'norm      '    27.397       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1004       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93783       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=   6015.952     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     2691 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6798        3.2071        .25381E-06    .24534E-04
   2  Prefactor     2.5600        2.1384        .11240E-07   -.31211E-05
   3  Prefactor     4.1148        5.8963        .20548E-05    .82480E-04
   4  Prefactor     9.6170        14.498        .42809E-09   -.13461E-04
   5  Prefactor     .10000E-03    24.947       -.72277E-06** at limit **
   6  Prefactor     .10000E-03    5.8034        .49886E-06** at limit **
   7  norm          .10000E-03    2.4751        .10123E-05** at limit **
   8  Prefactor     .10000E-03    18.403        .67379E-07** at limit **
   9  Prefactor     28.305        25.677        .16881E-05    .55572E-03
  10  norm          3.0439        3.7142       -.11642E-06   -.23247E-03
  11  Prefactor     .10000E-03    11.938        .10980E-06** at limit **
  12  norm          3.3254        4.6305       -.17237E-06    .76248E-05
  13  norm          .10000E-03    8.4668        .26485E-08** at limit **
  14  norm          .41225        3.0871       -.17782E-05    .12227E-02
  15  norm          .10000E-03    2.6633        .62789E-07** at limit **
  16  Prefactor     .96417        3.6132        .16061E-05    .57149E-03
  17  Prefactor     15.720        14.335       -.15320E-05    .42585E-04
  18  Prefactor     .10000E-03    22.821       -.11981E-05** at limit **
  19  Prefactor     9.6364        13.840        .30482E-06    .22131E-04
  20  Prefactor     .10000E-03    36.969        .22912E-05** at limit **
  21  Prefactor     .10000E-03    16.726        .87653E-06** at limit **
  22  norm          1.1249        1.1639        .65689E-07   -.96411E-05
  23  Prefactor     2.3373        4.2098        .10548E-05    .19243E-03
  24  norm          27.394        17.513        .48590E-06   -.16395E-05
  25  Normalizat    1.1005        .17206       -.22739E-05    .13929E-03
  26  Prefactor     .93779        .20888        .10185E-05   -.38464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67984
  Prefactor  = 2.55995
  Prefactor  = 4.11484
  Prefactor  = 9.61697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3046
  norm       = 3.04389
  Prefactor  = 0.0001
  norm       = 3.32543
  norm       = 0.0001
  norm       = 0.412255
  norm       = 0.0001
  Prefactor  = 0.964173
  Prefactor  = 15.7198
  Prefactor  = 0.0001
  Prefactor  = 9.63638
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.12492
  Prefactor  = 2.33726
  norm       = 27.3938
  Normalizat = 1.10048
  Prefactor  = 0.937788
 **********
 **   18 **HESSE 
 **********

 FCN=   6015.952     FROM HESSE     STATUS=OK           460 CALLS     3151 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6798        3.1715        .18715E-03   -1.5449    
   2  Prefactor     2.5600        2.1360        .10106E-03   -1.5388    
   3  Prefactor     4.1148        5.9394        .99360E-03   -1.5302    
   4  Prefactor     9.6170        14.485        .12922E-03   -1.5088    
   5  Prefactor     .10000E-03    24.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4897        .11887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.305        26.383        .75359E-04   -1.4643    
  10  norm          3.0439        3.7171        .16052E-03   -1.5359    
  11  Prefactor     .10000E-03    12.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3254        4.5901        .18573E-03   -1.5343    
  13  norm          .10000E-03    8.5397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .41225        8.0401        .20792E-02   -1.5580    
  15  norm          .10000E-03    2.6704        .12349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .96417        3.4776        .22692E-03   -1.5512    
  17  Prefactor     15.720        14.180        .10107E-03   -1.4915    
  18  Prefactor     .10000E-03    22.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6364        13.820        .12906E-03   -1.5087    
  20  Prefactor     .10000E-03    37.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1249        1.1638        .44175E-04   -1.5496    
  23  Prefactor     2.3373        4.2072        .20337E-03   -1.5402    
  24  norm          27.394        17.524        .38269E-03   -1.4661    
  25  Normalizat    1.1005        .20095        .21741E-03   -.89736    
  26  Prefactor     .93779        .24577        .29427E-03   -.94833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14649e-09
Minuit parameter uncertainties:
  1  3.17181
  2  2.1361
  3  5.94026
  4  14.4904
  5  0.00012474
  6  2.0018e-05
  7  1.37781e-05
  8  2.12328e-05
  9  26.3941
  10  3.71741
  11  1.10871e-05
  12  4.59063
  13  8.70898e-06
  14  3.64132
  15  1.38337e-05
  16  3.47836
  17  14.1832
  18  0.000170679
  19  13.8244
  20  0.000461473
  21  0.000117321
  22  1.16384
  23  4.20775
  24  17.5268
  25  0.201087
  26  0.246063
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.325e+00  4.591e+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:  9.378e-01  2.461e-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.100e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/262334/likelihoodResults_303609601_303868801_4FGL_J1308.5+3547_daily_bin248.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) = 6015.95148096
delta logL = 0.000264414590674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6015.95146363
delta logL = 0.000281746228211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3458       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1579       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93764       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=   6015.951     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      223 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3549        258.40        .55316E-02    .40846E-03
   2  alpha         2.1597        3.8454        .41649        .69438E-05
   3  Normalizat    1.1007        .78418E-01    .37970E-01   -.16225E-03
   4  Prefactor     .93757        .10611        .66535E-01   -.20526E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.35485
  alpha      = 2.15972
  Normalizat = 1.10074
  Prefactor  = 0.937568
 **********
 **   18 **HESSE 
 **********

 FCN=   6015.951     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3549        4.7785        .18656E-03   -1.5342    
   2  alpha         2.1597        .92282        .24437E-01   -.13654    
   3  Normalizat    1.1007        .19279        .21739E-03   -.89728    
   4  Prefactor     .93757        .24411        .29430E-03   -.94840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75029e-11
Minuit parameter uncertainties:
  1  4.77908
  2  0.945626
  3  0.192912
  4  0.244394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262334': 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) = 6015.95145847
delta logL = 0.000286908049929

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  3.355e+00  4.779e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.160e+00  9.456e-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:  9.376e-01  2.444e-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.101e+00  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.72
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/262334/cmap_HighResolution_303609601_303868801_4FGL_J1308.5+3547_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-07 00:18:32.091484', job_id='262334', GAL2='0.94', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630999112.09', return_code2='0', ts='0.72', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.87e-04', ts2='0.72', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='248' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:18:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 262334: <4FGL_J1308.5+3547_daily_bin248> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin248> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:05:30 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:05:44 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:05:44 2021
Terminated at Tue Sep  7 00:18:32 2021
Results reported at Tue Sep  7 00:18:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin248 197.129 35.7918 303609601 303868801 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 :                                   728.00 sec.
    Max Memory :                                 1085 MB
    Average Memory :                             325.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            782 sec.

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

