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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin20
RA = 197.363, Dec = 43.085
tmin = 244512001, tmax = 244771201
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='274077', job_status='RUN', time_executed='2021-09-07 00:41:47.454921', time_epoch_executed='1631000507.45' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274077

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274077/ft1_4FGL_J1309.4+4305_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274077/ft2_4FGL_J1309.4+4305_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274077/ft1_4FGL_J1309.4+4305_daily_bin20.fits outfile=/scratch/kocevski/274077/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin20.fits ra=197.363 dec=43.085 rad=12.0 tmin=244512001.0 tmax=244771201.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.44
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274077/ft1_filtered_4FGL_J1309.4+4305_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/274077/ft2_4FGL_J1309.4+4305_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/274077/ltcube_244512001_244771201_4FGL_J1309.4+4305_daily_bin20.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/274077/ft2_4FGL_J1309.4+4305_daily_bin20.fits
.....................!
real 13.86
user 13.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274077/ft1_filtered_4FGL_J1309.4+4305_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/274077/ft2_4FGL_J1309.4+4305_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/274077/ltcube_244512001_244771201_4FGL_J1309.4+4305_daily_bin20.fits outfile=/scratch/kocevski/274077/expmap_244512001_244771201_4FGL_J1309.4+4305_daily_bin20.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/274077/ltcube_244512001_244771201_4FGL_J1309.4+4305_daily_bin20.fits
.....................!
real 191.15
user 185.48
sys 5.23

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/274077/ft1_filtered_4FGL_J1309.4+4305_daily_bin20.fits scfile=/scratch/kocevski/274077/ft2_4FGL_J1309.4+4305_daily_bin20.fits outfile=/scratch/kocevski/274077/cmap_244512001_244771201_4FGL_J1309.4+4305_daily_bin20.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274077/ft1_filtered_4FGL_J1309.4+4305_daily_bin20.fits scfile=/scratch/kocevski/274077/ft2_4FGL_J1309.4+4305_daily_bin20.fits outfile=/scratch/kocevski/274077/cmap_HighResolution_244512001_244771201_4FGL_J1309.4+4305_daily_bin20.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.54
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.595       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.8791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6089       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1220       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10772E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.603       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.7785       1.0000         .10000E-03   10000.    
    14 'norm      '    .26715E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .82415E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.924       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.451       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.6588       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.863       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4459       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .47952       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=   4348.444     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     2884 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.041        13.760       -.30374E-05   -.76449E-05
   2  Prefactor     36.610        46.487        .12588E-04    .84784E-05
   3  Prefactor     .10000E-03    24.530        .75203E-05** at limit **
   4  Prefactor     .10000E-03    6.4549        .39568E-05** at limit **
   5  norm          5.8792        3.3811       -.13078E-06    .86254E-04
   6  Prefactor     3.6095        4.7591       -.27577E-05   -.25371E-04
   7  norm          2.1220        3.6859       -.11239E-06   -.12675E-03
   8  Prefactor     .10000E-03    49.200        .11436E-04** at limit **
   9  Prefactor     .10000E-03    18.034       -.10049E-04** at limit **
  10  Prefactor     23.596        17.983        .86243E-06    .10514E-03
  11  norm          .10000E-03    1.8892        .12960E-06** at limit **
  12  norm          .10000E-03    6.1941       -.94503E-06** at limit **
  13  norm          9.7897        6.2834        .49420E-06    .69414E-03
  14  norm          .10000E-03    12.735       -.61683E-06** at limit **
  15  norm          .10024E-03    4.3187       -.20434E-05** at limit **
  16  Prefactor     .10001E-03    3.3145       -.15712E-05** at limit **
  17  Prefactor     .10000E-03    20.320        .16726E-04** at limit **
  18  Prefactor     34.930        45.020        .90736E-05    .24673E-03
  19  Prefactor     .10000E-03    27.413       -.13673E-04** at limit **
  20  Prefactor     40.458        28.367        .11659E-05    .10454E-03
  21  Prefactor     .10000E-03    26.361       -.69140E-05** at limit **
  22  norm          8.6574        7.0640       -.66825E-06    .11960E-03
  23  Prefactor     13.842        118.94       -.46925E-04    .97698E-05
  24  norm          .10000E-03    .77837       -.62481E-07** at limit **
  25  norm          .10000E-03    9.4668        .51339E-06** at limit **
  26  Normalizat    1.4457        .21952        .61296E-06    .44869E-03
  27  Prefactor     .47983        .25006       -.90729E-06    .20608E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.0413
  Prefactor  = 36.6096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.87916
  Prefactor  = 3.60947
  norm       = 2.12204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5962
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.78974
  norm       = 0.000100003
  norm       = 0.00010024
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 34.9297
  Prefactor  = 0.0001
  Prefactor  = 40.4576
  Prefactor  = 0.0001
  norm       = 8.65743
  Prefactor  = 13.842
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.44568
  Prefactor  = 0.479834
 **********
 **   18 **HESSE 
 **********

 FCN=   4348.444     FROM HESSE     STATUS=OK           492 CALLS     3376 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.041        13.757        .91781E-04   -1.4835    
   2  Prefactor     36.610        46.654        .66250E-04   -1.4497    
   3  Prefactor     .10000E-03    24.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4550        .16363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8792        3.3807        .89184E-04   -1.5223    
   6  Prefactor     3.6095        4.7512        .15802E-03   -1.5328    
   7  norm          2.1220        3.6601        .16135E-03   -1.5417    
   8  Prefactor     .10000E-03    49.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.596        17.984        .82450E-04   -1.4736    
  11  norm          .10000E-03    1.8912        .88499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.1959        .16029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.7897        5.0911        .10256E-03   -1.5082    
  14  norm          .10000E-03    26.321        .37114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10024E-03    10.579        .41778E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    6.5688        .22647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.930        46.053        .67811E-04   -1.4525    
  19  Prefactor     .10000E-03    27.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.458        28.439        .63024E-04   -1.4435    
  21  Prefactor     .10000E-03    26.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.6574        7.0686        .13622E-03   -1.5119    
  23  Prefactor     13.842        122.80        .10758E-03   -1.4964    
  24  norm          .10000E-03    .81063        .11350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    9.4916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4457        .25307        .20313E-03   -.79317    
  27  Prefactor     .47983        .28130        .39873E-03   -1.1291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70514e-09
Minuit parameter uncertainties:
  1  13.7594
  2  46.7003
  3  0.000166927
  4  5.42996e-06
  5  3.38085
  6  4.75169
  7  3.66051
  8  4.53955e-05
  9  1.88453e-05
  10  17.9884
  11  2.38136e-06
  12  7.23632e-07
  13  5.09128
  14  0.000517512
  15  0.00318633
  16  0.000416902
  17  1.9393e-05
  18  46.1
  19  3.58598e-05
  20  28.4489
  21  0.000160765
  22  7.06926
  23  82.6848
  24  1.44734e-06
  25  4.30496e-05
  26  0.253294
  27  0.282119
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  7.236e-07  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.798e-01  2.821e-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.446e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/274077/likelihoodResults_244512001_244771201_4FGL_J1309.4+4305_daily_bin20.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) = 4348.44490941
delta logL = -0.000748776122236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4348.44416063
delta logL = 1.53431756189e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7711       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47983       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4348.444     FROM MIGRAD    STATUS=FAILED        86 CALLS      236 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    12.154        .16033E-02** at limit **
   2  alpha         1.8160        2.5855        .17446       -.94431E-06
   3  Normalizat    1.4457        .23178        .20313E-03    .45894E-05
   4  Prefactor     .47983        .27606        .39873E-03    .25091E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4348.444     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      359 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    12.154        .33056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8160        2.5855        .29675E-03   -.27713    
   3  Normalizat    1.4457        .23178        .57322E-04   -.79317    
   4  Prefactor     .47983        .27606        .82992E-04   -1.1291    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4348.444     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      390 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    6.2746        .32065E-03** at limit **
   2  alpha         1.8790        3.2928        .69784E-01    .10280E-06
   3  Normalizat    1.4457        .23192        .81250E-05   -.72759E-05
   4  Prefactor     .47983        .27623        .15949E-04   -.35640E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 1.87905
  Normalizat = 1.44567
  Prefactor  = 0.479834
 **********
 **   18 **HESSE 
 **********

 FCN=   4348.444     FROM HESSE     STATUS=OK            23 CALLS      413 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    6.2249        .64131E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8790        3.0424        .27914E-02   -.25101    
   3  Normalizat    1.4457        .23202        .16250E-05   -.79317    
   4  Prefactor     .47983        .27635        .31899E-05   -1.1291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31009e-09
Minuit parameter uncertainties:
  1  0.00040031
  2  387.845
  3  0.232192
  4  0.277126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274077': 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) = 4348.4441606
delta logL = 3.70255293092e-08

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  4.003e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.879e+00  3.878e+02  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.798e-01  2.771e-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.446e+00  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/274077/cmap_HighResolution_244512001_244771201_4FGL_J1309.4+4305_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-05', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-09-07 00:52:46.094776', job_id='274077', GAL2='0.48', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1631001166.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='3.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='20' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:52:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 274077: <4FGL_J1309.4+4305_daily_bin20> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin20> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 00:40:43 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:41:12 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:41:12 2021
Terminated at Tue Sep  7 00:52:46 2021
Results reported at Tue Sep  7 00:52:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin20 197.363 43.085 244512001 244771201 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 :                                   657.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            723 sec.

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

