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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin552
RA = 197.363, Dec = 43.085
tmin = 382406401, tmax = 382665601
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='278270', job_status='RUN', time_executed='2021-09-07 00:58:55.616999', time_epoch_executed='1631001535.62' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278270

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278270/ft1_4FGL_J1309.4+4305_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278270/ft2_4FGL_J1309.4+4305_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278270/ft1_4FGL_J1309.4+4305_daily_bin552.fits outfile=/scratch/kocevski/278270/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin552.fits ra=197.363 dec=43.085 rad=12.0 tmin=382406401.0 tmax=382665601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.82
user 4.47
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278270/ft1_filtered_4FGL_J1309.4+4305_daily_bin552.fits" evtable="EVENTS" scfile=/scratch/kocevski/278270/ft2_4FGL_J1309.4+4305_daily_bin552.fits sctable="SC_DATA" outfile=/scratch/kocevski/278270/ltcube_382406401_382665601_4FGL_J1309.4+4305_daily_bin552.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/278270/ft2_4FGL_J1309.4+4305_daily_bin552.fits
.....................!
real 16.92
user 16.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278270/ft1_filtered_4FGL_J1309.4+4305_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/278270/ft2_4FGL_J1309.4+4305_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/278270/ltcube_382406401_382665601_4FGL_J1309.4+4305_daily_bin552.fits outfile=/scratch/kocevski/278270/expmap_382406401_382665601_4FGL_J1309.4+4305_daily_bin552.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/278270/ltcube_382406401_382665601_4FGL_J1309.4+4305_daily_bin552.fits
.....................!
real 195.76
user 187.84
sys 5.59

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/278270/ft1_filtered_4FGL_J1309.4+4305_daily_bin552.fits scfile=/scratch/kocevski/278270/ft2_4FGL_J1309.4+4305_daily_bin552.fits outfile=/scratch/kocevski/278270/cmap_382406401_382665601_4FGL_J1309.4+4305_daily_bin552.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.59
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278270/ft1_filtered_4FGL_J1309.4+4305_daily_bin552.fits scfile=/scratch/kocevski/278270/ft2_4FGL_J1309.4+4305_daily_bin552.fits outfile=/scratch/kocevski/278270/cmap_HighResolution_382406401_382665601_4FGL_J1309.4+4305_daily_bin552.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.62
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.8616       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5627       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7254       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.8575       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8484       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11520E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.261       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.191       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.856       1.0000         .10000E-03   10000.    
    22 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    94.020       1.0000         .10000E-03   10000.    
    24 'norm      '    10.904       1.0000         .10000E-03   10000.    
    25 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98148       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83425       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=   5323.878     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3227 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.058        8.4326       -.55550E-07    .12425E-04
   2  Prefactor     .10000E-03    5.6057        .65085E-07** at limit **
   3  Prefactor     .10000E-03    6.5243        .83051E-07** at limit **
   4  Prefactor     .10000E-03    17.878       -.56156E-07** at limit **
   5  norm          5.8619        2.7007       -.27528E-07    .11306E-04
   6  Prefactor     9.5636        7.4058        .88708E-06    .38361E-03
   7  norm          .10000E-03    1.9028       -.28313E-07** at limit **
   8  Prefactor     71.845        55.679       -.39451E-06    .23601E-04
   9  Prefactor     9.7238        18.940        .23881E-06    .19480E-03
  10  Prefactor     .10000E-03    9.1502       -.27155E-06** at limit **
  11  norm          4.8569        4.1025        .70680E-07    .35642E-03
  12  norm          .10000E-03    3.9545        .31395E-07** at limit **
  13  norm          5.8444        4.0674        .97798E-06    .18001E-02
  14  norm          .10000E-03    6.2968       -.32833E-06** at limit **
  15  norm          .10000E-03    1.1803        .20140E-07** at limit **
  16  Prefactor     .10000E-03    2.4343       -.20244E-05** at limit **
  17  Prefactor     .10047E-03    11.863       -.48623E-05** at limit **
  18  Prefactor     .10000E-03    22.750       -.96819E-07** at limit **
  19  Prefactor     72.169        60.154        .31779E-05    .23163E-03
  20  Prefactor     19.184        18.037       -.42737E-06    .65312E-05
  21  Prefactor     38.849        35.559       -.28141E-06    .11871E-04
  22  norm          .10000E-03    2.5034       -.18424E-06** at limit **
  23  Prefactor     94.018        86.052       -.67261E-06    .69336E-04
  24  norm          10.904        2.6028       -.58041E-07    .14308E-03
  25  norm          .10000E-03    17.904        .14687E-06** at limit **
  26  Normalizat    .98135        .18435        .34606E-05    .54793E-03
  27  Prefactor     .83434        .21803       -.33492E-05    .42369E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.86185
  Prefactor  = 9.56356
  norm       = 0.0001
  Prefactor  = 71.8447
  Prefactor  = 9.72376
  Prefactor  = 0.0001
  norm       = 4.85685
  norm       = 0.0001
  norm       = 5.84439
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100471
  Prefactor  = 0.0001
  Prefactor  = 72.1685
  Prefactor  = 19.184
  Prefactor  = 38.8492
  norm       = 0.0001
  Prefactor  = 94.018
  norm       = 10.9038
  norm       = 0.0001
  Normalizat = 0.981349
  Prefactor  = 0.834336
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.878     FROM HESSE     STATUS=OK           480 CALLS     3707 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.058        8.4330        .81670E-04   -1.4727    
   2  Prefactor     .10000E-03    5.6089        .16871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.5361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8619        2.7008        .78818E-04   -1.5224    
   6  Prefactor     9.5636        7.4006        .64796E-03   -1.5089    
   7  norm          .10000E-03    1.9227        .98166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     71.845        55.735        .47364E-04   -1.4011    
   9  Prefactor     9.7238        18.901        .12850E-03   -1.5084    
  10  Prefactor     .10000E-03    9.1806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8569        4.1005        .13145E-03   -1.5267    
  12  norm          .10000E-03    3.9547        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8444        4.1040        .11669E-03   -1.5224    
  14  norm          .10000E-03    6.3922        .35574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1836        .77401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5199        .22188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10047E-03    44.510        .39048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     72.169        60.274        .23614E-03   -1.4007    
  20  Prefactor     19.184        18.007        .91427E-04   -1.4832    
  21  Prefactor     38.849        35.617        .64301E-04   -1.4461    
  22  norm          .10000E-03    2.5123        .11237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     94.018        86.639        .41448E-04   -1.3766    
  24  norm          10.904        2.6060        .54242E-04   -1.5047    
  25  norm          .10000E-03    18.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .98135        .20988        .22783E-03   -.93658    
  27  Prefactor     .83434        .24683        .30612E-03   -.98475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15115e-08
Minuit parameter uncertainties:
  1  8.43338
  2  1.73285e-06
  3  3.72672e-06
  4  5.36009e-05
  5  2.70083
  6  7.40134
  7  4.61854e-06
  8  55.7756
  9  18.9122
  10  3.36401e-05
  11  4.10072
  12  1.90305e-07
  13  4.10419
  14  8.67796e-05
  15  7.87773e-07
  16  2.65706e-05
  17  0.00916371
  18  1.77562e-05
  19  60.3248
  20  18.0118
  21  35.6368
  22  5.52296e-06
  23  86.7558
  24  2.60606
  25  2.71547e-05
  26  0.21006
  27  0.24716
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.903e-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:  8.343e-01  2.472e-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:  9.813e-01  2.101e-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: 2.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278270/likelihoodResults_382406401_382665601_4FGL_J1309.4+4305_daily_bin552.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) = 5323.87960172
delta logL = -0.00117723794483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5323.87842442
delta logL = 5.85669113207e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5323.878     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      241 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    138.50        .14237E-01** at limit **
   2  alpha         1.5066        3.2533        .17486        .12541E-06
   3  Normalizat    .98135        .25209E-01    .22783E-03    .44511E-04
   4  Prefactor     .83433        .31613E-01    .30612E-03    .35912E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.50663
  Normalizat = 0.981349
  Prefactor  = 0.834334
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.878     FROM HESSE     STATUS=OK            27 CALLS      268 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3231        .14607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5066        3.1398        .69946E-01   -.40863    
   3  Normalizat    .98135        .19502        .91131E-05   -.93658    
   4  Prefactor     .83433        .24443        .12245E-04   -.98475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47316e-10
Minuit parameter uncertainties:
  1  1.83606e-05
  2  261.145
  3  0.195165
  4  0.244746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278270': 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) = 5323.87842374
delta logL = 7.44782482798e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.836e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.507e+00  2.611e+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:  8.343e-01  2.447e-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:  9.813e-01  1.952e-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/278270/cmap_HighResolution_382406401_382665601_4FGL_J1309.4+4305_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='2.43e-08', time_completed='2021-09-07 01:12:04.120228', job_id='278270', GAL2='0.83', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631002324.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='552' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 278270: <4FGL_J1309.4+4305_daily_bin552> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin552> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:28 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:35 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:55:35 2021
Terminated at Tue Sep  7 01:12:04 2021
Results reported at Tue Sep  7 01:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin552 197.363 43.085 382406401 382665601 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 :                                   778.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            996 sec.

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

