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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin149
RA = 197.363, Dec = 43.085
tmin = 277948801, tmax = 278208001
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='275370', job_status='RUN', time_executed='2021-09-07 00:49:00.400300', time_epoch_executed='1631000940.4' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275370

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275370/ft1_4FGL_J1309.4+4305_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275370/ft2_4FGL_J1309.4+4305_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275370/ft1_4FGL_J1309.4+4305_daily_bin149.fits outfile=/scratch/kocevski/275370/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin149.fits ra=197.363 dec=43.085 rad=12.0 tmin=277948801.0 tmax=278208001.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.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275370/ft2_4FGL_J1309.4+4305_daily_bin149.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/275370/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin149.fits evtable="EVENTS" outfile="/scratch/kocevski/275370/ft1_filtered_4FGL_J1309.4+4305_daily_bin149.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.44
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275370/ft1_filtered_4FGL_J1309.4+4305_daily_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/275370/ft2_4FGL_J1309.4+4305_daily_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/275370/ltcube_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.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/275370/ft2_4FGL_J1309.4+4305_daily_bin149.fits
.....................!
real 12.55
user 12.20
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275370/ft1_filtered_4FGL_J1309.4+4305_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/275370/ft2_4FGL_J1309.4+4305_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/275370/ltcube_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.fits outfile=/scratch/kocevski/275370/expmap_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.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/275370/ltcube_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.fits
.....................!
real 157.73
user 153.16
sys 3.93

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/275370/ft1_filtered_4FGL_J1309.4+4305_daily_bin149.fits scfile=/scratch/kocevski/275370/ft2_4FGL_J1309.4+4305_daily_bin149.fits outfile=/scratch/kocevski/275370/cmap_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275370/ft1_filtered_4FGL_J1309.4+4305_daily_bin149.fits scfile=/scratch/kocevski/275370/ft2_4FGL_J1309.4+4305_daily_bin149.fits outfile=/scratch/kocevski/275370/cmap_HighResolution_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.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.48
user 0.32
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/275370/ft1_filtered_4FGL_J1309.4+4305_daily_bin149.fits', '/scratch/kocevski/275370/ft2_4FGL_J1309.4+4305_daily_bin149.fits', expMap='/scratch/kocevski/275370/expmap_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.fits', expCube='/scratch/kocevski/275370/ltcube_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/275370/Model_4FGL_J1309.4+4305_daily_bin149.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/275370/ft1_filtered_4FGL_J1309.4+4305_daily_bin149.fits
Spacecraft file(s): /scratch/kocevski/275370/ft2_4FGL_J1309.4+4305_daily_bin149.fits
Exposure map: /scratch/kocevski/275370/expmap_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.fits
Exposure cube: /scratch/kocevski/275370/ltcube_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/275370/Model_4FGL_J1309.4+4305_daily_bin149.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) = 5431.12082351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4089       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.433       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1092       1.0000         .10000E-03   10000.    
    11 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    32.863       1.0000         .10000E-03   10000.    
    13 'norm      '    5.7080       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.5008       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.4235       1.0000         .10000E-03   10000.    
    25 'norm      '    6.9066       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .68566       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3455       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=   5431.112     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3191 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3073       -.24091E-07** at limit **
   2  Prefactor     6.4088        17.946        .30038E-06   -.79114E-05
   3  Prefactor     .10000E-03    6.0853       -.55204E-06** at limit **
   4  Prefactor     .10000E-03    5.6464        .27277E-06** at limit **
   5  norm          4.1490        2.1034        .12453E-07    .36667E-06
   6  Prefactor     .10000E-03    2.4982       -.13596E-06** at limit **
   7  norm          .10000E-03    1.7530       -.69696E-07** at limit **
   8  Prefactor     .10000E-03    17.420        .22038E-05** at limit **
   9  Prefactor     18.421        22.452       -.13134E-05   -.14073E-03
  10  Prefactor     9.1101        14.090        .20260E-05   -.16421E-03
  11  norm          .10000E-03    1.5946       -.71793E-07** at limit **
  12  norm          32.862        17.420        .11200E-07   -.16786E-04
  13  norm          5.7088        3.8596        .21161E-06   -.25348E-04
  14  norm          .10000E-03    4.3296        .46463E-06** at limit **
  15  norm          4.0537        2.9732        .28320E-06    .36601E-03
  16  Prefactor     .10000E-03    .75735       -.18334E-07** at limit **
  17  Prefactor     .10000E-03    5.7522        .21077E-08** at limit **
  18  Prefactor     .10000E-03    7.5394        .24775E-06** at limit **
  19  Prefactor     .10000E-03    14.950       -.22019E-05** at limit **
  20  Prefactor     .10000E-03    4.2343       -.37585E-06** at limit **
  21  Prefactor     .10000E-03    9.6854        .35641E-06** at limit **
  22  norm          4.5008        3.2315        .80752E-07    .68103E-04
  23  Prefactor     .10000E-03    52.435       -.59986E-06** at limit **
  24  norm          1.4234        1.4742        .69894E-07   -.10060E-03
  25  norm          6.9058        12.452        .24887E-05   -.21493E-03
  26  Normalizat    .68572        .16079       -.50372E-06   -.69714E-05
  27  Prefactor     1.3454        .20615       -.15206E-06   -.11620E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.4088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.14903
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.4214
  Prefactor  = 9.11012
  norm       = 0.0001
  norm       = 32.8617
  norm       = 5.70879
  norm       = 0.0001
  norm       = 4.0537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.50077
  Prefactor  = 0.0001
  norm       = 1.42344
  norm       = 6.90582
  Normalizat = 0.685723
  Prefactor  = 1.34545
 **********
 **   18 **HESSE 
 **********

 FCN=   5431.112     FROM HESSE     STATUS=OK           482 CALLS     3673 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3101        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4088        17.924        .15854E-03   -1.5202    
   3  Prefactor     .10000E-03    6.1392        .17818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6586        .17120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1490        2.1039        .73943E-04   -1.5301    
   6  Prefactor     .10000E-03    2.5124        .11375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7672        .95212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.421        22.722        .93288E-04   -1.4849    
  10  Prefactor     9.1101        14.334        .66397E-03   -1.5104    
  11  norm          .10000E-03    1.5979        .90878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          32.862        17.424        .69900E-04   -1.4561    
  13  norm          5.7088        3.8401        .11262E-03   -1.5230    
  14  norm          .10000E-03    4.3519        .14943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0537        2.9934        .10638E-03   -1.5305    
  16  Prefactor     .10000E-03    .75905        .62619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7772        .17260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2607        .14848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.5008        3.2301        .10870E-03   -1.5284    
  23  Prefactor     .10000E-03    52.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4234        1.4560        .85921E-04   -1.5469    
  25  norm          6.9058        12.842        .76330E-03   -1.5182    
  26  Normalizat    .68572        .18810        .25077E-03   -1.0446    
  27  Prefactor     1.3454        .24249        .24324E-03   -.81965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29715e-10
Minuit parameter uncertainties:
  1  6.94952e-07
  2  17.9391
  3  4.35479e-05
  4  2.08737e-05
  5  2.10395
  6  8.15314e-06
  7  4.10143e-06
  8  0.000291942
  9  22.7326
  10  14.3398
  11  2.37466e-06
  12  17.4265
  13  3.84029
  14  2.01361e-05
  15  2.99353
  16  2.54396e-07
  17  8.15671e-08
  18  1.73245e-05
  19  0.000272942
  20  2.60103e-05
  21  3.18786e-05
  22  3.23025
  23  0.000138747
  24  1.45605
  25  12.8469
  26  0.188281
  27  0.242692
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.286e+01  1.743e+01  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:  1.345e+00  2.427e-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:  6.857e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.50
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 2.01e-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) = 5431.10485761
delta logL = 0.00704848568148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5431.10452771
delta logL = 0.00737838281293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.830       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8351       1.0000          .0000       5.0000    
     3 'Normalizat'    .68260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3467       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.

 FCN=   5431.105     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      233 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.812        433.50        .17484E-02   -.13850E-05
   2  alpha         1.8344        2.5719        .25749        .20732E-04
   3  Normalizat    .68266        .30988        .42058E-01    .20403E-04
   4  Prefactor     1.3467        .19258        .54985E-01    .27515E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 32.8116
  alpha      = 1.83444
  Normalizat = 0.682658
  Prefactor  = 1.34672
 **********
 **   18 **HESSE 
 **********

 FCN=   5431.105     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.812        17.208        .69934E-04   -1.4562    
   2  alpha         1.8344        .53547        .13052E-01   -.26947    
   3  Normalizat    .68266        .18537        .25128E-03   -1.0458    
   4  Prefactor     1.3467        .24209        .24312E-03   -.81928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88471e-13
Minuit parameter uncertainties:
  1  17.2105
  2  0.539979
  3  0.185544
  4  0.242291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275370': 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) = 5431.10452615
delta logL = 0.00737994416704

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.281e+01  1.721e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.834e+00  5.400e-01  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:  1.347e+00  2.423e-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:  6.827e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.50
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.83 +/- 0.54
Photon Flux (Free Index): 3.74e-08 +/- 3.13e-08
Energy Flux (Free Index): 3.54e-05 +/- 2.69e-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/275370/cmap_HighResolution_277948801_278208001_4FGL_J1309.4+4305_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='3.54e-05', photon_flux_error='1.83e-08', dlogl='7.38e-03', energy_flux='3.78e-05', photon_flux2='3.74e-08', job_status='DONE', time_completed='2021-09-07 00:58:19.491518', photon_index_error2='0.54', photon_index2='1.83', ts='17.50', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='2.69e-05', EG='0.69', time_epoch_completed='1631001499.49', return_code='0', job_id='275370', GAL2='1.35', EG2='0.68', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='3.13e-08', ts2='17.50', photon_index='1.77' WHERE bin_id='149' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:58:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 275370: <4FGL_J1309.4+4305_daily_bin149> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin149> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:25 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:46:23 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:46:23 2021
Terminated at Tue Sep  7 00:58:20 2021
Results reported at Tue Sep  7 00:58:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin149 197.363 43.085 277948801 278208001 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 :                                   556.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            775 sec.

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

