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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1530
RA = 195.757, Dec = 24.5821
tmin = 635904001, tmax = 636163201
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='164942', job_status='RUN', time_executed='2021-09-06 18:29:29.569773', time_epoch_executed='1630978169.57' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164942/ft1_4FGL_J1303.0+2434_daily_bin1530.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164942/ft2_4FGL_J1303.0+2434_daily_bin1530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164942/ft1_4FGL_J1303.0+2434_daily_bin1530.fits outfile=/scratch/kocevski/164942/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1530.fits ra=195.757 dec=24.5821 rad=12.0 tmin=635904001.0 tmax=636163201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.28
user 4.01
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164942/ft1_filtered_4FGL_J1303.0+2434_daily_bin1530.fits" evtable="EVENTS" scfile=/scratch/kocevski/164942/ft2_4FGL_J1303.0+2434_daily_bin1530.fits sctable="SC_DATA" outfile=/scratch/kocevski/164942/ltcube_635904001_636163201_4FGL_J1303.0+2434_daily_bin1530.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/164942/ft2_4FGL_J1303.0+2434_daily_bin1530.fits
.....................!
real 15.58
user 15.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164942/ft1_filtered_4FGL_J1303.0+2434_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/164942/ft2_4FGL_J1303.0+2434_daily_bin1530.fits sctable="SC_DATA" expcube=/scratch/kocevski/164942/ltcube_635904001_636163201_4FGL_J1303.0+2434_daily_bin1530.fits outfile=/scratch/kocevski/164942/expmap_635904001_636163201_4FGL_J1303.0+2434_daily_bin1530.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/164942/ltcube_635904001_636163201_4FGL_J1303.0+2434_daily_bin1530.fits
.....................!
real 191.99
user 186.68
sys 4.58

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/164942/ft1_filtered_4FGL_J1303.0+2434_daily_bin1530.fits scfile=/scratch/kocevski/164942/ft2_4FGL_J1303.0+2434_daily_bin1530.fits outfile=/scratch/kocevski/164942/cmap_635904001_636163201_4FGL_J1303.0+2434_daily_bin1530.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164942/ft1_filtered_4FGL_J1303.0+2434_daily_bin1530.fits scfile=/scratch/kocevski/164942/ft2_4FGL_J1303.0+2434_daily_bin1530.fits outfile=/scratch/kocevski/164942/cmap_HighResolution_635904001_636163201_4FGL_J1303.0+2434_daily_bin1530.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.128       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2028       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.9283       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.246       1.0000         .10000E-03   10000.    
     8 'Prefactor '    85.309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7355       1.0000         .10000E-03   10000.    
    10 'norm      '    .54263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.553       1.0000         .10000E-03   10000.    
    13 'norm      '    8.8881       1.0000         .10000E-03   10000.    
    14 'norm      '    13.870       1.0000         .10000E-03   10000.    
    15 'norm      '    20.249       1.0000         .10000E-03   10000.    
    16 'norm      '    .81861       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.279       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.193       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2167       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.816       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3806       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .48698       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=   5981.345     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3292 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6206        .41834E-07** at limit **
   2  Prefactor     13.128        3.7406       -.93330E-07   -.15894E-03
   3  Prefactor     .10000E-03    1.3415       -.17386E-07** at limit **
   4  Prefactor     2.2028        3.9563        .15565E-07   -.73700E-04
   5  norm          .10000E-03    .62058E-01    .29985E-08** at limit **
   6  norm          9.9283        5.3934       -.10126E-07   -.43516E-04
   7  Prefactor     10.246        12.130       -.89680E-08   -.16882E-04
   8  Prefactor     85.318        75.986        .40326E-05    .96675E-04
   9  Prefactor     6.7355        6.8072        .60328E-07   -.22084E-04
  10  norm          .54043        3.4628        .57217E-06   -.33572E-03
  11  Prefactor     .10000E-03    5.5211        .28909E-07** at limit **
  12  Prefactor     29.555        28.082        .52833E-06    .70501E-04
  13  norm          8.8880        4.6152       -.63483E-08   -.28385E-04
  14  norm          13.870        6.8685        .45104E-08    .72151E-05
  15  norm          20.252        7.8802        .54123E-07    .12286E-03
  16  norm          .81969        7.8251        .41284E-07   -.59802E-04
  17  norm          .10000E-03    6.4928       -.28576E-07** at limit **
  18  Prefactor     .10000E-03    2.1723        .32613E-07** at limit **
  19  Prefactor     12.275        17.581       -.15936E-05   -.11043E-03
  20  norm          .10000E-03    2.9567       -.65425E-07** at limit **
  21  Prefactor     .10000E-03    23.399        .34984E-07** at limit **
  22  Prefactor     11.192        42.534       -.13514E-05   -.19951E-04
  23  norm          5.2165        5.8498        .72875E-06   -.35286E-03
  24  Prefactor     10.815        14.026        .38151E-07   -.14750E-04
  25  Prefactor     .10000E-03    9.8326        .13846E-08** at limit **
  26  Normalizat    1.3807        .18730       -.25470E-06   -.40676E-05
  27  Prefactor     .48695        .18169       -.20038E-06   -.22426E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 13.1278
  Prefactor  = 0.0001
  Prefactor  = 2.20283
  norm       = 0.0001
  norm       = 9.92832
  Prefactor  = 10.2462
  Prefactor  = 85.3182
  Prefactor  = 6.73549
  norm       = 0.54043
  Prefactor  = 0.0001
  Prefactor  = 29.5555
  norm       = 8.88802
  norm       = 13.8698
  norm       = 20.2516
  norm       = 0.819688
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2753
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1915
  norm       = 5.21653
  Prefactor  = 10.8155
  Prefactor  = 0.0001
  Normalizat = 1.38067
  Prefactor  = 0.486951
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.345     FROM HESSE     STATUS=OK           498 CALLS     3790 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6639        .24333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.128        3.7218        .76522E-04   -1.4983    
   3  Prefactor     .10000E-03    1.3978        .17450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2028        3.9353        .19461E-03   -1.5411    
   5  norm          .10000E-03    .72042E-01    .37476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.9283        5.3896        .12331E-03   -1.5078    
   7  Prefactor     10.246        12.129        .12518E-03   -1.5068    
   8  Prefactor     85.318        78.207        .43494E-04   -1.3858    
   9  Prefactor     6.7355        6.8026        .15461E-03   -1.5189    
  10  norm          .54043        4.5466        .30268E-03   -1.5561    
  11  Prefactor     .10000E-03    5.5324        .17747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.555        28.620        .73699E-04   -1.4620    
  13  norm          8.8880        4.6222        .11467E-03   -1.5112    
  14  norm          13.870        6.8643        .10755E-03   -1.4963    
  15  norm          20.252        8.9868        .89009E-04   -1.4808    
  16  norm          .81969        34.393        .31260E-02   -1.5527    
  17  norm          .10000E-03    6.4957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1987        .11109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.275        17.934        .11432E-03   -1.5007    
  20  norm          .10000E-03    2.9702        .12984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.192        42.540        .11975E-03   -1.5039    
  23  norm          5.2165        6.3236        .87998E-03   -1.5251    
  24  Prefactor     10.815        14.050        .12182E-03   -1.5050    
  25  Prefactor     .10000E-03    9.8515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3807        .21888        .22023E-03   -.81189    
  27  Prefactor     .48695        .20867        .35415E-03   -1.1258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41021e-08
Minuit parameter uncertainties:
  1  6.98455e-06
  2  3.72187
  3  1.78901e-06
  4  3.93577
  5  1.1561e-07
  6  5.38989
  7  12.1314
  8  78.3018
  9  6.80335
  10  3.13507
  11  2.35191e-06
  12  28.6333
  13  4.62236
  14  6.86473
  15  8.98736
  16  10.625
  17  9.85705e-07
  18  1.22744e-05
  19  17.9415
  20  2.86116e-06
  21  5.6005e-06
  22  42.6561
  23  6.32446
  24  14.0539
  25  2.56521e-06
  26  0.219026
  27  0.208999
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  8.888e+00  4.622e+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:  4.870e-01  2.090e-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.381e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.48
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 6.03e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 3.13e-05 +/- 1.63e-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) = 5980.37042181
delta logL = 0.97485253689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5980.35656525
delta logL = 0.988709098659

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3308       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7731       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52805       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=   5980.357     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      273 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3313        4.4489        .80132E-04   -.19814E-02
   2  alpha         2.7737        .54757        .89775E-02   -.18831E-03
   3  Normalizat    1.3150        .21396        .22449E-03    .57427E-04
   4  Prefactor     .52824        .20989        .34087E-03    .10299E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.3313
  alpha      = 2.7737
  Normalizat = 1.31505
  Prefactor  = 0.528245
 **********
 **   18 **HESSE 
 **********

 FCN=   5980.357     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3313        4.1809        .32053E-05   -1.5205    
   2  alpha         2.7737        .51453        .35910E-03    .10970    
   3  Normalizat    1.3150        .21372        .44899E-04   -.83118    
   4  Prefactor     .52824        .20974        .13635E-04   -1.1070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58529e-10
Minuit parameter uncertainties:
  1  4.18108
  2  0.518279
  3  0.213862
  4  0.210048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164942': 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) = 5980.35656303
delta logL = 0.988711316694

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  6.331e+00  4.181e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.774e+00  5.183e-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:  5.282e-01  2.100e-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.315e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.45
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.77 +/- 0.52
Photon Flux (Free Index): 1.14e-07 +/- 6.04e-08
Energy Flux (Free Index): 2.75e-05 +/- 1.20e-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/164942/cmap_HighResolution_635904001_636163201_4FGL_J1303.0+2434_daily_bin1530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.03e-08', energy_flux2='2.75e-05', photon_flux_error='3.13e-08', dlogl='9.89e-01', energy_flux='3.13e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-06 18:41:05.363993', photon_index_error2='0.52', photon_index2='2.77', ts='8.48', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.38', time_epoch_completed='1630978865.36', return_code='0', job_id='164942', GAL2='0.53', EG2='1.32', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='6.04e-08', ts2='10.45', photon_index='2.07' WHERE bin_id='1530' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:41:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 164942: <4FGL_J1303.0+2434_daily_bin1530> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1530> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 18:25:31 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:26:04 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:26:04 2021
Terminated at Mon Sep  6 18:41:06 2021
Results reported at Mon Sep  6 18:41:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1530 195.757 24.5821 635904001 636163201 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 :                                   667.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            935 sec.

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

