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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin926
RA = 197.129, Dec = 35.7918
tmin = 479347201, tmax = 479606401
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='268268', job_status='RUN', time_executed='2021-09-07 00:30:02.315910', time_epoch_executed='1630999802.32' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268268

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268268/ft1_4FGL_J1308.5+3547_daily_bin926.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268268/ft2_4FGL_J1308.5+3547_daily_bin926.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268268/ft1_4FGL_J1308.5+3547_daily_bin926.fits outfile=/scratch/kocevski/268268/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin926.fits ra=197.129 dec=35.7918 rad=12.0 tmin=479347201.0 tmax=479606401.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.49
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268268/ft1_filtered_4FGL_J1308.5+3547_daily_bin926.fits" evtable="EVENTS" scfile=/scratch/kocevski/268268/ft2_4FGL_J1308.5+3547_daily_bin926.fits sctable="SC_DATA" outfile=/scratch/kocevski/268268/ltcube_479347201_479606401_4FGL_J1308.5+3547_daily_bin926.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/268268/ft2_4FGL_J1308.5+3547_daily_bin926.fits
.....................!
real 15.50
user 15.03
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268268/ft1_filtered_4FGL_J1308.5+3547_daily_bin926.fits evtable="EVENTS" scfile=/scratch/kocevski/268268/ft2_4FGL_J1308.5+3547_daily_bin926.fits sctable="SC_DATA" expcube=/scratch/kocevski/268268/ltcube_479347201_479606401_4FGL_J1308.5+3547_daily_bin926.fits outfile=/scratch/kocevski/268268/expmap_479347201_479606401_4FGL_J1308.5+3547_daily_bin926.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/268268/ltcube_479347201_479606401_4FGL_J1308.5+3547_daily_bin926.fits
.....................!
real 195.35
user 188.75
sys 5.79

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/268268/ft1_filtered_4FGL_J1308.5+3547_daily_bin926.fits scfile=/scratch/kocevski/268268/ft2_4FGL_J1308.5+3547_daily_bin926.fits outfile=/scratch/kocevski/268268/cmap_479347201_479606401_4FGL_J1308.5+3547_daily_bin926.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.129 yref=35.7918 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268268/ft1_filtered_4FGL_J1308.5+3547_daily_bin926.fits scfile=/scratch/kocevski/268268/ft2_4FGL_J1308.5+3547_daily_bin926.fits outfile=/scratch/kocevski/268268/cmap_HighResolution_479347201_479606401_4FGL_J1308.5+3547_daily_bin926.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.6115       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.187       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9029       1.0000         .10000E-03   10000.    
     7 'norm      '    20.738       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.459       1.0000         .10000E-03   10000.    
    10 'norm      '    .33623       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.165       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2928       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3824       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.741       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.748       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1293       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    33.852       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75762       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86522       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=   4869.124     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3055 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7260        .40331E-07** at limit **
   2  Prefactor     3.6114        2.4550       -.10411E-07   -.20921E-04
   3  Prefactor     .10000E-03    5.4738       -.10829E-07** at limit **
   4  Prefactor     23.187        24.953       -.97867E-08   -.24934E-04
   5  Prefactor     .10000E-03    28.655        .26576E-06** at limit **
   6  Prefactor     4.9026        5.1683       -.44611E-07   -.10234E-03
   7  norm          20.739        7.7758        .17996E-07   -.18126E-03
   8  Prefactor     .10000E-03    43.522       -.61035E-06** at limit **
   9  Prefactor     53.457        35.175        .14422E-06   -.16736E-03
  10  norm          .33539        2.2874       -.74858E-07    .13253E-04
  11  Prefactor     .10000E-03    6.4822       -.26333E-06** at limit **
  12  norm          14.167        6.6384        .82326E-08   -.40164E-03
  13  norm          .10000E-03    8.3271        .62326E-07** at limit **
  14  norm          4.2924        4.5957       -.10705E-05   -.60214E-05
  15  norm          5.3838        7.0666        .28104E-05    .57191E-03
  16  Prefactor     .10002E-03    2.8117        .17043E-05** at limit **
  17  Prefactor     .10000E-03    11.982       -.33736E-06** at limit **
  18  Prefactor     .10000E-03    36.223        .45601E-06** at limit **
  19  Prefactor     10.740        14.688        .29352E-06   -.12913E-04
  20  Prefactor     .10000E-03    10.663        .38241E-06** at limit **
  21  Prefactor     34.721        50.584       -.11535E-05   -.16480E-03
  22  norm          3.1290        1.6906       -.63068E-08   -.44974E-04
  23  Prefactor     .10000E-03    1.1134        .21693E-07** at limit **
  24  norm          33.851        16.177        .97024E-08   -.17183E-04
  25  Normalizat    .75798        .16683        .10974E-05   -.27615E-03
  26  Prefactor     .86481        .20712       -.12726E-05   -.15578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.61144
  Prefactor  = 0.0001
  Prefactor  = 23.187
  Prefactor  = 0.0001
  Prefactor  = 4.90257
  norm       = 20.7387
  Prefactor  = 0.000100001
  Prefactor  = 53.4572
  norm       = 0.335394
  Prefactor  = 0.0001
  norm       = 14.167
  norm       = 0.0001
  norm       = 4.2924
  norm       = 5.38379
  Prefactor  = 0.000100017
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.7402
  Prefactor  = 0.0001
  Prefactor  = 34.7213
  norm       = 3.12905
  Prefactor  = 0.0001
  norm       = 33.8507
  Normalizat = 0.757983
  Prefactor  = 0.864806
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.124     FROM HESSE     STATUS=OK           454 CALLS     3509 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7433        .11251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6114        2.4564        .87869E-04   -1.5328    
   3  Prefactor     .10000E-03    5.5218        .15944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.187        24.943        .83184E-04   -1.4745    
   5  Prefactor     .10000E-03    28.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9026        5.1637        .15392E-03   -1.5265    
   7  norm          20.739        7.7816        .87953E-04   -1.4797    
   8  Prefactor     .10000E-03    43.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     53.457        35.135        .54857E-04   -1.4244    
  10  norm          .33539        8.9838        .20358E-02   -1.5592    
  11  Prefactor     .10000E-03    6.5008        .17360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.167        6.5941        .10642E-03   -1.4955    
  13  norm          .10000E-03    8.3487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2924        4.6845        .11324E-03   -1.5294    
  15  norm          5.3838        7.3683        .81341E-03   -1.5244    
  16  Prefactor     .10002E-03    6.0508        .17888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.740        14.685        .12225E-03   -1.5052    
  20  Prefactor     .10000E-03    10.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.721        50.958        .67983E-04   -1.4529    
  22  norm          3.1290        1.6900        .64387E-04   -1.5354    
  23  Prefactor     .10000E-03    1.1181        .71895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          33.851        16.177        .68874E-04   -1.4544    
  25  Normalizat    .75798        .19120        .22682E-03   -1.0165    
  26  Prefactor     .86481        .23925        .27085E-03   -.97382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49167e-09
Minuit parameter uncertainties:
  1  2.07124e-06
  2  2.4565
  3  1.0347e-05
  4  24.9538
  5  0.000127006
  6  5.1642
  7  7.782
  8  0.000452281
  9  35.1482
  10  3.47173
  11  6.37776e-05
  12  6.59445
  13  9.72539e-06
  14  4.68488
  15  7.36953
  16  0.000632204
  17  0.000202317
  18  0.000213873
  19  14.6903
  20  0.000103707
  21  51.0217
  22  1.69001
  23  6.87444e-08
  24  16.1787
  25  0.191368
  26  0.239536
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.417e+01  6.594e+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:  8.648e-01  2.395e-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.580e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.31
Ra Dec: 197.129 35.792
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.17e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.19e-05

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) = 4869.05057965
delta logL = 0.0738577701431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4869.04156257
delta logL = 0.0828748516305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.067       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9758       1.0000          .0000       5.0000    
     3 'Normalizat'    .76780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85617       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=   4869.042     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.067        6.6246        .15363E-05   -.25952E-02
   2  alpha         1.9756        .43480       -.14598E-04   -.28035E-03
   3  Normalizat    .76787        .16093        .61397E-06    .15288E-03
   4  Prefactor     .85613        .20443       -.64673E-06    .11843E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0675
  alpha      = 1.97556
  Normalizat = 0.767874
  Prefactor  = 0.856127
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.042     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.067        7.1665        .10319E-03   -1.4931    
   2  alpha         1.9756        .49924        .12376E-01   -.21135    
   3  Normalizat    .76787        .18683        .22557E-03   -1.0127    
   4  Prefactor     .85613        .23734        .27206E-03   -.97691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57414e-09
Minuit parameter uncertainties:
  1  7.16689
  2  0.502776
  3  0.18699
  4  0.237622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268268': 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) = 4869.04156239
delta logL = 0.0828750259025

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.507e+01  7.167e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.976e+00  5.028e-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:  8.561e-01  2.376e-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.679e-01  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.53
Ra Dec: 197.129 35.792
Photon Index (Free Index): 1.98 +/- 0.50
Photon Flux (Free Index): 5.41e-08 +/- 3.11e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.47e-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/268268/cmap_HighResolution_479347201_479606401_4FGL_J1308.5+3547_daily_bin926.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.17e-08', energy_flux2='2.79e-05', photon_flux_error='2.87e-08', dlogl='8.29e-02', energy_flux='2.55e-05', photon_flux2='5.41e-08', job_status='DONE', time_completed='2021-09-07 00:40:13.632723', photon_index_error2='0.50', photon_index2='1.98', ts='11.31', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.76', time_epoch_completed='1631000413.63', return_code='0', job_id='268268', GAL2='0.86', EG2='0.77', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.11e-08', ts2='11.53', photon_index='2.18' WHERE bin_id='926' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:40:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 268268: <4FGL_J1308.5+3547_daily_bin926> in cluster <slac> Done

Job <4FGL_J1308.5+3547_daily_bin926> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:25:27 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:29:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:29:45 2021
Terminated at Tue Sep  7 00:40:14 2021
Results reported at Tue Sep  7 00:40:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1308.5+3547_daily_bin926 197.129 35.7918 479347201 479606401 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 :                                   607.06 sec.
    Max Memory :                                 1222 MB
    Average Memory :                             277.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            887 sec.

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

