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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin117
RA = 197.363, Dec = 43.085
tmin = 269654401, tmax = 269913601
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='275314', job_status='RUN', time_executed='2021-09-07 00:45:59.995366', time_epoch_executed='1631000760.0' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275314

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275314/ft1_4FGL_J1309.4+4305_daily_bin117.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275314/ft2_4FGL_J1309.4+4305_daily_bin117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275314/ft1_4FGL_J1309.4+4305_daily_bin117.fits outfile=/scratch/kocevski/275314/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin117.fits ra=197.363 dec=43.085 rad=12.0 tmin=269654401.0 tmax=269913601.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.10
user 2.65
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275314/ft1_filtered_4FGL_J1309.4+4305_daily_bin117.fits" evtable="EVENTS" scfile=/scratch/kocevski/275314/ft2_4FGL_J1309.4+4305_daily_bin117.fits sctable="SC_DATA" outfile=/scratch/kocevski/275314/ltcube_269654401_269913601_4FGL_J1309.4+4305_daily_bin117.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/275314/ft2_4FGL_J1309.4+4305_daily_bin117.fits
.....................!
real 14.82
user 14.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275314/ft1_filtered_4FGL_J1309.4+4305_daily_bin117.fits evtable="EVENTS" scfile=/scratch/kocevski/275314/ft2_4FGL_J1309.4+4305_daily_bin117.fits sctable="SC_DATA" expcube=/scratch/kocevski/275314/ltcube_269654401_269913601_4FGL_J1309.4+4305_daily_bin117.fits outfile=/scratch/kocevski/275314/expmap_269654401_269913601_4FGL_J1309.4+4305_daily_bin117.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/275314/ltcube_269654401_269913601_4FGL_J1309.4+4305_daily_bin117.fits
.....................!
real 157.92
user 152.25
sys 4.27

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/275314/ft1_filtered_4FGL_J1309.4+4305_daily_bin117.fits scfile=/scratch/kocevski/275314/ft2_4FGL_J1309.4+4305_daily_bin117.fits outfile=/scratch/kocevski/275314/cmap_269654401_269913601_4FGL_J1309.4+4305_daily_bin117.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.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275314/ft1_filtered_4FGL_J1309.4+4305_daily_bin117.fits scfile=/scratch/kocevski/275314/ft2_4FGL_J1309.4+4305_daily_bin117.fits outfile=/scratch/kocevski/275314/cmap_HighResolution_269654401_269913601_4FGL_J1309.4+4305_daily_bin117.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.52
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0006       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2941       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7630       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.831       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5955       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6910       1.0000         .10000E-03   10000.    
    14 'norm      '    .34743       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7638       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15433       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27589       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4661       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.054       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.017       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0893       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.4861       1.0000         .10000E-03   10000.    
    25 'norm      '    14.962       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84556       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3209       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=   7046.639     FROM MIGRAD    STATUS=CONVERGED   1178 CALLS     4445 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0002        6.1563        .15162E-03    .52936E-04
   2  Prefactor     4.2937        14.918        .19441E-03    .16549E-04
   3  Prefactor     .10000E-03    10.491        .18142E-02** at limit **
   4  Prefactor     .10000E-03    11.404        .18142E-02** at limit **
   5  norm          1.6285        1.5981        .10220E-03    .24250E-04
   6  Prefactor     .10000E-03    2.1325        .11940E-02** at limit **
   7  norm          1.7633        4.8317        .26958E-03   -.11964E-03
   8  Prefactor     .10000E-03    25.945        .18142E-02** at limit **
   9  Prefactor     35.803        23.721        .66950E-04    .11567E-03
  10  Prefactor     .10000E-03    22.277        .18142E-02** at limit **
  11  norm          .10000E-03    1.6634        .10538E-02** at limit **
  12  norm          6.5934        13.971        .15626E-03    .14769E-04
  13  norm          7.7535        10.272        .10661E-03   -.10056E-02
  14  norm          .21820        293.83        .29609E-02   -.12682E-03
  15  norm          1.7637        2.4965        .15418E-03    .25882E-04
  16  Prefactor     .16149        7.8683        .17780E-02   -.65820E-03
  17  Prefactor     .14803        12.536        .69252E-01    .22316E-03
  18  Prefactor     9.4600        21.266        .13025E-03    .14314E-04
  19  Prefactor     17.068        54.210        .96984E-04   -.78937E-04
  20  Prefactor     19.017        14.739        .91843E-04    .24880E-04
  21  Prefactor     2.0686        70.999        .28561E-03    .14768E-04
  22  norm          .10000E-03    1.2185        .90314E-03** at limit **
  23  Prefactor     .10000E-03    18.351        .18142E-02** at limit **
  24  norm          1.4859        1.1206        .74482E-04    .10135E-03
  25  norm          14.961        15.517        .10355E-03    .31621E-04
  26  Normalizat    .84526        .18543        .25034E-03    .52089E-04
  27  Prefactor     1.3214        .23462        .26297E-03   -.17142E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.00017
  Prefactor  = 4.29366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.62854
  Prefactor  = 0.0001
  norm       = 1.76328
  Prefactor  = 0.0001
  Prefactor  = 35.8026
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.5934
  norm       = 7.75355
  norm       = 0.218198
  norm       = 1.76373
  Prefactor  = 0.161489
  Prefactor  = 0.148034
  Prefactor  = 9.45997
  Prefactor  = 17.0677
  Prefactor  = 19.0171
  Prefactor  = 2.06863
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.48592
  norm       = 14.961
  Normalizat = 0.845258
  Prefactor  = 1.32136
 **********
 **   18 **HESSE 
 **********

 FCN=   7046.639     FROM HESSE     STATUS=OK           474 CALLS     4919 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0002        6.1553        .60649E-05   -1.5179    
   2  Prefactor     4.2937        14.914        .77766E-05   -1.5294    
   3  Prefactor     .10000E-03    10.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6285        1.5980        .40880E-05   -1.5453    
   6  Prefactor     .10000E-03    2.1327        .23880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7633        4.8236        .10783E-04   -1.5442    
   8  Prefactor     .10000E-03    25.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.803        23.620        .13390E-04   -1.4511    
  10  Prefactor     .10000E-03    22.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6636        .21077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5934        13.971        .62503E-05   -1.5194    
  13  norm          7.7535        6.5963        .42644E-05   -1.5151    
  14  norm          .21820        122.75        .11844E-03   -1.5615    
  15  norm          1.7637        2.4964        .61670E-05   -1.5442    
  16  Prefactor     .16149        7.5370        .71120E-04   -1.5628    
  17  Prefactor     .14803        10.828        .75472E-01   -1.5631    
  18  Prefactor     9.4600        21.257        .52101E-05   -1.5093    
  19  Prefactor     17.068        53.976        .19397E-04   -1.4881    
  20  Prefactor     19.017        14.738        .36737E-05   -1.4836    
  21  Prefactor     2.0686        70.891        .11424E-04   -1.5420    
  22  norm          .10000E-03    1.2186        .18063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4859        1.1205        .29793E-05   -1.5464    
  25  norm          14.961        15.516        .41418E-05   -1.4934    
  26  Normalizat    .84526        .18416        .10013E-04   -.98411    
  27  Prefactor     1.3214        .23331        .52593E-04   -.82674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00269e-09
Minuit parameter uncertainties:
  1  6.15581
  2  14.9272
  3  1.85985e-05
  4  2.60387e-06
  5  1.59808
  6  8.09598e-06
  7  4.82469
  8  1.61895e-05
  9  23.6261
  10  8.9041e-05
  11  7.87353e-06
  12  13.9775
  13  6.59692
  14  10.3695
  15  2.49655
  16  2.2061
  17  2.53172
  18  21.2744
  19  54.1311
  20  14.741
  21  24.2502
  22  3.88345e-07
  23  8.50136e-05
  24  1.12049
  25  15.52
  26  0.184298
  27  0.233496
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  6.593e+00  1.398e+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.321e+00  2.335e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  8.453e-01  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275314/likelihoodResults_269654401_269913601_4FGL_J1309.4+4305_daily_bin117.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) = 7045.44220798
delta logL = 1.19647446918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7045.40891852
delta logL = 1.22976392565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4837       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1120       1.0000          .0000       5.0000    
     3 'Normalizat'    .79984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3431       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=   7045.409     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      251 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4855        10.781        .12285E-03    .66538E-03
   2  alpha         3.1116        1.2108        .10193E-01    .84329E-04
   3  Normalizat    .79988        .18566        .25658E-03   -.42487E-03
   4  Prefactor     1.3430        .23442        .26091E-03   -.20914E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.48553
  alpha      = 3.11159
  Normalizat = 0.799881
  Prefactor  = 1.34304
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.409     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4855        7.3617        .49139E-05   -1.5284    
   2  alpha         3.1116        .84630        .40773E-03    .24714    
   3  Normalizat    .79988        .18380        .51316E-04   -1.0007    
   4  Prefactor     1.3430        .23249        .52181E-04   -.82036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5863e-10
Minuit parameter uncertainties:
  1  7.36323
  2  0.864506
  3  0.183946
  4  0.23267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275314': 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) = 7045.40891832
delta logL = 1.22976412908

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.486e+00  7.363e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.112e+00  8.645e-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.343e+00  2.327e-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.999e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.76
Ra Dec: 197.363 43.085
Photon Index (Free Index): 3.11 +/- 0.86
Photon Flux (Free Index): 5.12e-08 +/- 4.11e-08
Energy Flux (Free Index): 1.07e-05 +/- 7.86e-06

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/275314/cmap_HighResolution_269654401_269913601_4FGL_J1309.4+4305_daily_bin117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-05', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='1.23e+00', photon_flux2='5.12e-08', job_status='DONE', time_completed='2021-09-07 00:59:58.292067', photon_index_error2='0.86', photon_index2='3.11', ts='0.27', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='4.50e-08', energy_flux_error2='7.86e-06', EG='0.85', time_epoch_completed='1631001598.29', return_code='0', job_id='275314', GAL2='1.34', EG2='0.80', return_code2='0', photon_flux_error2='4.11e-08', ts2='2.76', photon_index='1.77' WHERE bin_id='117' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:59:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 275314: <4FGL_J1309.4+4305_daily_bin117> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin117> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:20 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:45:49 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:45:49 2021
Terminated at Tue Sep  7 00:59:58 2021
Results reported at Tue Sep  7 00:59:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin117 197.363 43.085 269654401 269913601 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 :                                   828.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            878 sec.

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

