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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin652
RA = 197.363, Dec = 43.085
tmin = 408326401, tmax = 408585601
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='278416', job_status='RUN', time_executed='2021-09-07 00:59:20.112706', time_epoch_executed='1631001560.11' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278416/ft1_4FGL_J1309.4+4305_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278416/ft2_4FGL_J1309.4+4305_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278416/ft1_4FGL_J1309.4+4305_daily_bin652.fits outfile=/scratch/kocevski/278416/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin652.fits ra=197.363 dec=43.085 rad=12.0 tmin=408326401.0 tmax=408585601.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 4.97
user 4.69
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278416/ft1_filtered_4FGL_J1309.4+4305_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/278416/ft2_4FGL_J1309.4+4305_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/278416/ltcube_408326401_408585601_4FGL_J1309.4+4305_daily_bin652.fits outfile=/scratch/kocevski/278416/expmap_408326401_408585601_4FGL_J1309.4+4305_daily_bin652.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/278416/ltcube_408326401_408585601_4FGL_J1309.4+4305_daily_bin652.fits
.....................!
real 194.08
user 188.47
sys 5.10

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/278416/ft1_filtered_4FGL_J1309.4+4305_daily_bin652.fits scfile=/scratch/kocevski/278416/ft2_4FGL_J1309.4+4305_daily_bin652.fits outfile=/scratch/kocevski/278416/cmap_408326401_408585601_4FGL_J1309.4+4305_daily_bin652.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.78
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278416/ft1_filtered_4FGL_J1309.4+4305_daily_bin652.fits scfile=/scratch/kocevski/278416/ft2_4FGL_J1309.4+4305_daily_bin652.fits outfile=/scratch/kocevski/278416/cmap_HighResolution_408326401_408585601_4FGL_J1309.4+4305_daily_bin652.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.64
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.008       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.424       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.8441       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1271       1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7587       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.815       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    63.718       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1283       1.0000         .10000E-03   10000.    
    14 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.466       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.825       1.0000         .10000E-03   10000.    
    19 'Prefactor '    68.124       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.1950       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    18.210       1.0000         .10000E-03   10000.    
    25 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .43869       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3599       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=   3302.230     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3899 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.007        16.828       -.30742E-06   -.19113E-04
   2  Prefactor     15.426        39.681        .16075E-05   -.64257E-05
   3  Prefactor     .10000E-03    9.4043       -.11226E-06** at limit **
   4  Prefactor     .10000E-03    20.572       -.60583E-05** at limit **
   5  norm          7.8440        4.3602        .77989E-07   -.28321E-04
   6  Prefactor     6.1265        9.6997        .41187E-06   -.56432E-04
   7  norm          .10000E-03    3.4237       -.59320E-07** at limit **
   8  Prefactor     .10000E-03    242.19       -.53541E-05** at limit **
   9  Prefactor     3.7503        48.813        .64311E-05   -.18646E-04
  10  Prefactor     33.815        33.399       -.79993E-06    .86182E-05
  11  norm          .10000E-03    6.9777       -.10293E-06** at limit **
  12  norm          63.711        35.803        .46591E-06    .95364E-05
  13  norm          4.1280        4.2296        .43457E-06   -.66559E-04
  14  norm          .10000E-03    11.335        .23857E-06** at limit **
  15  norm          14.466        9.7502        .16691E-05   -.21652E-04
  16  Prefactor     .10000E-03    4.5633       -.56096E-06** at limit **
  17  Prefactor     30.098        32.475       -.13849E-04   -.76472E-05
  18  Prefactor     28.806        60.840       -.17333E-04    .96278E-05
  19  Prefactor     68.176        145.92        .55342E-04    .92819E-05
  20  Prefactor     .10000E-03    19.849        .43680E-05** at limit **
  21  Prefactor     .10000E-03    32.831       -.43171E-05** at limit **
  22  norm          5.1954        5.9974       -.44787E-05   -.13858E-03
  23  Prefactor     .10000E-03    65.854        .26485E-05** at limit **
  24  norm          18.210        4.2353        .22152E-06   -.22362E-04
  25  norm          .10000E-03    26.198        .58134E-05** at limit **
  26  Normalizat    .43851        .26866       -.20238E-06   -.24766E-04
  27  Prefactor     1.3601        .30932       -.76797E-06    .21165E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.0069
  Prefactor  = 15.4257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.84396
  Prefactor  = 6.12654
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.75029
  Prefactor  = 33.8147
  norm       = 0.0001
  norm       = 63.711
  norm       = 4.12804
  norm       = 0.0001
  norm       = 14.4661
  Prefactor  = 0.000100001
  Prefactor  = 30.0979
  Prefactor  = 28.8058
  Prefactor  = 68.176
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 5.19535
  Prefactor  = 0.0001
  norm       = 18.2104
  norm       = 0.0001
  Normalizat = 0.43851
  Prefactor  = 1.36012
 **********
 **   18 **HESSE 
 **********

 FCN=   3302.230     FROM HESSE     STATUS=OK           486 CALLS     4385 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.007        16.801        .91865E-04   -1.4836    
   2  Prefactor     15.426        39.624        .10198E-03   -1.4922    
   3  Prefactor     .10000E-03    9.4063        .17213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8440        4.3586        .86551E-04   -1.5148    
   6  Prefactor     6.1265        9.6625        .16219E-03   -1.5213    
   7  norm          .10000E-03    3.4423        .10376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    243.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7503        48.299        .20824E-03   -1.5321    
  10  Prefactor     33.815        33.316        .68911E-04   -1.4544    
  11  norm          .10000E-03    7.0864        .14806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          63.711        35.800        .50273E-04   -1.4110    
  13  norm          4.1280        4.1459        .11059E-03   -1.5302    
  14  norm          .10000E-03    11.473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.466        9.7410        .10531E-03   -1.4947    
  16  Prefactor     .10000E-03    4.5937        .11931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.098        32.346        .73039E-04   -1.4610    
  18  Prefactor     28.806        60.696        .74623E-04   -1.4634    
  19  Prefactor     68.176        145.79        .48630E-04   -1.4055    
  20  Prefactor     .10000E-03    19.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.1954        6.0034        .14543E-03   -1.5252    
  23  Prefactor     .10000E-03    65.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          18.210        4.2317        .53948E-04   -1.4854    
  25  norm          .10000E-03    26.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .43851        .30278        .35070E-03   -1.1536    
  27  Prefactor     1.3601        .35592        .26058E-03   -.81536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91593e-10
Minuit parameter uncertainties:
  1  16.8051
  2  39.6914
  3  2.89025e-06
  4  2.09625e-06
  5  4.35879
  6  9.66495
  7  2.93494e-06
  8  0.00020232
  9  26.9438
  10  33.334
  11  4.5212e-05
  12  35.8124
  13  4.14617
  14  3.05746e-05
  15  9.74203
  16  0.000110044
  17  32.3651
  18  60.8269
  19  146.562
  20  0.000273043
  21  0.000311707
  22  6.00412
  23  0.00015926
  24  4.23179
  25  3.3607e-05
  26  0.303917
  27  0.356566
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  6.371e+01  3.581e+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.360e+00  3.566e-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:  4.385e-01  3.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.87
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 6.68e-08 +/- 3.75e-08
Energy Flux (Fixed Index): 7.33e-05 +/- 4.12e-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) = 3301.52237199
delta logL = 0.707590750429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3301.51596467
delta logL = 0.713998074725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    51.094       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2922       1.0000          .0000       5.0000    
     3 'Normalizat'    .39311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3800       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=   3301.516     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      297 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          51.096        33.043        .56106E-04   -.58748E-03
   2  alpha         2.2922        .44076        .67235E-02   -.18199E-03
   3  Normalizat    .39296        .28168        .36937E-03    .46291E-04
   4  Prefactor     1.3802        .35198        .25844E-03    .11521E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 51.0964
  alpha      = 2.29216
  Normalizat = 0.392961
  Prefactor  = 1.38023
 **********
 **   18 **HESSE 
 **********

 FCN=   3301.516     FROM HESSE     STATUS=OK            23 CALLS      320 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          51.096        32.185        .11221E-04   -1.4277    
   2  alpha         2.2922        .42914        .26894E-03   -.83232E-01
   3  Normalizat    .39296        .28157        .14775E-04   -1.1767    
   4  Prefactor     1.3802        .35196        .51687E-04   -.80952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36353e-10
Minuit parameter uncertainties:
  1  32.1962
  2  0.431294
  3  0.28259
  4  0.352578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278416': 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) = 3301.51596449
delta logL = 0.713998254856

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  5.110e+01  3.220e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.292e+00  4.313e-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.380e+00  3.526e-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:  3.930e-01  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.15
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.29 +/- 0.43
Photon Flux (Free Index): 1.19e-07 +/- 7.10e-08
Energy Flux (Free Index): 4.93e-05 +/- 2.67e-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/278416/cmap_HighResolution_408326401_408585601_4FGL_J1309.4+4305_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.68e-08', energy_flux2='4.93e-05', photon_flux_error='3.75e-08', dlogl='7.14e-01', energy_flux='7.33e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-07 01:09:24.201170', photon_index_error2='0.43', photon_index2='2.29', ts='9.87', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='2.67e-05', EG='0.44', time_epoch_completed='1631002164.2', return_code='0', job_id='278416', GAL2='1.38', EG2='0.39', return_code2='0', energy_flux_error='4.12e-05', photon_flux_error2='7.10e-08', ts2='11.15', photon_index='1.77' WHERE bin_id='652' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:09:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 278416: <4FGL_J1309.4+4305_daily_bin652> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin652> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:39 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:56:00 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:56:00 2021
Terminated at Tue Sep  7 01:09:25 2021
Results reported at Tue Sep  7 01:09:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin652 197.363 43.085 408326401 408585601 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            826 sec.

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

