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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1585
RA = 197.363, Dec = 43.085
tmin = 650160001, tmax = 650419201
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='285650', job_status='RUN', time_executed='2021-09-07 01:16:45.492923', time_epoch_executed='1631002605.49' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285650/ft1_4FGL_J1309.4+4305_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285650/ft1_4FGL_J1309.4+4305_daily_bin1585.fits outfile=/scratch/kocevski/285650/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1585.fits ra=197.363 dec=43.085 rad=12.0 tmin=650160001.0 tmax=650419201.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 4.45
user 4.12
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.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/285650/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1585.fits evtable="EVENTS" outfile="/scratch/kocevski/285650/ft1_filtered_4FGL_J1309.4+4305_daily_bin1585.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.61
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285650/ft1_filtered_4FGL_J1309.4+4305_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/285650/ltcube_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.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/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits
.....................!
real 17.17
user 16.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285650/ft1_filtered_4FGL_J1309.4+4305_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/285650/ltcube_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.fits outfile=/scratch/kocevski/285650/expmap_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.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/285650/ltcube_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.fits
.....................!
real 194.00
user 188.27
sys 4.51

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/285650/ft1_filtered_4FGL_J1309.4+4305_daily_bin1585.fits scfile=/scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits outfile=/scratch/kocevski/285650/cmap_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.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.363 yref=43.085 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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285650/ft1_filtered_4FGL_J1309.4+4305_daily_bin1585.fits scfile=/scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits outfile=/scratch/kocevski/285650/cmap_HighResolution_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.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.363 yref=43.085 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/285650/ft1_filtered_4FGL_J1309.4+4305_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/285650/Model_4FGL_J1309.4+4305_daily_bin1585.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/285650/ft1_filtered_4FGL_J1309.4+4305_daily_bin1585.fits.....................!
real 52.25
user 50.76
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/285650/ft1_filtered_4FGL_J1309.4+4305_daily_bin1585.fits', '/scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits', expMap='/scratch/kocevski/285650/expmap_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.fits', expCube='/scratch/kocevski/285650/ltcube_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/285650/Model_4FGL_J1309.4+4305_daily_bin1585.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1309.4+4305'

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.179e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/285650/ft1_filtered_4FGL_J1309.4+4305_daily_bin1585.fits
Spacecraft file(s): /scratch/kocevski/285650/ft2_4FGL_J1309.4+4305_daily_bin1585.fits
Exposure map: /scratch/kocevski/285650/expmap_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.fits
Exposure cube: /scratch/kocevski/285650/ltcube_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/285650/Model_4FGL_J1309.4+4305_daily_bin1585.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) = 5837.31015409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4137       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12554E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.9156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.0307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12194E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.271       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4904       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6659       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.938       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.647       1.0000         .10000E-03   10000.    
    22 'norm      '    10.299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.196       1.0000         .10000E-03   10000.    
    24 'norm      '    .91914       1.0000         .10000E-03   10000.    
    25 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2108       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88028       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5837.307     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3319 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4142        4.6151       -.72782E-07   -.19672E-03
   2  Prefactor     .10000E-03    10.494        .16543E-06** at limit **
   3  Prefactor     .10000E-03    4.2527       -.46480E-08** at limit **
   4  Prefactor     .10000E-03    9.5282       -.69158E-07** at limit **
   5  norm          4.9160        2.2572       -.10067E-09    .10219E-04
   6  Prefactor     .10000E-03    3.5933        .13733E-07** at limit **
   7  norm          5.0170        6.2092       -.14251E-05    .11795E-03
   8  Prefactor     .10000E-03    20.809        .27279E-06** at limit **
   9  Prefactor     .10003E-03    43.558       -.85552E-06** at limit **
  10  Prefactor     .10000E-03    25.774       -.35743E-06** at limit **
  11  norm          .10000E-03    5.6716        .10518E-06** at limit **
  12  norm          .10000E-03    3.7760        .42669E-08** at limit **
  13  norm          11.261        8.1647       -.20520E-05   -.62106E-03
  14  norm          1.4979        9.5689        .67971E-05   -.29215E-03
  15  norm          .10000E-03    1.3911       -.18176E-07** at limit **
  16  Prefactor     3.6649        5.6090        .29876E-07   -.55520E-03
  17  Prefactor     .10000E-03    40.690        .11729E-05** at limit **
  18  Prefactor     .10000E-03    12.161       -.87663E-07** at limit **
  19  Prefactor     .10000E-03    51.153       -.36600E-06** at limit **
  20  Prefactor     12.969        18.267        .32198E-06    .57328E-04
  21  Prefactor     45.677        32.418        .18375E-06    .41989E-04
  22  norm          10.296        5.9100        .13044E-07    .75621E-04
  23  Prefactor     52.247        74.252       -.10192E-05   -.41642E-04
  24  norm          .91980        1.0422        .23768E-07    .36852E-03
  25  norm          .10000E-03    12.538        .10201E-06** at limit **
  26  Normalizat    1.2105        .17954       -.14357E-05   -.39757E-03
  27  Prefactor     .88051        .21196        .16754E-05    .14221E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.41419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.916
  Prefactor  = 0.0001
  norm       = 5.01701
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.2613
  norm       = 1.49793
  norm       = 0.0001
  Prefactor  = 3.66494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9688
  Prefactor  = 45.6767
  norm       = 10.2959
  Prefactor  = 52.2473
  norm       = 0.919803
  norm       = 0.000100001
  Normalizat = 1.21047
  Prefactor  = 0.880511
 **********
 **   18 **HESSE 
 **********

 FCN=   5837.307     FROM HESSE     STATUS=OK           484 CALLS     3803 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4142        4.5996        .22003E-03   -1.5397    
   2  Prefactor     .10000E-03    10.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2549        .15388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.9160        2.2574        .75567E-04   -1.5264    
   6  Prefactor     .10000E-03    3.6084        .14140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.0170        6.3342        .17928E-03   -1.5260    
   8  Prefactor     .10000E-03    20.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    241.21        .79857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.7547        .17734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7768        .14500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.261        8.3440        .11933E-03   -1.5037    
  14  norm          1.4979        10.417        .17261E-02   -1.5463    
  15  norm          .10000E-03    1.4071        .87999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6649        5.5792        .19470E-03   -1.5325    
  17  Prefactor     .10000E-03    41.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.969        18.274        .11136E-03   -1.4988    
  21  Prefactor     45.677        32.435        .59343E-04   -1.4355    
  22  norm          10.296        5.9062        .12223E-03   -1.5066    
  23  Prefactor     52.247        74.408        .55513E-04   -1.4261    
  24  norm          .91980        1.0152        .79968E-04   -1.5516    
  25  norm          .10000E-03    12.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2105        .21951        .22420E-03   -.86280    
  27  Prefactor     .88051        .25664        .31395E-03   -.96825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91912e-09
Minuit parameter uncertainties:
  1  4.60026
  2  4.46915e-05
  3  5.69166e-06
  4  1.44142e-05
  5  2.2574
  6  2.7876e-06
  7  6.33503
  8  1.89285e-05
  9  0.00508186
  10  2.94028e-05
  11  8.55323e-06
  12  4.64317e-07
  13  8.34488
  14  7.90206
  15  1.09747e-05
  16  5.58002
  17  2.97749e-05
  18  6.81711e-05
  19  1.14833e-05
  20  18.2815
  21  32.448
  22  5.90658
  23  74.5404
  24  1.01525
  25  0.000174937
  26  0.219678
  27  0.256995
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  4.643e-07  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.805e-01  2.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.210e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 2.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285650/likelihoodResults_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.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) = 5837.30856889
delta logL = -0.00115503359393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5837.30741381
delta logL = 3.73293005396e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7583       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88047       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+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=   5837.307     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      242 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    146.85        .14572E-01** at limit **
   2  alpha         1.4504        3.2221        .17485        .95578E-08
   3  Normalizat    1.2105        .27257E-01    .22420E-03    .14198E-04
   4  Prefactor     .88050        .33256E-01    .31395E-03    .12276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.45042
  Normalizat = 1.21048
  Prefactor  = 0.880502
 **********
 **   18 **HESSE 
 **********

 FCN=   5837.307     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1023        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4504        2.8036        .69941E-02   -.43326    
   3  Normalizat    1.2105        .20804        .89681E-05   -.86280    
   4  Prefactor     .88050        .25366        .12558E-04   -.96826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52648e-12
Minuit parameter uncertainties:
  1  3.43766e-06
  2  214.51
  3  0.208181
  4  0.253996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285650': 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) = 5837.30741284
delta logL = 1.01016757981e-06

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.438e-06  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.450e+00  2.145e+02  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.805e-01  2.540e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.210e+00  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/285650/cmap_HighResolution_650160001_650419201_4FGL_J1309.4+4305_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', job_status='DONE', photon_flux_upper_limit='2.29e-08', time_completed='2021-09-07 01:30:31.649974', job_id='285650', GAL2='0.88', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631003431.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='1585' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:30:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 285650: <4FGL_J1309.4+4305_daily_bin1585> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1585> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:16:03 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:16:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:16:31 2021
Terminated at Tue Sep  7 01:30:32 2021
Results reported at Tue Sep  7 01:30:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1585 197.363 43.085 650160001 650419201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1309.4+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   811.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            869 sec.

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

