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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin109
RA = 197.363, Dec = 43.085
tmin = 267580801, tmax = 267840001
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='275302', job_status='RUN', time_executed='2021-09-07 00:48:37.792065', time_epoch_executed='1631000917.79' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275302

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275302/ft1_4FGL_J1309.4+4305_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275302/ft2_4FGL_J1309.4+4305_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275302/ft1_4FGL_J1309.4+4305_daily_bin109.fits outfile=/scratch/kocevski/275302/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin109.fits ra=197.363 dec=43.085 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.17
user 0.99
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275302/ft1_filtered_4FGL_J1309.4+4305_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/275302/ft2_4FGL_J1309.4+4305_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/275302/ltcube_267580801_267840001_4FGL_J1309.4+4305_daily_bin109.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/275302/ft2_4FGL_J1309.4+4305_daily_bin109.fits
.....................!
real 12.38
user 12.00
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275302/ft1_filtered_4FGL_J1309.4+4305_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/275302/ft2_4FGL_J1309.4+4305_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/275302/ltcube_267580801_267840001_4FGL_J1309.4+4305_daily_bin109.fits outfile=/scratch/kocevski/275302/expmap_267580801_267840001_4FGL_J1309.4+4305_daily_bin109.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/275302/ltcube_267580801_267840001_4FGL_J1309.4+4305_daily_bin109.fits
.....................!
real 154.37
user 149.61
sys 4.28

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/275302/ft1_filtered_4FGL_J1309.4+4305_daily_bin109.fits scfile=/scratch/kocevski/275302/ft2_4FGL_J1309.4+4305_daily_bin109.fits outfile=/scratch/kocevski/275302/cmap_267580801_267840001_4FGL_J1309.4+4305_daily_bin109.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.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275302/ft1_filtered_4FGL_J1309.4+4305_daily_bin109.fits scfile=/scratch/kocevski/275302/ft2_4FGL_J1309.4+4305_daily_bin109.fits outfile=/scratch/kocevski/275302/cmap_HighResolution_267580801_267840001_4FGL_J1309.4+4305_daily_bin109.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.47
user 0.30
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.319       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0440       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7900       1.0000         .10000E-03   10000.    
     7 'norm      '    6.7646       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2825       1.0000         .10000E-03   10000.    
    11 'norm      '    6.8463       1.0000         .10000E-03   10000.    
    12 'norm      '    19.485       1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1984       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0080       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12983E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2335       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.000       1.0000         .10000E-03   10000.    
    22 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.083       1.0000         .10000E-03   10000.    
    24 'norm      '    1.8509       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3154       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .40673       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=   3731.850     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3331 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.363        11.692       -.68308E-06   -.61189E-03
   2  Prefactor     .83937        45.262        .45240E-05   -.26471E-03
   3  Prefactor     .10000E-03    77.391       -.26592E-07** at limit **
   4  Prefactor     .10000E-03    8.2940        .53731E-06** at limit **
   5  norm          .10000E-03    1.1369       -.23395E-07** at limit **
   6  Prefactor     2.7911        7.5277       -.25560E-05   -.40997E-03
   7  norm          6.7647        5.2988        .15257E-05   -.84287E-04
   8  Prefactor     10.565        56.794        .22420E-04   -.94984E-05
   9  Prefactor     .10000E-03    11.564       -.12097E-06** at limit **
  10  Prefactor     7.2755        17.437        .20528E-05   -.25102E-04
  11  norm          6.8455        5.6640       -.15432E-05   -.40159E-04
  12  norm          19.486        16.810       -.37739E-05   -.25805E-04
  13  norm          .10000E-03    2.1871       -.48312E-07** at limit **
  14  norm          .10000E-03    2.3678       -.18368E-07** at limit **
  15  norm          1.1957        4.5457       -.70323E-07   -.59880E-03
  16  Prefactor     4.0081        3.4586        .59690E-06   -.81960E-04
  17  Prefactor     .10000E-03    8.0865       -.46320E-06** at limit **
  18  Prefactor     .10002E-03    100.64       -.21365E-05** at limit **
  19  Prefactor     5.2164        121.42       -.34601E-04   -.12226E-04
  20  Prefactor     15.125        23.075        .26567E-05   -.31736E-04
  21  Prefactor     55.961        44.651       -.11524E-04   -.17239E-04
  22  norm          .10000E-03    2.2453        .54139E-07** at limit **
  23  Prefactor     43.138        73.419        .46231E-04   -.58826E-05
  24  norm          1.8505        1.5818        .29349E-06   -.22745E-03
  25  norm          .10000E-03    7.1172       -.41425E-08** at limit **
  26  Normalizat    1.3157        .22439       -.31954E-05   -.11516E-03
  27  Prefactor     .40670        .25519        .25897E-05   -.17417E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3633
  Prefactor  = 0.839373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.79108
  norm       = 6.76468
  Prefactor  = 10.5646
  Prefactor  = 0.0001
  Prefactor  = 7.27547
  norm       = 6.84552
  norm       = 19.4858
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.19573
  Prefactor  = 4.00805
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 5.21642
  Prefactor  = 15.1245
  Prefactor  = 55.9606
  norm       = 0.0001
  Prefactor  = 43.1384
  norm       = 1.85049
  norm       = 0.0001
  Normalizat = 1.31566
  Prefactor  = 0.4067
 **********
 **   18 **HESSE 
 **********

 FCN=   3731.850     FROM HESSE     STATUS=OK           494 CALLS     3825 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.363        12.779        .11413E-03   -1.5005    
   2  Prefactor     .83937        480.42        .64684E-02   -1.5525    
   3  Prefactor     .10000E-03    78.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2977        .17184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1499        .63601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7911        7.4448        .23070E-03   -1.5374    
   7  norm          6.7647        5.2895        .12014E-03   -1.5188    
   8  Prefactor     10.565        56.616        .12343E-03   -1.5058    
   9  Prefactor     .10000E-03    11.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2755        17.235        .14863E-03   -1.5168    
  11  norm          6.8455        5.6556        .12464E-03   -1.5185    
  12  norm          19.486        16.797        .90736E-04   -1.4825    
  13  norm          .10000E-03    2.2164        .88161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3717        .91799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1957        4.5265        .24136E-03   -1.5489    
  16  Prefactor     4.0081        3.4489        .99096E-04   -1.5308    
  17  Prefactor     .10000E-03    8.1007        .16960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    101.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2164        121.76        .17571E-03   -1.5251    
  20  Prefactor     15.125        23.134        .10295E-03   -1.4930    
  21  Prefactor     55.961        44.474        .53605E-04   -1.4210    
  22  norm          .10000E-03    2.2502        .89279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     43.138        73.241        .61076E-04   -1.4393    
  24  norm          1.8505        1.5703        .67620E-04   -1.5436    
  25  norm          .10000E-03    7.1516        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3157        .24645        .18889E-03   -.83100    
  27  Prefactor     .40670        .27278        .38373E-03   -1.1647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10341e-08
Minuit parameter uncertainties:
  1  12.782
  2  40.4902
  3  8.59615e-05
  4  1.13176e-05
  5  1.66547e-06
  6  7.4473
  7  5.2899
  8  48.9851
  9  5.76721e-06
  10  17.2464
  11  5.65606
  12  16.8009
  13  2.12269e-08
  14  1.63489e-07
  15  4.52783
  16  3.44909
  17  2.17695e-05
  18  0.00294816
  19  50.5206
  20  23.148
  21  44.5004
  22  6.34303e-06
  23  73.394
  24  1.57038
  25  3.44902e-05
  26  0.246666
  27  0.273657
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.949e+01  1.680e+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:  4.067e-01  2.737e-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.316e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.33
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.93e-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) = 3731.72481665
delta logL = 0.125452268011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3731.71981134
delta logL = 0.130457580348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.710       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4147       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40683       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=   3731.720     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.710        16.164        .23793E-02   -.38764E-03
   2  alpha         1.4147        .56624        .37024       -.13623E-04
   3  Normalizat    1.3207        .21333        .32443E-01   -.57389E-06
   4  Prefactor     .40692        .25357        .86608E-01    .28078E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7096
  alpha      = 1.41469
  Normalizat = 1.32066
  Prefactor  = 0.406918
 **********
 **   18 **HESSE 
 **********

 FCN=   3731.720     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.710        17.293        .95173E-04   -1.4866    
   2  alpha         1.4147        .67007        .14690E-01   -.44907    
   3  Normalizat    1.3207        .22781        .18859E-03   -.82952    
   4  Prefactor     .40692        .27039        .38376E-03   -1.1646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56673e-10
Minuit parameter uncertainties:
  1  17.2981
  2  0.680372
  3  0.227985
  4  0.27124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275302': 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) = 3731.71981122
delta logL = 0.130457694724

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.771e+01  1.730e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.415e+00  6.804e-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:  4.069e-01  2.712e-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.321e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.58
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.41 +/- 0.68
Photon Flux (Free Index): 1.31e-08 +/- 1.62e-08
Energy Flux (Free Index): 3.60e-05 +/- 4.83e-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/275302/cmap_HighResolution_267580801_267840001_4FGL_J1309.4+4305_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='3.60e-05', photon_flux_error='1.76e-08', dlogl='1.30e-01', energy_flux='2.24e-05', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-09-07 00:56:21.031936', photon_index_error2='0.68', photon_index2='1.41', ts='8.33', fit_tolerance='1e-08', GAL='0.41', photon_index_error='0.00', energy_flux_error2='4.83e-05', EG='1.32', time_epoch_completed='1631001381.03', return_code='0', job_id='275302', GAL2='0.41', EG2='1.32', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='1.62e-08', ts2='8.58', photon_index='1.77' WHERE bin_id='109' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:56:21 PDT 2021


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

Job <4FGL_J1309.4+4305_daily_bin109> 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) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:45:42 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:42 2021
Terminated at Tue Sep  7 00:56:21 2021
Results reported at Tue Sep  7 00:56:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin109 197.363 43.085 267580801 267840001 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 :                                   461.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            661 sec.

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

