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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin40
RA = 197.129, Dec = 35.7918
tmin = 249696001, tmax = 249955201
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='259839', job_status='RUN', time_executed='2021-09-06 23:59:45.151702', time_epoch_executed='1630997985.15' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259839

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259839/ft1_4FGL_J1308.5+3547_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259839/ft2_4FGL_J1308.5+3547_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259839/ft1_4FGL_J1308.5+3547_daily_bin40.fits outfile=/scratch/kocevski/259839/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin40.fits ra=197.129 dec=35.7918 rad=12.0 tmin=249696001.0 tmax=249955201.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.49
user 1.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259839/ft2_4FGL_J1308.5+3547_daily_bin40.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/259839/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/259839/ft1_filtered_4FGL_J1308.5+3547_daily_bin40.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.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259839/ft1_filtered_4FGL_J1308.5+3547_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/259839/ft2_4FGL_J1308.5+3547_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/259839/ltcube_249696001_249955201_4FGL_J1308.5+3547_daily_bin40.fits outfile=/scratch/kocevski/259839/expmap_249696001_249955201_4FGL_J1308.5+3547_daily_bin40.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/259839/ltcube_249696001_249955201_4FGL_J1308.5+3547_daily_bin40.fits
.....................!
real 192.90
user 187.23
sys 5.11

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/259839/ft1_filtered_4FGL_J1308.5+3547_daily_bin40.fits scfile=/scratch/kocevski/259839/ft2_4FGL_J1308.5+3547_daily_bin40.fits outfile=/scratch/kocevski/259839/cmap_249696001_249955201_4FGL_J1308.5+3547_daily_bin40.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259839/ft1_filtered_4FGL_J1308.5+3547_daily_bin40.fits scfile=/scratch/kocevski/259839/ft2_4FGL_J1308.5+3547_daily_bin40.fits outfile=/scratch/kocevski/259839/cmap_HighResolution_249696001_249955201_4FGL_J1308.5+3547_daily_bin40.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.129 yref=35.7918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12601E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.035       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35640E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.2709       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2450       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31727       1.0000         .10000E-03   10000.    
    12 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.896       1.0000         .10000E-03   10000.    
    14 'norm      '    20.409       1.0000         .10000E-03   10000.    
    15 'norm      '    10.373       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .90885E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.8695       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7781       1.0000         .10000E-03   10000.    
    24 'norm      '    12.137       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71771       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3704       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=   5612.293     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3141 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7912        .10075E-06** at limit **
   2  Prefactor     4.7269        2.7107        .46015E-08    .67112E-05
   3  Prefactor     13.391        11.461        .81754E-06    .54544E-04
   4  Prefactor     15.039        20.000       -.28117E-06    .75211E-07
   5  Prefactor     .10001E-03    612.20       -.22259E-04** at limit **
   6  Prefactor     .10000E-03    2.4446        .15187E-06** at limit **
   7  norm          7.2645        7.5544        .47551E-06    .15540E-03
   8  Prefactor     .10000E-03    71.957       -.14546E-05** at limit **
   9  Prefactor     5.3121        78.376       -.21425E-05    .51589E-04
  10  norm          .10000E-03    1.4988        .81214E-08** at limit **
  11  Prefactor     .21960        12.783       -.10855E-05    .38961E-03
  12  norm          .10000E-03    7.8692        .13424E-05** at limit **
  13  norm          11.896        15.252        .11980E-06    .42772E-05
  14  norm          20.409        9.1782       -.51817E-06   -.65399E-04
  15  norm          10.375        13.899        .77888E-06    .56425E-06
  16  Prefactor     .10035E-03    1.7651       -.24101E-07** at limit **
  17  Prefactor     .10000E-03    5.4598        .26766E-07** at limit **
  18  Prefactor     .10000E-03    28.882        .46660E-06** at limit **
  19  Prefactor     .10000E-03    4.4747       -.11148E-07** at limit **
  20  Prefactor     .10000E-03    9.2577       -.31247E-07** at limit **
  21  Prefactor     .10000E-03    134.63        .50517E-05** at limit **
  22  norm          2.8691        1.7189        .84223E-07    .11982E-05
  23  Prefactor     2.7766        3.7574        .39868E-06    .35652E-04
  24  norm          12.133        13.169        .20683E-06   -.43022E-05
  25  Normalizat    .71787        .17907       -.24958E-05   -.48753E-05
  26  Prefactor     1.3705        .22433        .64450E-06   -.10167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.72695
  Prefactor  = 13.3914
  Prefactor  = 15.0393
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 7.26454
  Prefactor  = 0.0001
  Prefactor  = 5.31205
  norm       = 0.0001
  Prefactor  = 0.219603
  norm       = 0.0001
  norm       = 11.896
  norm       = 20.4093
  norm       = 10.3749
  Prefactor  = 0.000100353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.86907
  Prefactor  = 2.77657
  norm       = 12.1326
  Normalizat = 0.717874
  Prefactor  = 1.37047
 **********
 **   18 **HESSE 
 **********

 FCN=   5612.293     FROM HESSE     STATUS=OK           468 CALLS     3609 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.221        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7269        2.7095        .90854E-04   -1.5273    
   3  Prefactor     13.391        11.469        .54724E-03   -1.4976    
   4  Prefactor     15.039        20.003        .10330E-03   -1.4932    
   5  Prefactor     .10001E-03    609.85        .42631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4551        .11438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.2645        7.5394        .14875E-03   -1.5169    
   8  Prefactor     .10000E-03    72.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3121        79.834        .17551E-03   -1.5247    
  10  norm          .10000E-03    1.5080        .89568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .21960        18.720        .77920E-01   -1.5614    
  12  norm          .10000E-03    8.0949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.896        15.262        .11614E-03   -1.5018    
  14  norm          20.409        9.2550        .88659E-04   -1.4804    
  15  norm          10.375        14.096        .12441E-03   -1.5064    
  16  Prefactor     .10035E-03    33.448        .18459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4703        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4795        .15477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.2772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    136.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.8691        1.7171        .73260E-04   -1.5369    
  23  Prefactor     2.7766        3.7520        .16205E-03   -1.5375    
  24  norm          12.133        13.173        .11499E-03   -1.5011    
  25  Normalizat    .71787        .20821        .26688E-03   -1.0319    
  26  Prefactor     1.3705        .26513        .26052E-03   -.81235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28189e-08
Minuit parameter uncertainties:
  1  2.76605e-05
  2  2.70959
  3  11.4704
  4  20.0119
  5  0.00481273
  6  8.27845e-06
  7  7.5404
  8  0.000136499
  9  41.2522
  10  2.41119e-06
  11  4.05546
  12  9.00158e-05
  13  15.2667
  14  9.25567
  15  14.1006
  16  0.00687601
  17  1.47034e-05
  18  7.73317e-05
  19  4.70456e-06
  20  7.36349e-06
  21  0.00141379
  22  1.71711
  23  3.7523
  24  13.1757
  25  0.208443
  26  0.265391
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  9.002e-05  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.370e+00  2.654e-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.179e-01  2.084e-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: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259839/likelihoodResults_249696001_249955201_4FGL_J1308.5+3547_daily_bin40.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) = 5612.29316214
delta logL = -0.000589874752222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5612.29257294
delta logL = -6.70332156005e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12572E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2409       1.0000          .0000       5.0000    
     3 'Normalizat'    .71777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3706       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=   5612.293     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      251 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    13.423        .30475E-02** at limit **
   2  alpha         2.3132        3.5416        .50000       -.38261E-04
   3  Normalizat    .71787        .19814        .26689E-03    .10568E-03
   4  Prefactor     1.3705        .25951        .26052E-03    .12024E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100048
  alpha      = 2.31317
  Normalizat = 0.717872
  Prefactor  = 1.37047
 **********
 **   18 **HESSE 
 **********

 FCN=   5612.293     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    12.008        .60951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3132        3.5073        .50000       -.74800E-01
   3  Normalizat    .71787        .19832        .10675E-04   -1.0319    
   4  Prefactor     1.3705        .25974        .52104E-04   -.81235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81976e-09
Minuit parameter uncertainties:
  1  0.00151951
  2  2.49886
  3  0.198515
  4  0.259991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259839': 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) = 5612.29257026
delta logL = 2.01229886443e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.520e-03  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.313e+00  2.499e+00  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.370e+00  2.600e-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.179e-01  1.985e-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/259839/cmap_HighResolution_249696001_249955201_4FGL_J1308.5+3547_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-07 00:11:45.590853', job_id='259839', GAL2='1.37', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630998705.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='40' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:11:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 259839: <4FGL_J1308.5+3547_daily_bin40> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin40> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 23:55:30 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:55:36 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:36 2021
Terminated at Tue Sep  7 00:11:46 2021
Results reported at Tue Sep  7 00:11:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin40 197.129 35.7918 249696001 249955201 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 :                                   717.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            976 sec.

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

