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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1017
RA = 195.757, Dec = 24.5821
tmin = 502934401, tmax = 503193601
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='161984', job_status='RUN', time_executed='2021-09-06 18:16:08.411121', time_epoch_executed='1630977368.41' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161984

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161984/ft1_4FGL_J1303.0+2434_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161984/ft1_4FGL_J1303.0+2434_daily_bin1017.fits outfile=/scratch/kocevski/161984/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1017.fits ra=195.757 dec=24.5821 rad=12.0 tmin=502934401.0 tmax=503193601.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 3.60
user 3.36
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.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/161984/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/161984/ft1_filtered_4FGL_J1303.0+2434_daily_bin1017.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/161984/ft1_filtered_4FGL_J1303.0+2434_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/161984/ltcube_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.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/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits
.....................!
real 16.18
user 15.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161984/ft1_filtered_4FGL_J1303.0+2434_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/161984/ltcube_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.fits outfile=/scratch/kocevski/161984/expmap_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.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/161984/ltcube_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.fits
.....................!
real 191.68
user 186.65
sys 4.37

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1303.0+2434 @ 195.757 24.5821

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/161984/ft1_filtered_4FGL_J1303.0+2434_daily_bin1017.fits scfile=/scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits outfile=/scratch/kocevski/161984/cmap_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.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=195.757 yref=24.5821 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161984/ft1_filtered_4FGL_J1303.0+2434_daily_bin1017.fits scfile=/scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits outfile=/scratch/kocevski/161984/cmap_HighResolution_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.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=195.757 yref=24.5821 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161984/ft1_filtered_4FGL_J1303.0+2434_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161984/Model_4FGL_J1303.0+2434_daily_bin1017.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/161984/ft1_filtered_4FGL_J1303.0+2434_daily_bin1017.fits.....................!
real 49.26
user 47.97
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/161984/ft1_filtered_4FGL_J1303.0+2434_daily_bin1017.fits', '/scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits', expMap='/scratch/kocevski/161984/expmap_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.fits', expCube='/scratch/kocevski/161984/ltcube_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/161984/Model_4FGL_J1303.0+2434_daily_bin1017.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1303.0+2434'

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/161984/ft1_filtered_4FGL_J1303.0+2434_daily_bin1017.fits
Spacecraft file(s): /scratch/kocevski/161984/ft2_4FGL_J1303.0+2434_daily_bin1017.fits
Exposure map: /scratch/kocevski/161984/expmap_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.fits
Exposure cube: /scratch/kocevski/161984/ltcube_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/161984/Model_4FGL_J1303.0+2434_daily_bin1017.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) = 5644.4471878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.533       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2973       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5042       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8118       1.0000         .10000E-03   10000.    
     5 'norm      '    .27853       1.0000         .10000E-03   10000.    
     6 'norm      '    7.5485       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.216       1.0000         .10000E-03   10000.    
    10 'norm      '    7.5165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.652       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.949       1.0000         .10000E-03   10000.    
    14 'norm      '    .10396E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5893       1.0000         .10000E-03   10000.    
    16 'norm      '    .34786E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.4840       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4086       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.8522       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.781       1.0000         .10000E-03   10000.    
    22 'Prefactor '    65.656       1.0000         .10000E-03   10000.    
    23 'norm      '    32.853       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.8398       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.7540       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0037       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62787       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5644.446     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3242 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.533        5.1049       -.16749E-07    .84494E-04
   2  Prefactor     2.2972        2.0462       -.39031E-08   -.62085E-04
   3  Prefactor     1.5046        1.8288       -.21059E-06   -.37209E-03
   4  Prefactor     1.8120        4.3407        .15779E-06   -.52410E-03
   5  norm          .27851        .17199       -.26867E-07   -.59527E-04
   6  norm          7.5473        5.1861        .49381E-07   -.54056E-04
   7  Prefactor     .10000E-03    6.4831       -.88761E-06** at limit **
   8  Prefactor     .10000E-03    27.127       -.37361E-06** at limit **
   9  Prefactor     12.215        8.3774       -.28343E-06   -.95874E-05
  10  norm          7.5157        4.1063        .66145E-06   -.29870E-04
  11  Prefactor     25.649        16.138       -.18758E-05    .70320E-05
  12  Prefactor     .10000E-03    4.4136        .50892E-06** at limit **
  13  norm          10.948        5.0272       -.13874E-06   -.10004E-04
  14  norm          .10000E-03    3.1285        .65458E-07** at limit **
  15  norm          2.5922        3.1705       -.25862E-06   -.35394E-03
  16  norm          .10000E-03    6.4400        .27507E-06** at limit **
  17  norm          9.4843        13.501       -.39780E-07   -.89019E-05
  18  Prefactor     6.4084        3.5291        .45450E-07   -.94948E-04
  19  Prefactor     .10000E-03    4.1417        .15451E-06** at limit **
  20  norm          8.8519        7.7133       -.91128E-07   -.69617E-04
  21  Prefactor     29.781        36.069       -.54577E-06    .21737E-05
  22  Prefactor     65.655        59.886       -.11009E-05    .13718E-05
  23  norm          32.851        12.719       -.41719E-06    .22116E-04
  24  Prefactor     9.8321        21.406       -.11761E-04   -.17834E-04
  25  Prefactor     7.7518        17.197        .75534E-07    .55065E-05
  26  Normalizat    1.0040        .18591        .28927E-05   -.10766E-03
  27  Prefactor     .62767        .18624       -.10907E-05    .84864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.5327
  Prefactor  = 2.29723
  Prefactor  = 1.50456
  Prefactor  = 1.81196
  norm       = 0.278506
  norm       = 7.54726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2154
  norm       = 7.51574
  Prefactor  = 25.6492
  Prefactor  = 0.0001
  norm       = 10.9482
  norm       = 0.0001
  norm       = 2.59215
  norm       = 0.0001
  norm       = 9.48432
  Prefactor  = 6.40837
  Prefactor  = 0.0001
  norm       = 8.85193
  Prefactor  = 29.7808
  Prefactor  = 65.655
  norm       = 32.8513
  Prefactor  = 9.83209
  Prefactor  = 7.75179
  Normalizat = 1.00395
  Prefactor  = 0.627668
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.446     FROM HESSE     STATUS=OK           504 CALLS     3746 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.533        5.1043        .78319E-04   -1.4801    
   2  Prefactor     2.2972        2.0445        .95085E-04   -1.5405    
   3  Prefactor     1.5046        1.8090        .10631E-03   -1.5463    
   4  Prefactor     1.8120        4.2868        .22420E-03   -1.5439    
   5  norm          .27851        .17301        .23515E-04   -1.5602    
   6  norm          7.5473        5.1753        .12919E-03   -1.5158    
   7  Prefactor     .10000E-03    6.5409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.215        8.3833        .11461E-03   -1.5009    
  10  norm          7.5157        4.1059        .10848E-03   -1.5160    
  11  Prefactor     25.649        16.153        .79094E-04   -1.4695    
  12  Prefactor     .10000E-03    4.4128        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.948        5.0328        .10845E-03   -1.5046    
  14  norm          .10000E-03    6.4847        .25575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5922        2.7005        .12013E-03   -1.5386    
  16  norm          .10000E-03    16.679        .31287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.4843        13.493        .13013E-03   -1.5092    
  18  Prefactor     6.4084        3.4980        .97163E-04   -1.5202    
  19  Prefactor     .10000E-03    4.1458        .14932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.8519        7.7092        .13472E-03   -1.5113    
  21  Prefactor     29.781        36.095        .73417E-04   -1.4616    
  22  Prefactor     65.655        59.901        .49530E-04   -1.4086    
  23  norm          32.851        12.721        .69910E-04   -1.4561    
  24  Prefactor     9.8321        21.415        .12775E-03   -1.5081    
  25  Prefactor     7.7518        17.151        .14401E-03   -1.5151    
  26  Normalizat    1.0040        .21796        .23316E-03   -.92898    
  27  Prefactor     .62767        .21734        .30578E-03   -1.0643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26373e-10
Minuit parameter uncertainties:
  1  5.10439
  2  2.04455
  3  1.80906
  4  4.28757
  5  0.173006
  6  5.17566
  7  1.11895e-05
  8  3.10709e-05
  9  8.38412
  10  4.1061
  11  16.1561
  12  4.36828e-06
  13  5.03304
  14  9.69214e-05
  15  2.70065
  16  0.000123096
  17  13.4973
  18  3.49813
  19  9.06615e-06
  20  7.71002
  21  36.1217
  22  59.9564
  23  12.722
  24  21.4316
  25  17.1617
  26  0.218155
  27  0.217635
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.095e+01  5.033e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  6.277e-01  2.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.004e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.31
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 3.85e-05 +/- 1.77e-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) = 5644.09251891
delta logL = 0.353067076916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5644.06144929
delta logL = 0.384136695775

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5644.061     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9809        4.9764        .31709E-02    .57236E-02
   2  alpha         1.6265        .37668        .29267       -.39554E-04
   3  Normalizat    1.0418        .17647        .41136E-01    .78505E-05
   4  Prefactor     .60545        .18595        .70271E-01    .23073E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.98091
  alpha      = 1.62648
  Normalizat = 1.04183
  Prefactor  = 0.605454
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.061     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9809        5.8234        .11399E-03   -1.5076    
   2  alpha         1.6265        .48847        .11590E-01   -.35694    
   3  Normalizat    1.0418        .20477        .22950E-03   -.91642    
   4  Prefactor     .60545        .21444        .31103E-03   -1.0736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09255e-08
Minuit parameter uncertainties:
  1  5.82376
  2  0.49208
  3  0.204921
  4  0.214728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161984': 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) = 5644.06144927
delta logL = 0.384136716232

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  9.981e+00  5.824e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.626e+00  4.921e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  6.055e-01  2.147e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.042e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.98
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.63 +/- 0.49
Photon Flux (Free Index): 4.45e-08 +/- 3.63e-08
Energy Flux (Free Index): 5.75e-05 +/- 4.34e-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/161984/cmap_HighResolution_502934401_503193601_4FGL_J1303.0+2434_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='5.75e-05', photon_flux_error='3.41e-08', dlogl='3.84e-01', energy_flux='3.85e-05', photon_flux2='4.45e-08', job_status='DONE', time_completed='2021-09-06 18:26:50.871237', photon_index_error2='0.49', photon_index2='1.63', ts='13.31', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='4.34e-05', EG='1.00', time_epoch_completed='1630978010.87', return_code='0', job_id='161984', GAL2='0.61', EG2='1.04', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='3.63e-08', ts2='13.98', photon_index='2.07' WHERE bin_id='1017' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 161984: <4FGL_J1303.0+2434_daily_bin1017> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1017> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:15:27 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:15:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 18:15:51 2021
Terminated at Mon Sep  6 18:26:51 2021
Results reported at Mon Sep  6 18:26:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1017 195.757 24.5821 502934401 503193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1303.0+2434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            684 sec.

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

