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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin20
RA = 197.129, Dec = 35.7918
tmin = 244512001, tmax = 244771201
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='258617', job_status='RUN', time_executed='2021-09-06 23:51:28.000798', time_epoch_executed='1630997488.0' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258617

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258617/ft1_4FGL_J1308.5+3547_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258617/ft2_4FGL_J1308.5+3547_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258617/ft1_4FGL_J1308.5+3547_daily_bin20.fits outfile=/scratch/kocevski/258617/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin20.fits ra=197.129 dec=35.7918 rad=12.0 tmin=244512001.0 tmax=244771201.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.51
user 1.32
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258617/ft1_filtered_4FGL_J1308.5+3547_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/258617/ft2_4FGL_J1308.5+3547_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/258617/ltcube_244512001_244771201_4FGL_J1308.5+3547_daily_bin20.fits outfile=/scratch/kocevski/258617/expmap_244512001_244771201_4FGL_J1308.5+3547_daily_bin20.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/258617/ltcube_244512001_244771201_4FGL_J1308.5+3547_daily_bin20.fits
.....................!
real 192.84
user 187.93
sys 4.38

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/258617/ft1_filtered_4FGL_J1308.5+3547_daily_bin20.fits scfile=/scratch/kocevski/258617/ft2_4FGL_J1308.5+3547_daily_bin20.fits outfile=/scratch/kocevski/258617/cmap_244512001_244771201_4FGL_J1308.5+3547_daily_bin20.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258617/ft1_filtered_4FGL_J1308.5+3547_daily_bin20.fits scfile=/scratch/kocevski/258617/ft2_4FGL_J1308.5+3547_daily_bin20.fits outfile=/scratch/kocevski/258617/cmap_HighResolution_244512001_244771201_4FGL_J1308.5+3547_daily_bin20.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9350       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7581       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0216       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.252       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.3371       1.0000         .10000E-03   10000.    
    15 'norm      '    .87847E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10948E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.861       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3936       1.0000         .10000E-03   10000.    
    24 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4658       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .39329       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=   4177.817     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3105 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.003        8.1981        .29451E-06   -.55208E-04
   2  Prefactor     1.9350        1.8774        .11204E-06    .15430E-03
   3  Prefactor     .10000E-03    5.2461        .33140E-06** at limit **
   4  Prefactor     .10000E-03    6.5361        .33251E-06** at limit **
   5  Prefactor     .10000E-03    58.992       -.13399E-04** at limit **
   6  Prefactor     3.7585        4.8325       -.70373E-07   -.23997E-04
   7  norm          2.0224        3.5072        .24061E-06   -.63275E-04
   8  Prefactor     .10000E-03    53.487        .16779E-04** at limit **
   9  Prefactor     .10000E-03    17.836       -.61366E-05** at limit **
  10  norm          .10000E-03    1.3153        .15610E-07** at limit **
  11  Prefactor     24.249        18.070        .39151E-07   -.39864E-05
  12  norm          .10000E-03    1.9218        .39202E-07** at limit **
  13  norm          .10000E-03    6.3439        .10785E-05** at limit **
  14  norm          9.3363        6.3747        .59881E-06    .19785E-02
  15  norm          .10053E-03    17.293       -.29724E-05** at limit **
  16  Prefactor     .10000E-03    3.2854       -.34191E-06** at limit **
  17  Prefactor     .10000E-03    15.848        .63041E-05** at limit **
  18  Prefactor     .10000E-03    27.461        .16649E-06** at limit **
  19  Prefactor     .10000E-03    5.8356       -.81019E-06** at limit **
  20  Prefactor     .10000E-03    16.828       -.52075E-06** at limit **
  21  Prefactor     18.903        90.525        .86504E-04   -.92365E-05
  22  norm          .10000E-03    .82585       -.11857E-06** at limit **
  23  Prefactor     2.3930        4.2870        .13642E-05   -.40826E-03
  24  norm          .10000E-03    10.783       -.94144E-06** at limit **
  25  Normalizat    1.4655        .22780       -.64328E-05    .40481E-03
  26  Prefactor     .39358        .26102        .58361E-05   -.23899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0025
  Prefactor  = 1.93503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.75853
  norm       = 2.02236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.249
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.33628
  norm       = 0.000100532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9032
  norm       = 0.0001
  Prefactor  = 2.39297
  norm       = 0.0001
  Normalizat = 1.46554
  Prefactor  = 0.393582
 **********
 **   18 **HESSE 
 **********

 FCN=   4177.817     FROM HESSE     STATUS=OK           454 CALLS     3559 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.003        8.1983        .12079E-03   -1.5044    
   2  Prefactor     1.9350        1.8910        .85074E-04   -1.5430    
   3  Prefactor     .10000E-03    5.2625        .14459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5368        .16140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7585        4.8217        .15389E-03   -1.5320    
   7  norm          2.0224        3.4773        .15370E-03   -1.5424    
   8  Prefactor     .10000E-03    53.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3225        .72393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.249        18.054        .81341E-04   -1.4723    
  12  norm          .10000E-03    1.9239        .87489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.3464        .15901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.3363        4.8456        .96394E-04   -1.5097    
  15  norm          .10053E-03    86.428        .38964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6265        .22182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8415        .15249E-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     18.903        90.184        .92223E-04   -1.4838    
  22  norm          .10000E-03    1.2123        .11425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.3930        4.2622        .17112E-03   -1.5399    
  24  norm          .10000E-03    10.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4655        .23711        .18973E-03   -.78751    
  26  Prefactor     .39358        .26986        .41088E-03   -1.1714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33829e-09
Minuit parameter uncertainties:
  1  8.19918
  2  1.89102
  3  1.37619e-05
  4  4.53428e-06
  5  0.000124498
  6  4.82218
  7  3.4777
  8  9.45154e-05
  9  4.32739e-05
  10  2.60415e-06
  11  18.0585
  12  1.89618e-06
  13  3.75288e-06
  14  4.84583
  15  0.0135835
  16  4.88664e-05
  17  1.22098e-05
  18  3.17545e-05
  19  5.15899e-06
  20  3.53306e-05
  21  82.7811
  22  1.32396e-05
  23  4.26279
  24  8.24729e-05
  25  0.237294
  26  0.270735
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.896e-06  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:  3.936e-01  2.707e-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.466e+00  2.373e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258617/likelihoodResults_244512001_244771201_4FGL_J1308.5+3547_daily_bin20.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) = 4177.81931448
delta logL = -0.00223999959599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4177.81707439
delta logL = 9.24956111703e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1725       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39359       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=   4177.817     FROM MIGRAD    STATUS=FAILED        91 CALLS      232 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    144.97        .87871E-02** at limit **
   2  alpha         1.7145        3.3331        .16643        .21040E-07
   3  Normalizat    1.4655        .42402E-01    .18973E-03    .17745E-03
   4  Prefactor     .39359        .50497E-01    .41087E-03    .85915E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4177.817     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      397 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    144.97        .27227E-03** at limit **
   2  alpha         1.7145        3.3331        .21618E-05    .21040E-07
   3  Normalizat    1.4655        .42402E-01    .60936E-07    .17745E-03
   4  Prefactor     .39359        .50497E-01    .83232E-07    .85915E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4177.817     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      425 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1474        .92393E-03** at limit **
   2  alpha         1.7168        3.3460        .66571E-02    .16292E-06
   3  Normalizat    1.4655        .22444        .37945E-04    .17815E-03
   4  Prefactor     .39359        .26662        .16435E-04    .86053E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.71678
  Normalizat = 1.46554
  Prefactor  = 0.393589
 **********
 **   18 **HESSE 
 **********

 FCN=   4177.817     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1446        .18479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7168        3.2691        .13314E-02   -.31865    
   3  Normalizat    1.4655        .22462        .75891E-05   -.78751    
   4  Prefactor     .39359        .26688        .32869E-05   -1.1714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87082e-10
Minuit parameter uncertainties:
  1  5.70372e-05
  2  195.994
  3  0.224772
  4  0.267722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258617': 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) = 4177.8170718
delta logL = 2.67418818112e-06

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  5.704e-05  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.717e+00  1.960e+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:  3.936e-01  2.677e-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.466e+00  2.248e-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/258617/cmap_HighResolution_244512001_244771201_4FGL_J1308.5+3547_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-05', job_status='DONE', photon_flux_upper_limit='4.51e-08', time_completed='2021-09-07 00:01:59.981193', job_id='258617', GAL2='0.39', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630998119.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='2.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='20' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:02:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 258617: <4FGL_J1308.5+3547_daily_bin20> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin20> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 23:50:27 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 23:51:09 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:51:09 2021
Terminated at Tue Sep  7 00:02:00 2021
Results reported at Tue Sep  7 00:02:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin20 197.129 35.7918 244512001 244771201 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 :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            693 sec.

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

