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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin50
RA = 197.363, Dec = 43.085
tmin = 252288001, tmax = 252547201
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='274119', job_status='RUN', time_executed='2021-09-07 00:42:33.232284', time_epoch_executed='1631000553.23' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274119

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274119/ft1_4FGL_J1309.4+4305_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274119/ft2_4FGL_J1309.4+4305_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274119/ft1_4FGL_J1309.4+4305_daily_bin50.fits outfile=/scratch/kocevski/274119/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin50.fits ra=197.363 dec=43.085 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.56
user 2.37
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274119/ft1_filtered_4FGL_J1309.4+4305_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/274119/ft2_4FGL_J1309.4+4305_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/274119/ltcube_252288001_252547201_4FGL_J1309.4+4305_daily_bin50.fits outfile=/scratch/kocevski/274119/expmap_252288001_252547201_4FGL_J1309.4+4305_daily_bin50.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/274119/ltcube_252288001_252547201_4FGL_J1309.4+4305_daily_bin50.fits
.....................!
real 191.29
user 186.06
sys 4.74

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/274119/ft1_filtered_4FGL_J1309.4+4305_daily_bin50.fits scfile=/scratch/kocevski/274119/ft2_4FGL_J1309.4+4305_daily_bin50.fits outfile=/scratch/kocevski/274119/cmap_252288001_252547201_4FGL_J1309.4+4305_daily_bin50.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274119/ft1_filtered_4FGL_J1309.4+4305_daily_bin50.fits scfile=/scratch/kocevski/274119/ft2_4FGL_J1309.4+4305_daily_bin50.fits outfile=/scratch/kocevski/274119/cmap_HighResolution_252288001_252547201_4FGL_J1309.4+4305_daily_bin50.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.794       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9125       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6741       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5217       1.0000         .10000E-03   10000.    
    12 'norm      '    15.461       1.0000         .10000E-03   10000.    
    13 'norm      '    .51329       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2776       1.0000         .10000E-03   10000.    
    15 'norm      '    .12757E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17367E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8009       1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.047       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3301       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.9383       1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94478       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0612       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=   6009.031     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3289 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8367       -.29621E-06** at limit **
   2  Prefactor     44.172        21.796        .27848E-05    .32285E-04
   3  Prefactor     .10000E-03    5.2015        .91371E-07** at limit **
   4  Prefactor     16.794        13.348       -.12198E-06    .67913E-05
   5  norm          2.9124        2.0775       -.42327E-07   -.12743E-03
   6  Prefactor     1.6742        3.1334       -.16168E-06   -.34937E-03
   7  norm          .10000E-03    1.0996        .50131E-07** at limit **
   8  Prefactor     .10000E-03    24.906        .16495E-04** at limit **
   9  Prefactor     .10000E-03    7.6278        .86168E-05** at limit **
  10  Prefactor     .10000E-03    9.4996       -.47416E-05** at limit **
  11  norm          2.5231        2.7025        .95902E-07    .17903E-03
  12  norm          15.461        10.768       -.14374E-06    .26958E-04
  13  norm          .50476        4.6823       -.46969E-06   -.51846E-03
  14  norm          6.2873        6.0702        .41262E-07    .10472E-03
  15  norm          .10004E-03    2.0389       -.17351E-05** at limit **
  16  Prefactor     .10001E-03    1.6225        .20237E-06** at limit **
  17  Prefactor     6.8339        11.917       -.22973E-05   -.72812E-04
  18  Prefactor     55.054        36.744        .32751E-05    .27788E-03
  19  Prefactor     .10000E-03    22.576       -.19632E-04** at limit **
  20  Prefactor     .10000E-03    8.1313       -.29063E-05** at limit **
  21  Prefactor     .10000E-03    16.780        .21992E-05** at limit **
  22  norm          1.3297        2.4442       -.28524E-06   -.40906E-03
  23  Prefactor     .10000E-03    161.38       -.11393E-04** at limit **
  24  norm          1.9380        1.3763       -.11466E-07   -.11118E-03
  25  norm          .10000E-03    10.172        .67552E-05** at limit **
  26  Normalizat    .94486        .16005       -.63676E-08    .24455E-03
  27  Prefactor     1.0613        .19859       -.10402E-06    .19076E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 44.1724
  Prefactor  = 0.0001
  Prefactor  = 16.7937
  norm       = 2.9124
  Prefactor  = 1.6742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.5231
  norm       = 15.461
  norm       = 0.504762
  norm       = 6.28728
  norm       = 0.00010004
  Prefactor  = 0.000100011
  Prefactor  = 6.83389
  Prefactor  = 55.0538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32969
  Prefactor  = 0.0001
  norm       = 1.938
  norm       = 0.0001
  Normalizat = 0.944857
  Prefactor  = 1.06127
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.031     FROM HESSE     STATUS=OK           488 CALLS     3777 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8617        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.172        21.769        .60316E-04   -1.4378    
   3  Prefactor     .10000E-03    5.2055        .17266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.794        13.345        .97734E-04   -1.4888    
   5  norm          2.9124        2.0734        .91631E-04   -1.5367    
   6  Prefactor     1.6742        3.0971        .18213E-03   -1.5449    
   7  norm          .10000E-03    1.1020        .79373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5231        2.6985        .12790E-03   -1.5390    
  12  norm          15.461        10.769        .10186E-03   -1.4921    
  13  norm          .50476        10.977        .23471E-02   -1.5566    
  14  norm          6.2873        6.7281        .13870E-03   -1.5206    
  15  norm          .10004E-03    8.2820        .20792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    6.3259        .17645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8339        11.144        .15385E-03   -1.5185    
  18  Prefactor     55.054        36.133        .54064E-04   -1.4223    
  19  Prefactor     .10000E-03    22.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3297        2.4007        .15951E-03   -1.5477    
  23  Prefactor     .10000E-03    162.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.9380        1.3746        .73351E-04   -1.5430    
  25  norm          .10000E-03    10.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .94486        .19273        .22543E-03   -.94901    
  27  Prefactor     1.0613        .23966        .27103E-03   -.90714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61186e-09
Minuit parameter uncertainties:
  1  2.96722e-05
  2  21.7728
  3  4.36892e-06
  4  13.3476
  5  2.07346
  6  3.09739
  7  7.15809e-07
  8  9.99678e-06
  9  5.07614e-06
  10  2.38079e-05
  11  2.69861
  12  10.7705
  13  4.70833
  14  6.72895
  15  0.00115594
  16  0.000527059
  17  11.1473
  18  36.147
  19  2.97834e-05
  20  4.59173e-06
  21  5.3696e-05
  22  2.40085
  23  0.000124996
  24  1.37466
  25  1.17193e-05
  26  0.192875
  27  0.239903
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.546e+01  1.077e+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.061e+00  2.399e-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.449e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.14
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.62e-08 +/- 1.13e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.24e-05

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) = 6008.38637939
delta logL = 0.644980511444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6008.34345304
delta logL = 0.687906854359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.504       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1307       1.0000          .0000       5.0000    
     3 'Normalizat'    .95031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0608       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=   6008.343     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.504        8.9516        .28320E-02   -.10070E-02
   2  alpha         1.1304        .40908        .35351       -.26862E-04
   3  Normalizat    .95026        .15529        .45541E-01    .19793E-04
   4  Prefactor     1.0610        .19757        .61286E-01    .16848E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5041
  alpha      = 1.13036
  Normalizat = 0.950263
  Prefactor  = 1.06104
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.343     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.504        10.519        .11328E-03   -1.5001    
   2  alpha         1.1304        .50621        .14796E-01   -.57980    
   3  Normalizat    .95026        .18754        .22484E-03   -.94716    
   4  Prefactor     1.0610        .23852        .27105E-03   -.90722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37198e-09
Minuit parameter uncertainties:
  1  10.5203
  2  0.51129
  3  0.187665
  4  0.238758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274119': 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) = 6008.34345119
delta logL = 0.687908706887

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.250e+01  1.052e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.130e+00  5.113e-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.061e+00  2.388e-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.503e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.52
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.13 +/- 0.51
Photon Flux (Free Index): 8.46e-09 +/- 7.03e-09
Energy Flux (Free Index): 4.99e-05 +/- 5.72e-05

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/274119/cmap_HighResolution_252288001_252547201_4FGL_J1309.4+4305_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-08', energy_flux2='4.99e-05', photon_flux_error='1.13e-08', dlogl='6.88e-01', energy_flux='1.78e-05', photon_flux2='8.46e-09', job_status='DONE', time_completed='2021-09-07 00:54:23.338953', photon_index_error2='0.51', photon_index2='1.13', ts='13.14', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.72e-05', EG='0.94', time_epoch_completed='1631001263.34', return_code='0', job_id='274119', GAL2='1.06', EG2='0.95', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='7.03e-09', ts2='14.52', photon_index='1.77' WHERE bin_id='50' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:54:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 274119: <4FGL_J1309.4+4305_daily_bin50> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin50> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 00:40:45 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:41:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:41:23 2021
Terminated at Tue Sep  7 00:54:23 2021
Results reported at Tue Sep  7 00:54:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin50 197.363 43.085 252288001 252547201 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            818 sec.

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

