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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin655
RA = 195.757, Dec = 24.5821
tmin = 409104001, tmax = 409363201
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='159130', job_status='RUN', time_executed='2021-09-06 18:08:48.442696', time_epoch_executed='1630976928.44' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159130

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159130/ft1_4FGL_J1303.0+2434_daily_bin655.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159130/ft2_4FGL_J1303.0+2434_daily_bin655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159130/ft1_4FGL_J1303.0+2434_daily_bin655.fits outfile=/scratch/kocevski/159130/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin655.fits ra=195.757 dec=24.5821 rad=12.0 tmin=409104001.0 tmax=409363201.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 5.55
user 5.26
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159130/ft2_4FGL_J1303.0+2434_daily_bin655.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/159130/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin655.fits evtable="EVENTS" outfile="/scratch/kocevski/159130/ft1_filtered_4FGL_J1303.0+2434_daily_bin655.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159130/ft1_filtered_4FGL_J1303.0+2434_daily_bin655.fits" evtable="EVENTS" scfile=/scratch/kocevski/159130/ft2_4FGL_J1303.0+2434_daily_bin655.fits sctable="SC_DATA" outfile=/scratch/kocevski/159130/ltcube_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.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/159130/ft2_4FGL_J1303.0+2434_daily_bin655.fits
.....................!
real 16.51
user 16.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159130/ft1_filtered_4FGL_J1303.0+2434_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/159130/ft2_4FGL_J1303.0+2434_daily_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/159130/ltcube_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.fits outfile=/scratch/kocevski/159130/expmap_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.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/159130/ltcube_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.fits
.....................!
real 191.75
user 186.21
sys 5.08

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/159130/ft1_filtered_4FGL_J1303.0+2434_daily_bin655.fits scfile=/scratch/kocevski/159130/ft2_4FGL_J1303.0+2434_daily_bin655.fits outfile=/scratch/kocevski/159130/cmap_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159130/ft1_filtered_4FGL_J1303.0+2434_daily_bin655.fits scfile=/scratch/kocevski/159130/ft2_4FGL_J1303.0+2434_daily_bin655.fits outfile=/scratch/kocevski/159130/cmap_HighResolution_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/159130/ft1_filtered_4FGL_J1303.0+2434_daily_bin655.fits', '/scratch/kocevski/159130/ft2_4FGL_J1303.0+2434_daily_bin655.fits', expMap='/scratch/kocevski/159130/expmap_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.fits', expCube='/scratch/kocevski/159130/ltcube_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/159130/Model_4FGL_J1303.0+2434_daily_bin655.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/159130/ft1_filtered_4FGL_J1303.0+2434_daily_bin655.fits
Spacecraft file(s): /scratch/kocevski/159130/ft2_4FGL_J1303.0+2434_daily_bin655.fits
Exposure map: /scratch/kocevski/159130/expmap_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.fits
Exposure cube: /scratch/kocevski/159130/ltcube_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/159130/Model_4FGL_J1303.0+2434_daily_bin655.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) = 5176.38892637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5032       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 '    17.525       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6651       1.0000         .10000E-03   10000.    
     6 'norm      '    5.2218       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58617E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.133       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.651       1.0000         .10000E-03   10000.    
    13 'norm      '    7.9343       1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .94805       1.0000         .10000E-03   10000.    
    16 'norm      '    10.095       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7479       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.590       1.0000         .10000E-03   10000.    
    23 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.2590       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1362       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0595       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=   5176.339     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     2826 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5032        1.9288        .28442E-07    .11613E-04
   2  Prefactor     .10000E-03    .82483        .89777E-08** at limit **
   3  Prefactor     .10000E-03    .81369        .13467E-07** at limit **
   4  Prefactor     17.523        9.7754        .53420E-07    .26612E-04
   5  norm          5.6650        .70185        .63913E-08    .27954E-03
   6  norm          5.2218        5.0362        .84755E-07    .55807E-04
   7  Prefactor     .10000E-03    3.0485        .10494E-07** at limit **
   8  Prefactor     .10000E-03    85.487       -.32039E-05** at limit **
   9  Prefactor     .10014E-03    11.345       -.32958E-05** at limit **
  10  norm          .10000E-03    2.6694        .44144E-07** at limit **
  11  Prefactor     12.130        20.300        .19406E-05    .15886E-03
  12  Prefactor     10.641        23.287        .59618E-06    .38047E-04
  13  norm          7.9320        4.9689       -.14014E-07    .18071E-03
  14  norm          .10000E-03    1.6041       -.23528E-07** at limit **
  15  norm          .93218        14.783        .82779E-06    .15060E-03
  16  norm          10.096        14.122        .26265E-06    .16633E-03
  17  norm          .10000E-03    8.6991        .29674E-07** at limit **
  18  Prefactor     .10000E-03    .92585       -.10166E-06** at limit **
  19  Prefactor     .10000E-03    3.9719       -.84890E-07** at limit **
  20  norm          1.7486        4.9618        .62613E-06    .14943E-03
  21  Prefactor     .10000E-03    54.418        .16622E-05** at limit **
  22  Prefactor     33.473        40.663        .34834E-05    .15896E-03
  23  norm          .10000E-03    3.9322        .66190E-07** at limit **
  24  Prefactor     .10000E-03    27.108       -.62146E-06** at limit **
  25  Prefactor     6.2630        30.223        .62910E-05    .15221E-03
  26  Normalizat    1.1367        .22723       -.39105E-06    .19065E-03
  27  Prefactor     1.0590        .23116       -.79127E-06    .10296E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5229
  norm       = 5.66501
  norm       = 5.22179
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100138
  norm       = 0.0001
  Prefactor  = 12.1299
  Prefactor  = 10.6415
  norm       = 7.93203
  norm       = 0.0001
  norm       = 0.932182
  norm       = 10.0958
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74857
  Prefactor  = 0.0001
  Prefactor  = 33.4733
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.26298
  Normalizat = 1.13666
  Prefactor  = 1.05903
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.339     FROM HESSE     STATUS=OK           488 CALLS     3314 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5032        1.9136        .11029E-03   -1.5463    
   2  Prefactor     .10000E-03    .82809        .63780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .82086        .63363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.523        9.7779        .95673E-04   -1.4871    
   5  norm          5.6650        .70351        .20195E-04   -1.5232    
   6  norm          5.2218        5.0316        .15094E-03   -1.5251    
   7  Prefactor     .10000E-03    3.0500        .12268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    85.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10014E-03    28.927        .35848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6883        .11470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.130        20.404        .57503E-03   -1.5011    
  12  Prefactor     10.641        23.562        .12277E-03   -1.5055    
  13  norm          7.9320        4.9621        .12241E-03   -1.5145    
  14  norm          .10000E-03    1.6046        .88991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .93218        18.990        .31018E-02   -1.5515    
  16  norm          10.096        15.823        .12611E-03   -1.5072    
  17  norm          .10000E-03    8.7029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .92942        .67640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9747        .14005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7486        4.9229        .26090E-03   -1.5443    
  21  Prefactor     .10000E-03    54.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.473        40.618        .34571E-03   -1.4550    
  23  norm          .10000E-03    3.9451        .13930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.2630        31.270        .80226E-03   -1.5207    
  26  Normalizat    1.1367        .28004        .27586E-03   -.88583    
  27  Prefactor     1.0590        .28395        .30249E-03   -.90787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59915e-09
Minuit parameter uncertainties:
  1  1.91367
  2  4.79525e-07
  3  7.89808e-07
  4  9.77878
  5  0.703509
  6  5.03202
  7  1.09878e-06
  8  0.00064826
  9  0.00400019
  10  7.92402e-08
  11  20.4156
  12  23.5825
  13  4.96233
  14  1.31934e-06
  15  8.41736
  16  15.8298
  17  2.30321e-06
  18  4.0745e-06
  19  7.52032e-06
  20  4.92402
  21  0.000289424
  22  40.6512
  23  3.04663e-06
  24  0.000167516
  25  28.012
  26  0.280406
  27  0.284358
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  7.932e+00  4.962e+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:  1.059e+00  2.844e-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.137e+00  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.52
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 5.38e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 1.75e-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) = 5176.17508772
delta logL = 0.163494062873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5176.16986012
delta logL = 0.168721656885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1455       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4232       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0760       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5176.170     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1448        4.8962        .10684E-03    .28479E-02
   2  alpha         2.4230        .62541        .11966E-01    .23532E-03
   3  Normalizat    1.1093        .26917        .27869E-03   -.20384E-03
   4  Prefactor     1.0758        .28235        .30034E-03   -.26513E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.14477
  alpha      = 2.42297
  Normalizat = 1.10927
  Prefactor  = 1.07578
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.170     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1448        4.7805        .21369E-04   -1.5173    
   2  alpha         2.4230        .61027        .47865E-03   -.30817E-01
   3  Normalizat    1.1093        .26920        .55738E-04   -.89455    
   4  Prefactor     1.0758        .28249        .60067E-04   -.90244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17507e-09
Minuit parameter uncertainties:
  1  4.78075
  2  0.616508
  3  0.26953
  4  0.282884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159130': 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) = 5176.16985962
delta logL = 0.16872215925

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  7.145e+00  4.781e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.423e+00  6.165e-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:  1.076e+00  2.829e-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.109e+00  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.82
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.42 +/- 0.62
Photon Flux (Free Index): 7.68e-08 +/- 5.98e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.46e-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/159130/cmap_HighResolution_409104001_409363201_4FGL_J1303.0+2434_daily_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.38e-08', energy_flux2='2.48e-05', photon_flux_error='3.36e-08', dlogl='1.69e-01', energy_flux='2.79e-05', photon_flux2='7.68e-08', job_status='DONE', time_completed='2021-09-06 18:18:58.298561', photon_index_error2='0.62', photon_index2='2.42', ts='7.52', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='1.14', time_epoch_completed='1630977538.3', return_code='0', job_id='159130', GAL2='1.08', EG2='1.11', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='5.98e-08', ts2='7.82', photon_index='2.07' WHERE bin_id='655' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:18:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 159130: <4FGL_J1303.0+2434_daily_bin655> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin655> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:05:24 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:05:31 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:05:31 2021
Terminated at Mon Sep  6 18:18:59 2021
Results reported at Mon Sep  6 18:18:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin655 195.757 24.5821 409104001 409363201 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 :                                   608.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            815 sec.

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

