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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin19
RA = 195.757, Dec = 24.5821
tmin = 244252801, tmax = 244512001
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='152106', job_status='RUN', time_executed='2021-09-06 17:42:37.561785', time_epoch_executed='1630975357.56' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152106/ft1_4FGL_J1303.0+2434_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152106/ft2_4FGL_J1303.0+2434_daily_bin19.fits


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

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

Done.
real 2.46
user 2.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152106/ft2_4FGL_J1303.0+2434_daily_bin19.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/152106/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin19.fits evtable="EVENTS" outfile="/scratch/kocevski/152106/ft1_filtered_4FGL_J1303.0+2434_daily_bin19.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/152106/ft1_filtered_4FGL_J1303.0+2434_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/152106/ft2_4FGL_J1303.0+2434_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/152106/ltcube_244252801_244512001_4FGL_J1303.0+2434_daily_bin19.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/152106/ft2_4FGL_J1303.0+2434_daily_bin19.fits
.....................!
real 15.71
user 15.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152106/ft1_filtered_4FGL_J1303.0+2434_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/152106/ft2_4FGL_J1303.0+2434_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/152106/ltcube_244252801_244512001_4FGL_J1303.0+2434_daily_bin19.fits outfile=/scratch/kocevski/152106/expmap_244252801_244512001_4FGL_J1303.0+2434_daily_bin19.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/152106/ltcube_244252801_244512001_4FGL_J1303.0+2434_daily_bin19.fits
.....................!
real 191.24
user 185.90
sys 4.91

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/152106/ft1_filtered_4FGL_J1303.0+2434_daily_bin19.fits scfile=/scratch/kocevski/152106/ft2_4FGL_J1303.0+2434_daily_bin19.fits outfile=/scratch/kocevski/152106/cmap_244252801_244512001_4FGL_J1303.0+2434_daily_bin19.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/152106/ft1_filtered_4FGL_J1303.0+2434_daily_bin19.fits scfile=/scratch/kocevski/152106/ft2_4FGL_J1303.0+2434_daily_bin19.fits outfile=/scratch/kocevski/152106/cmap_HighResolution_244252801_244512001_4FGL_J1303.0+2434_daily_bin19.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.307       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .64278E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11825E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .88829E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14609E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4414       1.0000         .10000E-03   10000.    
    14 'norm      '    5.0901       1.0000         .10000E-03   10000.    
    15 'norm      '    .81844       1.0000         .10000E-03   10000.    
    16 'norm      '    .10645E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8702       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3742       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7880       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.5159       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.995       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .97275       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1790       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=   5092.112     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     2866 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.309        5.3558       -.21344E-06   -.30491E-04
   2  Prefactor     .10000E-03    2.6498       -.11693E-07** at limit **
   3  Prefactor     5.0346        3.1042       -.26568E-07   -.92190E-04
   4  Prefactor     .73392E-01    4.3006        .56586E-06   -.51157E-03
   5  norm          .10000E-03    .14134       -.83304E-08** at limit **
   6  norm          2.1951        3.7475        .10474E-05   -.85238E-04
   7  Prefactor     .10000E-03    5.3040        .12951E-06** at limit **
   8  Prefactor     .10000E-03    34.135        .14603E-05** at limit **
   9  Prefactor     .10000E-03    4.4207        .10388E-05** at limit **
  10  norm          .10642        2.5792       -.17017E-06    .10222E-03
  11  Prefactor     .10007E-03    6.8114       -.94666E-06** at limit **
  12  Prefactor     .10000E-03    19.958        .73218E-08** at limit **
  13  norm          4.4406        4.5744       -.21118E-05   -.17293E-03
  14  norm          5.0895        5.2124        .90099E-07   -.27622E-03
  15  norm          .81584        3.8342       -.36022E-07   -.32289E-04
  16  norm          .10000E-03    8.0020       -.69938E-06** at limit **
  17  norm          .10000E-03    9.4999       -.57041E-06** at limit **
  18  Prefactor     2.8695        3.0998       -.20579E-08    .14870E-04
  19  Prefactor     6.3715        12.546        .14352E-06   -.14716E-03
  20  norm          4.7886        6.8703        .53992E-07   -.59747E-03
  21  Prefactor     .10000E-03    10.354        .13496E-05** at limit **
  22  Prefactor     .10000E-03    21.167        .32379E-05** at limit **
  23  norm          2.5149        4.8783        .13383E-06   -.80342E-03
  24  Prefactor     13.995        13.391        .16876E-06    .30123E-04
  25  Prefactor     .10000E-03    14.661       -.49880E-05** at limit **
  26  Normalizat    .97289        .19336        .71671E-06   -.36544E-05
  27  Prefactor     1.1787        .20699       -.31562E-06    .37186E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3085
  Prefactor  = 0.0001
  Prefactor  = 5.03462
  Prefactor  = 0.0733918
  norm       = 0.0001
  norm       = 2.1951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.106416
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  norm       = 4.44061
  norm       = 5.08952
  norm       = 0.815838
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.8695
  Prefactor  = 6.37152
  norm       = 4.78859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51488
  Prefactor  = 13.9945
  Prefactor  = 0.0001
  Normalizat = 0.972894
  Prefactor  = 1.17873
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.112     FROM HESSE     STATUS=OK           506 CALLS     3372 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.309        5.3254        .90461E-04   -1.4925    
   2  Prefactor     .10000E-03    2.7127        .22516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0346        3.1057        .90852E-04   -1.5259    
   4  Prefactor     .73392E-01    4.1476        .48537E-01   -1.5654    
   5  norm          .10000E-03    .23048        .51586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1951        3.7400        .17212E-03   -1.5412    
   7  Prefactor     .10000E-03    5.3237        .16047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.037        .28764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10642        21.996        .21666E-02   -1.5643    
  11  Prefactor     .10007E-03    47.233        .35563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4406        4.6005        .14895E-03   -1.5286    
  14  norm          5.0895        5.2637        .80511E-03   -1.5257    
  15  norm          .81584        3.6112        .24751E-03   -1.5527    
  16  norm          .10000E-03    7.9839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.5132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8695        3.0715        .12086E-03   -1.5369    
  19  Prefactor     6.3715        12.655        .79489E-03   -1.5203    
  20  norm          4.7886        6.7797        .91932E-03   -1.5270    
  21  Prefactor     .10000E-03    10.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.5149        8.7220        .12879E-02   -1.5391    
  24  Prefactor     13.995        13.407        .10707E-03   -1.4960    
  25  Prefactor     .10000E-03    14.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97289        .22910        .25001E-03   -.93944    
  27  Prefactor     1.1787        .24613        .25499E-03   -.86988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74182e-09
Minuit parameter uncertainties:
  1  5.32557
  2  9.36013e-06
  3  3.10576
  4  1.10278
  5  2.94237e-06
  6  3.74041
  7  1.90318e-06
  8  8.23567e-06
  9  0.000313693
  10  3.05956
  11  0.00374367
  12  7.14924e-07
  13  4.60082
  14  5.26422
  15  3.43301
  16  4.20433e-06
  17  8.42008e-06
  18  3.07164
  19  12.6605
  20  6.78076
  21  4.25996e-06
  22  1.3573e-05
  23  8.72638
  24  13.4103
  25  1.83412e-05
  26  0.229332
  27  0.24637
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.441e+00  4.601e+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.179e+00  2.464e-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:  9.729e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 3.01e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.62e-05

TS (Fixed Index): 1.35
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152106/likelihoodResults_244252801_244512001_4FGL_J1303.0+2434_daily_bin19.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) = 5091.1335221
delta logL = 0.978468214115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5091.13226411
delta logL = 0.979726199702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2250       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2015       1.0000          .0000       5.0000    
     3 'Normalizat'    .90200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2277       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=   5091.132     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      277 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2251        4.7697        .66370E-04   -.13549E-03
   2  alpha         3.2015        1.2497        .10202E-01    .21365E-03
   3  Normalizat    .90201        .22899        .25827E-03    .63343E-04
   4  Prefactor     1.2277        .25124        .25048E-03   -.13298E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22508
  alpha      = 3.20151
  Normalizat = 0.902009
  Prefactor  = 1.22772
 **********
 **   18 **HESSE 
 **********

 FCN=   5091.132     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2251        3.5636        .26548E-05   -1.5410    
   2  alpha         3.2015        .95422        .20404E-02    .28443    
   3  Normalizat    .90201        .22835        .10331E-04   -.96390    
   4  Prefactor     1.2277        .25017        .10019E-04   -.85482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15014e-11
Minuit parameter uncertainties:
  1  3.56395
  2  0.981347
  3  0.228596
  4  0.250414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152106': 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) = 5091.13226411
delta logL = 0.979726202227

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.225e+00  3.564e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.202e+00  9.813e-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.228e+00  2.504e-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:  9.020e-01  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 195.757 24.582
Photon Index (Free Index): 3.20 +/- 0.98
Photon Flux (Free Index): 7.97e-08 +/- 5.46e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.08e-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/152106/cmap_HighResolution_244252801_244512001_4FGL_J1303.0+2434_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-05', comment='SUCCESS', photon_flux='3.01e-08', energy_flux2='1.54e-05', photon_flux_error='3.12e-08', dlogl='9.80e-01', energy_flux='1.56e-05', photon_flux2='7.97e-08', job_status='DONE', time_completed='2021-09-06 17:53:29.172133', photon_index_error2='0.98', photon_index2='3.20', ts='1.35', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.08e-05', EG='0.97', time_epoch_completed='1630976009.17', return_code='0', job_id='152106', GAL2='1.23', EG2='0.90', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='5.46e-08', ts2='3.41', photon_index='2.07' WHERE bin_id='19' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:53:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 152106: <4FGL_J1303.0+2434_daily_bin19> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin19> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:40 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:40:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 17:40:41 2021
Terminated at Mon Sep  6 17:53:29 2021
Results reported at Mon Sep  6 17:53:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin19 195.757 24.5821 244252801 244512001 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 :                                   649.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            769 sec.

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

