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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin715
RA = 197.363, Dec = 43.085
tmin = 424656001, tmax = 424915201
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='279693', job_status='RUN', time_executed='2021-09-07 01:05:33.402867', time_epoch_executed='1631001933.4' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279693/ft1_4FGL_J1309.4+4305_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279693/ft2_4FGL_J1309.4+4305_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279693/ft1_4FGL_J1309.4+4305_daily_bin715.fits outfile=/scratch/kocevski/279693/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin715.fits ra=197.363 dec=43.085 rad=12.0 tmin=424656001.0 tmax=424915201.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 5.10
user 4.32
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279693/ft1_filtered_4FGL_J1309.4+4305_daily_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/279693/ft2_4FGL_J1309.4+4305_daily_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/279693/ltcube_424656001_424915201_4FGL_J1309.4+4305_daily_bin715.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/279693/ft2_4FGL_J1309.4+4305_daily_bin715.fits
.....................!
real 16.19
user 14.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279693/ft1_filtered_4FGL_J1309.4+4305_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/279693/ft2_4FGL_J1309.4+4305_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/279693/ltcube_424656001_424915201_4FGL_J1309.4+4305_daily_bin715.fits outfile=/scratch/kocevski/279693/expmap_424656001_424915201_4FGL_J1309.4+4305_daily_bin715.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/279693/ltcube_424656001_424915201_4FGL_J1309.4+4305_daily_bin715.fits
.....................!
real 199.88
user 187.24
sys 3.97

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/279693/ft1_filtered_4FGL_J1309.4+4305_daily_bin715.fits scfile=/scratch/kocevski/279693/ft2_4FGL_J1309.4+4305_daily_bin715.fits outfile=/scratch/kocevski/279693/cmap_424656001_424915201_4FGL_J1309.4+4305_daily_bin715.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279693/ft1_filtered_4FGL_J1309.4+4305_daily_bin715.fits scfile=/scratch/kocevski/279693/ft2_4FGL_J1309.4+4305_daily_bin715.fits outfile=/scratch/kocevski/279693/cmap_HighResolution_424656001_424915201_4FGL_J1309.4+4305_daily_bin715.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.58
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4441       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.597       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.832       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.0170       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1634       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8438       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3699       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.303       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    82.422       1.0000         .10000E-03   10000.    
    24 'norm      '    4.3885       1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85424       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1078       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=   3148.533     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3270 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4453        8.5048        .54492E-06   -.49003E-05
   2  Prefactor     27.590        29.646        .88567E-06   -.33361E-04
   3  Prefactor     .10000E-03    12.159        .35087E-05** at limit **
   4  Prefactor     37.832        33.873       -.51012E-05    .26655E-05
   5  norm          2.0650        2.1727        .27153E-06    .24240E-04
   6  Prefactor     .10000E-03    6.3276       -.18683E-05** at limit **
   7  norm          6.0167        6.5504        .20312E-06   -.54749E-04
   8  Prefactor     .10000E-03    26.428        .22008E-05** at limit **
   9  Prefactor     .10000E-03    15.204       -.88603E-05** at limit **
  10  Prefactor     5.2350        27.163        .53426E-05   -.19314E-04
  11  norm          .10000E-03    2.8652        .69744E-08** at limit **
  12  norm          .10000E-03    5.7426        .78479E-06** at limit **
  13  norm          2.8436        5.0061       -.11049E-05   -.44882E-03
  14  norm          .10000E-03    7.8862        .37713E-05** at limit **
  15  norm          .10000E-03    1.1039        .27474E-07** at limit **
  16  Prefactor     3.3700        3.8263        .95874E-07   -.24636E-03
  17  Prefactor     .10000E-03    12.864        .36529E-05** at limit **
  18  Prefactor     .10000E-03    10.181       -.42674E-05** at limit **
  19  Prefactor     29.301        72.726       -.35362E-05   -.12148E-04
  20  Prefactor     .10000E-03    12.061        .34712E-05** at limit **
  21  Prefactor     .10000E-03    13.054        .34319E-05** at limit **
  22  norm          .10000E-03    1.4224        .87863E-07** at limit **
  23  Prefactor     82.510        119.98        .91056E-04   -.28604E-04
  24  norm          4.3889        2.2049       -.13333E-06   -.34030E-03
  25  norm          .10000E-03    10.107       -.46826E-05** at limit **
  26  Normalizat    .85320        .23010       -.15504E-04    .34646E-03
  27  Prefactor     1.1090        .27684        .68830E-05   -.38472E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.44533
  Prefactor  = 27.5903
  Prefactor  = 0.0001
  Prefactor  = 37.8325
  norm       = 2.06497
  Prefactor  = 0.0001
  norm       = 6.01672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.23502
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.84356
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.37001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.5103
  norm       = 4.38895
  norm       = 0.0001
  Normalizat = 0.8532
  Prefactor  = 1.10898
 **********
 **   18 **HESSE 
 **********

 FCN=   3148.533     FROM HESSE     STATUS=OK           480 CALLS     3750 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4453        8.5018        .13795E-03   -1.5127    
   2  Prefactor     27.590        29.654        .76261E-04   -1.4657    
   3  Prefactor     .10000E-03    12.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.832        33.857        .65162E-04   -1.4477    
   5  norm          2.0650        2.1726        .82462E-04   -1.5421    
   6  Prefactor     .10000E-03    6.3499        .13758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.0167        6.5372        .14299E-03   -1.5217    
   8  Prefactor     .10000E-03    26.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2350        27.063        .17692E-03   -1.5250    
  11  norm          .10000E-03    2.8686        .92731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.7431        .13134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8436        4.9631        .15577E-03   -1.5371    
  14  norm          .10000E-03    7.9175        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1045        .57577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3700        3.8104        .10967E-03   -1.5341    
  17  Prefactor     .10000E-03    12.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.184        .17488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.301        72.738        .74013E-04   -1.4625    
  20  Prefactor     .10000E-03    12.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.4254        .65353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     82.510        120.06        .22121E-03   -1.3889    
  24  norm          4.3889        2.2062        .56177E-04   -1.5289    
  25  norm          .10000E-03    10.151        .17434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .85320        .27325        .23200E-03   -.98125    
  27  Prefactor     1.1090        .33120        .26504E-03   -.89180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77038e-09
Minuit parameter uncertainties:
  1  8.50302
  2  29.6698
  3  5.39905e-05
  4  33.8738
  5  2.17268
  6  1.93781e-05
  7  6.53799
  8  3.58609e-05
  9  3.69536e-05
  10  23.8222
  11  1.55156e-06
  12  1.53478e-06
  13  4.96378
  14  6.53841e-05
  15  3.15927e-06
  16  3.81071
  17  1.32912e-05
  18  1.52624e-05
  19  72.9598
  20  8.07409e-05
  21  2.31664e-05
  22  8.19323e-06
  23  120.414
  24  2.20625
  25  8.68234e-05
  26  0.273696
  27  0.331818
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.535e-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.109e+00  3.318e-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:  8.532e-01  2.737e-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: 3.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279693/likelihoodResults_424656001_424915201_4FGL_J1309.4+4305_daily_bin715.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) = 3148.53424739
delta logL = -0.000767082620769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3148.53348028
delta logL = 2.11257429328e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7599       1.0000          .0000       5.0000    
     3 'Normalizat'    .85317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1090       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=   3148.533     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      234 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    240.67        .13180E-01** at limit **
   2  alpha         1.4927        4.2401        .17480       -.31738E-07
   3  Normalizat    .85318        .34679E-01    .23201E-03    .36016E-05
   4  Prefactor     1.1090        .44780E-01    .26503E-03    .38392E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.49265
  Normalizat = 0.853183
  Prefactor  = 1.10901
 **********
 **   18 **HESSE 
 **********

 FCN=   3148.533     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0870        .13509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4927        2.7169        .69921E-02   -.41472    
   3  Normalizat    .85318        .25046        .92804E-05   -.98125    
   4  Prefactor     1.1090        .32328        .10601E-04   -.89179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69489e-11
Minuit parameter uncertainties:
  1  0.00010881
  2  273.608
  3  0.250804
  4  0.323856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279693': 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) = 3148.53347983
delta logL = 4.79330083181e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.109e+00  3.239e-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:  8.532e-01  2.508e-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/279693/cmap_HighResolution_424656001_424915201_4FGL_J1309.4+4305_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', job_status='DONE', photon_flux_upper_limit='3.53e-08', time_completed='2021-09-07 01:15:38.732091', job_id='279693', GAL2='1.11', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631002538.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='715' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:15:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 279693: <4FGL_J1309.4+4305_daily_bin715> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin715> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:23 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:00:29 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:00:29 2021
Terminated at Tue Sep  7 01:15:39 2021
Results reported at Tue Sep  7 01:15:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin715 197.363 43.085 424656001 424915201 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 :                                   591.00 sec.
    Max Memory :                                 1114 MB
    Average Memory :                             250.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            916 sec.

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

