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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin727
RA = 197.363, Dec = 43.085
tmin = 427766401, tmax = 428025601
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='279710', job_status='RUN', time_executed='2021-09-07 01:03:18.685245', time_epoch_executed='1631001798.69' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279710/ft1_4FGL_J1309.4+4305_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279710/ft2_4FGL_J1309.4+4305_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279710/ft1_4FGL_J1309.4+4305_daily_bin727.fits outfile=/scratch/kocevski/279710/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin727.fits ra=197.363 dec=43.085 rad=12.0 tmin=427766401.0 tmax=428025601.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 6.39
user 5.24
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279710/ft2_4FGL_J1309.4+4305_daily_bin727.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/279710/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin727.fits evtable="EVENTS" outfile="/scratch/kocevski/279710/ft1_filtered_4FGL_J1309.4+4305_daily_bin727.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 2.12
user 0.36
sys 0.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279710/ft1_filtered_4FGL_J1309.4+4305_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/279710/ft2_4FGL_J1309.4+4305_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/279710/ltcube_427766401_428025601_4FGL_J1309.4+4305_daily_bin727.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/279710/ft2_4FGL_J1309.4+4305_daily_bin727.fits
.....................!
real 18.15
user 15.93
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279710/ft1_filtered_4FGL_J1309.4+4305_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/279710/ft2_4FGL_J1309.4+4305_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/279710/ltcube_427766401_428025601_4FGL_J1309.4+4305_daily_bin727.fits outfile=/scratch/kocevski/279710/expmap_427766401_428025601_4FGL_J1309.4+4305_daily_bin727.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/279710/ltcube_427766401_428025601_4FGL_J1309.4+4305_daily_bin727.fits
.....................!
real 199.68
user 186.67
sys 5.07

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/279710/ft1_filtered_4FGL_J1309.4+4305_daily_bin727.fits scfile=/scratch/kocevski/279710/ft2_4FGL_J1309.4+4305_daily_bin727.fits outfile=/scratch/kocevski/279710/cmap_427766401_428025601_4FGL_J1309.4+4305_daily_bin727.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 1.36
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279710/ft1_filtered_4FGL_J1309.4+4305_daily_bin727.fits scfile=/scratch/kocevski/279710/ft2_4FGL_J1309.4+4305_daily_bin727.fits outfile=/scratch/kocevski/279710/cmap_HighResolution_427766401_428025601_4FGL_J1309.4+4305_daily_bin727.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 1.90
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57157       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.768       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86310E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .47808       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8238       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6907       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.677       1.0000         .10000E-03   10000.    
    13 'norm      '    7.9280       1.0000         .10000E-03   10000.    
    14 'norm      '    25.751       1.0000         .10000E-03   10000.    
    15 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56793       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11226E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.882       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1680       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.624       1.0000         .10000E-03   10000.    
    24 'norm      '    5.4993       1.0000         .10000E-03   10000.    
    25 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91985       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89870       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4105.246     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2787 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64752        43.805        .90747E-04    .72079E-03
   2  Prefactor     33.660        31.961       -.28833E-04    .10519E-02
   3  Prefactor     .11635E-03    31.125       -.38578E-05** at limit **
   4  Prefactor     .10001E-03    5.8307       -.45253E-05** at limit **
   5  norm          .47805        2.1322       -.16254E-06    .18527E-03
   6  Prefactor     6.8244        4.8213       -.37923E-05   -.24057E-02
   7  norm          3.6919        4.5563       -.98286E-06    .42321E-03
   8  Prefactor     .10086E-03    11.477       -.76948E-05** at limit **
   9  Prefactor     .10083E-03    12.621        .17692E-04** at limit **
  10  Prefactor     .10001E-03    5.5426        .11192E-05** at limit **
  11  norm          .10000E-03    3.7523       -.57782E-06** at limit **
  12  norm          17.679        1.2932       -.14497E-05    .16021E-03
  13  norm          7.9185        4.3273        .29719E-05   -.28950E-02
  14  norm          25.753        3.1046        .17097E-05    .10239E-02
  15  norm          .10000E-03    2.3527       -.97025E-06** at limit **
  16  Prefactor     .10000E-03    1.6880       -.24026E-06** at limit **
  17  Prefactor     .66995        93.756       -.10862E-03   -.47640E-03
  18  Prefactor     .10005E-03    42.413       -.35519E-04** at limit **
  19  Prefactor     .10002E-03    9.4014        .51809E-05** at limit **
  20  Prefactor     .10000E-03    12.818        .39780E-05** at limit **
  21  Prefactor     46.902        6.5291        .54290E-05    .68231E-04
  22  norm          3.1669        3.5803       -.73686E-06   -.41952E-03
  23  Prefactor     29.575        16.042       -.19901E-04    .65023E-02
  24  norm          5.4999        2.1417       -.39161E-06   -.65579E-03
  25  norm          .10000E-03    8.6779        .20107E-06** at limit **
  26  Normalizat    .91946        .22252        .92913E-05   -.32264E-03
  27  Prefactor     .89900        .27781       -.82139E-05   -.28056E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.647518
  Prefactor  = 33.6601
  Prefactor  = 0.000116351
  Prefactor  = 0.000100012
  norm       = 0.478045
  Prefactor  = 6.82442
  norm       = 3.6919
  Prefactor  = 0.000100865
  Prefactor  = 0.000100834
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 17.6788
  norm       = 7.91852
  norm       = 25.7533
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.669952
  Prefactor  = 0.000100054
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 46.9018
  norm       = 3.16687
  Prefactor  = 29.5747
  norm       = 5.49993
  norm       = 0.0001
  Normalizat = 0.919463
  Prefactor  = 0.899003
 **********
 **   18 **HESSE 
 **********

 FCN=   4105.246     FROM HESSE     STATUS=OK           550 CALLS     3337 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64752        10.315        .87653E-01   -1.5547    
   2  Prefactor     33.660        37.665        .17240E-02   -1.4547    
   3  Prefactor     .11635E-03    158.38        .10428E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    11.055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .47805        2.1665        .11181E-01   -1.5570    
   6  Prefactor     6.8244        5.9891        .38398E-02   -1.5185    
   7  norm          3.6919        5.0316        .52557E-02   -1.5324    
   8  Prefactor     .10086E-03    28.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10083E-03    25.846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    11.079        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.7268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.679        16.835        .23815E-02   -1.4867    
  13  norm          7.9185        10.130        .35601E-02   -1.5145    
  14  norm          25.753        18.280        .19735E-02   -1.4693    
  15  norm          .10000E-03    2.3403        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6784        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .66995        12.378        .11545       -1.5544    
  18  Prefactor     .10005E-03    45.122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    27.221        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.902        41.815        .14640E-02   -1.4337    
  22  norm          3.1669        3.5963        .56926E-02   -1.5352    
  23  Prefactor     29.575        61.580        .18403E-02   -1.4620    
  24  norm          5.4999        2.1627        .42834E-02   -1.5239    
  25  norm          .10000E-03    8.6493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91946        .19323        .45155E-01   -.95780    
  27  Prefactor     .89900        .23715        .44988E-01   -.96176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37477e-07
Minuit parameter uncertainties:
  1  5.16945
  2  37.6916
  3  0.10205
  4  0.000740138
  5  2.0353
  6  5.98963
  7  5.03217
  8  0.00989263
  9  0.00928826
  10  0.000670045
  11  4.33877e-05
  12  16.8396
  13  10.1318
  14  18.2842
  15  3.27835e-05
  16  3.12047e-06
  17  5.76025
  18  0.0031131
  19  0.00154656
  20  2.10691e-06
  21  41.8415
  22  3.59659
  23  61.7125
  24  2.1627
  25  6.06146e-07
  26  0.193378
  27  0.237421
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.768e+01  1.684e+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.990e-01  2.374e-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:  9.195e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.85e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.94e-05

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

Saving results to:
/scratch/kocevski/279710/likelihoodResults_427766401_428025601_4FGL_J1309.4+4305_daily_bin727.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) = 4105.16510149
delta logL = 0.0811170226152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4105.1642576
delta logL = 0.0819609089731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.313       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4848       1.0000          .0000       5.0000    
     3 'Normalizat'    .92538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89473       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=   4105.164     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      220 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.313        50.742        .23398E-02   -.89439E-03
   2  alpha         1.4845        1.4981        .41088       -.74623E-05
   3  Normalizat    .92547        .19410        .45225E-01   -.34409E-04
   4  Prefactor     .89460        .24403        .44938E-01   -.56593E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 18.3133
  alpha      = 1.48454
  Normalizat = 0.92547
  Prefactor  = 0.8946
 **********
 **   18 **HESSE 
 **********

 FCN=   4105.164     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.313        17.412        .93592E-04   -1.4852    
   2  alpha         1.4845        .66403        .14989E-01   -.41827    
   3  Normalizat    .92547        .21561        .21722E-03   -.95571    
   4  Prefactor     .89460        .27632        .28100E-03   -.96330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55684e-09
Minuit parameter uncertainties:
  1  17.4165
  2  0.673753
  3  0.215815
  4  0.27675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279710': 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) = 4105.16425744
delta logL = 0.0819610731123

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.831e+01  1.742e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.485e+00  6.738e-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.946e-01  2.767e-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:  9.255e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.48 +/- 0.67
Photon Flux (Free Index): 1.43e-08 +/- 1.66e-08
Energy Flux (Free Index): 3.24e-05 +/- 4.78e-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/279710/cmap_HighResolution_427766401_428025601_4FGL_J1309.4+4305_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-05', comment='SUCCESS', photon_flux='1.85e-08', energy_flux2='3.24e-05', photon_flux_error='1.76e-08', dlogl='8.20e-02', energy_flux='2.03e-05', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-07 01:14:45.432380', photon_index_error2='0.67', photon_index2='1.48', ts='1.95', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='6.52e-08', energy_flux_error2='4.78e-05', EG='0.92', time_epoch_completed='1631002485.43', return_code='0', job_id='279710', GAL2='0.89', EG2='0.93', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='1.66e-08', ts2='2.12', photon_index='1.77' WHERE bin_id='727' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:14:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 279710: <4FGL_J1309.4+4305_daily_bin727> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin727> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:25 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:00:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:00:37 2021
Terminated at Tue Sep  7 01:14:46 2021
Results reported at Tue Sep  7 01:14:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin727 197.363 43.085 427766401 428025601 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 :                                   663.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            861 sec.

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

