/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 117 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 = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin191
RA = 197.363, Dec = 43.085
tmin = 288835201, tmax = 289094401
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='275431', job_status='RUN', time_executed='2021-09-07 00:49:40.988530', time_epoch_executed='1631000980.99' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='191'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275431

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275431/ft1_4FGL_J1309.4+4305_daily_bin191.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275431/ft2_4FGL_J1309.4+4305_daily_bin191.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275431/ft1_4FGL_J1309.4+4305_daily_bin191.fits outfile=/scratch/kocevski/275431/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin191.fits ra=197.363 dec=43.085 rad=12.0 tmin=288835201.0 tmax=289094401.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.01
user 2.81
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275431/ft2_4FGL_J1309.4+4305_daily_bin191.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/275431/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin191.fits evtable="EVENTS" outfile="/scratch/kocevski/275431/ft1_filtered_4FGL_J1309.4+4305_daily_bin191.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.44
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275431/ft1_filtered_4FGL_J1309.4+4305_daily_bin191.fits" evtable="EVENTS" scfile=/scratch/kocevski/275431/ft2_4FGL_J1309.4+4305_daily_bin191.fits sctable="SC_DATA" outfile=/scratch/kocevski/275431/ltcube_288835201_289094401_4FGL_J1309.4+4305_daily_bin191.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/275431/ft2_4FGL_J1309.4+4305_daily_bin191.fits
.....................!
real 13.06
user 12.77
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275431/ft1_filtered_4FGL_J1309.4+4305_daily_bin191.fits evtable="EVENTS" scfile=/scratch/kocevski/275431/ft2_4FGL_J1309.4+4305_daily_bin191.fits sctable="SC_DATA" expcube=/scratch/kocevski/275431/ltcube_288835201_289094401_4FGL_J1309.4+4305_daily_bin191.fits outfile=/scratch/kocevski/275431/expmap_288835201_289094401_4FGL_J1309.4+4305_daily_bin191.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/275431/ltcube_288835201_289094401_4FGL_J1309.4+4305_daily_bin191.fits
.....................!
real 155.00
user 151.34
sys 3.36

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/275431/ft1_filtered_4FGL_J1309.4+4305_daily_bin191.fits scfile=/scratch/kocevski/275431/ft2_4FGL_J1309.4+4305_daily_bin191.fits outfile=/scratch/kocevski/275431/cmap_288835201_289094401_4FGL_J1309.4+4305_daily_bin191.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.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275431/ft1_filtered_4FGL_J1309.4+4305_daily_bin191.fits scfile=/scratch/kocevski/275431/ft2_4FGL_J1309.4+4305_daily_bin191.fits outfile=/scratch/kocevski/275431/cmap_HighResolution_288835201_289094401_4FGL_J1309.4+4305_daily_bin191.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.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.709       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7046       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.3444       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.606       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4084       1.0000         .10000E-03   10000.    
    12 'norm      '    20.498       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9126       1.0000         .10000E-03   10000.    
    15 'norm      '    10.874       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4816       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.854       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .67579       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1141       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83484       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=   5523.212     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     2845 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4307       -.30825E-06** at limit **
   2  Prefactor     23.661        25.795        .16599E-05    .22210E-04
   3  Prefactor     .10000E-03    13.380        .30048E-06** at limit **
   4  Prefactor     .10000E-03    7.8202        .86496E-06** at limit **
   5  norm          1.7048        1.6415       -.34182E-07   -.62930E-04
   6  Prefactor     .10000E-03    1.8476       -.10270E-07** at limit **
   7  norm          7.3495        5.9154        .13430E-05   -.24613E-03
   8  Prefactor     1.4811        191.44        .57754E-05   -.55530E-04
   9  Prefactor     .10000E-03    68.989        .54425E-05** at limit **
  10  Prefactor     10.609        12.337       -.64761E-07   -.26883E-04
  11  norm          6.4095        5.0661       -.27350E-05   -.89927E-04
  12  norm          20.475        18.225       -.42740E-06   -.30677E-04
  13  norm          .10000E-03    3.3795        .19525E-06** at limit **
  14  norm          2.9151        4.7887       -.28685E-06   -.38241E-03
  15  norm          10.874        5.4312        .75238E-06   -.63694E-04
  16  Prefactor     3.4833        3.6814        .60048E-06   -.39009E-03
  17  Prefactor     .10000E-03    5.8416       -.14893E-06** at limit **
  18  Prefactor     36.862        36.492        .18905E-05    .98178E-05
  19  Prefactor     .10000E-03    28.629        .72358E-05** at limit **
  20  Prefactor     .10000E-03    4.5260        .25639E-06** at limit **
  21  Prefactor     .10000E-03    19.181       -.20893E-05** at limit **
  22  norm          .10000E-03    1.2298       -.13732E-06** at limit **
  23  Prefactor     .10000E-03    34.408       -.92506E-05** at limit **
  24  norm          .67541        1.0181       -.13731E-06   -.67494E-03
  25  norm          .10000E-03    8.3399       -.17505E-06** at limit **
  26  Normalizat    1.1140        .17535       -.85202E-06    .32993E-04
  27  Prefactor     .83487        .21034        .30689E-06   -.46796E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 23.661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70477
  Prefactor  = 0.0001
  norm       = 7.34947
  Prefactor  = 1.48115
  Prefactor  = 0.0001
  Prefactor  = 10.6087
  norm       = 6.40954
  norm       = 20.4747
  norm       = 0.0001
  norm       = 2.91508
  norm       = 10.8739
  Prefactor  = 3.48328
  Prefactor  = 0.0001
  Prefactor  = 36.8617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.675413
  norm       = 0.0001
  Normalizat = 1.11397
  Prefactor  = 0.834865
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.212     FROM HESSE     STATUS=OK           492 CALLS     3337 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.888        .29628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.661        25.229        .82265E-04   -1.4735    
   3  Prefactor     .10000E-03    13.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7048        1.6425        .90728E-04   -1.5447    
   6  Prefactor     .10000E-03    1.8487        .98646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.3495        5.8577        .14800E-03   -1.5166    
   8  Prefactor     1.4811        193.11        .45201E-03   -1.5465    
   9  Prefactor     .10000E-03    69.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.609        12.336        .12303E-03   -1.5056    
  11  norm          6.4095        5.0644        .14163E-03   -1.5202    
  12  norm          20.475        18.117        .88468E-04   -1.4803    
  13  norm          .10000E-03    3.4158        .26323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9151        4.7288        .19968E-03   -1.5366    
  15  norm          10.874        5.4195        .11408E-03   -1.5048    
  16  Prefactor     3.4833        3.6488        .13679E-03   -1.5335    
  17  Prefactor     .10000E-03    5.8471        .17535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.862        36.550        .66018E-04   -1.4493    
  19  Prefactor     .10000E-03    28.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5297        .15441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2384        .80477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .67541        .88093        .88479E-03   -1.5544    
  25  norm          .10000E-03    8.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1140        .20623        .21534E-03   -.89305    
  27  Prefactor     .83487        .24663        .30073E-03   -.98456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01798e-10
Minuit parameter uncertainties:
  1  3.56761e-05
  2  25.2406
  3  1.85057e-05
  4  2.22673e-06
  5  1.64254
  6  1.99156e-06
  7  5.85819
  8  33.9356
  9  0.000224317
  10  12.3388
  11  5.06475
  12  18.1214
  13  5.25003e-06
  14  4.72945
  15  5.41973
  16  3.64901
  17  2.7944e-06
  18  36.5722
  19  2.61713e-06
  20  1.52192e-06
  21  3.35889e-05
  22  8.62307e-07
  23  1.70732e-05
  24  0.880945
  25  6.37194e-06
  26  0.206384
  27  0.246962
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.047e+01  1.812e+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:  8.349e-01  2.470e-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.114e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.15e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 2.09e-05

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

Saving results to:
/scratch/kocevski/275431/likelihoodResults_288835201_289094401_4FGL_J1309.4+4305_daily_bin191.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) = 5522.28052173
delta logL = 0.931309380905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5522.27618509
delta logL = 0.935646022054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.709       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6650       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85914       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5522.276     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      312 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.718        17.013        .56181E-03    .60084E-04
   2  alpha         2.6647        .80145        .92472E-02    .23696E-03
   3  Normalizat    1.0733        .20355        .21871E-03    .15594E-06
   4  Prefactor     .85833        .24698        .29666E-03   -.13796E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.718
  alpha      = 2.66469
  Normalizat = 1.07333
  Prefactor  = 0.858332
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.276     FROM HESSE     STATUS=OK            27 CALLS      339 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.718        14.828        .11236E-03   -1.4995    
   2  alpha         2.6647        .70091        .18494E-02    .65923E-01
   3  Normalizat    1.0733        .20279        .87483E-05   -.90613    
   4  Prefactor     .85833        .24631        .11866E-04   -.97613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35429e-12
Minuit parameter uncertainties:
  1  14.832
  2  0.710474
  3  0.202932
  4  0.246625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275431': 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) = 5522.27617559
delta logL = 0.935655530282

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.272e+01  1.483e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.665e+00  7.105e-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:  8.583e-01  2.466e-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.073e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.95
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.66 +/- 0.71
Photon Flux (Free Index): 5.89e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.09e-05

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/275431/cmap_HighResolution_288835201_289094401_4FGL_J1309.4+4305_daily_bin191.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-05', comment='SUCCESS', photon_flux='2.15e-08', energy_flux2='1.64e-05', photon_flux_error='1.90e-08', dlogl='9.36e-01', energy_flux='2.36e-05', photon_flux2='5.89e-08', job_status='DONE', time_completed='2021-09-07 01:00:02.715953', photon_index_error2='0.71', photon_index2='2.66', ts='2.10', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='6.56e-08', energy_flux_error2='1.09e-05', EG='1.11', time_epoch_completed='1631001602.72', return_code='0', job_id='275431', GAL2='0.86', EG2='1.07', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='4.46e-08', ts2='3.95', photon_index='1.77' WHERE bin_id='191' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:00:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 275431: <4FGL_J1309.4+4305_daily_bin191> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin191 197.363 43.085 288835201 289094401 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 :                                   617.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            873 sec.

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

