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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin129
RA = 197.363, Dec = 43.085
tmin = 272764801, tmax = 273024001
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='275333', job_status='RUN', time_executed='2021-09-07 00:48:50.240463', time_epoch_executed='1631000930.24' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275333/ft1_4FGL_J1309.4+4305_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275333/ft2_4FGL_J1309.4+4305_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275333/ft1_4FGL_J1309.4+4305_daily_bin129.fits outfile=/scratch/kocevski/275333/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin129.fits ra=197.363 dec=43.085 rad=12.0 tmin=272764801.0 tmax=273024001.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.77
user 1.55
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275333/ft1_filtered_4FGL_J1309.4+4305_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/275333/ft2_4FGL_J1309.4+4305_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/275333/ltcube_272764801_273024001_4FGL_J1309.4+4305_daily_bin129.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/275333/ft2_4FGL_J1309.4+4305_daily_bin129.fits
.....................!
real 27.06
user 22.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275333/ft1_filtered_4FGL_J1309.4+4305_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/275333/ft2_4FGL_J1309.4+4305_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/275333/ltcube_272764801_273024001_4FGL_J1309.4+4305_daily_bin129.fits outfile=/scratch/kocevski/275333/expmap_272764801_273024001_4FGL_J1309.4+4305_daily_bin129.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/275333/ltcube_272764801_273024001_4FGL_J1309.4+4305_daily_bin129.fits
.....................!
real 190.87
user 185.05
sys 5.08

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/275333/ft1_filtered_4FGL_J1309.4+4305_daily_bin129.fits scfile=/scratch/kocevski/275333/ft2_4FGL_J1309.4+4305_daily_bin129.fits outfile=/scratch/kocevski/275333/cmap_272764801_273024001_4FGL_J1309.4+4305_daily_bin129.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/275333/ft1_filtered_4FGL_J1309.4+4305_daily_bin129.fits scfile=/scratch/kocevski/275333/ft2_4FGL_J1309.4+4305_daily_bin129.fits outfile=/scratch/kocevski/275333/cmap_HighResolution_272764801_273024001_4FGL_J1309.4+4305_daily_bin129.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1589       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.833       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10260E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.552       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.916       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33412E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4908       1.0000         .10000E-03   10000.    
    13 'norm      '    7.3130       1.0000         .10000E-03   10000.    
    14 'norm      '    .11357E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9832       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2542       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4921       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4271       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.4590       1.0000         .10000E-03   10000.    
    25 'norm      '    5.1334       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86142       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0372       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=   5457.094     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3342 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1556        5.9001        .46462E-06    .28730E-03
   2  Prefactor     .10000E-03    10.136        .43026E-06** at limit **
   3  Prefactor     5.3850        31.069       -.70845E-06   -.63359E-05
   4  Prefactor     23.839        18.870        .12055E-06   -.63185E-04
   5  norm          2.0412        1.9075        .35208E-07    .17099E-04
   6  Prefactor     .10000E-03    6.8622       -.54483E-07** at limit **
   7  norm          .10000E-03    1.8326       -.31955E-07** at limit **
   8  Prefactor     32.403        58.723        .84938E-05    .21177E-03
   9  Prefactor     27.924        24.309        .21106E-06   -.20051E-04
  10  Prefactor     .10480E-03    17.754        .33408E-05** at limit **
  11  norm          .10000E-03    2.6308       -.21366E-07** at limit **
  12  norm          3.4970        9.9831        .45500E-07    .10579E-03
  13  norm          7.3214        4.7629        .62972E-07    .56339E-03
  14  norm          .10037E-03    7.1442       -.11225E-05** at limit **
  15  norm          1.9835        2.3484       -.27014E-07   -.29764E-04
  16  Prefactor     4.2550        3.1280        .28976E-07   -.91907E-04
  17  Prefactor     .10000E-03    6.1416       -.21563E-07** at limit **
  18  Prefactor     .10000E-03    8.0679        .43304E-07** at limit **
  19  Prefactor     .10000E-03    22.372        .12889E-06** at limit **
  20  Prefactor     .10000E-03    20.074        .18431E-06** at limit **
  21  Prefactor     6.4905        20.248        .26799E-06    .27943E-04
  22  norm          3.4278        4.0625        .71927E-07    .12863E-04
  23  Prefactor     .10000E-03    21.478       -.37431E-06** at limit **
  24  norm          5.4589        1.6878        .99504E-08   -.14759E-04
  25  norm          5.1324        9.5244        .53304E-06    .12155E-03
  26  Normalizat    .86144        .17069        .83795E-06   -.97417E-04
  27  Prefactor     1.0373        .21059       -.17025E-05   -.87179E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.15561
  Prefactor  = 0.0001
  Prefactor  = 5.38501
  Prefactor  = 23.8387
  norm       = 2.04124
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.4027
  Prefactor  = 27.9242
  Prefactor  = 0.000104799
  norm       = 0.0001
  norm       = 3.49696
  norm       = 7.32137
  norm       = 0.000100371
  norm       = 1.98347
  Prefactor  = 4.25498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.49055
  norm       = 3.42775
  Prefactor  = 0.0001
  norm       = 5.45885
  norm       = 5.13237
  Normalizat = 0.861442
  Prefactor  = 1.0373
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.094     FROM HESSE     STATUS=OK           508 CALLS     3850 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1556        5.9198        .98820E-03   -1.5300    
   2  Prefactor     .10000E-03    10.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3850        31.210        .17310E-03   -1.5244    
   4  Prefactor     23.839        18.856        .82051E-04   -1.4731    
   5  norm          2.0412        1.8971        .95629E-04   -1.5422    
   6  Prefactor     .10000E-03    7.0047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8439        .97567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.403        59.674        .70231E-04   -1.4569    
   9  Prefactor     27.924        24.310        .75825E-04   -1.4651    
  10  Prefactor     .10480E-03    13.839        .74952E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6690        .11687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4970        9.9718        .10821E-02   -1.5334    
  13  norm          7.3214        4.8403        .10528E-03   -1.5167    
  14  norm          .10037E-03    7.1612        .52557E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9835        2.3414        .11960E-03   -1.5426    
  16  Prefactor     4.2550        3.1241        .10557E-03   -1.5295    
  17  Prefactor     .10000E-03    6.1529        .17871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.0690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.4905        20.262        .78756E-03   -1.5198    
  22  norm          3.4278        4.0508        .15443E-03   -1.5338    
  23  Prefactor     .10000E-03    21.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.4589        1.6882        .51106E-04   -1.5241    
  25  norm          5.1324        9.5238        .88722E-03   -1.5255    
  26  Normalizat    .86144        .20280        .22871E-03   -.97829    
  27  Prefactor     1.0373        .24658        .26756E-03   -.91496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36684e-09
Minuit parameter uncertainties:
  1  5.9206
  2  3.33634e-05
  3  25.9485
  4  18.8603
  5  1.89712
  6  3.44879e-05
  7  1.85158e-06
  8  59.784
  9  24.3182
  10  0.0163032
  11  8.35278e-06
  12  9.9765
  13  4.84051
  14  0.00325906
  15  2.34154
  16  3.12419
  17  2.36729e-06
  18  4.18207e-07
  19  1.59888e-05
  20  2.84987e-05
  21  20.2834
  22  4.05109
  23  4.68686e-05
  24  1.68817
  25  9.52662
  26  0.202981
  27  0.246852
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.497e+00  9.976e+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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.037e+00  2.469e-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:  8.614e-01  2.030e-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: 3.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275333/likelihoodResults_272764801_273024001_4FGL_J1309.4+4305_daily_bin129.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): 102
logL (Free Index) = 5457.04527741
delta logL = 0.0488944432072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5457.0235635
delta logL = 0.0706083495425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3617       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2612       1.0000          .0000       5.0000    
     3 'Normalizat'    .83568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0569       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5457.024     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      226 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3504        53.017        .93548E-02    .88730E-03
   2  alpha         3.2657        4.0665        .43867        .38816E-04
   3  Normalizat    .83571        .28653E-01    .44074E-01    .15276E-04
   4  Prefactor     1.0568        .36309E-01    .60008E-01    .17756E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35037
  alpha      = 3.26572
  Normalizat = 0.835711
  Prefactor  = 1.05684
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.024     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3504        221.94        .15458E-03   -1.5476    
   2  alpha         3.2657        3.1344        .16482E-01    .31129    
   3  Normalizat    .83571        .19289        .23190E-03   -.98757    
   4  Prefactor     1.0568        .22840        .26538E-03   -.90858    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22438e-09
Minuit parameter uncertainties:
  1  34.754
  2  13.4315
  3  0.193045
  4  0.228615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275333': 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): 102
logL (Free Index) = 5457.02356243
delta logL = 0.0706094192074

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.350e+00  3.475e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.266e+00  1.343e+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.057e+00  2.286e-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:  8.357e-01  1.930e-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/275333/cmap_HighResolution_272764801_273024001_4FGL_J1309.4+4305_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-05', job_status='DONE', photon_flux_upper_limit='3.90e-08', time_completed='2021-09-07 01:01:46.864618', job_id='275333', GAL2='1.06', fit_tolerance='1e-08', EG2='0.84', EG='0.86', time_epoch_completed='1631001706.86', return_code2='102', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.06e-02', ts2='0.31', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='129' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 275333: <4FGL_J1309.4+4305_daily_bin129> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin129> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:22 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:46:04 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:46:04 2021
Terminated at Tue Sep  7 01:01:47 2021
Results reported at Tue Sep  7 01:01:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin129 197.363 43.085 272764801 273024001 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 :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            985 sec.

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

