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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin977
RA = 197.363, Dec = 43.085
tmin = 492566401, tmax = 492825601
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='282928', job_status='RUN', time_executed='2021-09-07 01:10:23.598015', time_epoch_executed='1631002223.6' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='977'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282928/ft1_4FGL_J1309.4+4305_daily_bin977.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282928/ft2_4FGL_J1309.4+4305_daily_bin977.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282928/ft1_4FGL_J1309.4+4305_daily_bin977.fits outfile=/scratch/kocevski/282928/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin977.fits ra=197.363 dec=43.085 rad=12.0 tmin=492566401.0 tmax=492825601.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.68
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282928/ft1_filtered_4FGL_J1309.4+4305_daily_bin977.fits" evtable="EVENTS" scfile=/scratch/kocevski/282928/ft2_4FGL_J1309.4+4305_daily_bin977.fits sctable="SC_DATA" outfile=/scratch/kocevski/282928/ltcube_492566401_492825601_4FGL_J1309.4+4305_daily_bin977.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/282928/ft2_4FGL_J1309.4+4305_daily_bin977.fits
.....................!
real 16.58
user 16.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282928/ft1_filtered_4FGL_J1309.4+4305_daily_bin977.fits evtable="EVENTS" scfile=/scratch/kocevski/282928/ft2_4FGL_J1309.4+4305_daily_bin977.fits sctable="SC_DATA" expcube=/scratch/kocevski/282928/ltcube_492566401_492825601_4FGL_J1309.4+4305_daily_bin977.fits outfile=/scratch/kocevski/282928/expmap_492566401_492825601_4FGL_J1309.4+4305_daily_bin977.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/282928/ltcube_492566401_492825601_4FGL_J1309.4+4305_daily_bin977.fits
.....................!
real 192.89
user 186.72
sys 4.11

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/282928/ft1_filtered_4FGL_J1309.4+4305_daily_bin977.fits scfile=/scratch/kocevski/282928/ft2_4FGL_J1309.4+4305_daily_bin977.fits outfile=/scratch/kocevski/282928/cmap_492566401_492825601_4FGL_J1309.4+4305_daily_bin977.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282928/ft1_filtered_4FGL_J1309.4+4305_daily_bin977.fits scfile=/scratch/kocevski/282928/ft2_4FGL_J1309.4+4305_daily_bin977.fits outfile=/scratch/kocevski/282928/cmap_HighResolution_492566401_492825601_4FGL_J1309.4+4305_daily_bin977.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.63
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.030       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.7743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.440       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84857       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10647E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.492       1.0000         .10000E-03   10000.    
    15 'norm      '    .11853E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5456       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.455       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.8501       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1343       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4291       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .44571       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=   5682.586     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3299 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7609        3.9822        .51261E-06   -.25353E-02
   2  Prefactor     .10000E-03    12.979        .64200E-05** at limit **
   3  Prefactor     .10000E-03    7.2345        .14188E-05** at limit **
   4  Prefactor     13.018        16.087        .58360E-07    .40344E-05
   5  norm          5.2346        2.4393        .50443E-07    .14157E-04
   6  Prefactor     .10000E-03    2.3236        .14088E-07** at limit **
   7  norm          5.7756        4.5987       -.31028E-06    .11728E-03
   8  Prefactor     .10000E-03    39.778        .27064E-04** at limit **
   9  Prefactor     26.436        22.734       -.10195E-05    .99227E-04
  10  Prefactor     .82350        11.644        .25185E-07    .71947E-04
  11  norm          .10000E-03    1.2095        .37227E-07** at limit **
  12  norm          .10000E-03    4.7632       -.15435E-05** at limit **
  13  norm          .10000E-03    3.2982       -.85256E-06** at limit **
  14  norm          11.506        7.4461        .60191E-06    .70429E-03
  15  norm          .10001E-03    1.8058       -.43417E-06** at limit **
  16  Prefactor     2.5465        2.8569        .15339E-06    .43784E-03
  17  Prefactor     .10000E-03    10.450       -.39558E-05** at limit **
  18  Prefactor     .10001E-03    59.787       -.38198E-04** at limit **
  19  Prefactor     .10000E-03    26.029       -.15843E-04** at limit **
  20  Prefactor     .10000E-03    4.8748        .24951E-05** at limit **
  21  Prefactor     32.462        37.467        .80279E-05    .31196E-03
  22  norm          .10000E-03    1.4257        .38997E-07** at limit **
  23  Prefactor     .10000E-03    48.938        .15775E-04** at limit **
  24  norm          3.8499        1.6889       -.12913E-06    .18759E-03
  25  norm          1.1298        29.001        .24751E-05   -.67709E-03
  26  Normalizat    1.4292        .18346       -.87690E-06    .31542E-03
  27  Prefactor     .44570        .21583        .11090E-07    .82765E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0183
  norm       = 5.2346
  Prefactor  = 0.0001
  norm       = 5.77562
  Prefactor  = 0.0001
  Prefactor  = 26.4356
  Prefactor  = 0.823503
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 11.5062
  norm       = 0.000100008
  Prefactor  = 2.54647
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.4623
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.84989
  norm       = 1.12976
  Normalizat = 1.42923
  Prefactor  = 0.445698
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.586     FROM HESSE     STATUS=OK           486 CALLS     3785 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7609        5.5979        .15302E-02   -1.5443    
   2  Prefactor     .10000E-03    13.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.018        16.077        .11097E-03   -1.4986    
   5  norm          5.2346        2.4390        .77915E-04   -1.5250    
   6  Prefactor     .10000E-03    2.3271        .11211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7756        4.5912        .13556E-03   -1.5227    
   8  Prefactor     .10000E-03    39.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.436        22.623        .77908E-04   -1.4679    
  10  Prefactor     .82350        51.584        .48095E-02   -1.5526    
  11  norm          .10000E-03    1.2099        .80935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.7657        .16067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3413        .23489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.506        6.6967        .11817E-03   -1.5029    
  15  norm          .10001E-03    13.039        .19540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5465        2.8334        .12804E-03   -1.5389    
  17  Prefactor     .10000E-03    10.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    60.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8768        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.462        37.933        .70336E-04   -1.4568    
  22  norm          .10000E-03    1.4341        .87875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.8499        1.6879        .61550E-04   -1.5316    
  25  norm          1.1298        52.101        .21891E-02   -1.5495    
  26  Normalizat    1.4292        .20006        .18894E-03   -.79787    
  27  Prefactor     .44570        .23118        .38892E-03   -1.1454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28009e-08
Minuit parameter uncertainties:
  1  5.59956
  2  3.24036e-05
  3  7.15243e-06
  4  16.0823
  5  2.43904
  6  3.53429e-06
  7  4.59145
  8  0.000254645
  9  22.6302
  10  13.0463
  11  1.26078e-06
  12  5.94465e-06
  13  0.000115814
  14  6.69712
  15  0.000632555
  16  2.83359
  17  4.28699e-06
  18  0.00118378
  19  0.000118054
  20  4.6459e-06
  21  37.9616
  22  4.52028e-06
  23  0.00017135
  24  1.68794
  25  15.3579
  26  0.200166
  27  0.231662
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  5.945e-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:  4.457e-01  2.317e-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.429e+00  2.002e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282928/likelihoodResults_492566401_492825601_4FGL_J1309.4+4305_daily_bin977.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) = 5682.58716153
delta logL = -0.000978800897428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5682.58618271
delta logL = 1.70248313225e-08

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.7623       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44571       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=   5682.586     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    343.27        .16094E-02** at limit **
   2  alpha         1.6267        3.2931        .50000        .92768E-08
   3  Normalizat    1.4292        .36916E-01    .18894E-03   -.65828E-04
   4  Prefactor     .44570        .44818E-01    .38892E-03   -.30722E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.6267
  Normalizat = 1.42922
  Prefactor  = 0.445699
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.586     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1064.7        .32187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6267        3.8632        .50000       -.35685    
   3  Normalizat    1.4292        .11973        .75575E-05   -.79787    
   4  Prefactor     .44570        .14527        .15557E-04   -1.1454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21986e-09
Minuit parameter uncertainties:
  1  0.000657227
  2  2760.82
  3  0.119749
  4  0.145389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282928': 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) = 5682.58618253
delta logL = 1.98532688955e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  6.572e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.627e+00  2.761e+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:  4.457e-01  1.454e-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.429e+00  1.197e-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/282928/cmap_HighResolution_492566401_492825601_4FGL_J1309.4+4305_daily_bin977.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', job_status='DONE', photon_flux_upper_limit='2.68e-08', time_completed='2021-09-07 01:24:01.178381', job_id='282928', GAL2='0.45', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631003041.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='1.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='977' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:24:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 282928: <4FGL_J1309.4+4305_daily_bin977> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin977> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 01:07:30 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:07:36 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:07:36 2021
Terminated at Tue Sep  7 01:24:01 2021
Results reported at Tue Sep  7 01:24:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin977 197.363 43.085 492566401 492825601 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 :                                   806.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            991 sec.

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

