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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1297
RA = 195.757, Dec = 24.5821
tmin = 575510401, tmax = 575769601
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='163500', job_status='RUN', time_executed='2021-09-06 18:23:14.052392', time_epoch_executed='1630977794.05' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163500/ft1_4FGL_J1303.0+2434_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163500/ft2_4FGL_J1303.0+2434_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163500/ft1_4FGL_J1303.0+2434_daily_bin1297.fits outfile=/scratch/kocevski/163500/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1297.fits ra=195.757 dec=24.5821 rad=12.0 tmin=575510401.0 tmax=575769601.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.34
user 5.02
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163500/ft2_4FGL_J1303.0+2434_daily_bin1297.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/163500/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1297.fits evtable="EVENTS" outfile="/scratch/kocevski/163500/ft1_filtered_4FGL_J1303.0+2434_daily_bin1297.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163500/ft1_filtered_4FGL_J1303.0+2434_daily_bin1297.fits" evtable="EVENTS" scfile=/scratch/kocevski/163500/ft2_4FGL_J1303.0+2434_daily_bin1297.fits sctable="SC_DATA" outfile=/scratch/kocevski/163500/ltcube_575510401_575769601_4FGL_J1303.0+2434_daily_bin1297.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/163500/ft2_4FGL_J1303.0+2434_daily_bin1297.fits
.....................!
real 16.65
user 16.08
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163500/ft1_filtered_4FGL_J1303.0+2434_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/163500/ft2_4FGL_J1303.0+2434_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/163500/ltcube_575510401_575769601_4FGL_J1303.0+2434_daily_bin1297.fits outfile=/scratch/kocevski/163500/expmap_575510401_575769601_4FGL_J1303.0+2434_daily_bin1297.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/163500/ltcube_575510401_575769601_4FGL_J1303.0+2434_daily_bin1297.fits
.....................!
real 193.61
user 187.01
sys 4.24

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/163500/ft1_filtered_4FGL_J1303.0+2434_daily_bin1297.fits scfile=/scratch/kocevski/163500/ft2_4FGL_J1303.0+2434_daily_bin1297.fits outfile=/scratch/kocevski/163500/cmap_575510401_575769601_4FGL_J1303.0+2434_daily_bin1297.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163500/ft1_filtered_4FGL_J1303.0+2434_daily_bin1297.fits scfile=/scratch/kocevski/163500/ft2_4FGL_J1303.0+2434_daily_bin1297.fits outfile=/scratch/kocevski/163500/cmap_HighResolution_575510401_575769601_4FGL_J1303.0+2434_daily_bin1297.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0219       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9090       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10146       1.0000         .10000E-03   10000.    
     6 'norm      '    8.6379       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2976       1.0000         .10000E-03   10000.    
    10 'norm      '    .29161E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3521       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6878       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5019       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    26.516       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.542       1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9177       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0786       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80487       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=   5313.437     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3265 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0222        4.1678        .13534E-07   -.97126E-05
   2  Prefactor     5.9094        3.4384       -.21753E-07   -.72869E-04
   3  Prefactor     .10000E-03    1.3578        .96149E-09** at limit **
   4  Prefactor     .10000E-03    3.7580        .21325E-06** at limit **
   5  norm          .10146        .15616        .43277E-07   -.16115E-03
   6  norm          8.6386        4.5190        .68238E-06    .92203E-03
   7  Prefactor     .10000E-03    4.4652       -.82478E-07** at limit **
   8  Prefactor     .10000E-03    25.161       -.19651E-05** at limit **
   9  Prefactor     5.2977        5.9167        .72203E-07   -.46639E-04
  10  norm          .10000E-03    2.3571       -.30942E-09** at limit **
  11  Prefactor     .10000E-03    6.0457        .21297E-06** at limit **
  12  Prefactor     .10002E-03    47.357       -.97884E-05** at limit **
  13  norm          .10000E-03    1.0938        .12173E-06** at limit **
  14  norm          5.3497        5.6560        .23009E-05   -.16185E-02
  15  norm          6.6848        4.7190       -.11425E-06    .14688E-03
  16  norm          .10000E-03    3.0506       -.28141E-07** at limit **
  17  norm          .10000E-03    11.603       -.54746E-07** at limit **
  18  Prefactor     4.5016        4.0194       -.40936E-07    .21728E-03
  19  Prefactor     .10000E-03    10.075        .28393E-06** at limit **
  20  norm          26.518        9.0314        .76592E-07    .62617E-04
  21  Prefactor     .10002E-03    38.311        .94741E-05** at limit **
  22  Prefactor     43.541        50.451       -.13225E-06    .49555E-05
  23  norm          .10000E-03    7.6030       -.41882E-06** at limit **
  24  Prefactor     .10000E-03    11.387        .13791E-06** at limit **
  25  Prefactor     1.9177        33.787        .89129E-06   -.32619E-04
  26  Normalizat    1.0786        .17911       -.24800E-06    .73242E-04
  27  Prefactor     .80488        .18461       -.39890E-06    .14540E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.0222
  Prefactor  = 5.9094
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.101463
  norm       = 8.63864
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.29775
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 0.0001
  norm       = 5.34966
  norm       = 6.68479
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.50164
  Prefactor  = 0.0001
  norm       = 26.5181
  Prefactor  = 0.000100023
  Prefactor  = 43.5413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.91774
  Normalizat = 1.07859
  Prefactor  = 0.804884
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.437     FROM HESSE     STATUS=OK           488 CALLS     3753 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0222        4.1858        .10178E-03   -1.5178    
   2  Prefactor     5.9094        3.4521        .91423E-04   -1.5222    
   3  Prefactor     .10000E-03    1.3874        .16554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.244        .27104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10146        .13808        .34355E-03   -1.5644    
   6  norm          8.6386        4.5228        .10835E-03   -1.5120    
   7  Prefactor     .10000E-03    4.4785        .15042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2977        5.9141        .17462E-03   -1.5248    
  10  norm          .10000E-03    15.582        .21317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0707        .17505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    50.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1042        .74457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3497        6.7643        .86858E-03   -1.5245    
  15  norm          6.6848        4.6531        .11886E-03   -1.5191    
  16  norm          .10000E-03    3.0547        .12409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5016        4.0337        .12409E-03   -1.5284    
  19  Prefactor     .10000E-03    10.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          26.518        9.0302        .77796E-04   -1.4678    
  21  Prefactor     .10002E-03    40.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     43.541        50.434        .60755E-04   -1.4387    
  23  norm          .10000E-03    7.7338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.9177        33.974        .30011E-03   -1.5431    
  26  Normalizat    1.0786        .20473        .22234E-03   -.90442    
  27  Prefactor     .80488        .21089        .27324E-03   -.99549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79692e-09
Minuit parameter uncertainties:
  1  4.18594
  2  3.45219
  3  2.25643e-06
  4  0.000382679
  5  0.138083
  6  4.52293
  7  8.6203e-06
  8  0.000319098
  9  5.91476
  10  7.31899e-05
  11  1.7148e-05
  12  0.0021411
  13  4.01729e-06
  14  6.76525
  15  4.65338
  16  5.11634e-08
  17  6.8148e-06
  18  4.03393
  19  2.02064e-05
  20  9.03062
  21  0.00194945
  22  50.4835
  23  3.56875e-05
  24  1.48895e-05
  25  16.1538
  26  0.204878
  27  0.211105
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  4.017e-06  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:  8.049e-01  2.111e-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.079e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 3.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163500/likelihoodResults_575510401_575769601_4FGL_J1303.0+2434_daily_bin1297.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): 102
logL (Free Index) = 5313.44122871
delta logL = -0.0041658016271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5313.43706269
delta logL = 2.26802512771e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0538       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80490       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=   5313.437     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      229 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    70.456        .74918E-02** at limit **
   2  alpha         1.7692        3.3617        .16805        .17522E-07
   3  Normalizat    1.0786        .35598E-01    .22234E-03    .25072E-03
   4  Prefactor     .80488        .38538E-01    .27324E-03    .21049E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76919
  Normalizat = 1.07859
  Prefactor  = 0.804885
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.437     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1974        .77648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7692        2.7872        .67219E-02   -.29665    
   3  Normalizat    1.0786        .19294        .44468E-04   -.90442    
   4  Prefactor     .80488        .20879        .10930E-04   -.99549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87111e-11
Minuit parameter uncertainties:
  1  1.62304e-07
  2  110.641
  3  0.193063
  4  0.208992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163500': 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) = 5313.43705943
delta logL = 3.48325102095e-06

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.623e-07  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.769e+00  1.106e+02  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:  8.049e-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.079e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.757 24.582

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/163500/cmap_HighResolution_575510401_575769601_4FGL_J1303.0+2434_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-05', job_status='DONE', photon_flux_upper_limit='3.59e-08', time_completed='2021-09-06 18:35:32.927534', job_id='163500', GAL2='0.80', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630978532.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1297' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:35:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 163500: <4FGL_J1303.0+2434_daily_bin1297> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1297> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 18:20:32 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:20:36 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:20:36 2021
Terminated at Mon Sep  6 18:35:33 2021
Results reported at Mon Sep  6 18:35:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1297 195.757 24.5821 575510401 575769601 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 :                                   712.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             311.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            901 sec.

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

