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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin108
RA = 197.363, Dec = 43.085
tmin = 267321601, tmax = 267580801
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='275300', job_status='RUN', time_executed='2021-09-07 00:48:03.354026', time_epoch_executed='1631000883.35' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275300/ft1_4FGL_J1309.4+4305_daily_bin108.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275300/ft2_4FGL_J1309.4+4305_daily_bin108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275300/ft1_4FGL_J1309.4+4305_daily_bin108.fits outfile=/scratch/kocevski/275300/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin108.fits ra=197.363 dec=43.085 rad=12.0 tmin=267321601.0 tmax=267580801.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.43
user 1.23
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275300/ft2_4FGL_J1309.4+4305_daily_bin108.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/275300/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin108.fits evtable="EVENTS" outfile="/scratch/kocevski/275300/ft1_filtered_4FGL_J1309.4+4305_daily_bin108.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.51
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275300/ft1_filtered_4FGL_J1309.4+4305_daily_bin108.fits evtable="EVENTS" scfile=/scratch/kocevski/275300/ft2_4FGL_J1309.4+4305_daily_bin108.fits sctable="SC_DATA" expcube=/scratch/kocevski/275300/ltcube_267321601_267580801_4FGL_J1309.4+4305_daily_bin108.fits outfile=/scratch/kocevski/275300/expmap_267321601_267580801_4FGL_J1309.4+4305_daily_bin108.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/275300/ltcube_267321601_267580801_4FGL_J1309.4+4305_daily_bin108.fits
.....................!
real 193.99
user 186.49
sys 5.40

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/275300/ft1_filtered_4FGL_J1309.4+4305_daily_bin108.fits scfile=/scratch/kocevski/275300/ft2_4FGL_J1309.4+4305_daily_bin108.fits outfile=/scratch/kocevski/275300/cmap_267321601_267580801_4FGL_J1309.4+4305_daily_bin108.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275300/ft1_filtered_4FGL_J1309.4+4305_daily_bin108.fits scfile=/scratch/kocevski/275300/ft2_4FGL_J1309.4+4305_daily_bin108.fits outfile=/scratch/kocevski/275300/cmap_HighResolution_267321601_267580801_4FGL_J1309.4+4305_daily_bin108.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11782E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.101       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .68787E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.738       1.0000         .10000E-03   10000.    
     5 'norm      '    .29563       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8349       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67576E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.3944       1.0000         .10000E-03   10000.    
    12 'norm      '    5.8692       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6195       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7661       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1749       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25450E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26365E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67709E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.761       1.0000         .10000E-03   10000.    
    21 'Prefactor '    108.59       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.997       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7918       1.0000         .10000E-03   10000.    
    25 'norm      '    34.836       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .74116       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4630.869     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     2470 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.357        .44179E-05** at limit **
   2  Prefactor     73.653        32.873       -.19225E-04   -.90490E-02
   3  Prefactor     .10000E-03    14.413        .17685E-05** at limit **
   4  Prefactor     13.826        7.9751        .33462E-04    .38801E-02
   5  norm          .29937        5.6561       -.11915E-05    .41025E-04
   6  Prefactor     6.7990        6.0864       -.58258E-05   -.19273E-03
   7  norm          .10000E-03    4.0776       -.64756E-06** at limit **
   8  Prefactor     .10000E-03    21.340       -.44526E-05** at limit **
   9  Prefactor     8.6418        21.808        .10466E-04   -.34470E-03
  10  Prefactor     .10000E-03    9.4488       -.25296E-06** at limit **
  11  norm          7.4649        6.2833       -.12068E-05    .28273E-04
  12  norm          6.1819        14.584       -.20150E-05    .30032E-04
  13  norm          .10000E-03    2.6034       -.15028E-06** at limit **
  14  norm          2.5829        5.3532       -.15018E-06    .13596E-03
  15  norm          7.7703        6.0857       -.51580E-05   -.24346E-03
  16  Prefactor     2.1745        2.7929        .10659E-05    .43976E-03
  17  Prefactor     .76609E-01    70.070       -.24179E-03    .11808E-02
  18  Prefactor     .11296E-03    92.092        .27606E-03** at limit **
  19  Prefactor     .10000E-03    17.444       -.41688E-05** at limit **
  20  Prefactor     59.118        30.727        .24726E-04    .83272E-02
  21  Prefactor     109.10        20.571       -.27746E-04    .22729E-01
  22  norm          .10000E-03    2.7518        .14482E-07** at limit **
  23  Prefactor     33.279        80.106        .23827E-04   -.26907E-02
  24  norm          1.7976        1.7033        .88442E-06   -.20133E-03
  25  norm          34.888        10.902       -.24588E-04   -.39259E-02
  26  Normalizat    .73490        .25030        .93426E-05    .49319E-04
  27  Prefactor     1.2018        .29571       -.11473E-05    .36884E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 73.6533
  Prefactor  = 0.0001
  Prefactor  = 13.8261
  norm       = 0.299366
  Prefactor  = 6.79902
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.64177
  Prefactor  = 0.0001
  norm       = 7.46494
  norm       = 6.1819
  norm       = 0.0001
  norm       = 2.58288
  norm       = 7.77029
  Prefactor  = 2.17448
  Prefactor  = 0.0766095
  Prefactor  = 0.000112964
  Prefactor  = 0.0001
  Prefactor  = 59.1181
  Prefactor  = 109.095
  norm       = 0.0001
  Prefactor  = 33.279
  norm       = 1.79762
  norm       = 34.8884
  Normalizat = 0.734897
  Prefactor  = 1.20179
 **********
 **   18 **HESSE 
 **********

 FCN=   4630.869     FROM HESSE     STATUS=OK           554 CALLS     3024 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     73.653        34.062        .11820E-02   -1.3989    
   3  Prefactor     .10000E-03    14.374        .10495E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.826        21.971        .27017E-02   -1.4964    
   5  norm          .29937        2.6689        .34255E-01   -1.5599    
   6  Prefactor     6.7990        6.2685        .38367E-02   -1.5186    
   7  norm          .10000E-03    4.0319        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.6418        22.931        .35248E-02   -1.5120    
  10  Prefactor     .10000E-03    9.4088        .10500E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4649        6.3006        .36873E-02   -1.5161    
  12  norm          6.1819        14.626        .41441E-02   -1.5211    
  13  norm          .10000E-03    2.5913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5829        5.4341        .62999E-02   -1.5387    
  15  norm          7.7703        6.1530        .35973E-02   -1.5150    
  16  Prefactor     2.1745        2.9056        .69799E-02   -1.5413    
  17  Prefactor     .76609E-01    10.401        .91496E-01   -1.5653    
  18  Prefactor     .11296E-03    135.46        .99821E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.411        .10499E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     59.118        31.954        .13196E-02   -1.4169    
  21  Prefactor     109.10        54.043        .96491E-03   -1.3615    
  22  norm          .10000E-03    2.7479        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.279        81.567        .17992E-02   -1.4554    
  24  norm          1.7976        1.7339        .78114E-02   -1.5440    
  25  norm          34.888        23.191        .16974E-02   -1.4526    
  26  Normalizat    .73490        .21111        .42837E-01   -1.0253    
  27  Prefactor     1.2018        .24709        .60879E-01   -.86276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7731e-06
Minuit parameter uncertainties:
  1  4.82094e-05
  2  34.0713
  3  2.5473e-05
  4  21.984
  5  1.78753
  6  6.26906
  7  1.48706e-05
  8  4.08947e-05
  9  22.954
  10  1.48797e-05
  11  6.30118
  12  14.6342
  13  2.5156e-06
  14  5.4351
  15  6.15352
  16  2.90575
  17  1.78447
  18  0.0840024
  19  3.53578e-06
  20  31.9637
  21  54.0677
  22  2.23952e-06
  23  81.8422
  24  1.73396
  25  23.1971
  26  0.211343
  27  0.247328
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  6.182e+00  1.463e+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.202e+00  2.473e-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:  7.349e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275300/likelihoodResults_267321601_267580801_4FGL_J1309.4+4305_daily_bin108.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) = 4630.65307851
delta logL = 0.215898813245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4630.65216115
delta logL = 0.216816167994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8095       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4606       1.0000          .0000       5.0000    
     3 'Normalizat'    .72763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1997       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=   4630.652     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      285 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7994        12.344        .83314E-03   -.10494E-04
   2  alpha         2.4567        1.0948        .15788E-01    .15698E-03
   3  Normalizat    .72752        .22655        .26659E-03    .89553E-05
   4  Prefactor     1.2004        .28795        .26927E-03    .92463E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.79944
  alpha      = 2.45675
  Normalizat = 0.727519
  Prefactor  = 1.20042
 **********
 **   18 **HESSE 
 **********

 FCN=   4630.652     FROM HESSE     STATUS=OK            27 CALLS      312 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7994        11.074        .33325E-04   -1.5226    
   2  alpha         2.4567        .98898        .31577E-02   -.17302E-01
   3  Normalizat    .72752        .22666        .10664E-04   -1.0282    
   4  Prefactor     1.2004        .28807        .10771E-04   -.86318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19797e-12
Minuit parameter uncertainties:
  1  11.078
  2  1.01679
  3  0.22695
  4  0.288447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275300': 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) = 4630.65213776
delta logL = 0.216839564985

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  5.799e+00  1.108e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.457e+00  1.017e+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:  1.200e+00  2.884e-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:  7.275e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/275300/cmap_HighResolution_267321601_267580801_4FGL_J1309.4+4305_daily_bin108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-05', job_status='DONE', photon_flux_upper_limit='5.09e-08', time_completed='2021-09-07 00:58:57.267801', job_id='275300', GAL2='1.20', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1631001537.27', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.17e-01', ts2='0.66', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='108' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:58:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 275300: <4FGL_J1309.4+4305_daily_bin108> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin108> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:19 2021
Job was executed on host(s) <bullet0058>, 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:58:58 2021
Results reported at Tue Sep  7 00:58:58 2021

Your job looked like:

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

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

