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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin553
RA = 197.363, Dec = 43.085
tmin = 382665601, tmax = 382924801
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='278271', job_status='RUN', time_executed='2021-09-07 00:59:25.287910', time_epoch_executed='1631001565.29' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278271

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278271/ft1_4FGL_J1309.4+4305_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278271/ft2_4FGL_J1309.4+4305_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278271/ft1_4FGL_J1309.4+4305_daily_bin553.fits outfile=/scratch/kocevski/278271/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin553.fits ra=197.363 dec=43.085 rad=12.0 tmin=382665601.0 tmax=382924801.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.39
user 3.15
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278271/ft1_filtered_4FGL_J1309.4+4305_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/278271/ft2_4FGL_J1309.4+4305_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/278271/ltcube_382665601_382924801_4FGL_J1309.4+4305_daily_bin553.fits outfile=/scratch/kocevski/278271/expmap_382665601_382924801_4FGL_J1309.4+4305_daily_bin553.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/278271/ltcube_382665601_382924801_4FGL_J1309.4+4305_daily_bin553.fits
.....................!
real 193.75
user 187.81
sys 5.18

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/278271/ft1_filtered_4FGL_J1309.4+4305_daily_bin553.fits scfile=/scratch/kocevski/278271/ft2_4FGL_J1309.4+4305_daily_bin553.fits outfile=/scratch/kocevski/278271/cmap_382665601_382924801_4FGL_J1309.4+4305_daily_bin553.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.67
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52799       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .39763E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .94892E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5870       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0384       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3291       1.0000         .10000E-03   10000.    
    13 'norm      '    6.4399       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0955       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.433       1.0000         .10000E-03   10000.    
    22 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    65.946       1.0000         .10000E-03   10000.    
    24 'norm      '    10.176       1.0000         .10000E-03   10000.    
    25 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84647       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88332       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=   4734.250     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3292 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52584        5.6804        .90686E-06   -.42574E-04
   2  Prefactor     6.2729        13.683       -.28479E-06   -.10643E-03
   3  Prefactor     .10000E-03    22.863       -.46579E-06** at limit **
   4  Prefactor     .10000E-03    6.9952       -.17320E-07** at limit **
   5  norm          1.7228        2.0789        .50859E-07   -.74549E-04
   6  Prefactor     .10000E-03    3.4615        .54268E-07** at limit **
   7  norm          .10000E-03    2.4319       -.13438E-06** at limit **
   8  Prefactor     .10000E-03    222.35       -.12414E-05** at limit **
   9  Prefactor     .10000E-03    10.029       -.33295E-07** at limit **
  10  Prefactor     1.5843        35.908        .14824E-04   -.19350E-04
  11  norm          2.0384        2.7416       -.23679E-06    .42170E-04
  12  norm          1.3363        16.183        .82518E-06    .36868E-05
  13  norm          6.4419        5.3878       -.39420E-08    .62230E-04
  14  norm          4.0937        8.5064        .12544E-06    .20345E-04
  15  norm          .10000E-03    1.3076       -.80712E-07** at limit **
  16  Prefactor     .10000E-03    2.2821        .81924E-07** at limit **
  17  Prefactor     .10000E-03    5.2282        .37198E-08** at limit **
  18  Prefactor     .10000E-03    20.231       -.22473E-07** at limit **
  19  Prefactor     .10000E-03    18.948       -.70140E-07** at limit **
  20  Prefactor     28.393        19.279        .43232E-06    .22930E-04
  21  Prefactor     46.428        36.697        .21213E-06   -.40338E-04
  22  norm          .10000E-03    2.7480       -.47165E-06** at limit **
  23  Prefactor     65.976        59.558       -.12837E-05    .89064E-05
  24  norm          10.176        2.4575        .56346E-07    .12166E-04
  25  norm          .10000E-03    7.6697        .16117E-06** at limit **
  26  Normalizat    .84657        .17037       -.21786E-05   -.53086E-04
  27  Prefactor     .88348        .20595        .13116E-05    .23404E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.525843
  Prefactor  = 6.27292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72281
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.58433
  norm       = 2.03842
  norm       = 1.33628
  norm       = 6.44186
  norm       = 4.0937
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.393
  Prefactor  = 46.4285
  norm       = 0.0001
  Prefactor  = 65.9755
  norm       = 10.1761
  norm       = 0.0001
  Normalizat = 0.846575
  Prefactor  = 0.88348
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.250     FROM HESSE     STATUS=OK           486 CALLS     3778 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52584        5.5494        .30414E-03   -1.5563    
   2  Prefactor     6.2729        13.505        .16028E-03   -1.5207    
   3  Prefactor     .10000E-03    23.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9990        .17774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7228        2.0617        .10541E-03   -1.5445    
   6  Prefactor     .10000E-03    3.4954        .12511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.6341        .20709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    225.48        .20796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5843        36.104        .16847E-02   -1.5456    
  11  norm          2.0384        2.7297        .12771E-03   -1.5422    
  12  norm          1.3363        16.217        .38104E-03   -1.5477    
  13  norm          6.4419        5.4469        .10502E-03   -1.5200    
  14  norm          4.0937        8.6257        .19921E-03   -1.5303    
  15  norm          .10000E-03    1.3134        .76847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3838        .20253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2463        .15361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.393        19.286        .75192E-04   -1.4642    
  21  Prefactor     46.428        36.706        .58842E-04   -1.4344    
  22  norm          .10000E-03    2.7980        .11167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     65.976        59.609        .49421E-04   -1.4082    
  24  norm          10.176        2.4604        .50126E-04   -1.5070    
  25  norm          .10000E-03    7.7045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .84657        .19840        .21580E-03   -.98364    
  27  Prefactor     .88348        .24145        .26696E-03   -.96721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02691e-10
Minuit parameter uncertainties:
  1  3.41657
  2  13.512
  3  0.000114115
  4  3.67305e-06
  5  2.06177
  6  4.38546e-07
  7  2.00954e-05
  8  0.00107506
  9  9.60964e-06
  10  15.1361
  11  2.72985
  12  9.31302
  13  5.44729
  14  8.62834
  15  6.49821e-06
  16  7.22814e-06
  17  3.23062e-07
  18  0.000109144
  19  4.40543e-05
  20  19.2902
  21  36.7241
  22  5.6133e-05
  23  59.6634
  24  2.46038
  25  3.04617e-05
  26  0.198574
  27  0.241747
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.336e+00  9.313e+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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.835e-01  2.417e-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.466e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 3.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278271/likelihoodResults_382665601_382924801_4FGL_J1309.4+4305_daily_bin553.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) = 4734.22973038
delta logL = 0.0206006156786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4734.22867913
delta logL = 0.0216518644384

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6324       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4174       1.0000          .0000       5.0000    
     3 'Normalizat'    .84418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88342       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=   4734.229     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      240 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6338        20.108        .33092E-03   -.28885E-03
   2  alpha         2.4164        3.4509        .57158E-01   -.16382E-04
   3  Normalizat    .84416        .19541        .21610E-03    .28276E-03
   4  Prefactor     .88344        .24348        .26697E-03    .40096E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6338
  alpha      = 2.41639
  Normalizat = 0.844156
  Prefactor  = 0.883435
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.229     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6338        10.758        .13237E-04   -1.5452    
   2  alpha         2.4164        3.7062        .22863E-02   -.33449E-01
   3  Normalizat    .84416        .19125        .43220E-04   -.98451    
   4  Prefactor     .88344        .24057        .53393E-04   -.96722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12112e-10
Minuit parameter uncertainties:
  1  8.38685
  2  3.98228
  3  0.191408
  4  0.240856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278271': 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) = 4734.22867906
delta logL = 0.0216519307533

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.634e+00  8.387e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.416e+00  3.982e+00  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:  8.834e-01  2.409e-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.442e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/278271/cmap_HighResolution_382665601_382924801_4FGL_J1309.4+4305_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', job_status='DONE', photon_flux_upper_limit='3.82e-08', time_completed='2021-09-07 01:11:43.736601', job_id='278271', GAL2='0.88', fit_tolerance='1e-08', EG2='0.84', EG='0.85', time_epoch_completed='1631002303.74', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.17e-02', ts2='0.07', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='553' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:11:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 278271: <4FGL_J1309.4+4305_daily_bin553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin553 197.363 43.085 382665601 382924801 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 :                                   723.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             258.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            976 sec.

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

