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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1085
RA = 197.363, Dec = 43.085
tmin = 520560001, tmax = 520819201
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='283112', job_status='RUN', time_executed='2021-09-07 01:08:48.504078', time_epoch_executed='1631002128.5' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283112/ft1_4FGL_J1309.4+4305_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283112/ft2_4FGL_J1309.4+4305_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283112/ft1_4FGL_J1309.4+4305_daily_bin1085.fits outfile=/scratch/kocevski/283112/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1085.fits ra=197.363 dec=43.085 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.55
user 4.95
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283112/ft1_filtered_4FGL_J1309.4+4305_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/283112/ft2_4FGL_J1309.4+4305_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/283112/ltcube_520560001_520819201_4FGL_J1309.4+4305_daily_bin1085.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/283112/ft2_4FGL_J1309.4+4305_daily_bin1085.fits
.....................!
real 15.67
user 15.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283112/ft1_filtered_4FGL_J1309.4+4305_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/283112/ft2_4FGL_J1309.4+4305_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/283112/ltcube_520560001_520819201_4FGL_J1309.4+4305_daily_bin1085.fits outfile=/scratch/kocevski/283112/expmap_520560001_520819201_4FGL_J1309.4+4305_daily_bin1085.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/283112/ltcube_520560001_520819201_4FGL_J1309.4+4305_daily_bin1085.fits
.....................!
real 194.45
user 188.07
sys 5.24

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/283112/ft1_filtered_4FGL_J1309.4+4305_daily_bin1085.fits scfile=/scratch/kocevski/283112/ft2_4FGL_J1309.4+4305_daily_bin1085.fits outfile=/scratch/kocevski/283112/cmap_520560001_520819201_4FGL_J1309.4+4305_daily_bin1085.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/283112/ft1_filtered_4FGL_J1309.4+4305_daily_bin1085.fits scfile=/scratch/kocevski/283112/ft2_4FGL_J1309.4+4305_daily_bin1085.fits outfile=/scratch/kocevski/283112/cmap_HighResolution_520560001_520819201_4FGL_J1309.4+4305_daily_bin1085.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24262E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.784       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0385       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6829       1.0000         .10000E-03   10000.    
    13 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9680       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .73009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6429       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6911       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .99435       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.9949       1.0000         .10000E-03   10000.    
    25 'norm      '    3.7394       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3286       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75140       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=   3693.104     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3307 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88542        9.7384        .12803E-05   -.83012E-04
   2  Prefactor     .10000E-03    181.87       -.55645E-05** at limit **
   3  Prefactor     10.706        28.280       -.30337E-05   -.18933E-03
   4  Prefactor     .10000E-03    8.5794       -.43687E-06** at limit **
   5  norm          5.7159        3.3092        .48559E-07   -.41469E-04
   6  Prefactor     .10000E-03    2.4067       -.12610E-07** at limit **
   7  norm          12.479        7.6627        .13955E-06    .58071E-05
   8  Prefactor     44.065        70.799        .43510E-05    .15110E-03
   9  Prefactor     .10000E-03    28.486       -.21693E-05** at limit **
  10  Prefactor     .10000E-03    8.8299        .46143E-06** at limit **
  11  norm          3.0383        4.9155        .87089E-08   -.28559E-03
  12  norm          4.6857        13.105        .40471E-05   -.28664E-03
  13  norm          .10000E-03    4.5691       -.14185E-07** at limit **
  14  norm          .10000E-03    3.7124       -.27369E-07** at limit **
  15  norm          1.9680        4.4918        .38823E-06   -.14153E-03
  16  Prefactor     .10019E-03    2.7473        .58235E-06** at limit **
  17  Prefactor     2.6164        22.572        .11000E-05   -.14186E-03
  18  Prefactor     .10002E-03    44.119        .75174E-05** at limit **
  19  Prefactor     .10000E-03    26.082        .33108E-05** at limit **
  20  Prefactor     6.6860        19.365       -.50444E-06   -.56868E-04
  21  Prefactor     .10000E-03    16.167       -.39845E-06** at limit **
  22  norm          .99845        8.9022        .18020E-05   -.30161E-03
  23  Prefactor     .10002E-03    34.942       -.68895E-05** at limit **
  24  norm          3.9955        2.0567        .28100E-09   -.15825E-03
  25  norm          3.7437        11.676        .70471E-05   -.45975E-03
  26  Normalizat    1.3285        .22101        .81099E-07   -.32127E-03
  27  Prefactor     .75093        .26753       -.25947E-05   -.13997E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.885423
  Prefactor  = 0.000100004
  Prefactor  = 10.7064
  Prefactor  = 0.0001
  norm       = 5.7159
  Prefactor  = 0.0001
  norm       = 12.4788
  Prefactor  = 44.0646
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.03825
  norm       = 4.68574
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.96803
  Prefactor  = 0.000100185
  Prefactor  = 2.61638
  Prefactor  = 0.000100023
  Prefactor  = 0.000100005
  Prefactor  = 6.68596
  Prefactor  = 0.0001
  norm       = 0.998454
  Prefactor  = 0.000100021
  norm       = 3.9955
  norm       = 3.7437
  Normalizat = 1.32852
  Prefactor  = 0.750927
 **********
 **   18 **HESSE 
 **********

 FCN=   3693.104     FROM HESSE     STATUS=OK           492 CALLS     3799 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88542        19.808        .35343E-02   -1.5520    
   2  Prefactor     .10000E-03    185.23        .40095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.706        28.654        .12200E-03   -1.5053    
   4  Prefactor     .10000E-03    8.5912        .17393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7159        3.3100        .81639E-04   -1.5230    
   6  Prefactor     .10000E-03    2.4090        .92068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.479        7.6559        .11339E-03   -1.5001    
   8  Prefactor     44.065        71.858        .60409E-04   -1.4379    
   9  Prefactor     .10000E-03    28.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8514        .17644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0383        4.8715        .16478E-03   -1.5359    
  12  norm          4.6857        13.311        .92982E-03   -1.5275    
  13  norm          .10000E-03    4.6857        .25307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.7325        .11433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9680        4.4522        .18680E-03   -1.5427    
  16  Prefactor     .10019E-03    32.705        .17543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6164        19.645        .25079E-03   -1.5384    
  18  Prefactor     .10002E-03    46.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6860        18.642        .15513E-03   -1.5191    
  21  Prefactor     .10000E-03    16.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .99845        14.528        .28556E-02   -1.5508    
  23  Prefactor     .10002E-03    36.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9955        2.0594        .60142E-04   -1.5308    
  25  norm          3.7437        12.127        .10440E-02   -1.5321    
  26  Normalizat    1.3285        .25987        .20686E-03   -.82719    
  27  Prefactor     .75093        .31218        .33158E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76918e-08
Minuit parameter uncertainties:
  1  8.37846
  2  0.00167659
  3  28.6905
  4  5.33937e-05
  5  3.31014
  6  7.70169e-07
  7  7.65648
  8  71.9995
  9  0.000494727
  10  5.88896e-05
  11  4.87213
  12  13.3195
  13  3.64252e-06
  14  1.95201e-06
  15  4.4529
  16  0.00492524
  17  14.3448
  18  0.00204945
  19  0.000705287
  20  18.6586
  21  7.68074e-05
  22  7.61906
  23  0.00173785
  24  2.05944
  25  12.1345
  26  0.26013
  27  0.31291
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.686e+00  1.332e+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:  7.509e-01  3.129e-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.329e+00  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/283112/likelihoodResults_520560001_520819201_4FGL_J1309.4+4305_daily_bin1085.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) = 3693.09405177
delta logL = 0.00987531122473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3693.09391452
delta logL = 0.010012559675

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6401       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0009       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75104       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3693.094     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      276 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6299        13.137        .93420E-03   -.77215E-04
   2  alpha         1.9986        1.5519        .27937E-01   -.17749E-05
   3  Normalizat    1.3272        .24636        .20695E-03   -.10822E-04
   4  Prefactor     .75115        .30724        .33152E-03   -.20061E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.62994
  alpha      = 1.99856
  Normalizat = 1.32717
  Prefactor  = 0.751145
 **********
 **   18 **HESSE 
 **********

 FCN=   3693.094     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6299        12.753        .37368E-04   -1.5278    
   2  alpha         1.9986        1.5148        .11175E-02   -.20194    
   3  Normalizat    1.3272        .24644        .41389E-04   -.82759    
   4  Prefactor     .75115        .30739        .13261E-04   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24404e-11
Minuit parameter uncertainties:
  1  12.7607
  2  1.63311
  3  0.246659
  4  0.308094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283112': 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) = 3693.09391268
delta logL = 0.0100143999889

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.630e+00  1.276e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.999e+00  1.633e+00  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:  7.511e-01  3.081e-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.327e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/283112/cmap_HighResolution_520560001_520819201_4FGL_J1309.4+4305_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-05', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-09-07 01:19:50.112305', job_id='283112', GAL2='0.75', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631002790.11', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.00e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='1085' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:19:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 283112: <4FGL_J1309.4+4305_daily_bin1085> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1085> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 01:07:43 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:08:13 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:08:13 2021
Terminated at Tue Sep  7 01:19:50 2021
Results reported at Tue Sep  7 01:19:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1085 197.363 43.085 520560001 520819201 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 :                                   654.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            727 sec.

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

