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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin154
RA = 197.363, Dec = 43.085
tmin = 279244801, tmax = 279504001
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='275377', job_status='RUN', time_executed='2021-09-07 00:49:18.170488', time_epoch_executed='1631000958.17' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275377/ft1_4FGL_J1309.4+4305_daily_bin154.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275377/ft2_4FGL_J1309.4+4305_daily_bin154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275377/ft1_4FGL_J1309.4+4305_daily_bin154.fits outfile=/scratch/kocevski/275377/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin154.fits ra=197.363 dec=43.085 rad=12.0 tmin=279244801.0 tmax=279504001.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.06
user 2.83
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275377/ft1_filtered_4FGL_J1309.4+4305_daily_bin154.fits" evtable="EVENTS" scfile=/scratch/kocevski/275377/ft2_4FGL_J1309.4+4305_daily_bin154.fits sctable="SC_DATA" outfile=/scratch/kocevski/275377/ltcube_279244801_279504001_4FGL_J1309.4+4305_daily_bin154.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/275377/ft2_4FGL_J1309.4+4305_daily_bin154.fits
.....................!
real 19.31
user 18.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275377/ft1_filtered_4FGL_J1309.4+4305_daily_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/275377/ft2_4FGL_J1309.4+4305_daily_bin154.fits sctable="SC_DATA" expcube=/scratch/kocevski/275377/ltcube_279244801_279504001_4FGL_J1309.4+4305_daily_bin154.fits outfile=/scratch/kocevski/275377/expmap_279244801_279504001_4FGL_J1309.4+4305_daily_bin154.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/275377/ltcube_279244801_279504001_4FGL_J1309.4+4305_daily_bin154.fits
.....................!
real 159.00
user 153.96
sys 4.31

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/275377/ft1_filtered_4FGL_J1309.4+4305_daily_bin154.fits scfile=/scratch/kocevski/275377/ft2_4FGL_J1309.4+4305_daily_bin154.fits outfile=/scratch/kocevski/275377/cmap_279244801_279504001_4FGL_J1309.4+4305_daily_bin154.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.50
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275377/ft1_filtered_4FGL_J1309.4+4305_daily_bin154.fits scfile=/scratch/kocevski/275377/ft2_4FGL_J1309.4+4305_daily_bin154.fits outfile=/scratch/kocevski/275377/cmap_HighResolution_279244801_279504001_4FGL_J1309.4+4305_daily_bin154.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.51
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .33836       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 '    39.673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.101       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.3426       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5149       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6595       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    82.745       1.0000         .10000E-03   10000.    
    24 'norm      '    3.8576       1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95179       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=   5762.900     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3186 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8006       -.47904E-05** at limit **
   2  Prefactor     .10000E-03    14.223        .19810E-05** at limit **
   3  Prefactor     8.8323        17.376       -.10178E-04   -.42563E-05
   4  Prefactor     .10000E-03    6.9397        .15526E-05** at limit **
   5  norm          .33875        1.5345       -.40316E-06   -.72527E-03
   6  Prefactor     .10000E-03    2.5711        .22085E-05** at limit **
   7  norm          .10000E-03    2.9859        .30910E-05** at limit **
   8  Prefactor     39.675        45.010        .31906E-05    .42936E-05
   9  Prefactor     .10000E-03    14.013        .98312E-06** at limit **
  10  Prefactor     .10000E-03    10.422       -.16110E-05** at limit **
  11  norm          .10000E-03    1.4165       -.39025E-07** at limit **
  12  norm          13.101        12.449       -.21340E-06    .88829E-05
  13  norm          .10000E-03    2.2408       -.29493E-06** at limit **
  14  norm          8.3420        6.1802       -.60198E-07   -.50951E-04
  15  norm          4.5150        3.5440        .66499E-07    .25260E-04
  16  Prefactor     2.6585        3.0512        .25938E-06   -.39226E-03
  17  Prefactor     .10000E-03    6.8225        .64320E-06** at limit **
  18  Prefactor     .10000E-03    10.801       -.22670E-05** at limit **
  19  Prefactor     .10000E-03    23.246       -.36176E-05** at limit **
  20  Prefactor     .10000E-03    11.986       -.30565E-05** at limit **
  21  Prefactor     .10000E-03    15.484        .57324E-05** at limit **
  22  norm          .10000E-03    1.0797        .98680E-08** at limit **
  23  Prefactor     82.743        66.689       -.23571E-05    .29708E-05
  24  norm          3.8576        1.6487       -.36581E-07   -.71941E-04
  25  norm          .10000E-03    4.6036       -.10902E-05** at limit **
  26  Normalizat    1.2215        .17263        .87940E-06    .21823E-05
  27  Prefactor     .95174        .20851        .13079E-06    .48616E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.83231
  Prefactor  = 0.0001
  norm       = 0.338748
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.6752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.1008
  norm       = 0.0001
  norm       = 8.34197
  norm       = 4.51497
  Prefactor  = 2.65846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.7431
  norm       = 3.85763
  norm       = 0.0001
  Normalizat = 1.22154
  Prefactor  = 0.951743
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.900     FROM HESSE     STATUS=OK           480 CALLS     3666 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7977        .12376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8323        17.372        .13479E-03   -1.5113    
   4  Prefactor     .10000E-03    6.9414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .33875        2.6719        .18131E-02   -1.5592    
   6  Prefactor     .10000E-03    2.5814        .11877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0165        .12775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.675        45.002        .63637E-04   -1.4447    
   9  Prefactor     .10000E-03    14.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4179        .88228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.101        12.449        .11067E-03   -1.4984    
  13  norm          .10000E-03    2.2557        .11068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.3420        6.1641        .13880E-03   -1.5130    
  15  norm          4.5150        3.5448        .12260E-03   -1.5283    
  16  Prefactor     2.6585        3.0347        .13613E-03   -1.5382    
  17  Prefactor     .10000E-03    6.8336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0821        .77027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     82.743        66.819        .44157E-04   -1.3886    
  24  norm          3.8576        1.6483        .61320E-04   -1.5315    
  25  norm          .10000E-03    4.6086        .15908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2215        .20525        .22287E-03   -.85940    
  27  Prefactor     .95174        .24731        .30311E-03   -.94356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09524e-10
Minuit parameter uncertainties:
  1  6.22617e-06
  2  4.55785e-05
  3  17.3821
  4  3.42287e-06
  5  1.90256
  6  4.26524e-06
  7  1.26808e-05
  8  45.0401
  9  1.98416e-05
  10  1.78678e-05
  11  1.49676e-06
  12  12.4519
  13  5.1711e-06
  14  6.16457
  15  3.54501
  16  3.03486
  17  8.87184e-06
  18  3.46437e-07
  19  8.34014e-06
  20  2.80013e-06
  21  7.205e-06
  22  1.43511e-07
  23  66.8801
  24  1.64833
  25  3.65444e-07
  26  0.205382
  27  0.247605
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.310e+01  1.245e+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:  9.517e-01  2.476e-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.222e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.96
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.30e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.43e-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) = 5762.19242135
delta logL = 0.707289628486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5761.72354793
delta logL = 1.17616304832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4158       1.0000         .10000E-03   10000.    
     2 'alpha     '    .45987       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96010       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=   5761.724     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4320        2.9052        .65841E-02   -.12953E-02
   2  alpha         .46166        .51486        .44805        .52852E-04
   3  Normalizat    1.2235        .16942        .50374E-01   -.13041E-03
   4  Prefactor     .95989        .20732        .68278E-01    .17031E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.43202
  alpha      = 0.461663
  Normalizat = 1.22354
  Prefactor  = 0.959894
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.724     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4320        4.7391        .11610E-03   -1.5396    
   2  alpha         .46166        .71271        .22661E-01   -.95331    
   3  Normalizat    1.2235        .20135        .22271E-03   -.85878    
   4  Prefactor     .95989        .24612        .30203E-03   -.94079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98218e-10
Minuit parameter uncertainties:
  1  4.73982
  2  0.7452
  3  0.201482
  4  0.246403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275377': 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) = 5761.72354183
delta logL = 1.17616915396

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.432e+00  4.740e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  4.617e-01  7.452e-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:  9.599e-01  2.464e-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.224e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.31
Ra Dec: 197.363 43.085
Photon Index (Free Index): 0.46 +/- 0.75
Photon Flux (Free Index): 3.24e-09 +/- 3.34e-09
Energy Flux (Free Index): 7.50e-05 +/- 9.87e-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/275377/cmap_HighResolution_279244801_279504001_4FGL_J1309.4+4305_daily_bin154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='7.50e-05', photon_flux_error='1.30e-08', dlogl='1.18e+00', energy_flux='1.51e-05', photon_flux2='3.24e-09', job_status='DONE', time_completed='2021-09-07 00:59:18.233648', photon_index_error2='0.75', photon_index2='0.46', ts='4.96', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='9.87e-05', EG='1.22', time_epoch_completed='1631001558.23', return_code='0', job_id='275377', GAL2='0.96', EG2='1.22', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='3.34e-09', ts2='7.31', photon_index='1.77' WHERE bin_id='154' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:59:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 275377: <4FGL_J1309.4+4305_daily_bin154> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin154> 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) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:46:32 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:32 2021
Terminated at Tue Sep  7 00:59:19 2021
Results reported at Tue Sep  7 00:59:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin154 197.363 43.085 279244801 279504001 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 :                                   598.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             226.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            833 sec.

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

