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


Performing analysis on: 4FGL_J1308.5+3547_daily_bin57
RA = 197.129, Dec = 35.7918
tmin = 254102401, tmax = 254361601
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='259870', job_status='RUN', time_executed='2021-09-06 23:58:34.530377', time_epoch_executed='1630997914.53' WHERE source_name='4FGL J1308.5+3547' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259870/ft1_4FGL_J1308.5+3547_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259870/ft2_4FGL_J1308.5+3547_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259870/ft1_4FGL_J1308.5+3547_daily_bin57.fits outfile=/scratch/kocevski/259870/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin57.fits ra=197.129 dec=35.7918 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.05
user 1.85
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259870/ft2_4FGL_J1308.5+3547_daily_bin57.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/259870/ft1_filteredMKT_4FGL_J1308.5+3547_daily_bin57.fits evtable="EVENTS" outfile="/scratch/kocevski/259870/ft1_filtered_4FGL_J1308.5+3547_daily_bin57.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.52
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259870/ft1_filtered_4FGL_J1308.5+3547_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/259870/ft2_4FGL_J1308.5+3547_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/259870/ltcube_254102401_254361601_4FGL_J1308.5+3547_daily_bin57.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/259870/ft2_4FGL_J1308.5+3547_daily_bin57.fits
.....................!
real 17.57
user 17.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259870/ft1_filtered_4FGL_J1308.5+3547_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/259870/ft2_4FGL_J1308.5+3547_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/259870/ltcube_254102401_254361601_4FGL_J1308.5+3547_daily_bin57.fits outfile=/scratch/kocevski/259870/expmap_254102401_254361601_4FGL_J1308.5+3547_daily_bin57.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/259870/ltcube_254102401_254361601_4FGL_J1308.5+3547_daily_bin57.fits
.....................!
real 191.82
user 185.83
sys 4.99

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/259870/ft1_filtered_4FGL_J1308.5+3547_daily_bin57.fits scfile=/scratch/kocevski/259870/ft2_4FGL_J1308.5+3547_daily_bin57.fits outfile=/scratch/kocevski/259870/cmap_254102401_254361601_4FGL_J1308.5+3547_daily_bin57.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/259870/ft1_filtered_4FGL_J1308.5+3547_daily_bin57.fits scfile=/scratch/kocevski/259870/ft2_4FGL_J1308.5+3547_daily_bin57.fits outfile=/scratch/kocevski/259870/cmap_HighResolution_254102401_254361601_4FGL_J1308.5+3547_daily_bin57.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .53337       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66581       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.581       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9909       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0211       1.0000         .10000E-03   10000.    
    14 'norm      '    6.0654       1.0000         .10000E-03   10000.    
    15 'norm      '    6.3742       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.392       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7002       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .84618E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3344       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60497       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=   4329.285     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3069 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4438        .11375E-07** at limit **
   2  Prefactor     .53354        1.8495       -.46451E-07   -.65405E-04
   3  Prefactor     .10000E-03    6.1540       -.33470E-06** at limit **
   4  Prefactor     .10000E-03    7.6852        .68223E-06** at limit **
   5  Prefactor     .10000E-03    40.687        .27527E-04** at limit **
   6  Prefactor     .66633        .77172        .11112E-06   -.11857E-02
   7  norm          .10000E-03    2.1840       -.25312E-07** at limit **
   8  Prefactor     .10000E-03    15.652       -.31852E-05** at limit **
   9  Prefactor     21.581        26.662        .21776E-06   -.21697E-04
  10  norm          4.9913        4.7867       -.33208E-06   -.16370E-04
  11  Prefactor     .10000E-03    14.814        .12872E-05** at limit **
  12  norm          .10000E-03    2.1874        .40014E-08** at limit **
  13  norm          7.0223        12.498       -.70388E-07   -.45057E-04
  14  norm          6.0656        5.7043        .24422E-06   -.36428E-04
  15  norm          6.3742        8.8381        .84428E-07   -.26583E-05
  16  Prefactor     .10000E-03    1.1031        .61732E-07** at limit **
  17  Prefactor     .10000E-03    5.3286        .12882E-06** at limit **
  18  Prefactor     49.385        64.590       -.86226E-05    .60950E-06
  19  Prefactor     .10000E-03    13.892        .55179E-05** at limit **
  20  Prefactor     .10000E-03    11.461       -.32998E-05** at limit **
  21  Prefactor     .10000E-03    65.551       -.15987E-04** at limit **
  22  norm          1.7001        2.0984       -.26368E-07    .81965E-04
  23  Prefactor     .83883E-01    2.1222       -.91975E-07    .84132E-04
  24  norm          .10000E-03    31.191       -.15705E-04** at limit **
  25  Normalizat    1.3345        .19978        .41556E-06    .81567E-04
  26  Prefactor     .60479        .24140        .31237E-06    .62784E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.533541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.666326
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5814
  norm       = 4.99127
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.02227
  norm       = 6.06556
  norm       = 6.3742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.3848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70008
  Prefactor  = 0.083883
  norm       = 0.0001
  Normalizat = 1.33452
  Prefactor  = 0.604794
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.285     FROM HESSE     STATUS=OK           454 CALLS     3523 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4497        .11925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .53354        1.8937        .16193E-02   -1.5562    
   3  Prefactor     .10000E-03    6.1782        .15941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6888        .17816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66633        8.1580        .17872E-02   -1.5545    
   7  norm          .10000E-03    2.1882        .94844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.581        26.694        .86220E-04   -1.4779    
  10  norm          4.9913        4.7832        .13631E-03   -1.5261    
  11  Prefactor     .10000E-03    14.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2073        .95023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0223        12.527        .75699E-03   -1.5178    
  14  norm          6.0656        5.8181        .11383E-03   -1.5215    
  15  norm          6.3742        9.0179        .15898E-03   -1.5203    
  16  Prefactor     .10000E-03    1.1057        .67438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3383        .14833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.385        64.668        .57059E-04   -1.4301    
  19  Prefactor     .10000E-03    13.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    65.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7001        2.0836        .10095E-03   -1.5447    
  23  Prefactor     .83883E-01    26.056        .18486E-02   -1.5650    
  24  norm          .10000E-03    31.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3345        .22713        .19589E-03   -.82542    
  26  Prefactor     .60479        .27379        .34153E-03   -1.0738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2663e-08
Minuit parameter uncertainties:
  1  1.41707e-06
  2  1.89392
  3  2.7459e-06
  4  1.36255e-06
  5  1.37334e-06
  6  4.66344
  7  3.27249e-06
  8  2.58249e-06
  9  26.7086
  10  4.78353
  11  4.13284e-06
  12  1.20827e-06
  13  12.5319
  14  5.81862
  15  9.01986
  16  5.57896e-06
  17  8.51264e-06
  18  64.7605
  19  8.38313e-06
  20  5.02748e-06
  21  3.8148e-05
  22  2.08366
  23  2.95633
  24  0.00018182
  25  0.227301
  26  0.274397
Done.

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

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  1.208e-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:  6.048e-01  2.744e-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.335e+00  2.273e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259870/likelihoodResults_254102401_254361601_4FGL_J1308.5+3547_daily_bin57.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) = 4329.28722232
delta logL = -0.00209539192565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4329.28512693
delta logL = 3.18323145621e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1859       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60478       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=   4329.285     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      241 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6095        .95076E-03** at limit **
   2  alpha         2.6718        3.3621        .16628        .53330E-08
   3  Normalizat    1.3345        .21975        .19589E-03   -.12859E-03
   4  Prefactor     .60479        .26854        .34153E-03   -.82620E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.67183
  Normalizat = 1.33451
  Prefactor  = 0.604793
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.285     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2930        .19015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6718        3.3953        .66511E-02    .68788E-01
   3  Normalizat    1.3345        .21990        .39177E-04   -.82542    
   4  Prefactor     .60479        .26873        .13661E-04   -1.0738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06802e-11
Minuit parameter uncertainties:
  1  3.4155e-06
  2  402.029
  3  0.220055
  4  0.269301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259870': 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) = 4329.28512608
delta logL = 8.44821443025e-07

Extracting fit parameters...

4FGL J1308.5+3547
   Spectrum: LogParabola
317         norm:  1.000e-04  3.415e-06  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.672e+00  4.020e+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:  6.048e-01  2.693e-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.335e+00  2.201e-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/259870/cmap_HighResolution_254102401_254361601_4FGL_J1308.5+3547_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-05', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2021-09-07 00:08:58.875756', job_id='259870', GAL2='0.60', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630998538.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='8.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='57' AND source_name='4FGL J1308.5+3547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:08:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 259870: <4FGL_J1308.5+3547_daily_bin57> in cluster <slac> Done

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

Your job looked like:

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

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

