/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 185 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 = 7408
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1308.5+3547_daily_bin1608
RA = 197.129, Dec = 35.7918
tmin = 656121601, tmax = 656380801
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='340331', job_status='RUN', time_executed='2021-12-07 23:46:18.330665', time_epoch_executed='1638949578.33' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340331

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340331/ft1_4FGL_J1308.5+3547_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340331/ft2_4FGL_J1308.5+3547_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340331/ft1_4FGL_J1308.5+3547_daily_bin1608.fits outfile=/scratch/kocevski/340331/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin1608.fits ra=197.129 dec=35.7918 rad=12.0 tmin=656121601.0 tmax=656380801.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.44
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340331/ft1_filtered_4FGL_J1308.5+3547_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/340331/ft2_4FGL_J1308.5+3547_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/340331/ltcube_656121601_656380801_4FGL_J1308.5+3547_daily_bin1608.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/340331/ft2_4FGL_J1308.5+3547_daily_bin1608.fits
.....................!
real 10.91
user 10.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340331/ft1_filtered_4FGL_J1308.5+3547_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/340331/ft2_4FGL_J1308.5+3547_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/340331/ltcube_656121601_656380801_4FGL_J1308.5+3547_daily_bin1608.fits outfile=/scratch/kocevski/340331/expmap_656121601_656380801_4FGL_J1308.5+3547_daily_bin1608.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/340331/ltcube_656121601_656380801_4FGL_J1308.5+3547_daily_bin1608.fits
.....................!
real 156.02
user 150.88
sys 4.80

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/340331/ft1_filtered_4FGL_J1308.5+3547_daily_bin1608.fits scfile=/scratch/kocevski/340331/ft2_4FGL_J1308.5+3547_daily_bin1608.fits outfile=/scratch/kocevski/340331/cmap_656121601_656380801_4FGL_J1308.5+3547_daily_bin1608.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340331/ft1_filtered_4FGL_J1308.5+3547_daily_bin1608.fits scfile=/scratch/kocevski/340331/ft2_4FGL_J1308.5+3547_daily_bin1608.fits outfile=/scratch/kocevski/340331/cmap_HighResolution_656121601_656380801_4FGL_J1308.5+3547_daily_bin1608.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.48
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1171       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22357E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11687E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .96402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11763E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.5654       1.0000         .10000E-03   10000.    
    13 'norm      '    .67512E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    24.734       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4361       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10735E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12279E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .86004E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .39521       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3476       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0991       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6520.402     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     2720 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7050         .0000    ** at limit **
   2  Prefactor     4.1178        2.6093         .0000        .59796E-05
   3  Prefactor     .10000E-03    6.4013         .0000    ** at limit **
   4  Prefactor     .10000E-03    4.0421         .0000    ** at limit **
   5  Prefactor     .10002E-03    54.128         .0000    ** at limit **
   6  Prefactor     .10000E-03    1.2989         .0000    ** at limit **
   7  norm          17.063        6.3964         .0000        .76558E-03
   8  Prefactor     .10004E-03    14.800         .0000    ** at limit **
   9  Prefactor     .10000E-03    9.6495         .0000    ** at limit **
  10  norm          .96616        3.7369         .0000        .12241E-02
  11  Prefactor     .10013E-03    17.086         .0000    ** at limit **
  12  norm          4.5613        5.2768         .0000        .40821E-03
  13  norm          .10002E-03    7.4481         .0000    ** at limit **
  14  norm          24.727        7.4560         .0000       -.31863E-03
  15  norm          4.4334        7.5740         .0000        .43476E-02
  16  Prefactor     .10000E-03    2.5375         .0000    ** at limit **
  17  Prefactor     .10001E-03    13.167         .0000    ** at limit **
  18  Prefactor     .10007E-03    18.456         .0000    ** at limit **
  19  Prefactor     4.4144        7.5721         .0000        .22107E-02
  20  Prefactor     .10000E-03    10.354         .0000    ** at limit **
  21  Prefactor     .10005E-03    491.55         .0000    ** at limit **
  22  norm          .39588        .98372         .0000        .16000E-02
  23  Prefactor     .10000E-03    .73470         .0000    ** at limit **
  24  norm          1.3572        22.324         .0000        .74732E-02
  25  Normalizat    1.0731        .17109         .0000        .76743E-05
  26  Prefactor     1.0990        .21285         .0000        .42223E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.11781
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 17.0633
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  norm       = 0.966161
  Prefactor  = 0.000100134
  norm       = 4.56135
  norm       = 0.000100016
  norm       = 24.727
  norm       = 4.43335
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100068
  Prefactor  = 4.4144
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  norm       = 0.39588
  Prefactor  = 0.0001
  norm       = 1.35715
  Normalizat = 1.0731
  Prefactor  = 1.099
 **********
 **   18 **HESSE 
 **********

 FCN=   6520.402     FROM HESSE     STATUS=OK           460 CALLS     3180 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1178        2.6026        .10069E-03   -1.5302    
   3  Prefactor     .10000E-03    35.044        .39445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0425        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    54.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.2998        .89873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.063        6.3942        .96953E-04   -1.4882    
   8  Prefactor     .10004E-03    14.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .96616        3.7073        .29570E-03   -1.5511    
  11  Prefactor     .10013E-03    17.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.5613        5.2042        .18840E-03   -1.5281    
  13  norm          .10002E-03    71.748        .42836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.727        7.3311        .80545E-04   -1.4713    
  15  norm          4.4334        7.5613        .95597E-03   -1.5287    
  16  Prefactor     .10000E-03    4.6928        .23931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    13.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    18.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4144        7.5603        .95813E-03   -1.5288    
  20  Prefactor     .10000E-03    10.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    509.56        .36701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .39588        .92585        .12191E-02   -1.5582    
  23  Prefactor     .10000E-03    .73542        .67593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3572        22.583        .18855E-02   -1.5475    
  25  Normalizat    1.0731        .20166        .23797E-03   -.90620    
  26  Prefactor     1.0990        .25181        .29683E-03   -.89499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47943e-08
Minuit parameter uncertainties:
  1  7.78191e-06
  2  2.6027
  3  0.000631024
  4  7.35584e-06
  5  0.00185543
  6  1.63254e-06
  7  6.39446
  8  0.001452
  9  3.31197e-05
  10  3.70818
  11  0.00304371
  12  5.20476
  13  0.0021664
  14  7.33136
  15  7.56291
  16  3.38211e-06
  17  0.000568687
  18  0.0022444
  19  7.56195
  20  9.25089e-05
  21  0.00973424
  22  0.925884
  23  1.93417e-07
  24  11.0767
  25  0.201809
  26  0.252087
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  4.561e+00  5.205e+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.099e+00  2.521e-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.073e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.99e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 8.21e-06 +/- 9.37e-06

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

Saving results to:
/scratch/kocevski/340331/likelihoodResults_656121601_656380801_4FGL_J1308.5+3547_daily_bin1608.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) = 6520.38010531
delta logL = 0.0220763221132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6520.37911667
delta logL = 0.0230649674013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3598       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4273       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1037       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=   6520.379     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      194 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3599        6.1145        .48226E-02    .13513E-02
   2  alpha         2.4287        1.3003        .41174E-01    .28847E-03
   3  Normalizat    1.0669        .16897        .39542E-01    .13501E-04
   4  Prefactor     1.1038        .21246        .66968E-01    .20768E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.35994
  alpha      = 2.42873
  Normalizat = 1.06688
  Prefactor  = 1.10378
 **********
 **   18 **HESSE 
 **********

 FCN=   6520.379     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3599        5.2106        .17742E-03   -1.5290    
   2  alpha         2.4287        1.1299        .82347E-02   -.28510E-01
   3  Normalizat    1.0669        .20074        .23854E-03   -.90822    
   4  Prefactor     1.1038        .25194        .29625E-03   -.89346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8406e-10
Minuit parameter uncertainties:
  1  5.21116
  2  1.17245
  3  0.200882
  4  0.252216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340331': 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) = 6520.37911567
delta logL = 0.0230659630315

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  4.360e+00  5.211e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.429e+00  1.172e+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.104e+00  2.522e-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.067e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 197.129 35.792
Photon Index (Free Index): 2.43 +/- 1.17
Photon Flux (Free Index): 2.48e-08 +/- 3.44e-08
Energy Flux (Free Index): 8.21e-06 +/- 8.99e-06

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/340331/cmap_HighResolution_656121601_656380801_4FGL_J1308.5+3547_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-05', comment='SUCCESS', photon_flux='1.99e-08', energy_flux2='8.21e-06', photon_flux_error='2.27e-08', dlogl='2.31e-02', energy_flux='8.21e-06', photon_flux2='2.48e-08', job_status='DONE', time_completed='2021-12-07 23:56:40.346834', photon_index_error2='1.17', photon_index2='2.43', ts='1.07', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='7.34e-08', energy_flux_error2='8.99e-06', EG='1.07', time_epoch_completed='1638950200.35', return_code='0', job_id='340331', GAL2='1.10', EG2='1.07', return_code2='0', energy_flux_error='9.37e-06', photon_flux_error2='3.44e-08', ts2='1.12', photon_index='2.18' WHERE bin_id='1608' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:56:40 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 340331: <4FGL_J1308.5+3547_daily_bin1608> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin1608> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 23:40:15 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:43:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 23:43:08 2021
Terminated at Tue Dec  7 23:56:41 2021
Results reported at Tue Dec  7 23:56:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin1608 197.129 35.7918 656121601 656380801 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 :                                   619.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            986 sec.

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

