/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 8 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 = 7399
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin58
RA = 197.129, Dec = 35.7918
tmin = 254361601, tmax = 254620801
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='259872', job_status='RUN', time_executed='2021-09-06 23:56:01.077044', time_epoch_executed='1630997761.08' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259872/ft1_4FGL_J1308.5+3547_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259872/ft2_4FGL_J1308.5+3547_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259872/ft1_4FGL_J1308.5+3547_daily_bin58.fits outfile=/scratch/kocevski/259872/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin58.fits ra=197.129 dec=35.7918 rad=12.0 tmin=254361601.0 tmax=254620801.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 1.45
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259872/ft1_filtered_4FGL_J1308.5+3547_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/259872/ft2_4FGL_J1308.5+3547_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/259872/ltcube_254361601_254620801_4FGL_J1308.5+3547_daily_bin58.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/259872/ft2_4FGL_J1308.5+3547_daily_bin58.fits
.....................!
real 15.08
user 14.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259872/ft1_filtered_4FGL_J1308.5+3547_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/259872/ft2_4FGL_J1308.5+3547_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/259872/ltcube_254361601_254620801_4FGL_J1308.5+3547_daily_bin58.fits outfile=/scratch/kocevski/259872/expmap_254361601_254620801_4FGL_J1308.5+3547_daily_bin58.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/259872/ltcube_254361601_254620801_4FGL_J1308.5+3547_daily_bin58.fits
.....................!
real 192.40
user 188.06
sys 3.94

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/259872/ft1_filtered_4FGL_J1308.5+3547_daily_bin58.fits scfile=/scratch/kocevski/259872/ft2_4FGL_J1308.5+3547_daily_bin58.fits outfile=/scratch/kocevski/259872/cmap_254361601_254620801_4FGL_J1308.5+3547_daily_bin58.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259872/ft1_filtered_4FGL_J1308.5+3547_daily_bin58.fits scfile=/scratch/kocevski/259872/ft2_4FGL_J1308.5+3547_daily_bin58.fits outfile=/scratch/kocevski/259872/cmap_HighResolution_254361601_254620801_4FGL_J1308.5+3547_daily_bin58.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.5941       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2194       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.308       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9622       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6046       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.660       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.359       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9065       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.324       1.0000         .10000E-03   10000.    
    12 'norm      '    7.8538       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5642       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4405       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5295       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.903       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.544       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.8064       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4324       1.0000         .10000E-03   10000.    
    24 'norm      '    23.305       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .70723       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1766       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=   5397.040     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3065 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1304        .16373E-08** at limit **
   2  Prefactor     1.5941        1.5283       -.72886E-08    .33172E-04
   3  Prefactor     9.2191        10.716       -.15990E-06   -.14532E-04
   4  Prefactor     14.308        16.563       -.58545E-07   -.62432E-05
   5  Prefactor     .10000E-03    34.572        .20990E-06** at limit **
   6  Prefactor     8.9622        6.6257       -.17101E-06   -.56568E-04
   7  norm          3.6043        3.4844        .75256E-06    .39332E-04
   8  Prefactor     26.660        43.427        .82634E-06    .54970E-05
   9  Prefactor     24.358        19.187       -.28674E-06   -.57738E-04
  10  norm          1.9065        2.0992       -.24890E-07    .14478E-04
  11  Prefactor     12.320        18.964       -.10982E-05   -.61079E-04
  12  norm          7.8530        6.2542       -.64137E-06   -.18835E-03
  13  norm          .10000E-03    17.608       -.80372E-07** at limit **
  14  norm          5.5632        3.7338       -.18642E-06   -.19138E-03
  15  norm          3.4408        4.7605       -.24183E-06   -.79118E-04
  16  Prefactor     1.5302        3.5944        .27719E-05    .22691E-03
  17  Prefactor     .10000E-03    3.6140       -.15669E-07** at limit **
  18  Prefactor     51.884        63.903       -.19316E-04   -.11533E-03
  19  Prefactor     .10000E-03    9.5334       -.29547E-07** at limit **
  20  Prefactor     10.544        17.117       -.13408E-06   -.12073E-03
  21  Prefactor     .10000E-03    45.837       -.12105E-07** at limit **
  22  norm          3.8063        1.9388       -.29246E-07   -.16974E-04
  23  Prefactor     1.4321        1.3460        .41993E-06   -.34634E-02
  24  norm          23.304        15.167       -.74101E-07   -.19710E-05
  25  Normalizat    .70736        .17096        .80588E-06   -.82021E-04
  26  Prefactor     1.1764        .21381        .16126E-06   -.36359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.59413
  Prefactor  = 9.21906
  Prefactor  = 14.308
  Prefactor  = 0.0001
  Prefactor  = 8.96224
  norm       = 3.60427
  Prefactor  = 26.6605
  Prefactor  = 24.3581
  norm       = 1.90646
  Prefactor  = 12.3196
  norm       = 7.85295
  norm       = 0.0001
  norm       = 5.56317
  norm       = 3.44075
  Prefactor  = 1.53025
  Prefactor  = 0.0001
  Prefactor  = 51.8839
  Prefactor  = 0.0001
  Prefactor  = 10.5444
  Prefactor  = 0.0001
  norm       = 3.80629
  Prefactor  = 1.43211
  norm       = 23.3038
  Normalizat = 0.707356
  Prefactor  = 1.17643
 **********
 **   18 **HESSE 
 **********

 FCN=   5397.040     FROM HESSE     STATUS=OK           468 CALLS     3533 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1330        .10472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5941        1.5460        .86635E-04   -1.5455    
   3  Prefactor     9.2191        10.716        .13199E-03   -1.5101    
   4  Prefactor     14.308        16.565        .10589E-03   -1.4951    
   5  Prefactor     .10000E-03    34.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9622        6.6179        .13388E-03   -1.5109    
   7  norm          3.6043        3.4744        .12873E-03   -1.5328    
   8  Prefactor     26.660        43.464        .77587E-04   -1.4675    
   9  Prefactor     24.358        19.171        .40581E-03   -1.4720    
  10  norm          1.9065        2.1028        .10889E-03   -1.5432    
  11  Prefactor     12.320        18.974        .11411E-03   -1.5006    
  12  norm          7.8530        6.2240        .14308E-03   -1.5147    
  13  norm          .10000E-03    17.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5632        3.7519        .10200E-03   -1.5236    
  15  norm          3.4408        4.7882        .17014E-03   -1.5337    
  16  Prefactor     1.5302        3.5621        .18264E-03   -1.5461    
  17  Prefactor     .10000E-03    3.6153        .13633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.884        64.070        .55669E-04   -1.4266    
  19  Prefactor     .10000E-03    9.5888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.544        17.128        .61695E-03   -1.5058    
  21  Prefactor     .10000E-03    45.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.8063        1.9398        .70071E-04   -1.5318    
  23  Prefactor     1.4321        3.3235        .97879E-03   -1.5469    
  24  norm          23.304        15.172        .82974E-04   -1.4742    
  25  Normalizat    .70736        .20550        .25139E-03   -1.0360    
  26  Prefactor     1.1764        .25622        .25730E-03   -.87060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28762e-09
Minuit parameter uncertainties:
  1  1.1576e-06
  2  1.54604
  3  10.7179
  4  16.5707
  5  2.16928e-05
  6  6.61844
  7  3.47458
  8  43.5154
  9  19.1756
  10  2.1029
  11  18.9834
  12  6.22455
  13  2.03001e-05
  14  3.75207
  15  4.78869
  16  3.56263
  17  9.05457e-07
  18  64.1557
  19  2.08787e-06
  20  17.1357
  21  2.06679e-05
  22  1.93979
  23  3.32397
  24  15.1743
  25  0.205723
  26  0.256495
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  7.853e+00  6.225e+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.176e+00  2.565e-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:  7.074e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.42e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/259872/likelihoodResults_254361601_254620801_4FGL_J1308.5+3547_daily_bin58.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) = 5397.00606804
delta logL = 0.0343519363623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5397.00487579
delta logL = 0.0355441811362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6264       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3863       1.0000          .0000       5.0000    
     3 'Normalizat'    .69989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1815       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=   5397.005     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      240 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6263        5.7568        .13890E-03   -.26797E-03
   2  alpha         2.3864        .75281        .15856E-01   -.30514E-04
   3  Normalizat    .69987        .19896        .25253E-03   -.49972E-04
   4  Prefactor     1.1815        .25517        .25676E-03   -.59686E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.62627
  alpha      = 2.38635
  Normalizat = 0.69987
  Prefactor  = 1.18148
 **********
 **   18 **HESSE 
 **********

 FCN=   5397.005     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6263        5.6756        .55560E-05   -1.5156    
   2  alpha         2.3864        .74201        .63424E-03   -.45475E-01
   3  Normalizat    .69987        .19908        .10101E-04   -1.0390    
   4  Prefactor     1.1815        .25537        .10270E-04   -.86903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03541e-10
Minuit parameter uncertainties:
  1  5.67601
  2  0.75338
  3  0.199286
  4  0.255633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259872': 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) = 5397.00487579
delta logL = 0.0355441888105

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  7.626e+00  5.676e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.386e+00  7.534e-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.181e+00  2.556e-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:  6.999e-01  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.39 +/- 0.75
Photon Flux (Free Index): 4.13e-08 +/- 3.91e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.01e-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/259872/cmap_HighResolution_254361601_254620801_4FGL_J1308.5+3547_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', comment='SUCCESS', photon_flux='3.42e-08', energy_flux2='1.42e-05', photon_flux_error='2.71e-08', dlogl='3.55e-02', energy_flux='1.41e-05', photon_flux2='4.13e-08', job_status='DONE', time_completed='2021-09-07 00:07:33.024209', photon_index_error2='0.75', photon_index2='2.39', ts='3.55', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='9.29e-08', energy_flux_error2='1.01e-05', EG='0.71', time_epoch_completed='1630998453.02', return_code='0', job_id='259872', GAL2='1.18', EG2='0.70', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.91e-08', ts2='3.63', photon_index='2.18' WHERE bin_id='58' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:07:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 259872: <4FGL_J1308.5+3547_daily_bin58> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin58> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:33 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:55:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 23:55:44 2021
Terminated at Tue Sep  7 00:07:33 2021
Results reported at Tue Sep  7 00:07:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin58 197.129 35.7918 254361601 254620801 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 :                                   689.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            720 sec.

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

