/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 9 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 = 7410
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin107
RA = 197.363, Dec = 43.085
tmin = 267062401, tmax = 267321601
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='275299', job_status='RUN', time_executed='2021-09-07 00:45:58.626858', time_epoch_executed='1631000758.63' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275299/ft1_4FGL_J1309.4+4305_daily_bin107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275299/ft2_4FGL_J1309.4+4305_daily_bin107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275299/ft1_4FGL_J1309.4+4305_daily_bin107.fits outfile=/scratch/kocevski/275299/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin107.fits ra=197.363 dec=43.085 rad=12.0 tmin=267062401.0 tmax=267321601.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 1.42
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275299/ft1_filtered_4FGL_J1309.4+4305_daily_bin107.fits evtable="EVENTS" scfile=/scratch/kocevski/275299/ft2_4FGL_J1309.4+4305_daily_bin107.fits sctable="SC_DATA" expcube=/scratch/kocevski/275299/ltcube_267062401_267321601_4FGL_J1309.4+4305_daily_bin107.fits outfile=/scratch/kocevski/275299/expmap_267062401_267321601_4FGL_J1309.4+4305_daily_bin107.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/275299/ltcube_267062401_267321601_4FGL_J1309.4+4305_daily_bin107.fits
.....................!
real 192.40
user 186.90
sys 5.07

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/275299/ft1_filtered_4FGL_J1309.4+4305_daily_bin107.fits scfile=/scratch/kocevski/275299/ft2_4FGL_J1309.4+4305_daily_bin107.fits outfile=/scratch/kocevski/275299/cmap_267062401_267321601_4FGL_J1309.4+4305_daily_bin107.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275299/ft1_filtered_4FGL_J1309.4+4305_daily_bin107.fits scfile=/scratch/kocevski/275299/ft2_4FGL_J1309.4+4305_daily_bin107.fits outfile=/scratch/kocevski/275299/cmap_HighResolution_267062401_267321601_4FGL_J1309.4+4305_daily_bin107.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.644       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.653       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.695       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   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      '    6.2424       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2600       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.4024       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.881       1.0000         .10000E-03   10000.    
    24 'norm      '    3.4253       1.0000         .10000E-03   10000.    
    25 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0317       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79927       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=   4788.636     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3822 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1606        .24661E-06** at limit **
   2  Prefactor     .10000E-03    5.5574        .24497E-06** at limit **
   3  Prefactor     14.635        24.371       -.18136E-05   -.12233E-04
   4  Prefactor     14.653        14.513       -.78399E-07   -.18996E-04
   5  norm          2.2223        1.8672        .21678E-07   -.24666E-04
   6  Prefactor     .10000E-03    3.3512        .36131E-06** at limit **
   7  norm          .10000E-03    1.9475        .33013E-06** at limit **
   8  Prefactor     .10000E-03    23.366        .33240E-06** at limit **
   9  Prefactor     .10000E-03    22.567        .10352E-05** at limit **
  10  Prefactor     .10000E-03    8.2130        .19872E-06** at limit **
  11  norm          22.694        8.4526       -.16004E-06   -.24951E-04
  12  norm          .10000E-03    5.0897        .93106E-07** at limit **
  13  norm          .10000E-03    .90291        .93709E-07** at limit **
  14  norm          .10000E-03    1.5839        .65539E-07** at limit **
  15  norm          6.2386        5.5209       -.31152E-06    .19364E-04
  16  Prefactor     3.2588        3.3959       -.16762E-06    .44275E-04
  17  Prefactor     .10000E-03    12.869        .31938E-06** at limit **
  18  Prefactor     .10000E-03    29.796        .53130E-06** at limit **
  19  Prefactor     .10000E-03    22.460       -.49542E-06** at limit **
  20  Prefactor     .10000E-03    11.840        .46904E-06** at limit **
  21  Prefactor     .10000E-03    75.337        .22662E-05** at limit **
  22  norm          3.4002        3.7198       -.20406E-06   -.32809E-04
  23  Prefactor     21.681        80.971       -.11762E-04   -.95247E-04
  24  norm          3.4243        1.7988       -.18260E-06   -.31802E-03
  25  norm          .10000E-03    6.2805       -.12458E-05** at limit **
  26  Normalizat    1.0321        .21186        .11025E-04   -.14876E-03
  27  Prefactor     .79870        .24687       -.13921E-04   -.44199E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.635
  Prefactor  = 14.6532
  norm       = 2.22227
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.6936
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.23855
  Prefactor  = 3.2588
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.40019
  Prefactor  = 21.6809
  norm       = 3.42427
  norm       = 0.0001
  Normalizat = 1.03212
  Prefactor  = 0.798704
 **********
 **   18 **HESSE 
 **********

 FCN=   4788.636     FROM HESSE     STATUS=OK           478 CALLS     4300 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1702        .99364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5629        .15934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.635        24.351        .10467E-03   -1.4943    
   4  Prefactor     14.653        14.512        .10463E-03   -1.4942    
   5  norm          2.2223        1.8595        .84224E-04   -1.5410    
   6  Prefactor     .10000E-03    3.3882        .12373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9648        .94346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.694        8.4352        .84080E-04   -1.4755    
  12  norm          .10000E-03    5.0917        .15248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .90488        .64208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5848        .85057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.2386        5.5111        .14406E-03   -1.5208    
  16  Prefactor     3.2588        3.3770        .12128E-03   -1.5347    
  17  Prefactor     .10000E-03    13.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    76.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.4002        3.7109        .13474E-03   -1.5339    
  23  Prefactor     21.681        82.172        .85628E-04   -1.4776    
  24  norm          3.4243        1.7968        .64271E-04   -1.5338    
  25  norm          .10000E-03    6.3318        .16991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0321        .21143        .20891E-03   -.91962    
  27  Prefactor     .79870        .24736        .29037E-03   -.99776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11213e-10
Minuit parameter uncertainties:
  1  9.59694e-06
  2  1.53166e-05
  3  24.3671
  4  14.5157
  5  1.85955
  6  2.0346e-05
  7  1.18419e-05
  8  3.1639e-05
  9  0.000111203
  10  1.0958e-05
  11  8.43569
  12  4.13149e-06
  13  1.64995e-06
  14  2.49213e-06
  15  5.51156
  16  3.3772
  17  3.04796e-05
  18  1.292e-05
  19  6.89712e-05
  20  1.80012e-05
  21  0.000483543
  22  3.71119
  23  82.6057
  24  1.79687
  25  9.60205e-05
  26  0.211601
  27  0.247705
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  4.131e-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:  7.987e-01  2.477e-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.032e+00  2.116e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275299/likelihoodResults_267062401_267321601_4FGL_J1309.4+4305_daily_bin107.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): 0
logL (Free Index) = 4788.63664737
delta logL = -0.000922506857023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4788.63572486
delta logL = 4.80667949887e-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.7724       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79870       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=   4788.636     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      237 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.8876        .15255E-02** at limit **
   2  alpha         1.9984        2.7629        .17442       -.59248E-07
   3  Normalizat    1.0321        .19712        .20890E-03   -.14639E-04
   4  Prefactor     .79870        .24489        .29038E-03   -.86524E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.99838
  Normalizat = 1.03212
  Prefactor  = 0.798702
 **********
 **   18 **HESSE 
 **********

 FCN=   4788.636     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1691        .30510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9984        4.0002        .69768E-02   -.20202    
   3  Normalizat    1.0321        .19731        .83561E-05   -.91962    
   4  Prefactor     .79870        .24513        .11615E-04   -.99776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3247e-10
Minuit parameter uncertainties:
  1  3.90854e-06
  2  488.012
  3  0.197451
  4  0.245468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275299': 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) = 4788.63572472
delta logL = 1.46786987898e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.909e-06  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.998e+00  4.880e+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:  7.987e-01  2.455e-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.032e+00  1.975e-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/275299/cmap_HighResolution_267062401_267321601_4FGL_J1309.4+4305_daily_bin107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', job_status='DONE', photon_flux_upper_limit='2.95e-08', time_completed='2021-09-07 00:58:29.513685', job_id='275299', GAL2='0.80', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631001509.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='107' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:58:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 275299: <4FGL_J1309.4+4305_daily_bin107> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin107 197.363 43.085 267062401 267321601 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 :                                   748.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            791 sec.

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

