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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin963
RA = 197.363, Dec = 43.085
tmin = 488937601, tmax = 489196801
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='282904', job_status='RUN', time_executed='2021-09-07 01:10:03.669756', time_epoch_executed='1631002203.67' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282904

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282904/ft1_4FGL_J1309.4+4305_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282904/ft2_4FGL_J1309.4+4305_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282904/ft1_4FGL_J1309.4+4305_daily_bin963.fits outfile=/scratch/kocevski/282904/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin963.fits ra=197.363 dec=43.085 rad=12.0 tmin=488937601.0 tmax=489196801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.17
user 3.36
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282904/ft1_filtered_4FGL_J1309.4+4305_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/282904/ft2_4FGL_J1309.4+4305_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/282904/ltcube_488937601_489196801_4FGL_J1309.4+4305_daily_bin963.fits outfile=/scratch/kocevski/282904/expmap_488937601_489196801_4FGL_J1309.4+4305_daily_bin963.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/282904/ltcube_488937601_489196801_4FGL_J1309.4+4305_daily_bin963.fits
.....................!
real 193.42
user 188.64
sys 4.10

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/282904/ft1_filtered_4FGL_J1309.4+4305_daily_bin963.fits scfile=/scratch/kocevski/282904/ft2_4FGL_J1309.4+4305_daily_bin963.fits outfile=/scratch/kocevski/282904/cmap_488937601_489196801_4FGL_J1309.4+4305_daily_bin963.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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282904/ft1_filtered_4FGL_J1309.4+4305_daily_bin963.fits scfile=/scratch/kocevski/282904/ft2_4FGL_J1309.4+4305_daily_bin963.fits outfile=/scratch/kocevski/282904/cmap_HighResolution_488937601_489196801_4FGL_J1309.4+4305_daily_bin963.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.158       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2767       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4591       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11930E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.275       1.0000         .10000E-03   10000.    
    12 'norm      '    17.828       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.057       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20322       1.0000         .10000E-03   10000.    
    22 'norm      '    .10947E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.206       1.0000         .10000E-03   10000.    
    24 'norm      '    4.8486       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5805       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2657       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72946       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=   6499.146     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3293 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.154        6.2835        .22587E-06   -.16830E-03
   2  Prefactor     .10000E-03    10.740        .66069E-05** at limit **
   3  Prefactor     .10000E-03    12.907       -.87958E-05** at limit **
   4  Prefactor     .10000E-03    5.6078       -.12756E-06** at limit **
   5  norm          5.2764        2.3021       -.90019E-07    .10669E-03
   6  Prefactor     .10000E-03    3.1095        .40048E-07** at limit **
   7  norm          5.4564        4.8262       -.67101E-06   -.27149E-03
   8  Prefactor     .10000E-03    26.637        .63598E-05** at limit **
   9  Prefactor     .10000E-03    9.7440       -.36352E-05** at limit **
  10  Prefactor     .10000E-03    7.7948        .40269E-06** at limit **
  11  norm          11.274        5.4042       -.10347E-05   -.14030E-04
  12  norm          17.836        13.949       -.34850E-05    .14467E-04
  13  norm          .10000E-03    1.3654        .19192E-06** at limit **
  14  norm          .10000E-03    1.7743        .50373E-07** at limit **
  15  norm          .10000E-03    .90308       -.39432E-07** at limit **
  16  Prefactor     .10000E-03    1.0406        .57082E-07** at limit **
  17  Prefactor     .10000E-03    3.8260       -.72412E-07** at limit **
  18  Prefactor     .10000E-03    31.445       -.11184E-04** at limit **
  19  Prefactor     .10000E-03    13.708        .53390E-05** at limit **
  20  Prefactor     20.039        14.217        .13627E-04    .62416E-03
  21  Prefactor     .10141E-03    30.834       -.26594E-05** at limit **
  22  norm          .10001E-03    1.8491       -.22414E-05** at limit **
  23  Prefactor     42.180        65.034       -.17529E-04    .11184E-05
  24  norm          4.8503        1.6342        .35842E-07    .67620E-03
  25  norm          4.5763        12.051        .57859E-05   -.79695E-04
  26  Normalizat    1.2659        .16344       -.75009E-07    .62103E-03
  27  Prefactor     .72957        .20043        .27031E-06    .30554E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.27636
  Prefactor  = 0.0001
  norm       = 5.45638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2744
  norm       = 17.8357
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0391
  Prefactor  = 0.000101413
  norm       = 0.000100013
  Prefactor  = 42.1799
  norm       = 4.85031
  norm       = 4.57626
  Normalizat = 1.26586
  Prefactor  = 0.72957
 **********
 **   18 **HESSE 
 **********

 FCN=   6499.146     FROM HESSE     STATUS=OK           488 CALLS     3781 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.154        6.2788        .11993E-03   -1.5040    
   2  Prefactor     .10000E-03    10.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2764        2.3028        .78424E-04   -1.5249    
   6  Prefactor     .10000E-03    3.1355        .13878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4564        4.7945        .15950E-03   -1.5241    
   8  Prefactor     .10000E-03    26.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.7410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.274        5.4023        .11931E-03   -1.5036    
  12  norm          17.836        13.948        .94858E-04   -1.4863    
  13  norm          .10000E-03    2.2191        .18208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.7784        .10484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .90514        .74810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0568        .80263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8364        .15399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.039        14.295        .89434E-04   -1.4812    
  21  Prefactor     .10141E-03    35.786        .11127       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    3.9266        .21190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     42.180        65.237        .61705E-04   -1.4408    
  24  norm          4.8503        1.6346        .57081E-04   -1.5267    
  25  norm          4.5763        12.000        .18808E-03   -1.5280    
  26  Normalizat    1.2659        .18744        .20572E-03   -.84591    
  27  Prefactor     .72957        .22817        .32835E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04535e-09
Minuit parameter uncertainties:
  1  6.2792
  2  1.75025e-05
  3  2.08202e-07
  4  2.81e-06
  5  2.30281
  6  1.1766e-05
  7  4.79486
  8  2.74063e-05
  9  3.31512e-05
  10  3.11692e-05
  11  5.40249
  12  13.9501
  13  2.79686e-05
  14  2.23628e-06
  15  2.40017e-06
  16  6.07345e-06
  17  5.7746e-06
  18  7.20088e-05
  19  1.22804e-05
  20  14.2978
  21  0.0142293
  22  0.000446216
  23  65.3472
  24  1.6346
  25  12.0061
  26  0.187539
  27  0.228459
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.784e+01  1.395e+01  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.296e-01  2.285e-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.266e+00  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.55
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 1.46e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.61e-05

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) = 6499.14099398
delta logL = 0.00521922111511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6499.1405493
delta logL = 0.005663902376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.438       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8396       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73085       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=   6499.141     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      261 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.443        14.457        .47956E-03    .96690E-04
   2  alpha         1.8394        .67213        .14781E-01   -.29996E-05
   3  Normalizat    1.2640        .18234        .20585E-03   -.58994E-04
   4  Prefactor     .73091        .22749        .32806E-03    .40788E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4428
  alpha      = 1.83937
  Normalizat = 1.264
  Prefactor  = 0.730909
 **********
 **   18 **HESSE 
 **********

 FCN=   6499.141     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.443        14.268        .95912E-04   -1.4872    
   2  alpha         1.8394        .66342        .59126E-03   -.26743    
   3  Normalizat    1.2640        .18237        .41171E-04   -.84648    
   4  Prefactor     .73091        .22759        .13123E-04   -1.0233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51405e-11
Minuit parameter uncertainties:
  1  14.2712
  2  0.672091
  3  0.182467
  4  0.227883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282904': 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) = 6499.14054908
delta logL = 0.0056641204601

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.744e+01  1.427e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.839e+00  6.721e-01  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.309e-01  2.279e-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.264e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.55
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.84 +/- 0.67
Photon Flux (Free Index): 2.00e-08 +/- 2.02e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/282904/cmap_HighResolution_488937601_489196801_4FGL_J1309.4+4305_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='1.87e-05', photon_flux_error='1.46e-08', dlogl='5.66e-03', energy_flux='2.05e-05', photon_flux2='2.00e-08', job_status='DONE', time_completed='2021-09-07 01:23:03.384653', photon_index_error2='0.67', photon_index2='1.84', ts='6.55', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.27', time_epoch_completed='1631002983.38', return_code='0', job_id='282904', GAL2='0.73', EG2='1.26', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='2.02e-08', ts2='6.55', photon_index='1.77' WHERE bin_id='963' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:23:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 282904: <4FGL_J1309.4+4305_daily_bin963> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin963 197.363 43.085 488937601 489196801 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 :                                   772.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            936 sec.

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

