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


Performing analysis on: 4FGL_J1307.6-4259_daily_bin635
RA = 196.91, Dec = -42.995
tmin = 403920001, tmax = 404179201
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='221730', job_status='RUN', time_executed='2021-09-06 21:33:55.391259', time_epoch_executed='1630989235.39' WHERE source_name='4FGL J1307.6-4259' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221730

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221730/ft1_4FGL_J1307.6-4259_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221730/ft1_4FGL_J1307.6-4259_daily_bin635.fits outfile=/scratch/kocevski/221730/ft1_filteredMKT_4FGL_J1307.6-4259_daily_bin635.fits ra=196.91 dec=-42.995 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.09
user 9.74
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.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/221730/ft1_filteredMKT_4FGL_J1307.6-4259_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/221730/ft1_filtered_4FGL_J1307.6-4259_daily_bin635.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.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221730/ft1_filtered_4FGL_J1307.6-4259_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/221730/ltcube_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.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/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits
.....................!
real 12.86
user 12.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221730/ft1_filtered_4FGL_J1307.6-4259_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/221730/ltcube_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.fits outfile=/scratch/kocevski/221730/expmap_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.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/221730/ltcube_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.fits
.....................!
real 192.63
user 187.50
sys 4.53

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 272 point sources and 6 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1307.6-4259 @ 196.91 -42.995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/221730/ft1_filtered_4FGL_J1307.6-4259_daily_bin635.fits scfile=/scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits outfile=/scratch/kocevski/221730/cmap_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.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=196.91 yref=-42.995 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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221730/ft1_filtered_4FGL_J1307.6-4259_daily_bin635.fits scfile=/scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits outfile=/scratch/kocevski/221730/cmap_HighResolution_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.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=196.91 yref=-42.995 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.58
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221730/ft1_filtered_4FGL_J1307.6-4259_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221730/Model_4FGL_J1307.6-4259_daily_bin635.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 CenA Lobes
adding source EG_v02
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/scratch/kocevski/221730/ft1_filtered_4FGL_J1307.6-4259_daily_bin635.fits.......................!
real 34.11
user 32.74
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/221730/ft1_filtered_4FGL_J1307.6-4259_daily_bin635.fits', '/scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits', expMap='/scratch/kocevski/221730/expmap_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.fits', expCube='/scratch/kocevski/221730/ltcube_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/221730/Model_4FGL_J1307.6-4259_daily_bin635.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1307.6-4259'

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  2.721e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/221730/ft1_filtered_4FGL_J1307.6-4259_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/221730/ft2_4FGL_J1307.6-4259_daily_bin635.fits
Exposure map: /scratch/kocevski/221730/expmap_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.fits
Exposure cube: /scratch/kocevski/221730/ltcube_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/221730/Model_4FGL_J1307.6-4259_daily_bin635.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) = 1163.22614288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.276       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14689E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2565       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.2246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6186       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.052       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.423       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    158.84       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20360E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67256E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0895       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9650E+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=   1163.148     FROM MIGRAD    STATUS=CONVERGED    952 CALLS     3179 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.276        47.756        .57126E-04    .25951E-04
   2  Prefactor     16.341        43.290        .99135E-04   -.77821E-04
   3  Prefactor     .10000E-03    412.14        .18142E-02** at limit **
   4  Prefactor     .10000E-03    69.136        .18690E-02** at limit **
   5  Prefactor     .10000E-03    85.190        .18142E-02** at limit **
   6  Prefactor     .10000E-03    20.179        .14957E-02** at limit **
   7  Prefactor     5.2580        35.385        .17532E-03    .99702E-05
   8  Prefactor     .10000E-03    177.71        .18142E-02** at limit **
   9  norm          9.2226        21.271        .13196E-03    .10504E-03
  10  Prefactor     8.6213        27.087        .68271E-03   -.13530E-05
  11  Prefactor     .10000E-03    21.832        .15558E-02** at limit **
  12  norm          .10000E-03    23.177        .16043E-02** at limit **
  13  Prefactor     17.053        21.481        .96990E-04    .74842E-04
  14  norm          .10000E-03    9.1796        .10090E-02** at limit **
  15  norm          13.423        20.742        .54664E-03    .55680E-04
  16  norm          .10000E-03    5.8140        .80320E-03** at limit **
  17  Prefactor     158.97        791.36        .15997E-03    .76434E-05
  18  Prefactor     .10000E-03    103.26        .18142E-02** at limit **
  19  norm          .10000E-03    45.343        .18142E-02** at limit **
  20  Prefactor     .10000E-03    65.255        .18142E-02** at limit **
  21  Prefactor     .10000E-03    1476.8        .18142E-02** at limit **
  22  Prefactor     .10000E-03    186.30        .18142E-02** at limit **
  23  Normalizat    .67314E-01    6.6629        .12655E-01    .40555E-04
  24  Prefactor     1.0895        .30423        .13080E-03    .37606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.2757
  Prefactor  = 16.3408
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.25805
  Prefactor  = 0.0001
  norm       = 9.2226
  Prefactor  = 8.62131
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0532
  norm       = 0.0001
  norm       = 13.4232
  norm       = 0.0001
  Prefactor  = 158.97
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.067314
  Prefactor  = 1.08946
 **********
 **   18 **HESSE 
 **********

 FCN=   1163.148     FROM HESSE     STATUS=OK           377 CALLS     3556 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.276        47.721        .11425E-04   -1.4303    
   2  Prefactor     16.341        42.966        .19827E-04   -1.4899    
   3  Prefactor     .10000E-03    412.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    69.141        .37380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    85.190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.179        .29914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2580        35.346        .70126E-05   -1.5249    
   8  Prefactor     .10000E-03    177.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.2226        20.893        .52782E-05   -1.5100    
  10  Prefactor     8.6213        26.973        .27308E-04   -1.5121    
  11  Prefactor     .10000E-03    21.833        .31117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    23.177        .32086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.053        21.463        .38796E-05   -1.4882    
  14  norm          .10000E-03    9.1797        .20180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.423        20.493        .21866E-04   -1.4975    
  16  norm          .10000E-03    5.8140        .16064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     158.97        791.24        .31994E-04   -1.3180    
  18  Prefactor     .10000E-03    103.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    45.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    65.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1476.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    186.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .67314E-01    6.1618        .50620E-03   -1.4192    
  24  Prefactor     1.0895        .25903        .26161E-04   -.89804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98922e-10
Minuit parameter uncertainties:
  1  47.7584
  2  43.0473
  3  0.00025455
  4  0.000516345
  5  2.46864e-05
  6  3.20605e-05
  7  27.2883
  8  0.000100375
  9  20.9093
  10  27.0111
  11  2.63828e-05
  12  7.13901e-06
  13  21.4724
  14  2.78626e-06
  15  20.504
  16  1.47594e-06
  17  725.237
  18  2.01103e-05
  19  6.82271e-06
  20  1.27496e-05
  21  0.00193125
  22  6.88507e-05
  23  0.88579
  24  0.259326
Done.

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

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  1.705e+01  2.147e+01  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
956    Prefactor:  1.089e+00  2.593e-01  0.000e+00  1.000e+01 ( 1.000e+00)
957        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
958        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
944   Normalization:  6.731e-02  8.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 196.910 -42.995
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 9.56e-08 +/- 1.20e-07
Energy Flux (Fixed Index): 7.72e-05 +/- 9.72e-05

TS (Fixed Index): 1.21
Ra Dec: 196.910 -42.995
Photon Flux Upper Limit: 4.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221730/likelihoodResults_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.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) = 1163.12646768
delta logL = 0.0215150327035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1163.10929088
delta logL = 0.0386918367697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.561       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7141       1.0000          .0000       10.000    
     3 'Normalizat'    .92543E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0842       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9650E+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=   1163.109     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      258 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.579        33.006        .84329E-04    .49544E-05
   2  Index         1.7155        .76687        .50300E-02    .34874E-05
   3  Normalizat    .94387E-01    2.2080        .11618E-01    .58084E-05
   4  Prefactor     1.0838        .27740        .13109E-03    .86721E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5795
  Index      = 1.71547
  Normalizat = 0.0943873
  Prefactor  = 1.08382
 **********
 **   18 **HESSE 
 **********

 FCN=   1163.109     FROM HESSE     STATUS=OK            27 CALLS      285 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.579        32.419        .33732E-05   -1.4757    
   2  Index         1.7155        .75215        .20120E-03   -.71671    
   3  Normalizat    .94387E-01    1.8461        .46474E-03   -1.3867    
   4  Prefactor     1.0838        .25202        .52438E-05   -.89985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50019e-12
Minuit parameter uncertainties:
  1  32.4439
  2  0.757229
  3  0.819993
  4  0.252294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221730': 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) = 1163.10928373
delta logL = 0.0386989843323

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  2.258e+01  3.244e+01  1.000e-04  1.000e+04 ( 1.000e-13)
402        Index:  1.715e+00  7.572e-01  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
956    Prefactor:  1.084e+00  2.523e-01  0.000e+00  1.000e+01 ( 1.000e+00)
957        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
958        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
944   Normalization:  9.439e-02  8.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 196.910 -42.995
Photon Index (Free Index): 1.72 +/- 0.76
Photon Flux (Free Index): 8.02e-08 +/- 1.16e-07
Energy Flux (Free Index): 1.25e-04 +/- 2.61e-04

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/221730/cmap_HighResolution_403920001_404179201_4FGL_J1307.6-4259_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-02', comment='SUCCESS', photon_flux='9.56e-08', energy_flux2='1.25e-04', photon_flux_error='1.20e-07', dlogl='3.87e-02', energy_flux='7.72e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2021-09-06 21:42:46.418923', photon_index_error2='0.76', photon_index2='1.72', ts='1.21', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='4.50e-07', energy_flux_error2='2.61e-04', EG='0.07', time_epoch_completed='1630989766.42', return_code='0', job_id='221730', GAL2='1.08', EG2='0.09', return_code2='0', energy_flux_error='9.72e-05', photon_flux_error2='1.16e-07', ts2='1.29', photon_index='1.94' WHERE bin_id='635' AND source_name='4FGL J1307.6-4259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:42:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 221730: <4FGL_J1307.6-4259_daily_bin635> in cluster <slac> Done

Job <4FGL_J1307.6-4259_daily_bin635> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 21:30:29 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:30:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 21:30:59 2021
Terminated at Mon Sep  6 21:42:47 2021
Results reported at Mon Sep  6 21:42:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1307.6-4259_daily_bin635 196.91 -42.995 403920001 404179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1307.6-4259 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   524.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             235.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            738 sec.

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

