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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin547
RA = 197.363, Dec = 43.085
tmin = 381110401, tmax = 381369601
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='278263', job_status='RUN', time_executed='2021-09-07 00:58:34.336353', time_epoch_executed='1631001514.34' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278263

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278263/ft1_4FGL_J1309.4+4305_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278263/ft2_4FGL_J1309.4+4305_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278263/ft1_4FGL_J1309.4+4305_daily_bin547.fits outfile=/scratch/kocevski/278263/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin547.fits ra=197.363 dec=43.085 rad=12.0 tmin=381110401.0 tmax=381369601.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.75
user 4.47
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278263/ft2_4FGL_J1309.4+4305_daily_bin547.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/278263/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin547.fits evtable="EVENTS" outfile="/scratch/kocevski/278263/ft1_filtered_4FGL_J1309.4+4305_daily_bin547.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278263/ft1_filtered_4FGL_J1309.4+4305_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/278263/ft2_4FGL_J1309.4+4305_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/278263/ltcube_381110401_381369601_4FGL_J1309.4+4305_daily_bin547.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/278263/ft2_4FGL_J1309.4+4305_daily_bin547.fits
.....................!
real 17.56
user 17.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278263/ft1_filtered_4FGL_J1309.4+4305_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/278263/ft2_4FGL_J1309.4+4305_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/278263/ltcube_381110401_381369601_4FGL_J1309.4+4305_daily_bin547.fits outfile=/scratch/kocevski/278263/expmap_381110401_381369601_4FGL_J1309.4+4305_daily_bin547.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/278263/ltcube_381110401_381369601_4FGL_J1309.4+4305_daily_bin547.fits
.....................!
real 192.99
user 188.07
sys 4.30

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/278263/ft1_filtered_4FGL_J1309.4+4305_daily_bin547.fits scfile=/scratch/kocevski/278263/ft2_4FGL_J1309.4+4305_daily_bin547.fits outfile=/scratch/kocevski/278263/cmap_381110401_381369601_4FGL_J1309.4+4305_daily_bin547.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.87
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278263/ft1_filtered_4FGL_J1309.4+4305_daily_bin547.fits scfile=/scratch/kocevski/278263/ft2_4FGL_J1309.4+4305_daily_bin547.fits outfile=/scratch/kocevski/278263/cmap_HighResolution_381110401_381369601_4FGL_J1309.4+4305_daily_bin547.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 1.01
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.568       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7028       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .84221       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14289E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3592       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9269       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7853       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4107       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11765E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.086       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.294       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29256E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.175       1.0000         .10000E-03   10000.    
    24 'norm      '    10.680       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6692       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .75766       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0139       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=   5364.438     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3286 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.458       -.15260E-06** at limit **
   2  Prefactor     20.565        21.743        .12607E-06    .32922E-05
   3  Prefactor     .10000E-03    18.064        .16853E-06** at limit **
   4  Prefactor     .10000E-03    14.367        .50604E-06** at limit **
   5  norm          4.7030        2.5405        .21690E-07    .11247E-04
   6  Prefactor     .84563        11.788       -.22394E-05   -.88743E-04
   7  norm          .10000E-03    1.9572       -.53645E-07** at limit **
   8  Prefactor     .10000E-03    175.22       -.49737E-06** at limit **
   9  Prefactor     1.3564        85.302        .85375E-05   -.15668E-04
  10  Prefactor     8.9060        21.859        .27281E-05   -.17100E-04
  11  norm          2.7873        5.4356       -.28376E-06    .96044E-04
  12  norm          .10000E-03    5.0294       -.33186E-07** at limit **
  13  norm          6.4112        4.1839       -.23544E-06   -.14072E-03
  14  norm          .10000E-03    2.0150       -.40211E-07** at limit **
  15  norm          .10000E-03    3.1523        .19534E-06** at limit **
  16  Prefactor     .10000E-03    1.3880       -.31910E-07** at limit **
  17  Prefactor     .10000E-03    5.8454       -.42602E-07** at limit **
  18  Prefactor     22.094        35.629        .65490E-06    .34283E-04
  19  Prefactor     .10000E-03    17.058       -.37336E-06** at limit **
  20  Prefactor     22.299        16.103        .77134E-07    .23576E-04
  21  Prefactor     .10000E-03    76.935       -.94738E-06** at limit **
  22  norm          .10000E-03    3.4753       -.14223E-06** at limit **
  23  Prefactor     34.143        65.110        .13032E-05    .59400E-04
  24  norm          10.680        2.2913       -.13145E-07    .69172E-04
  25  norm          1.6730        15.816        .40387E-05   -.36637E-04
  26  Normalizat    .75743        .17512       -.10682E-06    .16880E-03
  27  Prefactor     1.0141        .21055        .40028E-07   -.43292E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.5651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70302
  Prefactor  = 0.845633
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.35635
  Prefactor  = 8.90602
  norm       = 2.78734
  norm       = 0.0001
  norm       = 6.41121
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0942
  Prefactor  = 0.0001
  Prefactor  = 22.299
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.1432
  norm       = 10.6801
  norm       = 1.67303
  Normalizat = 0.757432
  Prefactor  = 1.01412
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.438     FROM HESSE     STATUS=OK           488 CALLS     3774 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.565        21.606        .88316E-04   -1.4801    
   3  Prefactor     .10000E-03    18.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7030        2.5401        .82841E-04   -1.5274    
   6  Prefactor     .84563        12.852        .43431E-02   -1.5524    
   7  norm          .10000E-03    1.9662        .10001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    177.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3564        86.278        .18734E-02   -1.5475    
  10  Prefactor     8.9060        22.186        .13415E-03   -1.5111    
  11  norm          2.7873        5.3714        .20057E-03   -1.5374    
  12  norm          .10000E-03    5.0331        .16043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4112        4.1480        .10973E-03   -1.5202    
  14  norm          .10000E-03    2.0156        .10146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.6336        .24395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4022        .84141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8577        .17290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.094        34.997        .85231E-04   -1.4768    
  19  Prefactor     .10000E-03    17.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.299        16.055        .84832E-04   -1.4763    
  21  Prefactor     .10000E-03    77.702        .21400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.5642        .26559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     34.143        65.043        .68549E-04   -1.4539    
  24  norm          10.680        2.2929        .48816E-04   -1.5054    
  25  norm          1.6730        15.844        .16316E-02   -1.5449    
  26  Normalizat    .75743        .20526        .23777E-03   -1.0167    
  27  Prefactor     1.0141        .24309        .26159E-03   -.92260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11689e-07
Minuit parameter uncertainties:
  1  1.74386e-06
  2  21.6146
  3  3.7039e-05
  4  1.00903e-05
  5  2.54019
  6  6.59464
  7  2.67958e-06
  8  0.000126482
  9  21.6673
  10  22.207
  11  5.37229
  12  1.09324e-06
  13  4.14816
  14  8.78525e-07
  15  0.000100454
  16  7.04753e-06
  17  4.16394e-06
  18  35.0299
  19  7.46492e-05
  20  16.0584
  21  2.38293e-05
  22  6.57778e-06
  23  65.1783
  24  2.29289
  25  10.3004
  26  0.205466
  27  0.243354
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.093e-06  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.014e+00  2.434e-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:  7.574e-01  2.055e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278263/likelihoodResults_381110401_381369601_4FGL_J1309.4+4305_daily_bin547.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) = 5364.43851024
delta logL = -0.000939455726439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5364.43757077
delta logL = 8.71023075888e-09

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 'alpha     '    1.7738       1.0000          .0000       5.0000    
     3 'Normalizat'    .75743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0141       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=   5364.438     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      235 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    351.36        .16057E-02** at limit **
   2  alpha         1.9575        3.6759        .50000        .61846E-08
   3  Normalizat    .75743        .35354E-01    .23777E-03   -.33230E-04
   4  Prefactor     1.0141        .44684E-01    .26159E-03   -.30726E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95749
  Normalizat = 0.757429
  Prefactor  = 1.01412
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.438     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1102.1        .32115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9575        2.5829        .50000       -.21874    
   3  Normalizat    .75743        .11178        .95108E-05   -1.0167    
   4  Prefactor     1.0141        .14127        .10464E-04   -.92260    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.62542e-11
Minuit parameter uncertainties:
  1  1.9216e-05
  2  3380.17
  3  0.111817
  4  0.141319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278263': 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): 102
logL (Free Index) = 5364.4375706
delta logL = 1.8275295588e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.922e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.957e+00  3.380e+03  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.014e+00  1.413e-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:  7.574e-01  1.118e-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/278263/cmap_HighResolution_381110401_381369601_4FGL_J1309.4+4305_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2021-09-07 01:11:45.120793', job_id='278263', GAL2='1.01', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631002305.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='547' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:11:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 278263: <4FGL_J1309.4+4305_daily_bin547> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin547> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:27 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:35 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:55:35 2021
Terminated at Tue Sep  7 01:11:46 2021
Results reported at Tue Sep  7 01:11:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin547 197.363 43.085 381110401 381369601 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 :                                   776.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            979 sec.

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

