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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin155
RA = 197.363, Dec = 43.085
tmin = 279504001, tmax = 279763201
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='275378', job_status='RUN', time_executed='2021-09-07 00:48:40.357581', time_epoch_executed='1631000920.36' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275378/ft1_4FGL_J1309.4+4305_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275378/ft2_4FGL_J1309.4+4305_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275378/ft1_4FGL_J1309.4+4305_daily_bin155.fits outfile=/scratch/kocevski/275378/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin155.fits ra=197.363 dec=43.085 rad=12.0 tmin=279504001.0 tmax=279763201.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275378/ft1_filtered_4FGL_J1309.4+4305_daily_bin155.fits" evtable="EVENTS" scfile=/scratch/kocevski/275378/ft2_4FGL_J1309.4+4305_daily_bin155.fits sctable="SC_DATA" outfile=/scratch/kocevski/275378/ltcube_279504001_279763201_4FGL_J1309.4+4305_daily_bin155.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/275378/ft2_4FGL_J1309.4+4305_daily_bin155.fits
.....................!
real 13.23
user 12.89
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275378/ft1_filtered_4FGL_J1309.4+4305_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/275378/ft2_4FGL_J1309.4+4305_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/275378/ltcube_279504001_279763201_4FGL_J1309.4+4305_daily_bin155.fits outfile=/scratch/kocevski/275378/expmap_279504001_279763201_4FGL_J1309.4+4305_daily_bin155.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/275378/ltcube_279504001_279763201_4FGL_J1309.4+4305_daily_bin155.fits
.....................!
real 197.08
user 192.72
sys 4.00

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/275378/ft1_filtered_4FGL_J1309.4+4305_daily_bin155.fits scfile=/scratch/kocevski/275378/ft2_4FGL_J1309.4+4305_daily_bin155.fits outfile=/scratch/kocevski/275378/cmap_279504001_279763201_4FGL_J1309.4+4305_daily_bin155.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275378/ft1_filtered_4FGL_J1309.4+4305_daily_bin155.fits scfile=/scratch/kocevski/275378/ft2_4FGL_J1309.4+4305_daily_bin155.fits outfile=/scratch/kocevski/275378/cmap_HighResolution_279504001_279763201_4FGL_J1309.4+4305_daily_bin155.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.335       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5809       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5851       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    44.896       1.0000         .10000E-03   10000.    
    13 'norm      '    9.9860       1.0000         .10000E-03   10000.    
    14 'norm      '    .54490       1.0000         .10000E-03   10000.    
    15 'norm      '    10.270       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6823       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.979       1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.895       1.0000         .10000E-03   10000.    
    22 'norm      '    .13671E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    87.739       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4413       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76085       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3421       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=   5998.393     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3267 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8749        .10518E-06** at limit **
   2  Prefactor     .10000E-03    4.8098        .10921E-06** at limit **
   3  Prefactor     13.335        17.683        .17725E-06    .48470E-04
   4  Prefactor     .10000E-03    5.1951        .56842E-07** at limit **
   5  norm          2.5811        2.0453        .63480E-07    .31193E-03
   6  Prefactor     .10000E-03    2.8860        .13475E-06** at limit **
   7  norm          .10000E-03    1.5346        .31227E-08** at limit **
   8  Prefactor     .10000E-03    26.999        .50515E-06** at limit **
   9  Prefactor     .10000E-03    15.812       -.21455E-07** at limit **
  10  Prefactor     5.5858        16.471        .51749E-06    .14434E-05
  11  norm          .10000E-03    2.1491        .99693E-07** at limit **
  12  norm          44.901        22.083        .14440E-06    .17735E-03
  13  norm          9.9787        8.2004       -.31429E-05    .35743E-03
  14  norm          .56956        52.317        .27041E-04   -.90064E-04
  15  norm          10.269        4.5665        .92756E-07    .45864E-03
  16  Prefactor     .10000E-03    2.7449        .31763E-06** at limit **
  17  Prefactor     .10000E-03    6.0920        .10574E-06** at limit **
  18  Prefactor     6.7058        56.718       -.61117E-05   -.21329E-04
  19  Prefactor     .10000E-03    18.576        .17354E-06** at limit **
  20  Prefactor     11.947        17.946       -.23464E-05   -.14896E-03
  21  Prefactor     47.871        49.735        .20581E-05    .28063E-03
  22  norm          .10000E-03    5.0447       -.55309E-05** at limit **
  23  Prefactor     87.761        78.005       -.12947E-06    .16399E-03
  24  norm          1.4415        1.1746       -.16248E-07    .28643E-03
  25  norm          .10000E-03    6.9637        .44427E-06** at limit **
  26  Normalizat    .76121        .18137        .35520E-05    .22578E-03
  27  Prefactor     1.3416        .21831       -.38574E-05   -.12111E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3352
  Prefactor  = 0.0001
  norm       = 2.58114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 5.58582
  norm       = 0.0001
  norm       = 44.9011
  norm       = 9.97867
  norm       = 0.569558
  norm       = 10.2693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.70577
  Prefactor  = 0.000100001
  Prefactor  = 11.9471
  Prefactor  = 47.871
  norm       = 0.000100004
  Prefactor  = 87.7611
  norm       = 1.44149
  norm       = 0.000100001
  Normalizat = 0.761208
  Prefactor  = 1.34161
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.393     FROM HESSE     STATUS=OK           482 CALLS     3749 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8791        .10358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8129        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.335        17.686        .10969E-03   -1.4977    
   4  Prefactor     .10000E-03    5.1959        .17241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5811        2.0435        .95474E-04   -1.5387    
   6  Prefactor     .10000E-03    2.8938        .12836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5379        .93682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5858        16.471        .16999E-03   -1.5235    
  11  norm          .10000E-03    2.1531        .11080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          44.901        22.096        .59836E-04   -1.4367    
  13  norm          9.9787        10.053        .11108E-03   -1.5076    
  14  norm          .56956        90.714        .30354E-02   -1.5557    
  15  norm          10.269        4.5663        .10582E-03   -1.5067    
  16  Prefactor     .10000E-03    2.8196        .25009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7058        56.462        .15523E-03   -1.5190    
  19  Prefactor     .10000E-03    18.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.947        18.061        .11574E-03   -1.5017    
  21  Prefactor     47.871        49.838        .57940E-04   -1.4323    
  22  norm          .10000E-03    17.127        .23805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     87.761        78.226        .42893E-04   -1.3832    
  24  norm          1.4415        1.1762        .72153E-04   -1.5468    
  25  norm          .10000E-03    6.9981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .76121        .21563        .26367E-03   -1.0152    
  27  Prefactor     1.3416        .26073        .26105E-03   -.82078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72225e-08
Minuit parameter uncertainties:
  1  1.21742e-05
  2  4.97191e-05
  3  17.6933
  4  2.89303e-05
  5  2.0436
  6  1.03054e-05
  7  2.93718e-06
  8  0.000434726
  9  0.00025328
  10  16.4849
  11  9.31476e-06
  12  22.0998
  13  10.0551
  14  14.3969
  15  4.56648
  16  3.75762e-05
  17  3.35279e-06
  18  38.9661
  19  0.000269729
  20  18.0694
  21  49.8816
  22  0.000511638
  23  78.3178
  24  1.1762
  25  0.000153559
  26  0.215867
  27  0.260988
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.490e+01  2.210e+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:  1.342e+00  2.610e-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:  7.612e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.50
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.71e-08 +/- 2.32e-08
Energy Flux (Fixed Index): 5.17e-05 +/- 2.54e-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) = 5998.0347257
delta logL = 0.357984705574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5998.02084402
delta logL = 0.371866377469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    40.780       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1208       1.0000          .0000       5.0000    
     3 'Normalizat'    .73852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3512       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.

 FCN=   5998.021     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      261 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          40.758        327.36        .15693E-02    .11425E-03
   2  alpha         2.1201        3.5491        .23110        .11783E-03
   3  Normalizat    .73854        .13575        .42802E-01    .59517E-04
   4  Prefactor     1.3513        .10720        .58800E-01    .76759E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 40.7576
  alpha      = 2.12012
  Normalizat = 0.738536
  Prefactor  = 1.35133
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.021     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          40.758        21.258        .62771E-04   -1.4430    
   2  alpha         2.1201        .40935        .87793E-02   -.15254    
   3  Normalizat    .73854        .20203        .26721E-03   -1.0239    
   4  Prefactor     1.3513        .25612        .26002E-03   -.81793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0418e-10
Minuit parameter uncertainties:
  1  21.2623
  2  0.411242
  3  0.20223
  4  0.256365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275378': 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) = 5998.02083982
delta logL = 0.371870580741

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.076e+01  2.126e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.120e+00  4.112e-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:  1.351e+00  2.564e-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:  7.385e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.17
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.12 +/- 0.41
Photon Flux (Free Index): 7.10e-08 +/- 4.15e-08
Energy Flux (Free Index): 3.83e-05 +/- 2.05e-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/275378/cmap_HighResolution_279504001_279763201_4FGL_J1309.4+4305_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.71e-08', energy_flux2='3.83e-05', photon_flux_error='2.32e-08', dlogl='3.72e-01', energy_flux='5.17e-05', photon_flux2='7.10e-08', job_status='DONE', time_completed='2021-09-07 01:00:41.419625', photon_index_error2='0.41', photon_index2='2.12', ts='15.50', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='0.76', time_epoch_completed='1631001641.42', return_code='0', job_id='275378', GAL2='1.35', EG2='0.74', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='4.15e-08', ts2='16.17', photon_index='1.77' WHERE bin_id='155' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:00:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 275378: <4FGL_J1309.4+4305_daily_bin155> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin155> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:26 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:46:34 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:46:34 2021
Terminated at Tue Sep  7 01:00:43 2021
Results reported at Tue Sep  7 01:00:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin155 197.363 43.085 279504001 279763201 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 :                                   718.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            917 sec.

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

