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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin334
RA = 197.363, Dec = 43.085
tmin = 325900801, tmax = 326160001
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='276766', job_status='RUN', time_executed='2021-09-07 00:52:45.717353', time_epoch_executed='1631001165.72' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276766/ft1_4FGL_J1309.4+4305_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276766/ft2_4FGL_J1309.4+4305_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276766/ft1_4FGL_J1309.4+4305_daily_bin334.fits outfile=/scratch/kocevski/276766/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin334.fits ra=197.363 dec=43.085 rad=12.0 tmin=325900801.0 tmax=326160001.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.88
user 2.67
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276766/ft2_4FGL_J1309.4+4305_daily_bin334.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/276766/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin334.fits evtable="EVENTS" outfile="/scratch/kocevski/276766/ft1_filtered_4FGL_J1309.4+4305_daily_bin334.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.45
user 0.30
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276766/ft1_filtered_4FGL_J1309.4+4305_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/276766/ft2_4FGL_J1309.4+4305_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/276766/ltcube_325900801_326160001_4FGL_J1309.4+4305_daily_bin334.fits outfile=/scratch/kocevski/276766/expmap_325900801_326160001_4FGL_J1309.4+4305_daily_bin334.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/276766/ltcube_325900801_326160001_4FGL_J1309.4+4305_daily_bin334.fits
.....................!
real 155.56
user 151.09
sys 4.15

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/276766/ft1_filtered_4FGL_J1309.4+4305_daily_bin334.fits scfile=/scratch/kocevski/276766/ft2_4FGL_J1309.4+4305_daily_bin334.fits outfile=/scratch/kocevski/276766/cmap_325900801_326160001_4FGL_J1309.4+4305_daily_bin334.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.48
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276766/ft1_filtered_4FGL_J1309.4+4305_daily_bin334.fits scfile=/scratch/kocevski/276766/ft2_4FGL_J1309.4+4305_daily_bin334.fits outfile=/scratch/kocevski/276766/cmap_HighResolution_325900801_326160001_4FGL_J1309.4+4305_daily_bin334.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.027       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6611       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6934       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6231       1.0000         .10000E-03   10000.    
    12 'norm      '    28.199       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.4427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0248       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24094E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6441       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8835       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94937       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1749       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=   6101.071     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3274 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4073       -.40838E-07** at limit **
   2  Prefactor     .10000E-03    4.5822       -.63428E-07** at limit **
   3  Prefactor     29.059        21.374       -.10367E-06   -.31141E-04
   4  Prefactor     10.027        22.554       -.24983E-07    .11153E-04
   5  norm          4.6612        2.3503       -.15368E-07   -.31515E-04
   6  Prefactor     .10000E-03    4.8649        .99176E-07** at limit **
   7  norm          2.6931        3.9742       -.42256E-06   -.87287E-04
   8  Prefactor     .10000E-03    27.487        .13739E-05** at limit **
   9  Prefactor     .10000E-03    20.109       -.52034E-06** at limit **
  10  Prefactor     .10000E-03    9.1305        .17698E-06** at limit **
  11  norm          3.6190        5.4797       -.40640E-06   -.81857E-04
  12  norm          28.199        17.617        .26732E-07   -.98658E-05
  13  norm          .10000E-03    .80184        .45704E-07** at limit **
  14  norm          .10000E-03    1.3813        .27210E-07** at limit **
  15  norm          8.4451        5.2916       -.21208E-06   -.50520E-03
  16  Prefactor     .10000E-03    2.4763        .40779E-06** at limit **
  17  Prefactor     .10000E-03    42.660        .20309E-04** at limit **
  18  Prefactor     5.9759        55.627        .28225E-05   -.23825E-04
  19  Prefactor     .10000E-03    19.557       -.13287E-05** at limit **
  20  Prefactor     .10000E-03    22.990        .87811E-06** at limit **
  21  Prefactor     .10000E-03    67.548        .13972E-04** at limit **
  22  norm          2.6473        3.9328       -.59976E-07   -.29946E-03
  23  Prefactor     .10000E-03    23.882        .10582E-05** at limit **
  24  norm          1.8836        1.2340       -.10940E-07   -.54680E-03
  25  norm          .10000E-03    13.441       -.49641E-07** at limit **
  26  Normalizat    .94923        .16842        .11068E-05    .12991E-04
  27  Prefactor     1.1750        .20901       -.62816E-06   -.38593E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0593
  Prefactor  = 10.027
  norm       = 4.66122
  Prefactor  = 0.0001
  norm       = 2.69309
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.61904
  norm       = 28.1994
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.44513
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.97585
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.64735
  Prefactor  = 0.000100001
  norm       = 1.88356
  norm       = 0.0001
  Normalizat = 0.949231
  Prefactor  = 1.17504
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.071     FROM HESSE     STATUS=OK           482 CALLS     3756 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4100        .90494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5851        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.059        21.390        .74324E-04   -1.4629    
   4  Prefactor     10.027        22.527        .12654E-03   -1.5075    
   5  norm          4.6612        2.3503        .82371E-04   -1.5276    
   6  Prefactor     .10000E-03    4.8925        .16800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6931        3.9614        .18318E-03   -1.5380    
   8  Prefactor     .10000E-03    27.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6190        5.4523        .21226E-03   -1.5327    
  12  norm          28.199        17.619        .75445E-04   -1.4645    
  13  norm          .10000E-03    .80290        .68297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3818        .89654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.4451        5.2910        .13041E-03   -1.5127    
  16  Prefactor     .10000E-03    2.5403        .23911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.411        .37215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9759        55.584        .16358E-03   -1.5219    
  19  Prefactor     .10000E-03    19.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    68.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6473        3.9001        .17827E-03   -1.5383    
  23  Prefactor     .10000E-03    23.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8836        1.2298        .67357E-04   -1.5433    
  25  norm          .10000E-03    13.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .94923        .19822        .23512E-03   -.94751    
  27  Prefactor     1.1750        .24610        .27156E-03   -.87103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32188e-09
Minuit parameter uncertainties:
  1  1.20013e-06
  2  3.42875e-06
  3  21.3961
  4  22.5459
  5  2.35034
  6  1.47338e-05
  7  3.96183
  8  0.000313574
  9  5.95173e-05
  10  3.13329e-05
  11  5.45305
  12  17.6223
  13  2.1735e-06
  14  1.47276e-06
  15  5.29129
  16  2.82616e-05
  17  0.000726064
  18  36.4952
  19  0.000266874
  20  1.62615e-05
  21  0.000929356
  22  3.90048
  23  0.000249407
  24  1.22981
  25  1.16785e-06
  26  0.198371
  27  0.246344
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.820e+01  1.762e+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.175e+00  2.463e-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:  9.492e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.98
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 1.85e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 2.03e-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) = 6100.89247979
delta logL = 0.178668551596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6100.87876027
delta logL = 0.192388071586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.820       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2422       1.0000          .0000       5.0000    
     3 'Normalizat'    .93070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1837       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=   6100.879     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      263 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.797        270.13        .20963E-02   -.75574E-04
   2  alpha         2.2405        3.4948        .22532        .62178E-04
   3  Normalizat    .93055        .10328        .45293E-01    .12623E-03
   4  Prefactor     1.1843        .92029E-01    .61161E-01    .71846E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.7973
  alpha      = 2.24055
  Normalizat = 0.930553
  Prefactor  = 1.18433
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.879     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.797        19.223        .83851E-04   -1.4753    
   2  alpha         2.2405        .70301        .11460E-01   -.10397    
   3  Normalizat    .93055        .19478        .23709E-03   -.95395    
   4  Prefactor     1.1843        .24483        .27050E-03   -.86815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05716e-09
Minuit parameter uncertainties:
  1  19.2282
  2  0.712732
  3  0.194927
  4  0.245066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276766': 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) = 6100.87874298
delta logL = 0.192405355839

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.280e+01  1.923e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.241e+00  7.127e-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.184e+00  2.451e-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:  9.306e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.34
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.24 +/- 0.71
Photon Flux (Free Index): 4.85e-08 +/- 3.89e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.55e-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/276766/cmap_HighResolution_325900801_326160001_4FGL_J1309.4+4305_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='2.17e-05', photon_flux_error='1.85e-08', dlogl='1.92e-01', energy_flux='3.25e-05', photon_flux2='4.85e-08', job_status='DONE', time_completed='2021-09-07 01:03:53.044200', photon_index_error2='0.71', photon_index2='2.24', ts='9.98', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.95', time_epoch_completed='1631001833.04', return_code='0', job_id='276766', GAL2='1.18', EG2='0.93', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='3.89e-08', ts2='10.34', photon_index='1.77' WHERE bin_id='334' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:03:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 276766: <4FGL_J1309.4+4305_daily_bin334> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin334> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:34 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:50:54 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:50:54 2021
Terminated at Tue Sep  7 01:03:53 2021
Results reported at Tue Sep  7 01:03:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin334 197.363 43.085 325900801 326160001 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 :                                   598.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            799 sec.

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

